[ Pobierz całość w formacie PDF ]

| Property | Value |
+-----------------------------+--------------------------------------+
| status | BUILD |
| id | cc302a8f-cd81-484b-89a8-b75eb3911b1b |
... wait for instance to become active ...
4. You can list bare metal nodes and interfaces, as follows:
$ nova baremetal-node-list
When a node is in use, its status includes the UUID of the instance that runs on it:
+----+--------+------+-----------+---------+-------------------
+------+------------+-------------+-------------+---------------+
| ID | Host | CPUs | Memory_MB | Disk_GB | MAC Address
| VLAN | PM Address | PM Username | PM Password | Terminal Port |
+----+--------+------+-----------+---------+-------------------
+------+------------+-------------+-------------+---------------+
| 1 | devstack | 1 | 512 | 10 | aa:bb:cc:dd:ee:ff
| None | 1.2.3.4 | ipmi | | None |
+----+--------+------+-----------+---------+-------------------
+------+------------+-------------+-------------+---------------+
5. Show details for a bare metal node:
$ nova baremetal-node-show 1
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| instance_uuid | cc302a8f-cd81-484b-89a8-b75eb3911b1b |
| pm_address | 1.2.3.4 |
| interfaces | [{u'datapath_id': u'0', u'id': 1, u'port_no': 0,
u'address': u'aa:bb:cc:dd:ee:ff'}] |
| prov_vlan_id | None |
| cpus | 1 |
| memory_mb | 512 |
| prov_mac_address | aa:bb:cc:dd:ee:ff |
| service_host | devstack |
| local_gb | 10 |
| id | 1 |
| pm_user | ipmi |
| terminal_port | None |
+------------------+--------------------------------------+
56
OpenStack command-line clients
Note
Set the --availability_zone parameter to specify which zone or node to start the server. You
can separate the zone from the hostname with a comma. As an example:
$ nova boot --availability_zone=zone:host,node
Specifying "host" is optional for the --availability_zone parameter, and "zone:,node" also
works.
2.8.8. Show usage statistics for hosts and instances
You can show basic statistics on resource usage for hosts and instances.
Note
For more sophisticated monitoring, see the Ceilometer project, which is under development. You
can also use tools, such as Ganglia or Graphite, to gather more detailed data.
Procedure 2.1. To show host usage statistics
1. List the hosts and the nova-related services that run on them:
$ nova host-list
+-----------+-------------+----------+
| host_name | service | zone |
+-----------+-------------+----------+
| devstack | conductor | internal |
| devstack | compute | nova |
| devstack | cert | internal |
| devstack | network | internal |
| devstack | scheduler | internal |
| devstack | consoleauth | internal |
+-----------+-------------+----------+
2. Get a summary of resource usage of all of the instances running on the host.
57
Red Hat Enterprise Linux OpenStack Platform 4 End User Guide
$ nova host-describe devstack
+----------+----------------------------------+-----+-----------+---------
+
| HOST | PROJECT | cpu | memory_mb | disk_gb
|
+----------+----------------------------------+-----+-----------+---------
+
| devstack | (total) | 2 | 4003 | 157
|
| devstack | (used_now) | 3 | 5120 | 40
|
| devstack | (used_max) | 3 | 4608 | 40
|
| devstack | b70d90d65e464582b6b2161cf3603ced | 1 | 512 | 0
|
| devstack | 66265572db174a7aa66eba661f58eb9e | 2 | 4096 | 40
|
+----------+----------------------------------+-----+-----------+---------
+
The cpu column shows the sum of the virtual CPUs for instances running on the host.
The memory_mb column shows the sum of the memory (in MB) allocated to the instances that run
on the hosts.
The disk_gb column shows the sum of the root and ephemeral disk sizes (in GB) of the instances
that run on the hosts.
The used_now row shows the sum of the resources allocated to the instances that run on the host
plus the resources allocated to the virtual machine of the host itself.
The used_max row shows the sum of the resources allocated to the instances that run on the host.
Note
These values are computed by using only information about the flavors of the instances that
run on the hosts. This command does not query the CPU usage, memory usage, or hard
disk usage of the physical host.
Procedure 2.2. To show instance usage statistics
1. Get CPU, memory, I/O, and network statistics for an instance.
First, list instances:
$ nova list
+--------------------------------------+----------------------+--------+--
----------+-------------+------------------+
| ID | Name | Status |
Task State | Power State | Networks |
+--------------------------------------+----------------------+--------+--
----------+-------------+------------------+
| 84c6e57d-a6b1-44b6-81eb-fcb36afd31b5 | myCirrosServer | ACTIVE |
None | Running | private=10.0.0.3 |
| 8a99547e-7385-4ad1-ae50-4ecfaaad5f42 | myInstanceFromVolume | ACTIVE |
None | Running | private=10.0.0.4 |
+--------------------------------------+----------------------+--------+--
----------+-------------+------------------+
58
Introduction
Then, get diagnostic statistics: [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • cukierek.xlx.pl