Skip to content

Conversation

@enxebre
Copy link
Member

@enxebre enxebre commented Feb 21, 2023

This is so oc adm must-gather works by default in hypershift clusters.
Ref https://issues.redhat.com/browse/HOSTEDCP-836

This is so oc adm must-gather works by default in hypershift clusters
@openshift-ci openshift-ci bot requested review from mfojtik and soltysh February 21, 2023 10:09
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/hold

}
for _, node := range nodes.Items {
pod, err := o.Client.CoreV1().Pods(ns.Name).Create(context.TODO(), o.newPod(node.Name, image), metav1.CreateOptions{})
pod, err := o.Client.CoreV1().Pods(ns.Name).Create(context.TODO(), o.newPod(node.Name, image, hasMaster), metav1.CreateOptions{})
Copy link
Contributor

Choose a reason for hiding this comment

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

Before we start adding weird edge cases, have you considered using --node-selector=node-role.kubernetes.io/worker instead?

Copy link
Member Author

@enxebre enxebre Feb 22, 2023

Choose a reason for hiding this comment

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

I wouldn't look at Openshift hosted clusters powered by hypershift as a weird use case but rather as the only/default scenario for Red Hat Openshift managed services offering and the increasing choice for self-hosted multi-cluster offering.

The intend was to avoid end user to have to set an additional flag for it work ootb in any of the scenarios above.
Whether this is the right impl approach to satisfy the use case I have no opinions / not familiar with this code base, so feel free to close and request a deeper discussion. I'm curious why we run in a master by default?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious why we run in a master by default?

We care about what's going on masters only, even though parts of the data we scrape is reachable through API, significant portion is scraping data directly from the OS running the control plane components. That's why it was natural for us to force running them on masters.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 22, 2023
@enxebre
Copy link
Member Author

enxebre commented Feb 28, 2023

cc @soltysh any thoughts on how to move this forward?

Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/hold cancel
/lgtm
/approve

@soltysh
Copy link
Contributor

soltysh commented Feb 28, 2023

@soltysh any thoughts on how to move this forward?

I'll have to make a few refactorings to that code, so let's land it as is for now.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 28, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre, soltysh

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 4ef4a1e and 2 for PR HEAD b186341 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 28, 2023

@enxebre: all tests passed!

Full PR test history. Your PR dashboard.

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.

@openshift-merge-robot openshift-merge-robot merged commit b06d2ef into openshift:master Feb 28, 2023
@enxebre
Copy link
Member Author

enxebre commented Mar 9, 2023

@soltysh we'd want this in 4.12. Let's discuss if you have any objections, concerns...
/cherry-pick release-4.12

@openshift-cherrypick-robot

@enxebre: new pull request created: #1366

In response to this:

@soltysh we'd want this in 4.12. Let's discuss if you have any objections, concerns...
/cherry-pick release-4.12

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.

@wking
Copy link
Member

wking commented Jun 6, 2023

Too late to get this bug linked up to the 4.13 GA errata or anything, but just to make it easier for folks looking at this pull request to find the bug chain it's the tip of:

/retitle OCPBUGS-14644: Do not set master node selector if there's no masters

@openshift-ci openshift-ci bot changed the title Do not set master node selector if there's no masters OCPBUGS-14644: Do not set master node selector if there's no masters Jun 6, 2023
@openshift-ci-robot
Copy link

@enxebre: Jira Issue OCPBUGS-14644: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-14644 has been moved to the MODIFIED state.

In response to this:

This is so oc adm must-gather works by default in hypershift clusters.
Ref https://issues.redhat.com/browse/HOSTEDCP-836

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants