Skip to content
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

baremetal: startironic.sh uses the wrong route IP for CACHEURL #2232

Closed
hardys opened this issue Aug 19, 2019 · 0 comments · Fixed by #2239
Closed

baremetal: startironic.sh uses the wrong route IP for CACHEURL #2232

hardys opened this issue Aug 19, 2019 · 0 comments · Fixed by #2239

Comments

@hardys
Copy link
Contributor

hardys commented Aug 19, 2019

In baremetal environments the default route often points to an external router, e.g something like:

[core@localhost ~]$ ip r
default via 192.168.111.254 dev ens3 proto dhcp metric 100
default via 172.22.0.1 dev ens4 proto static metric 101

This means the logic here doesn't work as desired:

https://github.com/openshift/installer/blob/master/data/data/bootstrap/baremetal/files/usr/local/bin/startironic.sh.template#L76

We need to filter the routes by PROVISIONING_NIC to ensure we get the IP of the provisioning network bridge on the provisioning host, not the external router

rdoxenham pushed a commit to rdoxenham/installer that referenced this issue Aug 20, 2019
Updated the CACHEURL env variable to utilise $PROVISIONING_NIC instead of default.
The default route works in virtualised environments but typically not in baremetal
ones. This shouldresolve for both.

Closes openshift#2232
jhixson74 pushed a commit to jhixson74/installer that referenced this issue Dec 6, 2019
Updated the CACHEURL env variable to utilise $PROVISIONING_NIC instead of default.
The default route works in virtualised environments but typically not in baremetal
ones. This shouldresolve for both.

Closes openshift#2232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant