Nova: Contrail and Openstack Status

1- Contrail status

2- Openstack status


1- Contrail status

root@vse2100-11:~# contrail-status
== Contrail Web UI ==
supervisor-webui: active
contrail-webui active
contrail-webui-middleware active


2- Openstack status ( first source + openstack-status )


source command   https://www.cyberciti.biz/faq/linux-bsd-unix-source-command/

"source your-script"

  • The source command can be used to load any functions file into the current shell script or a command prompt.
  • It read and execute commands from given FILENAME and return.


root@vse2100-11:~# more /etc/contrail/openstackrc
export OS_USERNAME=admin
export OS_PASSWORD=contrail123
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://172.30.54.71:5000/v2.0/
export OS_NO_CACHE=1



root@vse2100-11:~# source /etc/contrail/openstackrc
root@vse2100-11:~# openstack-status
== Nova services ==
openstack-nova-api: active
openstack-nova-compute: inactive (disabled on boot)
openstack-nova-network: inactive (disabled on boot)
openstack-nova-scheduler: active
openstack-nova-volume: inactive (disabled on boot)
openstack-nova-conductor: active
== Glance services ==
openstack-glance-api: active
openstack-glance-registry: active
== Keystone service ==
openstack-keystone: active
== Cinder services ==
openstack-cinder-api: active
openstack-cinder-scheduler: active
openstack-cinder-volume: inactive (disabled on boot)
== Support services ==
mysql: inactive (disabled on boot)
rabbitmq-server: active
memcached: inactive (disabled on boot)
== Keystone users ==
+----------------------------------+----------+---------+---------------------+
| id | name | enabled | email |
+----------------------------------+----------+---------+---------------------+
| d3bebdffe84040c294058a01db33fa74 | admin | True | test@orgname.com |
| 2c6abda16c6a470a90d6c54c58a5bcf7 | cinder | True | cinder@localhost |
| aea4701dfa704013b70653457ae7d299 | demo | True | test@orgname.com |
| 907dd2c1d0a049609b4f39bb72ada1e7 | glance | True | glance@localhost |
| 95c8bf4f28da45d39dd33ee4f97b7e6b | heat | True | heat@localhost |
| 3568a601bc2440b196cfb4dd91633c6a | heat-cfn | True | heat-cfn@localhost |
| c1482953e7064431993dbd10bba4adab | jlk | True | jkriker@juniper.net |
| 4de1376eb627458e95fd374c28e9a9a0 | neutron | True | neutron@localhost |
| a9d382c9b2f24ff69f78d05ebb7e4ebf | nova | True | nova@localhost |
| 6a560da1814d4d02a71dab0ab9ea3063 | test | True | test@orgname.com |
+----------------------------------+----------+---------+---------------------+
== Glance images ==
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
[--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]
[--os-image-api-version OS_IMAGE_API_VERSION]
[--profile HMAC_KEY] [-k] [--os-cert OS_CERT]
[--cert-file OS_CERT] [--os-key OS_KEY] [--key-file OS_KEY]
[--os-cacert <ca-certificate-file>] [--ca-file OS_CACERT]
[--os-username OS_USERNAME] [--os-user-id OS_USER_ID]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
[--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
[--os-region-name OS_REGION_NAME]
[--os-auth-token OS_AUTH_TOKEN]
[--os-service-type OS_SERVICE_TYPE]
[--os-endpoint-type OS_ENDPOINT_TYPE]
<subcommand> ...
glance: error: argument <subcommand>: invalid choice: u'index' (choose from 'image-create', 'image-delete', 'image-download', 'image-list', 'image-show', 'image-update', 'member-create', 'member-delete', 'member-list', 'help')
== Nova instance flavors ==
2017-05-16 02:13:23.495 20162 DEBUG oslo.db.sqlalchemy.session [req-c3a8aea1-ecaf-48a2-a629-5169ca24a8ce ] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _init_events /usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py:461
m1.medium: Memory: 4096MB, VCPUS: 2, Root: 40GB, Ephemeral: 0Gb, FlavorID: 3, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.tiny: Memory: 512MB, VCPUS: 1, Root: 1GB, Ephemeral: 0Gb, FlavorID: 1, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.large: Memory: 8192MB, VCPUS: 4, Root: 80GB, Ephemeral: 0Gb, FlavorID: 4, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.xlarge: Memory: 16384MB, VCPUS: 8, Root: 160GB, Ephemeral: 0Gb, FlavorID: 5, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.small: Memory: 2048MB, VCPUS: 1, Root: 20GB, Ephemeral: 0Gb, FlavorID: 2, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
== Nova instances ==
+--------------------------------------+-----------------------------------------------+--------+------------+-------------+----------------------------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-----------------------------------------------+--------+------------+-------------+----------------------------------------------------------------+
| fb2cca59-d182-4681-aba8-04014a4e02b3 | default-domain__admin__FW-UNINAL__1 | ACTIVE | - | Running | Management_FW=192.168.3.3; Public=10.1.1.3; Private=10.78.78.3 |
| 7efc1a1c-be6b-4e9b-b5e2-25bc01489a39 | default-domain__admin__vsrx-scale-instance__1 | ACTIVE | - | Running | vn-left=192.168.1.3; vn-mgt=192.168.3.1; vn-right=192.168.2.1 |
| be2b58e9-05b5-4888-a54d-87e0d34a6a38 | default-domain__admin__vsrx-scale-instance__2 | ACTIVE | - | Running | vn-left=192.168.1.3; vn-mgt=192.168.3.3; vn-right=192.168.2.3 |
| 7fb13a57-dec8-404e-912f-e528b344e7af | left-vm-7fb13a57-dec8-404e-912f-e528b344e7af | ACTIVE | - | Running | vn-left=192.168.1.5 |
| c4d68bd1-e913-45c2-a9a9-30fef610d616 | left-vm-c4d68bd1-e913-45c2-a9a9-30fef610d616 | ACTIVE | - | Running | vn-left=192.168.1.6 |
| cbbf230b-b2b5-472e-aa55-bcc6df08e3fe | left-vm-cbbf230b-b2b5-472e-aa55-bcc6df08e3fe | ACTIVE | - | Running | vn-left=192.168.1.4 |
| fe6202eb-ddb6-4273-bd48-b281ca47b959 | left-vm-fe6202eb-ddb6-4273-bd48-b281ca47b959 | ACTIVE | - | Running | vn-left=192.168.1.7 |
| f4533ec5-6410-4c76-877f-06324b92bab1 | right-vm | ACTIVE | - | Running | vn-right=192.168.2.4 |
+--------------------------------------+-----------------------------------------------+--------+------------+-------------+----------------------------------------------------------------+
root@vse2100-11:~#