Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 4 Current »

1- log to mysql database ( as root, no password)

2- list the database

3- in nova database, list the nodes

4- nova usage-list

5-  view on OpenStack UI


root@vse2100-11:~# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 184147
Server version: 5.5.37 MySQL Community Server (GPL), wsrep_25.10.r3990
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cinder |
| glance |
| heat |
| keystone |
| mysql |
| neutron |
| nova |
| performance_schema |
| test |
+--------------------+
10 rows in set (0.01 sec)
mysql> use nova;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> SELECT id, created_at, updated_at, hypervisor_hostname FROM compute_nodes;
+----+---------------------+---------------------+-------------------------------+
| id | created_at | updated_at | hypervisor_hostname |
+----+---------------------+---------------------+-------------------------------+
| 1 | 2017-04-28 20:15:11 | 2017-05-15 15:18:07 | vse2100-14.englab.juniper.net |
| 2 | 2017-04-28 20:15:34 | 2017-04-28 20:16:26 | vse2100-15.englab.juniper.net |
+----+---------------------+---------------------+-------------------------------+
2 rows in set (0.00 sec)



root@vse2100-11:~# nova usage-list
Usage from 2017-04-18 to 2017-05-17:
+----------------------------------+---------+--------------+-----------+---------------+
| Tenant ID | Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+----------------------------------+---------+--------------+-----------+---------------+
| f6df5a6e7356403896aca86e11ca3eb1 | 2 | 20800.50 | 40.63 | 40.63 |
| e84a3a0920ef45ba8c194679e1d63521 | 12 | 7542990.88 | 3683.19 | 73661.56 |
+----------------------------------+---------+--------------+-----------+---------------+






  • No labels