Skip to content

Conversation

@rna-afk
Copy link
Contributor

@rna-afk rna-afk commented Nov 28, 2022

Creating an extra CRD asset for the ControlPlaneMachineSet which is required for the machine api operator for more control over the control-plane nodes that come up on Azure.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 28, 2022
@rna-afk
Copy link
Contributor Author

rna-afk commented Nov 29, 2022

@JoelSpeed can you help with the Azure CPMS CRD? This is the output of the manifest file that I tested locally. Can you check to see if this is the right piece of information the operator needs?

apiVersion: machine.openshift.io/v1
kind: ControlPlaneMachineSet
metadata:
  creationTimestamp: null
  labels:
    machine.openshift.io/cluster-api-cluster: anarayan-fr485
  name: cluster
  namespace: openshift-machine-api
spec:
  replicas: 3
  selector:
    matchLabels:
      machine.openshift.io/cluster-api-cluster: anarayan-fr485
      machine.openshift.io/cluster-api-machine-role: master
      machine.openshift.io/cluster-api-machine-type: master
  strategy: {}
  template:
    machineType: machines_v1beta1_machine_openshift_io
    machines_v1beta1_machine_openshift_io:
      failureDomains:
        azure:
        - zone: "3"
        - zone: "1"
        - zone: "2"
        platform: Azure
      metadata:
        labels:
          machine.openshift.io/cluster-api-cluster: anarayan-fr485
          machine.openshift.io/cluster-api-machine-role: master
          machine.openshift.io/cluster-api-machine-type: master
      spec:
        lifecycleHooks: {}
        metadata: {}
        providerSpec:
          value:
            acceleratedNetworking: true
            apiVersion: machine.openshift.io/v1beta1
            credentialsSecret:
              name: azure-cloud-credentials
              namespace: openshift-machine-api
            diagnostics: {}
            image:
              offer: ""
              publisher: ""
              resourceID: /resourceGroups/anarayan-fr485-rg/providers/Microsoft.Compute/galleries/gallery_anarayan_fr485/images/anarayan-fr485-gen2/versions/412.86.20220930
              sku: ""
              version: ""
            kind: AzureMachineProviderSpec
            location: eastus
            managedIdentity: anarayan-fr485-identity
            metadata:
              creationTimestamp: null
            networkResourceGroup: anarayan-fr485-rg
            osDisk:
              diskSettings: {}
              diskSizeGB: 1024
              managedDisk:
                storageAccountType: Premium_LRS
              osType: Linux
            publicIP: false
            publicLoadBalancer: anarayan-fr485
            resourceGroup: anarayan-fr485-rg
            subnet: anarayan-fr485-master-subnet
            userDataSecret:
              name: master-user-data
            vmSize: Standard_D8s_v3
            vnet: anarayan-fr485-vnet
            zone: "2"
status: {}

@JoelSpeed
Copy link
Contributor

failureDomains:
        azure:
        - zone: "3"
        - zone: "1"
        - zone: "2"
        platform: Azure

How much effort would it be to sort the zones? 🤔 Purely for aesthetic reasons

           userDataSecret:
             name: master-user-data
           vmSize: Standard_D8s_v3
           vnet: anarayan-fr485-vnet
           zone: "2"

You should clear the zone from this spec

Otherwise LGTM

@rna-afk rna-afk force-pushed the azure_cpms branch 2 times, most recently from 54d497b to 980b3c8 Compare November 29, 2022 16:28
@rna-afk rna-afk changed the title [WIP] CORS-2405: Create ControlPlaneMachineSet CRDs CORS-2405: Create ControlPlaneMachineSet CRDs Nov 29, 2022
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 29, 2022
@rna-afk
Copy link
Contributor Author

rna-afk commented Nov 29, 2022

How much effort would it be to sort the zones? thinking Purely for aesthetic reasons

Not much. Fixed it.

You should clear the zone from this spec

Done.

Here's the new CRD.

apiVersion: machine.openshift.io/v1
kind: ControlPlaneMachineSet
metadata:
  creationTimestamp: null
  labels:
    machine.openshift.io/cluster-api-cluster: anarayan-fhzz6
  name: cluster
  namespace: openshift-machine-api
spec:
  replicas: 3
  selector:
    matchLabels:
      machine.openshift.io/cluster-api-cluster: anarayan-fhzz6
      machine.openshift.io/cluster-api-machine-role: master
      machine.openshift.io/cluster-api-machine-type: master
  strategy: {}
  template:
    machineType: machines_v1beta1_machine_openshift_io
    machines_v1beta1_machine_openshift_io:
      failureDomains:
        azure:
        - zone: "1"
        - zone: "2"
        - zone: "3"
        platform: Azure
      metadata:
        labels:
          machine.openshift.io/cluster-api-cluster: anarayan-fhzz6
          machine.openshift.io/cluster-api-machine-role: master
          machine.openshift.io/cluster-api-machine-type: master
      spec:
        lifecycleHooks: {}
        metadata: {}
        providerSpec:
          value:
            acceleratedNetworking: true
            apiVersion: machine.openshift.io/v1beta1
            credentialsSecret:
              name: azure-cloud-credentials
              namespace: openshift-machine-api
            diagnostics: {}
            image:
              offer: ""
              publisher: ""
              resourceID: /resourceGroups/anarayan-fhzz6-rg/providers/Microsoft.Compute/galleries/gallery_anarayan_fhzz6/images/anarayan-fhzz6-gen2/versions/412.86.20220930
              sku: ""
              version: ""
            kind: AzureMachineProviderSpec
            location: eastus
            managedIdentity: anarayan-fhzz6-identity
            metadata:
              creationTimestamp: null
            networkResourceGroup: anarayan-fhzz6-rg
            osDisk:
              diskSettings: {}
              diskSizeGB: 1024
              managedDisk:
                storageAccountType: Premium_LRS
              osType: Linux
            publicIP: false
            publicLoadBalancer: anarayan-fhzz6
            resourceGroup: anarayan-fhzz6-rg
            subnet: anarayan-fhzz6-master-subnet
            userDataSecret:
              name: master-user-data
            vmSize: Standard_D8s_v3
            vnet: anarayan-fhzz6-vnet
status: {}

@JoelSpeed
Copy link
Contributor

New CRD LGTM

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 29, 2022
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2022
@rna-afk
Copy link
Contributor Author

rna-afk commented Dec 6, 2022

/retest

@JoelSpeed
Copy link
Contributor

The Azure E2E on this has passed and looking at the test link, the CPMS looks happy! Thanks

@patrickdillon
Copy link
Contributor

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 8, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 8, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Dec 8, 2022
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 40cf6fe and 2 for PR HEAD 6e096e2 in total

@rna-afk
Copy link
Contributor Author

rna-afk commented Dec 9, 2022

/retest

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 6de3bb4 and 1 for PR HEAD 6e096e2 in total

@patrickdillon
Copy link
Contributor

/skip

@patrickdillon
Copy link
Contributor

/override ci/prow/e2e-gcp-ovn

we're having a ci "infra" issue with gcp right now and this pr is not on gcp, so skip it

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2022

@patrickdillon: Overrode contexts on behalf of patrickdillon: ci/prow/e2e-gcp-ovn

Details

In response to this:

/override ci/prow/e2e-gcp-ovn

we're having a ci "infra" issue with gcp right now and this pr is not on gcp, so skip it

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.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 3c693eb and 0 for PR HEAD 6e096e2 in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 6e096e2 was retested 3 times: holding

@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 Dec 10, 2022
@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 9, 2023

/hold cancel

@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 Jan 9, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD a3e3714 and 2 for PR HEAD 84441fa in total

@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 9, 2023

/skip

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 9, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any differences between the machineSet and the control plane machine specs? I know for example the boot diagnostics are configured via terraform and therefore should be for control plane machines too, but I'm not sure that ever happened

Edit: Looking at the cluster from the attached card, the internalLoadBalancer: jimacpms-s2rbw-internal field is missing, we need to make sure the spec we are using matches the control-plane machines else this won't work

@rna-afk rna-afk force-pushed the azure_cpms branch 2 times, most recently from 2cd344b to 876ce20 Compare January 10, 2023 17:44
@JoelSpeed
Copy link
Contributor

/test e2e-azure-ovn

@JoelSpeed
Copy link
Contributor

e2e-azure-ovn has passed so I think this is fixed now

@JoelSpeed
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8c83507 and 2 for PR HEAD 08c8aec0e03a3afa8dd06f45217e93228eef67e1 in total

@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 12, 2023

/hold

I need to change the error returned.

@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 Jan 12, 2023
Creating an extra CRD asset for the ControlPlaneMachineSet which
is required for the machine api operator for more control over
the control-plane nodes that come up on Azure.
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2023
@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 12, 2023

/hold cancel

Changed the error a bit to let the error flow to the earlier functions.

@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 Jan 12, 2023
@JoelSpeed
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 13, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 960ebcf and 2 for PR HEAD 95c765a in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 13, 2023

@rna-afk: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-agent-compact 980b3c8290d12b85fb67badcda61a18dee8b74bc link true /test e2e-agent-compact
ci/prow/e2e-agent-sno 980b3c8290d12b85fb67badcda61a18dee8b74bc link false /test e2e-agent-sno
ci/prow/e2e-openstack 019e770cfc2de99cb8d5fc1c6f94f00f1c4b637d link false /test e2e-openstack
ci/prow/e2e-libvirt 019e770cfc2de99cb8d5fc1c6f94f00f1c4b637d link false /test e2e-libvirt
ci/prow/e2e-ibmcloud-ovn 019e770cfc2de99cb8d5fc1c6f94f00f1c4b637d link false /test e2e-ibmcloud-ovn
ci/prow/e2e-openstack-ovn 019e770cfc2de99cb8d5fc1c6f94f00f1c4b637d link true /test e2e-openstack-ovn
ci/prow/e2e-vsphere-ovn 019e770cfc2de99cb8d5fc1c6f94f00f1c4b637d link true /test e2e-vsphere-ovn
ci/prow/e2e-aws-ovn-upgrade 95c765a link false /test e2e-aws-ovn-upgrade
ci/prow/e2e-aws-ovn-disruptive 95c765a link false /test e2e-aws-ovn-disruptive
ci/prow/e2e-aws-ovn-workers-rhel8 95c765a link false /test e2e-aws-ovn-workers-rhel8
ci/prow/okd-e2e-aws-ovn-upgrade 95c765a link false /test okd-e2e-aws-ovn-upgrade
ci/prow/okd-scos-e2e-aws-upgrade 95c765a link false /test okd-scos-e2e-aws-upgrade
ci/prow/e2e-azurestack 95c765a link false /test e2e-azurestack
ci/prow/okd-scos-e2e-aws-ovn 95c765a link false /test okd-scos-e2e-aws-ovn
ci/prow/okd-e2e-aws-ovn 95c765a link false /test okd-e2e-aws-ovn

Full PR test history. Your PR dashboard.

Details

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 c5bb817 into openshift:master Jan 14, 2023
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