Skip to content

Remove assisted-service pod before recreation to pick up config changes#787

Draft
mcornea wants to merge 1 commit intoredhat-performance:mainfrom
mcornea:fix/issue-765-assisted-service-config-reload
Draft

Remove assisted-service pod before recreation to pick up config changes#787
mcornea wants to merge 1 commit intoredhat-performance:mainfrom
mcornea:fix/issue-765-assisted-service-config-reload

Conversation

@mcornea
Copy link
Collaborator

@mcornea mcornea commented Mar 20, 2026

Summary

When re-running setup-bastion.yml with different network configuration (e.g., switching from IPv4 to IPv6), the assisted-service containers kept the old environment. The pod restart + container state: started pattern did not force container recreation with the updated onprem-environment file.

This replaces the create+restart pattern with an explicit remove+create cycle, ensuring containers are always created fresh with the current configuration.

Fixes #765

Test Plan

  • deploy-sno — standard IPv4 deployment (regression test)
  • deploy-sno-reconfig-ipv6 — IPv4 deploy followed by IPv6 redeploy on same bastion (requires openshift/release companion PR)

Changes

  • Remove the state: started + state: restarted two-step pod creation
  • Add state: absent task before pod creation to ensure old containers are fully removed
  • New pod and containers are created fresh with the current onprem-environment config

Cross-Repo

This PR requires a companion PR in openshift/release to add the deploy-sno-reconfig-ipv6 test job with a REDEPLOY_IPV6 env var that exercises the IPv4→IPv6 reconfiguration path.

When re-running setup-bastion.yml with different network configuration
(e.g., switching from IPv4 to IPv6), the assisted-service containers
kept running with the old environment because the pod restart + container
state:started pattern did not force container recreation with the updated
onprem-environment file.

Replace the create+restart pattern with an explicit remove+create cycle.
This ensures containers are always created fresh with the current
configuration, fixing disconnected IPv6 deployments after an IPv4 deploy.

Fixes redhat-performance#765

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-ci openshift-ci bot requested review from jtaleric and rsevilla87 March 20, 2026 13:04
@openshift-ci
Copy link

openshift-ci bot commented Mar 20, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@mcornea
Copy link
Collaborator Author

mcornea commented Mar 20, 2026

/test deploy-sno

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.

assisted-service pod doesn't pick up new configuration when deploying a disconnected IPv6 deployment after an IPv4 deployment

1 participant