Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added

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

...

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 |
+----------------------------------+---------+--------------+-----------+---------------+