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

OSASINFRA-3133 - OpenStack support #195

Merged
merged 4 commits into from
Jul 3, 2023

Conversation

EmilienM
Copy link
Member

@EmilienM EmilienM commented Apr 14, 2023

OpenStack support in CPMS.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 14, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 14, 2023
@EmilienM EmilienM force-pushed the openstack branch 9 times, most recently from 2add629 to 3c9d625 Compare April 18, 2023 14:55
@EmilienM EmilienM force-pushed the openstack branch 7 times, most recently from 41d0792 to ca2234e Compare April 19, 2023 18:49
@EmilienM EmilienM marked this pull request as ready for review April 19, 2023 19:11
@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 Apr 19, 2023
@openshift-ci openshift-ci bot requested review from elmiko and odvarkadaniel April 19, 2023 19:12
Copy link
Contributor

@odvarkadaniel odvarkadaniel left a comment

Choose a reason for hiding this comment

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

Generally, the code LGTM. I would appreciate that someone else would look at this after KubeCon.

cc/ @JoelSpeed @damdo

@EmilienM EmilienM force-pushed the openstack branch 2 times, most recently from db07333 to de7743f Compare June 29, 2023 19:48
@EmilienM
Copy link
Member Author

@pierreprinetti much better with the new installer patchset:

Spec:
  Replicas:  3
  Selector:
    Match Labels:
      machine.openshift.io/cluster-api-cluster:       refarch-s26qd
      machine.openshift.io/cluster-api-machine-role:  master
      machine.openshift.io/cluster-api-machine-type:  master
  State:                                              Active
  Strategy:
    Type:  RollingUpdate
  Template:
    Machine Type:  machines_v1beta1_machine_openshift_io
    machines_v1beta1_machine_openshift_io:
      Failure Domains:
        Openstack:
          Availability Zone:  az0
          Availability Zone:  az1
          Availability Zone:  az2
        Platform:             OpenStack
      Metadata:
        Labels:
          machine.openshift.io/cluster-api-cluster:       refarch-s26qd
          machine.openshift.io/cluster-api-machine-role:  master
          machine.openshift.io/cluster-api-machine-type:  master
      Spec:
        Lifecycle Hooks:
        Metadata:
        Provider Spec:
          Value:
            API Version:  machine.openshift.io/v1alpha1
            Cloud Name:   openstack
            Clouds Secret:
              Name:       openstack-cloud-credentials
              Namespace:  openshift-machine-api
            Flavor:       m1.xlarge
            Image:        refarch-s26qd-rhcos
            Kind:         OpenstackProviderSpec
            Metadata:
              Creation Timestamp:  <nil>
            Networks:
              Filter:
              Subnets:
                Filter:
                  Name:  refarch-s26qd-nodes
                  Tags:  openshiftClusterID=refarch-s26qd
            Security Groups:
              Filter:
              Name:             refarch-s26qd-master
            Server Group Name:  refarch-s26qd-master
            Server Metadata:
              Name:                  refarch-s26qd-master
              Openshift Cluster ID:  refarch-s26qd
            Tags:
              openshiftClusterID=refarch-s26qd
            Trunk:  true
            User Data Secret:
              Name:  master-user-data

@damdo @JoelSpeed ready for review when you have time.
Let me know if you want me to squash the commits.

Nothing changed much since your last reviews, except the last 2 commits I would say, which are small enough to be quickly reviewed.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 30, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 30, 2023
If `OPENSTACK_CONTROLPLANE_FLAVOR_ALTERNATE` is found in the environment
variables, we'll use that flavor when running the control plane
verticale scale tests. Otherwise, roll back on the tags.
```yaml
- availabilityZone: "<nova availability zone>"
rootVolume:
availabilityZone: "<cinder availability zone>"
Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't we add another field to the AZ?

Copy link
Member Author

Choose a reason for hiding this comment

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

if you're talking about the volume type, it'll be handled separately via #217


#### Configuring a control plane machine set on OpenStack

Two fields are supported for now: `availabilityZone` (instance AZ) and `rootVolume.availabilityZone` (root volume AZ).
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need updating for the third field that we added?

Copy link
Member Author

Choose a reason for hiding this comment

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

volume type will be handled separately via #217

@JoelSpeed
Copy link
Contributor

Apart from the nit about the errors, I think this is good to go, thanks for working with us on this 😄

@JoelSpeed
Copy link
Contributor

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 30, 2023
Copy link
Member

@pierreprinetti pierreprinetti left a comment

Choose a reason for hiding this comment

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

This code seems to be behaving conform to the spec. I believe that there is no reason to further defer testing in vivo.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed, pierreprinetti

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

@pierreprinetti
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 3, 2023
@pierreprinetti
Copy link
Member

/retest-required

Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks for all you efforts!

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 88ec3eb and 2 for PR HEAD 464c8dc in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 3, 2023

@EmilienM: The following test 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-azure-ovn-etcd-scaling 464c8dc link false /test e2e-azure-ovn-etcd-scaling

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.

@pierreprinetti
Copy link
Member

/retest-required

@openshift-merge-robot openshift-merge-robot merged commit 74ceace into openshift:main Jul 3, 2023
@pierreprinetti pierreprinetti deleted the openstack branch July 3, 2023 20:58
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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants