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

openstack: make dhcp files available to UPI too #2606

Merged

Conversation

tomassedovic
Copy link
Contributor

The OpenStack provider requires two extra configuration files on the bootstrap node. Without this patch, they're only available to the IPI installer and the UPI process needs to add them to the ignition explicitly.

This makes the UPI process more arduous than it needs to be and it can pose maintenance issues later on.

By moving them under data/data/bootstrap/openstack/, these files will be generated with openshift-install create ignition-configs and therefore available to both IPI and UPI.

This removes the `dhclient.conf` and `dhcp-client.conf` files that
OpenStack uses from the `pkg/tfvars/openstack/bootstrap_ignition.go`
file to `data/data/bootstrap/openstack`.

From there, the files are picked automatically by both IPI and UPI.
The `bootstrap_ignition.go` contents were only available by the IPI,
leading to duplication of effort and having to maintain the same
content in two places.
The dhcp config files are now generated as part of `openshift-install
create ignition-configs` so we don't need to create them explicitly.

The hostname still remains, because the bootstrap template data does
not make the `infraID` available.
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 1, 2019
@tomassedovic
Copy link
Contributor Author

/cc @iamemilio @pierreprinetti

@tomassedovic
Copy link
Contributor Author

/label platform/openstack

@tomassedovic
Copy link
Contributor Author

/test e2e-openstack

This looks like an OpenStack env issue rather than a bug with this patch. Retesting and also re-running it locally.

@pierreprinetti
Copy link
Member

/lgtm

Clean & tidy!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 1, 2019
@tomassedovic
Copy link
Contributor Author

Okay, this worked locally. The "glitch in the OpenStack CI" hypothesis seems to hold up.

@pierreprinetti
Copy link
Member

/retest

@tomassedovic
Copy link
Contributor Author

/hold

We're in a feature freeze and this is a feature. We hold off merging until the 4.4 master opens.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 6, 2019
@jstuever
Copy link
Contributor

/uncc @jstuever

@openshift-ci-robot openshift-ci-robot removed the request for review from jstuever November 11, 2019 18:49
@abhinavdahiya
Copy link
Contributor

/hold

We're in a feature freeze and this is a feature. We hold off merging until the 4.4 master opens.

we should be okay to merge towards 4.4 now.. Thanks!

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 22, 2019
@abhinavdahiya
Copy link
Contributor

/test all

@abhinavdahiya
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, pierreprinetti, tomassedovic

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 22, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 8e75675 into openshift:master Nov 23, 2019
@openshift-ci-robot
Copy link
Contributor

@tomassedovic: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 f670689 link /test e2e-aws-scaleup-rhel7

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@tomassedovic tomassedovic deleted the openstack-move-dhcp-files branch November 25, 2019 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. platform/openstack size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants