-
Notifications
You must be signed in to change notification settings - Fork 70
Bug 2035239: Add pod listing permission to extract pod host IP #225
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
Bug 2035239: Add pod listing permission to extract pod host IP #225
Conversation
|
/test e2e-metal-ipi-virtualmedia |
|
@ardaguclu: This pull request references Bugzilla bug 2035239, 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. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (augol@redhat.com), skipping review request. 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. |
|
/test e2e-metal-ipi-virtualmedia |
91b217f to
ad9832a
Compare
|
/test e2e-metal-ipi-virtualmedia |
| func getPodHostIP(podClient coreclientv1.PodsGetter, targetNamespace string) (string, error) { | ||
| listOptions := metav1.ListOptions{ | ||
| LabelSelector: metal3AppName, | ||
| FieldSelector: "status.hostIP", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this because it failed with;
invalid selector: 'status.hostIP'; can't understand 'status.hostIP'" "name"="provisioning-configuration"
Maybe it is because of lack of get permission but I did this change for a quick fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an additional safety measure, can you please also verify that len(podList.Items) == 1 instead of > 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think for the latest version @andfasano ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it seems ok, let's see the virtualmedia job
ad9832a to
cb1311a
Compare
|
/test e2e-metal-ipi-virtualmedia |
1 similar comment
|
/test e2e-metal-ipi-virtualmedia |
cb1311a to
5fd6ad6
Compare
|
/test e2e-metal-ipi-virtualmedia |
|
/test e2e-agnostic |
|
/test e2e-metal-ipi |
|
/test e2e-agnostic |
5fd6ad6 to
2f28af5
Compare
|
/test e2e-metal-ipi-virtualmedia |
2f28af5 to
34c3d92
Compare
|
/test e2e-metal-ipi-virtualmedia |
|
@ardaguclu: all tests passed! Full PR test history. Your PR dashboard. 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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andfasano, ardaguclu 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 |
|
/lgtm |
|
@ardaguclu: All pull requests linked via external trackers have merged: Bugzilla bug 2035239 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. |
Even if there is no metal3 Pod up and therefore we cannot find its IP address, we still want to create the image-customization-controller with an empty ironic IP address. This is documented in a comment at the site where getPodHostIP() is called, but not in the implementation, so it was inadvertently broken by openshift#225.
To extract pod's host IP address, CBO tries to list pods in here
cluster-baremetal-operator/provisioning/baremetal_pod.go
Line 1071 in b7bba70
However, CBO does not have allowance to list pods. This PR adds this.