Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
List All Application Stack And Tenants in OpenStack Region
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
How to list all the application stack for the corresponding username and its tenants for an OpenStack region?
Environment
- Platform9 Managed OpenStack - All Versions
- OpenStack Unified CLI
Procedure
Follow the below steps to gather the requested information:
- Source the admin RC file for your environment.
xxxxxxxxxx$ source [your_rc_file].rc- Run the below script to capture data for region provided in the source file.
# Give +x permission to the script before executing.# Run this bash script on each tenant.echo -e "Application \t\t\t User \t\t\t Tenant"for name in $(openstack stack list --all | awk '{print$2}' | egrep -v ID) do stack_name=$(openstack stack show $name -c stack_name -f value 2> /dev/null) if [[ $stack_name ]]; then stack_user=$(openstack stack show $name | grep spg_adid | awk '{printf$4}') stack_tenant=$(openstack stack show $name -c outputs | egrep -A1 "pf9_tenant" | egrep "output_value" | awk '{printf$4}') echo -e "${stack_name} \t ${stack_user} \t ${stack_tenant}" fi doneAdditional Information
You can refer the community documentation for more details on openstack CLI options.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message