You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

While upgrading the openstack platform we upgrade one service at a time. This article gives an overview of how to test core-functionality for each service.

Keystone

To verify the operation of keystone the following openstack-commands can be used:

  • List all openstack projects

    • openstack project list
  • List openstack-groups groups from LDAP. 
    • openstack group list --domain NTNU
  • List API-URL's for the other services
    • openstack catalog list

Glance

Testing glance can be done quick and easy, by seeing that it can list images:

  • openstack image list

It can also be tested a bit more thouroughly by uploading an image:

Cinder

Testing cinder is quick and easy, by listing all volumes:

  • openstack volume list

It can also be tested a bit more thoroughly, by creating a new volume, and attach it to an instance

  • openstack volume create --type SSD-300 --size 1 testvolum
  • openstack server add volume <server> testvolum

Neutron

API-nodes

  • openstack network list
  • openstack router list
  • admintools/testing/neutron.bash create
  • admintools/testing/neutron.bash delete

BGP-agents

  • watch ./sjekkBGP.sh

Network-nodes

-

Placement

The placement API is just a simple API, and it only needs simple tests like:

  • openstack resource provider list
  • openstack trait list

Nova

Nova API

Test by listing servers

  • openstack server list --all-projects

Nova-services

  • Verify that all services are up
    • openstack compute service list
  • Test by creating a new VM. Verify that this completes successfully
  • Check that the VNC console in horizon still works

Heat

Simple verification is done by checking that the API responds:

  • openstack stack list

The more thourough approach is to have heat create a heat-stack. This can for instance be done with the following command (using template.yaml from admintools/heatexample):

  • openstack stack create -t template.yaml --parameter key_name=Galao \
    --parameter image=c15481d3-e1ac-4331-9379-c63cb14d12b1 --parameter flavor=gx2.2c4r \
    --parameter public_net=ntnu-internal --parameter sec_group=SSH-NTNU-IPv4 TEST

Barbican

List all secrets in your current project. This will most probably return an empty reponse..

  • openstack secret list

Store a test secret

  • openstack secret store --name testhemmelighet --secret-type passphrase --payload-content-type "text/plain" --payload "hemmelig tekst"

Magnum

List all clusters and cluster templates

  • openstack coe cluster list
  • openstack coe cluster template list

Create a cluster, and verify that it is created successfully

  • openstack coe cluster create ....

Octavia

-

Horizon

  • No labels