-
Notifications
You must be signed in to change notification settings - Fork 135
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
fix ptp labels to skip virtual machines #122
fix ptp labels to skip virtual machines #122
Conversation
Hi @yuvalk. Thanks for your PR. I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
@yuvalk is this visible enough for others to know that they need to manual label a machine with |
663d97b
to
be87dc0
Compare
I'll add a variable |
bfcdc2e
to
7c8ba89
Compare
5922340
to
d86c143
Compare
@SchSeba - tnx, was going to ask you to take a look |
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.
Good idea to add a README 👍
I have some comments about it though
hack/README.md
Outdated
The explanations and descriptions of these sciprts are helpful for contributors. | ||
|
||
## setup-test-cluster.sh | ||
This script does all the CNF installation parts that are expected to be done by users, beside installation related ones. like labeling nodes and creating needed MachineConfiguration object, etc. |
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.
This is a bit confusing IMHO: "it does all the installation parts beside installation".
What about:
This script does all the cluster setup parts that are expected to be done by admins, like labelling nodes and creating the MachineConfigPool resource, etc.
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 wanted to convey that it does not install CNF just do the pre/post setup
still not sure this is good enough
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.
maybe use your phrasing and add after the dot. "It does not install CNF itself"
d86c143
to
68a0c38
Compare
tnx for reading, |
hack/setup-test-cluster.sh
Outdated
@@ -15,11 +17,11 @@ do | |||
done | |||
|
|||
echo "[INFO]: Labeling first node as the ptp grandmaster" | |||
node=$(${OC_TOOL} get nodes -o name | sed -n 1p) | |||
node=$(${OC_TOOL} get nodes -o name --selector '!${NON_PTP_LABEL}' | sed -n 1p) |
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.
'!${NON_PTP_LABEL}'
-> the single quotes prevent using the actual value, please use double quotes. See failure in e2e test.
hack/setup-test-cluster.sh
Outdated
${OC_TOOL} label --overwrite $node ptp/grandmaster="" | ||
|
||
echo "[INFO]: Labeling all the other nodes as ptp slaves" | ||
nodes=$(${OC_TOOL} get nodes -o name | sed 1d) | ||
nodes=$(${OC_TOOL} get nodes -o name --selector '!${NON_PTP_LABEL}' | sed 1d) |
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.
same here
this is currently done by manually pre-labeling those with 'virtual-machine' Signed-off-by: Yuval Kashtan <yuvalkashtan@gmail.com>
with reference to PTP setup environment variable Signed-off-by: Yuval Kashtan <yuvalkashtan@gmail.com>
68a0c38
to
881bac8
Compare
/retest |
@yuvalk: 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. 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. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SchSeba, slintes, yuvalk 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 |
/cherrypick release-4.4 |
@yuvalk: only openshift-kni org members may request cherry picks. You can still do the cherry-pick manually. 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/test-infra repository. |
@slintes - that shouldnt have happened, now that I am a member. can you check? |
maybe it take some time for the cherrypick robot to pick new members up or something? |
you need to make your membership public on https://github.com/orgs/openshift-kni/people |
/cherrypick release-4.4 |
@yuvalk: new pull request created: #126 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/test-infra repository. |
this is currently done by manually pre-labeling those with 'virtual-machine'
Signed-off-by: Yuval Kashtan yuvalkashtan@gmail.com
in our env this will be done by cluster deployment
note: I tried to use ironic introspection data, but that is included only for workers ...