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

fix ptp labels to skip virtual machines #122

Merged
merged 2 commits into from
Mar 23, 2020

Conversation

yuvalk
Copy link
Member

@yuvalk yuvalk commented Mar 22, 2020

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 ...

@openshift-ci-robot openshift-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 22, 2020
@openshift-ci-robot
Copy link
Collaborator

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@cynepco3hahue
Copy link
Contributor

/ok-to-test

@openshift-ci-robot openshift-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 22, 2020
@yanirq
Copy link
Member

yanirq commented Mar 22, 2020

@yuvalk is this visible enough for others to know that they need to manual label a machine with virtualmachine ? (or at least consider it) maybe worth changing to a variable that defaults to virtual machine but you can change it (exporting etc..) ?

@yuvalk
Copy link
Member Author

yuvalk commented Mar 22, 2020

@yuvalk is this visible enough for others to know that they need to manual label a machine with virtualmachine ? (or at least consider it) maybe worth changing to a variable that defaults to virtual machine but you can change it (exporting etc..) ?

I'll add a variable
maybe also worth mentioning in the readme

@yuvalk yuvalk force-pushed the fix_setup_labeling branch 2 times, most recently from bfcdc2e to 7c8ba89 Compare March 22, 2020 11:18
hack/setup-test-cluster.sh Outdated Show resolved Hide resolved
@yuvalk yuvalk force-pushed the fix_setup_labeling branch 2 times, most recently from 5922340 to d86c143 Compare March 22, 2020 12:09
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 22, 2020
@yuvalk
Copy link
Member Author

yuvalk commented Mar 22, 2020

@SchSeba - tnx, was going to ask you to take a look

Copy link
Member

@slintes slintes left a 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 Show resolved Hide resolved
hack/README.md Outdated Show resolved Hide resolved
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.
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member Author

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"

hack/README.md Outdated Show resolved Hide resolved
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2020
@yuvalk
Copy link
Member Author

yuvalk commented Mar 23, 2020

Good idea to add a README +1
I have some comments about it though

tnx for reading,
fixed.

@@ -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)
Copy link
Member

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.

${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)
Copy link
Member

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>
@slintes
Copy link
Member

slintes commented Mar 23, 2020

/retest

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Mar 23, 2020

@yuvalk: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-gcp-origin 881bac8 link /test e2e-gcp-origin
ci/prow/e2e-gcp-ovn 881bac8 link /test e2e-gcp-ovn

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.

Copy link
Member

@slintes slintes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2020
@openshift-ci-robot
Copy link
Collaborator

[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 /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 Mar 23, 2020
@openshift-merge-robot openshift-merge-robot merged commit 8e278f0 into openshift-kni:master Mar 23, 2020
@yuvalk
Copy link
Member Author

yuvalk commented Mar 23, 2020

/cherrypick release-4.4

@openshift-cherrypick-robot

@yuvalk: only openshift-kni org members may request cherry picks. You can still do the cherry-pick manually.

In response to this:

/cherrypick release-4.4

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.

@yuvalk
Copy link
Member Author

yuvalk commented Mar 23, 2020

@yuvalk: only openshift-kni org members may request cherry picks. You can still do the cherry-pick manually.

In response to this:

/cherrypick release-4.4

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?

@yuvalk
Copy link
Member Author

yuvalk commented Mar 23, 2020

maybe it take some time for the cherrypick robot to pick new members up or something?

@slintes
Copy link
Member

slintes commented Mar 23, 2020

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

@yuvalk
Copy link
Member Author

yuvalk commented Mar 23, 2020

/cherrypick release-4.4

@openshift-cherrypick-robot

@yuvalk: new pull request created: #126

In response to this:

/cherrypick release-4.4

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.

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants