-
Notifications
You must be signed in to change notification settings - Fork 185
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
Add rocky9 support #1649
Add rocky9 support #1649
Conversation
@@ -306,6 +306,8 @@ if [ "$MANAGE_BR_BRIDGE" == "y" ] ; then | |||
sudo virsh net-destroy ${BAREMETAL_NETWORK_NAME} | |||
sudo nmcli con del ${BAREMETAL_NETWORK_NAME} | |||
sudo virsh net-start ${BAREMETAL_NETWORK_NAME} | |||
# Needed in IPv6 on some EL9 hosts for the bootstrap VM to get an IP | |||
echo 0 | sudo dd of=/proc/sys/net/ipv6/conf/${BAREMETAL_NETWORK_NAME}/addr_gen_mode |
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.
@cybertron @mkowalski without this my bootstrap VM doesn't get any IP. Any idea why or if there is a better way I could apply it(I couldn't find a way to get it to work with nmcli)?
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.
My only concern is that echo-ing into /proc/sys is very temporary and NetworkManager will revert that if at any point in time BAREMETAL_NETWORK_NAME goes down&up again. It may not be a real concern, but something to keep in mind.
Would this nmcli call work for you?
nmcli conn modify ${BAREMETAL_NETWORK_NAME} ipv6.addr-gen-mode 0
The ultimately persistent method is
/etc/NetworkManager/NetworkManager.conf
[...]
[connection]
ipv6.addr-gen-mode=0
to have it as a global default - that's what we do in real OCP clusters - https://github.com/openshift/machine-config-operator/blob/master/templates/common/openstack/files/ipv6-config.yaml
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.
P.S. Be aware of a bug in older NetworkManager related to this feature - https://access.redhat.com/solutions/7016090. Again, it may be not relevant, but it's so subtle that at some point may be helpful to know about it
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.
I tried "nmcli conn modify ${BAREMETAL_NETWORK_NAME} ipv6.addr-gen-mode 0" but it didn't work
I didn't try updating "/etc/NetworkManager/NetworkManager.conf"
how would you feel about merging this as is and I'll circle back and try updating NetworkManager.conf once the CI nodes are all on EL9?
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.
Right, indeed something is fishy with mode 0
...
[root@localhost ~]# nmcli conn show eno1 | grep addr-gen-mode
ipv6.addr-gen-mode: eui64
[root@localhost ~]# nmcli conn modify eno1 ipv6.addr-gen-mode 0
[root@localhost ~]# nmcli conn show eno1 | grep addr-gen-mode
ipv6.addr-gen-mode: eui64
[root@localhost ~]# nmcli conn modify eno1 ipv6.addr-gen-mode 1
[root@localhost ~]# nmcli conn show eno1 | grep addr-gen-mod
ipv6.addr-gen-mode: stable-privacy
[root@localhost ~]# nmcli conn modify eno1 ipv6.addr-gen-mode 2
[root@localhost ~]# nmcli conn show eno1 | grep addr-gen-mod
ipv6.addr-gen-mode: default-or-eui64
[root@localhost ~]# nmcli conn modify eno1 ipv6.addr-gen-mode eui64
[root@localhost ~]# nmcli conn show eno1 | grep addr-gen-mod
ipv6.addr-gen-mode: eui64
Go ahead with merging, your solution is perfectly valid one
/retest-required |
2 similar comments
/retest-required |
/retest-required |
/test e2e-metal-ipi-serial-ipv4 |
@derekhiggins: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/test e2e-metal-ipi-serial-ipv4 |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtantsur 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 |
b24c4e6
into
openshift-metal3:master
CI job that ran on rocky9 with this branch
https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_release/50285/rehearse-50285-periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-ovn-ipv6/1778423230030155776