UnboundLocalError: local variable 'stack' referenced before assignment

Solution Unverified - Updated -

Issue

To separate the provisioning and configuration processes, while performing 'overcloud deploy' using --limit and --config-download-only flag, 'overcloud deploy' command is successful with following error.


2024-05-02 21:05:46.302 368796 INFO tripleoclient.utils.utils [-] Temporary directory [ /tmp/tripleo0tytw_nz ] cleaned up 2024-05-02 21:05:46.303 368796 INFO tripleoclient.utils.utils [-] Ansible execution success. playbook: /home/stack/overcloud-deploy/overcloud/config-download/overcloud/deploy_steps_playbook.yaml Overcloud configuration completed for stack: overcloud 2024-05-02 21:05:46.303 368796 INFO tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] Overcloud configuration completed for stack: overcloud 2024-05-02 21:05:46.346 368796 WARNING tripleoclient.utils.safe_write [-] The output file /home/stack/overcloud-deploy/overcloud/overcloud-deployment_status.yaml will be overriden 2024-05-02 21:05:46.346 368796 ERROR tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] Exception during postconfig: UnboundLocalError: local variable 'stack' referenced before assignment 2024-05-02 21:05:46.347 368796 ERROR tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] local variable 'stack' referenced before assignment: UnboundLocalError: local variable 'stack' referenced before assignment Overcloud Endpoint: None Overcloud Horizon Dashboard URL: None Overcloud rc file: None and None Overcloud Deployed successfully 2024-05-02 21:05:46.543 368796 INFO tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] Stopping ephemeral heat. 2024-05-02 21:05:46.544 368796 ERROR tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] Exception stopping ephemeral Heat 2024-05-02 21:05:46.545 368796 ERROR tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] 'NoneType' object has no attribute 'kill_heat' 2024-05-02 21:05:48.341 368796 INFO osc_lib.shell [-] END return value: None

Environment

RHOSP 17.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content