command prompt is not updated correctly when switching between (stack|overcloud)rc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Takashi Kajinami |
Bug Description
Description
===========
This was initially reported in https:/
Since https:/
On the other hand $HOME/overcloudrc still uses OS_CLOUDNAME.
The problem here is that the CLOUDPROMPT_ENABLED environment is not updated once it is set, and PS1 is not updated to point the appropriate environment.
Because of this, switching these two environments beaks the cloudname output in command prompt.
~~~
[stack@undercloud ~]$ source stackrc
(undercloud) [stack@undercloud ~]$ source overcloudrc
[stack@undercloud ~]$
~~~
~~~
[stack@undercloud ~]$ source overcloudrc
(overcloud) [stack@undercloud ~]$ source stackrc
[stack@undercloud ~]$
~~~
Steps to reproduce
==================
* Deploy undercloud/
* source ~/stackrc
* sourcd ~/overcloudrc
Expected result
===============
Command prompt should include (overcloud)
Actual result
=============
Command prompt does not include (overcloud)
Environment
=============
The issue was initially found in downstream product based on stable/wallaby,
but the issue affects current master as well.
Logs & Configs
==============
N/A
Changed in tripleo: | |
importance: | Undecided → High |
assignee: | nobody → Takashi Kajinami (kajinamit) |
tags: | added: wallaby-backport-potential |
summary: |
- cloud name is not present when sourcing overcloudrc after stackrc(or - stackrc after overcloudrc) + command prompt is not updated correctly when switching between + (stack|overcloud)rc |
Changed in tripleo: | |
milestone: | none → zed-1 |
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- heat-templates/ +/853908
Review: https:/