List All Application Stack And Tenants in OpenStack Region
Problem
Environment
Procedure
$ source [your_rc_file].rc# 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
PreviousHow to Boot Into Recovery Mode on an Ubuntu Cloud ImageNextHost Failing to Converge: "AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
Last updated
