SUSE Support

Here When You Need Us

Verifying SUSE OpenStack Cloud deployment

This document (7018756) is provided subject to the disclaimer at the end of this document.

Environment

SUSE OpenStack Cloud 6

Situation

After deploying all barclamps administrator needs a way how to verify that deployment is working and that it can start instances.

Resolution

There are multiple ways how to confirm that the deployment is working. One of the simplest and most widely used methods is to start an instance.

Before starting an instance an image must be uploaded. First user credentials must be sourced:

root@d52-54-00-40-d3-42:~ # . .openrc


Then basic image can be downloaded from the internet and uploaded using 'glance' client:

root@d52-54-00-40-d3-42:~ # wget http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img

root@d52-54-00-40-d3-42:~ # glance image-create --name cirros --visibility=public --container-format=bare --disk-format=qcow2 < cirros-0.3.5-x86_64-disk.img
+------------------+----------------------------------------------------------------------------------+
| Property         | Value                                                                            |
+------------------+----------------------------------------------------------------------------------+
| checksum         | f8ab98ff5e73ebab884d80c9dc9c7290                                                 |
| container_format | bare                                                                             |
| created_at       | 2017-03-30T09:17:57Z                                                             |
| disk_format      | qcow2                                                                            |
| id               | 49e4b4cd-c686-4cb7-ab8a-54027fef4310                                             |
| locations        | [{"url": "file:///var/lib/glance/images/49e4b4cd-c686-4cb7-ab8a-54027fef4310",   |
|                  | "metadata": {}}]                                                                 |
| min_disk         | 0                                                                                |
| min_ram          | 0                                                                                |
| name             | cirros                                                                           |
| owner            | ca5b42ae353e4035967bd0a866029b31                                                 |
| protected        | False                                                                            |
| size             | 13267968                                                                         |
| status           | active                                                                           |
| tags             | []                                                                               |
| updated_at       | 2017-03-30T09:17:58Z                                                             |
| virtual_size     | None                                                                             |
| visibility       | public                                                                           |
+------------------+----------------------------------------------------------------------------------+
 
Also popular 'openstack' client can be used:

root@d52-54-00-40-d3-42:~ # openstack image create "cirros-0.3.5" --disk-format qcow2 --container-format bare --public --file cirros-0.3.5-x86_64-disk.img
+------------------+----------------------------------------------------------------------------------------------------------------+
| Field            | Value                                                                                                          |
+------------------+----------------------------------------------------------------------------------------------------------------+
| checksum         | f8ab98ff5e73ebab884d80c9dc9c7290                                                                               |
| container_format | bare                                                                                                           |
| created_at       | 2017-03-30T09:21:00Z                                                                                           |
| disk_format      | qcow2                                                                                                          |
| file             | /v2/images/11e0f8b5-35ce-4edc-ab6b-4b62c5c03762/file                                                           |
| id               | 11e0f8b5-35ce-4edc-ab6b-4b62c5c03762                                                                           |
| min_disk         | 0                                                                                                              |
| min_ram          | 0                                                                                                              |
| name             | cirros-0.3.5                                                                                                   |
| owner            | ca5b42ae353e4035967bd0a866029b31                                                                               |
| properties       | locations='[{u'url': u'file:///var/lib/glance/images/11e0f8b5-35ce-4edc-ab6b-4b62c5c03762', u'metadata': {}}]' |
| protected        | False                                                                                                          |
| schema           | /v2/schemas/image                                                                                              |
| size             | 13267968                                                                                                       |
| status           | active                                                                                                         |
| tags             |                                                                                                                |
| updated_at       | 2017-03-30T09:21:00Z                                                                                           |
| virtual_size     | None                                                                                                           |
| visibility       | public                                                                                                         |
+------------------+----------------------------------------------------------------------------------------------------------------+


Once the image has been uploaded, the instance can be started:

root@d52-54-00-40-d3-42:~ # openstack server create --image cirros-0.3.5 --flavor m1.tiny test_instance
+--------------------------------------+-----------------------------------------------------+
| Field                                | Value                                               |
+--------------------------------------+-----------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                              |
| OS-EXT-AZ:availability_zone          |                                                     |
| OS-EXT-SRV-ATTR:host                 | None                                                |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                                |
| OS-EXT-SRV-ATTR:instance_name        |                                                     |
| OS-EXT-STS:power_state               | NOSTATE                                             |
| OS-EXT-STS:task_state                | scheduling                                          |
| OS-EXT-STS:vm_state                  | building                                            |
| OS-SRV-USG:launched_at               | None                                                |
| OS-SRV-USG:terminated_at             | None                                                |
| accessIPv4                           |                                                     |
| accessIPv6                           |                                                     |
| addresses                            |                                                     |
| adminPass                            | XGAYFuDPWC9E                                        |
| config_drive                         |                                                     |
| created                              | 2017-03-30T12:33:36Z                                |
| flavor                               | m1.tiny (1)                                         |
| hostId                               |                                                     |
| id                                   | 90136aaf-abd3-47f4-ad94-45a0633acd06                |
| image                                | cirros-0.3.5 (11e0f8b5-35ce-4edc-ab6b-4b62c5c03762) |
| key_name                             | None                                                |
| name                                 | test_instance                                       |
| os-extended-volumes:volumes_attached | []                                                  |
| progress                             | 0                                                   |
| project_id                           | ca5b42ae353e4035967bd0a866029b31                    |
| properties                           |                                                     |
| security_groups                      | [{u'name': u'default'}]                             |
| status                               | BUILD                                               |
| updated                              | 2017-03-30T12:33:36Z                                |
| user_id                              | 6ad34effc8684db199e4d73098b600f3                    |
+--------------------------------------+-----------------------------------------------------+

root@d52-54-00-40-d3-42:~ # openstack server list
+--------------------------------------+---------------+--------+---------------------+--------------+
| ID                                   | Name          | Status | Networks            | Image Name   |
+--------------------------------------+---------------+--------+---------------------+--------------+
| 90136aaf-abd3-47f4-ad94-45a0633acd06 | test_instance | ACTIVE | fixed=172.16.205.13 | cirros-0.3.5 |
+--------------------------------------+---------------+--------+---------------------+--------------+

After instance status became "ACTIVE" we can log in through the Horizon console or using ssh in a namespace and ping outside. Based on your configuration adding security rules may be required.

Additional Information

When testing SUSE OpenStack with integrated VMware, cirros image will not work since it is built for kvm based compute nodes. There is a special vmdk image provided by VMware suitable for testing installation:


root@d52-54-00-40-d3-42:~ # wget "http://partnerweb.vmware.com/programs/vmdkimage/trend-tinyvm1-flat-;ide;.vmdk"


Note the vmware_adaptertype is set to "ide"

root@d52-54-00-40-d3-42:~ # glance image-create --name trend-thin --is-public=True --container-format=bare --disk-format=vmdk --property vmware_adaptertype="ide" < "trend-tinyvm1-flat-;ide;.vmdk

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7018756
  • Creation Date: 30-Mar-2017
  • Modified Date:03-Mar-2020
    • SUSE Open Stack Cloud

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.