Bug 1800746: baremetal: only respond to dhcp for control plane mac's #3079
Bug 1800746: baremetal: only respond to dhcp for control plane mac's #3079openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
9529112 to
720740a
Compare
|
/label platform/baremetal |
This comment has been minimized.
This comment has been minimized.
|
/retest |
|
/cc @sadasu @hardys @dhellmann @wking Result of our discussion on Slack. |
|
Build SUCCESS, see build http://10.8.144.11:8080/job/dev-tools/1499/ |
|
/retitle Bug 1800746: baremetal: provide dnsmasq with allowlist for control plane mac's |
|
@stbenjam: This pull request references Bugzilla bug 1800746, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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/test-infra repository. |
|
@stbenjam: This pull request references Bugzilla bug 1800746, which is valid. DetailsIn 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/test-infra repository. |
720740a to
6672fef
Compare
6672fef to
a65c0d8
Compare
|
Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/1503/ |
|
Seems to be working, iptables rules are created and seem to be catching DHCP packets |
|
/hold cancel |
|
/cc @hardys PTAL |
|
@stbenjam: GitHub didn't allow me to request PR reviews from the following users: PTAL. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn 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/test-infra repository. |
|
Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/1508/ |
|
Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/1509/ |
|
@stbenjam: The following tests failed, say
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. DetailsInstructions 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. |
|
/lgtm |
|
/approve |
|
Hmm seems we're missing an OWNERS file entry for one of the files touched? |
|
Hm, every dir should have it. I fixed the missing ones a few days ago. Maybe it’s not looking at https://github.com/openshift/installer/blob/master/data/data/bootstrap/baremetal/OWNERS for startironic.sh? |
|
/approve Need the baremetal OWNERS in installer/pkg/asset/ignition/bootstrap/baremetal/ |
|
/overide ci/prow/e2e-aws-upgrade |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hardys, sdodson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/override ci/prow/e2e-aws-upgrade |
|
@sdodson: Overrode contexts on behalf of sdodson: ci/prow/e2e-aws-upgrade DetailsIn 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/test-infra repository. |
|
/override ci/prow/e2e-aws |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/cherry-pick release-4.4 |
|
@stbenjam: once the present PR merges, I will cherry-pick it on top of release-4.4 in a new PR and assign it to you. DetailsIn 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/test-infra repository. |
|
@stbenjam: All pull requests linked via external trackers have merged. Bugzilla bug 1800746 has been moved to the MODIFIED state. DetailsIn 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/test-infra repository. |
|
@stbenjam: new pull request created: #3138 DetailsIn 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/test-infra repository. |
|
FWIW - This PR looks good on my BM env (1master+2workers) |
Note: This is solving a similar problem for baremetal as
openshift/machine-config-operator#1421 did for MCO.
The bootstrap can now co-exist with machine-api being online. That
means there could be an instance of Ironic, dnsmasq, etc running in
both the cluster and the bootstrap. This causes problems, as it's not
deterministic which dnsmasq instance the worker provisioned by the
machine-api will use. If it uses the bootstrap, then the worker will not
come online.
This is causing a percentage of baremetal installs to fail, with the
worker being offline, ingress and other operators never come up.
This change blocks dhcp requests from anything but control plane hosts,
using iptables. DHCPv6 relies on DUID's instead which makes things more
complicated to use dnsmasq's dhcp-host abilities, which prefers DUIDS
for IPv6.