You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix timing issues and hardcoded CR name in restore script
**Timing fix:**
- Add 10-second sleep after creating OpenStackControlPlane CR
- Prevents "NotFound" error when oc wait tries to access the resource
before API server fully registers it
**Dynamic CR name handling:**
- Extract actual CR name from backup instead of hardcoding "openstack"
- Supports any CR name (openstack, controlplane, openstack-prod, etc.)
- Update all oc commands to use ${CTLPLANE_NAME} variable:
- oc wait --for=condition=InfrastructureReady
- oc annotate (remove deployment-stage annotation)
- oc get openstackcontrolplane
- oc wait --for=condition=Ready
This fixes restore failures when:
1. API server hasn't registered the CR yet (race condition)
2. Backup contains CR with name other than "openstack"
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
0 commit comments