-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use python3 to build ubuntu based Metal3-dev-env #214
Conversation
/test-v1a2-integration |
/test-centos-integration |
/test-v1a2-integration |
32a5048
to
21c6939
Compare
/test-v1a2-integration |
/test-centos-integration |
ubuntu_install_requirements.sh
Outdated
@@ -20,7 +20,6 @@ sudo apt -y update | |||
# ansible uses default python2 (python-pip) to run on the local machine | |||
sudo apt -y install \ | |||
python3-pip \ | |||
python-pip \ | |||
python-setuptools \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably need to change this too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably need to change this too
Yes, thanks
ubuntu_install_requirements.sh
Outdated
@@ -20,7 +20,6 @@ sudo apt -y update | |||
# ansible uses default python2 (python-pip) to run on the local machine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe update this comment ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe update this comment ?
sure
21c6939
to
3377612
Compare
/test-centos-integration |
lib/network.sh
Outdated
@@ -13,7 +13,7 @@ function network_address() { | |||
network=$2 | |||
record=$3 | |||
|
|||
result=$(python -c "import ipaddress; import itertools; print(next(itertools.islice(ipaddress.ip_network(u\"$network\").hosts(), $record - 1, None)))") | |||
result=$(python3 -c "import ipaddress; import itertools; print(next(itertools.islice(ipaddress.ip_network(u\"$network\").hosts(), $record - 1, None)))") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already set alternatives to python3 on CentOS/RHEL8 - could we perhaps add that for Ubuntu to avoid the need for changing these?
https://github.com/metal3-io/metal3-dev-env/blob/master/centos_install_requirements.sh#L38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note #223 adds CentOS 8 support which we'll need to move to only python3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already set alternatives to python3 on CentOS/RHEL8 - could we perhaps add that for Ubuntu to avoid the need for changing these?
https://github.com/metal3-io/metal3-dev-env/blob/master/centos_install_requirements.sh#L38
Yes, absolutely
b77a393
to
d5a25b9
Compare
/test-v1a3-integration |
@hardys , @elfosardo I updated my commit, can you please have a look when you have time. |
/test-v1a3-integration |
/test-centos-integration |
d5a25b9
to
9446cac
Compare
/test-centos-integration |
1d2f791
to
f72975e
Compare
/test-centos-integration |
/test-v1a3-integration |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fmuyassarov, jan-est, maelk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
You will need to fix the conflict and do a rebase to run the tests properly due to the Centos change |
Rebased |
/test-centos-integration |
/test-v1a3-integration |
- python-setuptools | ||
- python3-pip | ||
- python3-requests | ||
- python3-setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These packages won't exist on centos7 so we shouldn't change them, we probably need to deprecate centos7 suppport or figure out a way for this to temporarily work with python2 as well as python3 (on Centos/RHEL8 and Ubuntu)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I think this was addressed in the rebase commit, it may be worth squashing that into the original commit then force-pushing if you do any other updates
3fbd704
to
22da712
Compare
22da712
to
c3581a7
Compare
/lgtm |
/test-centos-integration |
/test-v1a3-integration |
1 similar comment
/test-v1a3-integration |
Use Pyhon3 as Python2 EOL has passed.