OpenStack Подсказки по коммандам
Материал из noname.com.ua
Версия от 17:39, 14 марта 2024; Sirmax (обсуждение | вклад)
Подсказки по командам
Hypervisor
Список гипервизоров
openstack hypervisor list -f yaml
- Host IP: 10.80.6.51 Hypervisor Hostname: os-worker-1.kaas-kubernetes-6cc8b15ec3394936acdca2cd3a0bf0a6 Hypervisor Type: QEMU ID: f276c0ae-4632-47c3-b76f-daa3b66ea7a4 State: up - Host IP: 10.80.6.52 Hypervisor Hostname: srv3.kaas-kubernetes-6cc8b15ec3394936acdca2cd3a0bf0a6 Hypervisor Type: QEMU ID: 17b1ac54-a564-4b29-b1f5-b595727c0753 State: up - Host IP: 10.80.6.53 Hypervisor Hostname: donec.kaas-kubernetes-6cc8b15ec3394936acdca2cd3a0bf0a6 Hypervisor Type: QEMU ID: 5467a71e-baad-4d0d-88ff-163a39994b30 State: up - Host IP: 10.80.6.54 Hypervisor Hostname: r710.kaas-kubernetes-6cc8b15ec3394936acdca2cd3a0bf0a6 Hypervisor Type: QEMU ID: 429689e2-72fc-46e4-9cda-d49a8565b1e3 State: up
openstack resource provider list -f yaml --name r710.kaas-kubernetes-6cc8b15ec3394936acdca2cd3a0bf0a6
- generation: 200 name: r710.kaas-kubernetes-6cc8b15ec3394936acdca2cd3a0bf0a6 parent_provider_uuid: null root_provider_uuid: 429689e2-72fc-46e4-9cda-d49a8565b1e3 uuid: 429689e2-72fc-46e4-9cda-d49a8565b1e3
openstack resource provider inventory list 429689e2-72fc-46e4-9cda-d49a8565b1e3 -f yaml
- allocation_ratio: 4.0 max_unit: 24 min_unit: 1 reserved: 0 resource_class: VCPU step_size: 1 total: 24 used: 48 - allocation_ratio: 1.0 max_unit: 386939 min_unit: 1 reserved: 512 resource_class: MEMORY_MB step_size: 1 total: 386939 used: 49152 - allocation_ratio: 1.6 max_unit: 1049 min_unit: 1 reserved: 0 resource_class: DISK_GB step_size: 1 total: 1049 used: 240
openstack resource provider inventory set 429689e2-72fc-46e4-9cda-d49a8565b1e3 --amend --resource VCPU:allocation_ratio=8
+----------------+------------------+----------+----------+----------+-----------+--------+ | resource_class | allocation_ratio | min_unit | max_unit | reserved | step_size | total | +----------------+------------------+----------+----------+----------+-----------+--------+ | VCPU | 8.0 | 1 | 24 | 0 | 1 | 24 | | MEMORY_MB | 1.0 | 1 | 386939 | 512 | 1 | 386939 | | DISK_GB | 1.6 | 1 | 1049 | 0 | 1 | 1049 | +----------------+------------------+----------+----------+----------+-----------+--------+