Skip to content

[devscripts] Restore pull-secret when PreMetal was used#3821

Merged
danpawlik merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:restore-pull-secret
Apr 1, 2026
Merged

[devscripts] Restore pull-secret when PreMetal was used#3821
danpawlik merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:restore-pull-secret

Conversation

@danpawlik
Copy link
Copy Markdown
Contributor

On executing reproducer playbook which is triggering devscripts role, if the var: mirror_images is not true, the pull secret restore is skipped. In some cases, there is overwrite devscripts config vars like:

cifmw_devscripts_config_overrides:
  mirror_images: true

When the PreMetal (earlier ZIronic) is used, pull-secret restore should be done each time to avoid potential issues, like:

- 'task path: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/kustomize_deploy/tasks/install_operators.yml:171'
- 'fatal: [localhost]: FAILED! => '
- '    changed: false'
- '    msg: |'
- '      Subscription resolution failed for openstack-operator!'
- ''
- '      Reason: ErrorPreventedResolution'
- '      Message: error using catalogsource openshift-marketplace/community-operators:
  failed to list bundles: rpc error: code = Unavailable desc = connection error: desc
  = "transport: Error while dialing: dial tcp 172.30.172.219:50051: connect: connection
  refused"'

On executing reproducer playbook which is triggering devscripts role,
if the var: mirror_images is not true, the pull secret restore is
skipped. In some cases, there is overwrite devscripts config vars
like:

    cifmw_devscripts_config_overrides:
      mirror_images: true

When the PreMetal (earlier ZIronic) is used, pull-secret restore
should be done each time to avoid potential issues, like:

    - 'task path: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/kustomize_deploy/tasks/install_operators.yml:171'
    - 'fatal: [localhost]: FAILED! => '
    - '    changed: false'
    - '    msg: |'
    - '      Subscription resolution failed for openstack-operator!'
    - ''
    - '      Reason: ErrorPreventedResolution'
    - '      Message: error using catalogsource openshift-marketplace/community-operators:
      failed to list bundles: rpc error: code = Unavailable desc = connection error: desc
      = "transport: Error while dialing: dial tcp 172.30.172.219:50051: connect: connection
      refused"'

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@danpawlik danpawlik requested review from a team, arxcruz, hjensas and jirimacku April 1, 2026 07:46
Copy link
Copy Markdown
Contributor

@evallesp evallesp left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Copy Markdown
Contributor

@rebtoor rebtoor left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 1, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rebtoor

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 label Apr 1, 2026
@danpawlik danpawlik enabled auto-merge (rebase) April 1, 2026 08:01
@danpawlik danpawlik merged commit dc72a2c into openstack-k8s-operators:main Apr 1, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants