Skip to content

Conversation

@theobarberbany
Copy link
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jan 5, 2024
@openshift-ci-robot
Copy link

@theobarberbany: This pull request references Jira Issue OCPBUGS-26210, which is valid.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
  • dependent bug Jira Issue OCPBUGS-25483 is in the state ON_QA, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-25483 targets the "4.16.0" version, which is one of the valid target versions: 4.16.0
  • bug has dependents

Requesting review from QA contact:
/cc @sunzhaohua2

The bug has been updated to refer to the pull request using the external bug tracker.

Details

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 openshift-eng/jira-lifecycle-plugin repository.

This adds a CloudConfigTransformer for Azure that will set the VMType to
'standard' if unset.

See openshift#291, OCPBUGS-25483 and OCPBUGS-20213 for more information.
This change adds the functionality from the cluster-config-operator
azure CloudConfigTransformer.

The functionality we bring over is:

1. Ensure that the Cloud is set in the cloud.conf
   i. If it is set, verify that it is valid and does not conflict with the
      infrastructure config. If it conflicts, we want to error
  ii. If it is not set, default to public cloud (configv1.AzurePublicCloud)

 2. Verify the cloud name set in the infra config is valid, if it is not
 bail with an informative error

See openshift/cluster-config-operator#133 for
the PR that initially added this functionality.
Adds tests for the vmType transformations.
This change stops the tests from segfaulting, as the new config
transformer for Azure expects a PlatformStatus to  be set.
This changes the tests to work with valid JSON as it is now a
requirement of the azure transformer.
`map[T]struct{}` is more efficient than `map[T]bool`
This ensures that the list validAzureCloudNameValues is in a stable
order, making testing a lot more straight forward
This change uses the sort package, rather than the slices one that does
not exist in go 1.20.
@JoelSpeed
Copy link
Contributor

/approve
/lgtm
/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Jan 5, 2024
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 5, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed

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 Jan 5, 2024
@sdodson sdodson added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jan 5, 2024
@sdodson
Copy link
Member

sdodson commented Jan 5, 2024

Setting cherry-pick-release in hopes of getting us into 4.14 no later than next Wednesday.

@openshift-merge-bot openshift-merge-bot bot merged commit a280063 into openshift:release-4.15 Jan 5, 2024
@openshift-ci-robot
Copy link

@theobarberbany: Jira Issue OCPBUGS-26210: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

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

Details

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2024

@theobarberbany: 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 02326aa link false /test e2e-azure-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-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-cluster-cloud-controller-manager-operator-container-v4.15.0-202401051651.p0.ga280063.assembly.stream for distgit ose-cluster-cloud-controller-manager-operator.
All builds following this will include this PR.

@sdodson
Copy link
Member

sdodson commented Jan 9, 2024

/cherry-pick release-4.14

@openshift-cherrypick-robot

@sdodson: #319 failed to apply on top of branch "release-4.14":

Applying: Adds CloudConfigTransformer for Azure
Using index info to reconstruct a base tree...
M	pkg/cloud/cloud.go
M	pkg/controllers/cloud_config_sync_controller_test.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/controllers/cloud_config_sync_controller_test.go
Auto-merging pkg/cloud/cloud.go
CONFLICT (content): Merge conflict in pkg/cloud/cloud.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Adds CloudConfigTransformer for Azure
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Details

In response to this:

/cherry-pick release-4.14

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.

@theobarberbany
Copy link
Contributor Author

/jira cherrypick OCPBUGS-26210

@openshift-ci-robot
Copy link

@theobarberbany: Jira Issue OCPBUGS-26210 has been cloned as Jira Issue OCPBUGS-26548. Will retitle bug to link to clone.
/retitle OCPBUGS-26548: [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure

Details

In response to this:

/jira cherrypick OCPBUGS-26210

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot changed the title [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure OCPBUGS-26548: [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure Jan 9, 2024
@openshift-ci-robot
Copy link

@theobarberbany: Jira Issue OCPBUGS-26548: All pull requests linked via external trackers have merged:

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

Details

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 openshift-eng/jira-lifecycle-plugin repository.

@theobarberbany
Copy link
Contributor Author

/retitle [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure

@openshift-ci openshift-ci bot changed the title OCPBUGS-26548: [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure Jan 9, 2024
@openshift-ci-robot
Copy link

@theobarberbany: Jira Issue OCPBUGS-26210 is in an unrecognized state (Verified) and will not be moved to the MODIFIED state.

Details

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 openshift-eng/jira-lifecycle-plugin 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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants