Skip to content

Instantly share code, notes, and snippets.

@jbadiapa
Created February 15, 2021 09:14
Show Gist options
  • Save jbadiapa/bdcf5d981974540f745a4978a73f1205 to your computer and use it in GitHub Desktop.
Save jbadiapa/bdcf5d981974540f745a4978a73f1205 to your computer and use it in GitHub Desktop.
overcloud-pingtest.sh
# Test that everything is ok
# OVERCLOUDPINGTEST
source ~/overcloudrc
mkdir -p tmp
cd tmp
curl -O http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1907.qcow2
openstack image create pingtest_image --public --disk-format qcow2 --container-format bare --file CentOS-7-x86_64-GenericCloud-1907.qcow2
curl -O https://raw.githubusercontent.com/openstack/tripleo-heat-templates/stable/stein/ci/pingtests/tenantvm_floatingip.yaml
sed -i -e 's/size: 1/size: 10/g' tenantvm_floatingip.yaml
openstack stack create -f yaml -t tenantvm_floatingip.yaml --parameter "key_name=kkkk" kkkk-stack
# The server:
# default_user: cirros
# default_password: cubswin:)
# vm1_ip=`openstack stack output show tenant-stack server1_public_ip | grep value | awk '{print $4}'`
# nova show Server1
# nova service-list
# neutron agent-list
# nova console-log Server1
# nova service-list
# neutron agent-list
# openstack stack show tenant-stack
# openstack stack event list -f table tenant-stack
# openstack stack resource list -n5 tenant-stack
# openstack stack failures list tenant-sta
# openstack stack failures list overcloud --long
# openstack stack resource list --nested-depth 5 overcloud
# openstack software deployment show ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment