Skip to content

Commit

Permalink
Use testbed-node-0 (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Dec 15, 2023
1 parent 1b654a6 commit 6eacad9
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions docs/guides/operations-guide/openstack/nova.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,55 @@ sidebar_label: Nova
## Disable & enable a compute service

```
openstack --os-cloud admin compute service set --disable --description MAINTENANCE com2021 nova-compute
openstack --os-cloud admin compute service set --disable --description MAINTENANCE testbed-node-0 nova-compute
```
```
openstack --os-cloud admin compute service list --long
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason | Forced Down |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | com2021 | nova | disabled | up | 2023-12-14T14:20:24.000000 | MAINTENANCE | False |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason | Forced Down |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | testbed-node-0 | nova | disabled | up | 2023-12-14T14:20:24.000000 | MAINTENANCE | False |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
```

```
openstack --os-cloud admin compute service set --enable com2021 nova-compute
openstack --os-cloud admin compute service set --enable testbed-node-0 nova-compute
```

```
openstack --os-cloud admin compute service list
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | com2021 | nova | enabled | up | 2023-12-14T14:22:54.000000 |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | testbed-node-0 | nova | enabled | up | 2023-12-14T14:22:54.000000 |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+
```


## Force down & up a compute service

```
openstack --os-cloud admin --os-compute-api-version 2.12 compute service set --down com2021 nova-compute
openstack --os-cloud admin --os-compute-api-version 2.12 compute service set --down testbed-node-0 nova-compute
```

```
openstack --os-cloud admin compute service list --long
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason | Forced Down |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | com2021 | nova | disabled | down | 2023-12-14T14:21:47.000000 | None | True |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason | Forced Down |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | testbed-node-0 | nova | disabled | down | 2023-12-14T14:21:47.000000 | None | True |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
```

```
openstack --os-cloud admin --os-compute-api-version 2.12 compute service set --up com2021 nova-compute
openstack --os-cloud admin --os-compute-api-version 2.12 compute service set --up testbed-node-0 nova-compute
```

```
openstack --os-cloud admin compute service list --long
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason | Forced Down |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | com2021 | nova | disabled | up | 2023-12-14T14:20:24.000000 | None | False |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason | Forced Down |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | testbed-node-0 | nova | disabled | up | 2023-12-14T14:20:24.000000 | None | False |
+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
```

0 comments on commit 6eacad9

Please sign in to comment.