Skip to content

Commit

Permalink
Add nova ops section (#236)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Dec 14, 2023
1 parent f7e8bdf commit 1b654a6
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/guides/operations-guide/openstack/cinder.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
sidebar_label: Cinder
sidebar_position: 20
---

# Cinder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: Day-2 Operations
sidebar_position: 60
sidebar_position: 10
---

# Day-2 Operations
60 changes: 60 additions & 0 deletions docs/guides/operations-guide/openstack/nova.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
sidebar_label: Nova
---
# 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 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 |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
```

```
openstack --os-cloud admin compute service set --enable com2021 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 |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+
```


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

```
openstack --os-cloud admin --os-compute-api-version 2.12 compute service set --up com2021 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 |
+--------------------------------------+----------------+---------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
```
1 change: 0 additions & 1 deletion docs/guides/operations-guide/openstack/octavia.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
sidebar_label: Octavia
sidebar_position: 20
---

# Octavia
Expand Down

0 comments on commit 1b654a6

Please sign in to comment.