Skip to content

OCPBUGS-43783: openstack: Set annotation even when credentials mode is unset #873

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenfin
Copy link
Contributor

Per $subject.

@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 Jun 10, 2025
Copy link
Contributor

openshift-ci bot commented Jun 10, 2025

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-robot openshift-ci-robot added jira/severity-low Referenced Jira bug's severity is low 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 Jun 10, 2025
@openshift-ci-robot
Copy link
Contributor

@stephenfin: This pull request references Jira Issue OCPBUGS-43783, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.0) matches configured target version for branch (4.20.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @jianping-shu

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

In response to this:

Per $subject.

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 requested a review from jianping-shu June 10, 2025 10:13
Copy link
Contributor

openshift-ci bot commented Jun 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: stephenfin
Once this PR has been reviewed and has the lgtm label, please assign jstuever for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@stephenfin stephenfin marked this pull request as ready for review June 10, 2025 13:39
@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 Jun 10, 2025
@openshift-ci openshift-ci bot requested review from dlom and suhanime June 10, 2025 13:39
Copy link
Contributor

openshift-ci bot commented Jun 10, 2025

@stephenfin: 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-sigs/prow repository. I understand the commands that are listed here.

Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 46.97%. Comparing base (92e68ab) to head (ee81522).

Files with missing lines Patch % Lines
...g/operator/secretannotator/openstack/reconciler.go 44.44% 3 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #873      +/-   ##
==========================================
- Coverage   46.97%   46.97%   -0.01%     
==========================================
  Files          97       97              
  Lines       11910    11911       +1     
==========================================
  Hits         5595     5595              
- Misses       5697     5698       +1     
  Partials      618      618              
Files with missing lines Coverage Δ
pkg/operator/utils/utils.go 83.13% <100.00%> (ø)
...g/operator/secretannotator/openstack/reconciler.go 53.23% <44.44%> (-0.39%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jianping-shu
Copy link

jianping-shu commented Jun 11, 2025

Test passed with the following:

  1. OpenStack cluster installed successfully and healthy.
  2. The annotation is added when default cco mode i.e. not configured in install-config.
    jianpingshu@jshu-mac ~ % oc get secret openstack-credentials -n kube-system -o json | jq -r ".metadata.annotations"
    {
    "cloudcredential.openshift.io/mode": "passthrough"
    }
  3. Change cco mode from "" to Passthrough in cloudcredential, remove the existing annotation on root secret and the annotation is added back.
    jianpingshu@jshu-mac ~ % oc get secret openstack-credentials -n kube-system -o json | jq -r ".metadata.annotations"
    {
    "cloudcredential.openshift.io/mode": "passthrough"
    }
    This could be re-tested by configuring cco mode in install-config when OSASINFRA-3915 is ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/severity-low Referenced Jira bug's severity is low 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants