-
Notifications
You must be signed in to change notification settings - Fork 28
Remove PreprovisioningNetworkDataName #217
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
Remove PreprovisioningNetworkDataName #217
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rabi 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 |
Putting this on hold to see if we want to update #211 instead. |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/0fbe64a3a8f544d5bbcc47bc775c0d87 ❌ openstack-baremetal-operator-content-provider FAILURE in 13m 51s |
recheck |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/af77385bf40b43f58d3aa508929daf34 ❌ openstack-baremetal-operator-content-provider FAILURE in 12m 34s |
We had initially introduced preprovisioningNetworkDataName field in InstanceSpec for users to have flexibility of setting it in OpenStackDataPlaneNodeSet CR for the individual nodes. We have had the implementation to fallback to using preprovisioningNetworkDataName for networkData if the later is not provided and the former is set. However, we've noticed that this does not work when using coreos IPA ramdisk image as ProvisioningImage Builder expects the preprovisioningNetworkDataName to be in nmstate format, however for us during provisioning cloud-init expects it to be in openstack network_data.json format. Therefore we would not replicate the metal3 behavior of falling back to preprovisioningNetworkDataName if networkData is not provided. We instead will keep both network data for preprovisionig and provisoning separate. If networkData is not provided per BMH node, we would use the default networkData we generate using IPAM. This also removes networkData/userData from the BaremetalSet spec as there is no way user can provide this data for a set of BMHs. jira: https://issues.redhat.com/browse/OSPRH-10442 Signed-off-by: rabi <[email protected]>
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/232de0b0efcb4315b83aab3a3d43f038 ❌ openstack-baremetal-operator-content-provider FAILURE in 11m 57s |
recheck |
No it does not in its current state. It needs to be reworked like this. The reason I mentioned that here is because it was started earlier and we discussed some of these things there too and it led to further investigation. |
/test openstack-baremetal-operator-build-deploy |
@abays I've not seen any updates to the other PR. As we want this fix in 18.0.2 ASAP, I think we should merge and backport this. |
/lgtm |
b5622e3
into
openstack-k8s-operators:main
/cherrypick 18.0.0-proposed |
@rabi: #217 failed to apply on top of branch "18.0.0-proposed":
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. |
We had initially introduced
preprovisioningNetworkDataName
field inInstanceSpec
for users to have flexibility of setting it inOpenStackDataPlaneNodeSet
CR for the individual nodes. We have had the implementation to fallback to usingpreprovisioningNetworkDataName
for provisioningnetworkData
if the later is not provided and the former is set.However, we've noticed that this does not work when using coreos IPA ramdisk image as
ProvisioningImage
Builder expects thepreprovisioningNetworkDataName
to be in nmstate format, however for us during provisioning cloud-init expects it to be in openstack network_data.json format.Therefore we would not replicate the metal3 behavior of falling back to
preprovisioningNetworkDataName
ifnetworkData
is not provided. We instead will keep both network data for preprovisionig and provisoning separate. IfnetworkData
is not provided per BMH node, we would use the defaultnetworkData
we generate using IPAM.This also removes networkData/userData from the BaremetalSet spec as there is no way user can provide this data for a set of BMHs.
Depends-On: openstack-k8s-operators/openstack-operator#1116
jira: https://issues.redhat.com/browse/OSPRH-10442