-
Notifications
You must be signed in to change notification settings - Fork 260
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
IPA on baremetal server is unable to reach ironic's endpoint - ENETUNREACH #1664
Comments
Maybe you can set ironic-endpoint "https://ip:port" to have a try. |
Hi, |
Hi! Just to clarify: you're using OpenShift as Kubernetes, but you're not using a built-in Metal3 (that is deployed automatically if you have platform=baremetal)? You're using upstream BMO, Ironic and IPA of the latest versions? (I wonder why, but okay). Generally, we don't debug OpenShift-specific issues in the context of the upstream Metal3 community, but if so: This is a networking problem, we cannot debug it just from the description. You may need to log into the ramdisk (figuring out what it actual IP is) and check the networking. If you're using a provisioning network and it's IPv6-only, that's the expected outcome, for example. |
Hi, thanks for the response. In the iso image on ramdisk, we confirmed that network data is added in openstack/latest/network_data.json file. Our environment does not support DHCP. We used preprovisioningNetworkData in BMH to add network data. This is supposed to work in DHCP less environment according to https://github.com/metal3-io/metal3-docs/blob/main/design/baremetal-operator/image-builder-integration.md. But the IPA is still waiting for DHCP to assign IP, despite giving the static network data. And since there is no ip that is assigned to the BareMetalServer, it is unable to reach back ironic's endpoint. Is there any way to disable waiting for DHCP from IPA or generate custom IPA without DHCP waiting? |
Is it a duplicate of metal3-io/metal3-docs#416 then? Could you close one of them? |
@agewagra Have you built your own custon IPA or are you using the default from upstream? |
Yeah we were using default, but realised we should build the custom IPA. |
Technically by creating custom "elements" for the IPA builder or for OpenStack disk image builder you can build IPA out of any base image. IPA builder is based on Openstack Disk Image Builder (DIB) and DIB is a modular tool so you can build your own custom workflows. I would expect that DIB has very good RH distro support by default but I have not used RHCOS. Maybe @dtantsur or @elfosardo is more up to date . |
Yes, thank you. Added Simple-init element to get a dhcp less ramdisk with centOS as base image. But even then on the baremetal server, the networkData is not being applied. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
I have some simple init fixes that I have not pushed upstream because of change in priorities, you could try those: https://github.com/Nordix/glean/commits/parsing_error/ basically glean is the tool that is installed by the simple init element and this takes care of initial network configuration you could install the simple-init and you could export the environment variables listed here https://docs.openstack.org/diskimage-builder/latest/elements/simple-init/README.html to point to my branch and see if it helps. |
/remove-lifecycle stale |
/triage accepted We need to try bringing the fixes to Glean upstream, check with the latest status of the feature in the Ironic project and update the documentation (https://book.metal3.io/bmo/advanced_instance_customization exists but does not cover building the IPA image). |
@dtantsur: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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-sigs/prow repository. |
Steps to reproduce the bug:
follow the deployment steps for ironic and baremetal operator. Use the metal3 ironic-image for deploying ironic. https://book.metal3.io/quick-start.
After deployment, create a baremetalhost for a baremetal server using the yaml file.
Environment:
Deployed on an openshift cluster v4.13 - dual stack environment.
What did you expect to happen:
The IPA on RAMdisk of baremetal server should reach ironic's endpoint in prebooting of the inspection phase and BMH status should be available.
Anything else you would like to add:
We are using a dual stack environment on openshift to make deployments. The baremetal server that we want to provision needs the virtual boot image from ironic to be hosted on ipv6 address. So we gave an ipv6 address for ironic_external_ip. Rest all are ipv4 addresses.
Bug:
IPA is trying to perform lookup for node on ironic during inspection. But it is unable to reach the end point.
The text was updated successfully, but these errors were encountered: