OpenStack Learning Academy
PRACTICAL LAB EVIDENCE

Q041 Q045 Advanced Operations

Original command output captured during the OpenStack hands-on lab. Text is preserved for review and searchable reading.

← All lab evidenceDownload original TXT
==========================================================
OPENSTACK MODULE F - Q41 TO Q45
Advanced Operations & Troubleshooting
Date: Tue Nov 10 05:48:21 PM IST 2026
==========================================================

### 1. OPENSTACK ENVIRONMENT
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                                                                   |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| expires    | 2026-11-10T13:18:22+0000                                                                                                                                                                |
| id         | gAAAAABq8wuOxVrFewL3TchTUqFTWKx3Do7ELiBbuaEKtllMomuKUnzh9Ae-KXFuPkq1xROi3pSJlyW0VRbJu26gngAtm9b0H1doQSz9xuhooLO5bfzksccEAla4RPH1vCfRy_XtvQ_wwAfHObzvKVdyszqmpye4-b1keCarDcftjR2kTDgCNYM |
| project_id | 8f2e49eef93a4b2bbc33c2d5bbb6c35d                                                                                                                                                        |
| user_id    | 1ed5ef95e8a44ee3bf613ad5270b3503                                                                                                                                                        |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+----------------------------------+-----------+--------------+----------------+---------+-----------+-----------------------------------------------+
| ID                               | Region    | Service Name | Service Type   | Enabled | Interface | URL                                           |
+----------------------------------+-----------+--------------+----------------+---------+-----------+-----------------------------------------------+
| 058a0ea702214641b2d06d6b0dea8b6e | RegionOne | keystone     | identity       | True    | public    | http://192.168.1.11/identity                  |
| 33dca4cf47da40feace2489668de65a9 | RegionOne | nova         | compute        | True    | public    | http://192.168.1.11/compute/v2.1              |
| 659205c297b54c1fb40133de3b3a7f74 | RegionOne | cinder       | block-storage  | True    | public    | http://192.168.1.11/volume/v3                 |
| ccdb3093717b4a5691409bc211b1368a | RegionOne | nova_legacy  | compute_legacy | True    | public    | http://192.168.1.11/compute/v2/$(project_id)s |
| d1aba09851db4cceb7ac262b2477c6c4 | RegionOne | placement    | placement      | True    | public    | http://192.168.1.11/placement                 |
| e013a131a295491cb281ee3e0afa6aba | RegionOne | glance       | image          | True    | public    | http://192.168.1.11/image                     |
| e3a2b7c3ce154214bdb52a6204abcf14 | RegionOne | neutron      | network        | True    | public    | http://192.168.1.11/networking                |
+----------------------------------+-----------+--------------+----------------+---------+-----------+-----------------------------------------------+
+----------------------------------+-------------+----------------+
| ID                               | Name        | Type           |
+----------------------------------+-------------+----------------+
| 1876bbdf6cff460fb64f1f94a86b52a7 | cinder      | block-storage  |
| 1fcb22901a0c45d4a5651e56864465fb | placement   | placement      |
| a93a7fb96f2f45d3be8be577f92e0769 | keystone    | identity       |
| a9d216047542492aa345d8cfeaa0fdeb | nova        | compute        |
| af25133dde184e7da85816da084418e5 | neutron     | network        |
| b7ca3e01538146ecbad6d0664d812013 | nova_legacy | compute_legacy |
| d310f1428ef343e5978872dd13a9e81e | glance      | image          |
+----------------------------------+-------------+----------------+

### 2. Q41 - KEYSTONE USER, PROJECT AND ROLE ASSIGNMENTS
+----------------------------------+-----------------+
| ID                               | Name            |
+----------------------------------+-----------------+
| 0404b0f566864d2492e90769c8a919cb | system_reader   |
| 1ed5ef95e8a44ee3bf613ad5270b3503 | admin           |
| 450a5182375b4627b55cdd4e981d7fe3 | demo_reader     |
| 83a09339b3234dbfbc82fe2f58d11338 | demo            |
| 8b78e1455b4e44ffa65eb77639e2f079 | cinder          |
| 9463b9c69bd64ecea046bc18adb0e654 | alt_demo_reader |
| 9e489c2fe9e4460e8ca2171678039980 | nova            |
| a6d338129bdd453aafbea91014a1bc64 | placement       |
| b2044476bd354413a36db77762ee5a26 | glance          |
| d24bb5c545734f28b3d43c93ec37b8b5 | system_member   |
| e698401419724f08b39133cde125b594 | alt_demo_member |
| ebb03d97ae4042c190c8e59c5e7c271e | neutron         |
| fe9d816e528f45e79bc6e09b78e214bb | alt_demo        |
+----------------------------------+-----------------+
+----------------------------------+--------------------+
| ID                               | Name               |
+----------------------------------+--------------------+
| 3a692129cf4047a39f64ba1b69e5e71d | alt_demo           |
| 3cf3c093ea13424f919f38992875e077 | demo               |
| 8f2e49eef93a4b2bbc33c2d5bbb6c35d | admin              |
| b6a0a45932134330ae7d9002c8d35490 | invisible_to_admin |
| cb7707e9fd6a41ea8fb4d4139dcd4599 | service            |
+----------------------------------+--------------------+
+----------------------------------+---------------+
| ID                               | Name          |
+----------------------------------+---------------+
| 17aab4e2842247f58886c9d7d1c7146a | member        |
| 78c058b31e0b438597ec8fe3ae13509e | admin         |
| a84f7f22e80f4a389fafad306c1d2eb0 | service       |
| ada207195f654dc781f8fd17eaa3116d | anotherrole   |
| bc1c66586d2749d8aa00cb511ff70c0e | ResellerAdmin |
| c6c629ef86f14eaabd00fed527804ce2 | manager       |
| f351358ef30e4d10a9ba464093b42e19 | reader        |
+----------------------------------+---------------+
+-------------+-------------------------+-------------------+----------------------------+---------+--------+-----------+
| Role        | User                    | Group             | Project                    | Domain  | System | Inherited |
+-------------+-------------------------+-------------------+----------------------------+---------+--------+-----------+
| admin       |                         | admins@Default    | admin@Default              |         |        | False     |
| admin       | admin@Default           |                   | demo@Default               |         |        | False     |
| admin       | admin@Default           |                   | admin@Default              |         |        | False     |
| admin       | admin@Default           |                   |                            | Default |        | False     |
| reader      | demo_reader@Default     |                   | demo@Default               |         |        | False     |
| member      | demo@Default            |                   | demo@Default               |         |        | False     |
| anotherrole | demo@Default            |                   | demo@Default               |         |        | False     |
| member      | demo@Default            |                   | invisible_to_admin@Default |         |        | False     |
| service     | cinder@Default          |                   | service@Default            |         |        | False     |
| reader      | alt_demo_reader@Default |                   | alt_demo@Default           |         |        | False     |
| admin       | nova@Default            |                   | service@Default            |         |        | False     |
| service     | nova@Default            |                   | service@Default            |         |        | False     |
| admin       | placement@Default       |                   | service@Default            |         |        | False     |
| service     | placement@Default       |                   | service@Default            |         |        | False     |
| admin       | glance@Default          |                   | service@Default            |         |        | False     |
| service     | glance@Default          |                   | service@Default            |         |        | False     |
| member      | alt_demo_member@Default |                   | alt_demo@Default           |         |        | False     |
| service     | neutron@Default         |                   | service@Default            |         |        | False     |
| member      |                         | nonadmins@Default | alt_demo@Default           |         |        | False     |
| anotherrole |                         | nonadmins@Default | alt_demo@Default           |         |        | False     |
| member      |                         | nonadmins@Default | demo@Default               |         |        | False     |
| anotherrole |                         | nonadmins@Default | demo@Default               |         |        | False     |
| admin       | alt_demo@Default        |                   | alt_demo@Default           |         |        | False     |
| anotherrole | alt_demo@Default        |                   | alt_demo@Default           |         |        | False     |
| reader      | system_reader@Default   |                   |                            |         | all    | False     |
| admin       | admin@Default           |                   |                            |         | all    | False     |
| reader      | glance@Default          |                   |                            |         | all    | False     |
| member      | system_member@Default   |                   |                            |         | all    | False     |
+-------------+-------------------------+-------------------+----------------------------+---------+--------+-----------+

### Q41 - ROLE ASSIGNMENT COMMAND SYNTAX
openstack role add --user <user> --project <project> <role>
openstack role assignment list --user <user> --project <project> --names

### 3. Q42 - NOVA MIGRATION AND COMPUTE HOSTS
+--------------------------------------+---------------------+-----------------+--------------+-------+
| ID                                   | Hypervisor Hostname | Hypervisor Type | Host IP      | State |
+--------------------------------------+---------------------+-----------------+--------------+-------+
| 20cf3bc6-c982-4727-9cb8-8019b5480df3 | ubuntu-openstack    | QEMU            | 192.168.1.11 | up    |
+--------------------------------------+---------------------+-----------------+--------------+-------+
This command is deprecated.
+----------------------+-------+
| Field                | Value |
+----------------------+-------+
| count                | 1     |
| current_workload     | 0     |
| disk_available_least | 149   |
| free_disk_gb         | 182   |
| free_ram_mb          | 15333 |
| local_gb             | 182   |
| local_gb_used        | 0     |
| memory_mb            | 15845 |
| memory_mb_used       | 512   |
| running_vms          | 0     |
| vcpus                | 8     |
| vcpus_used           | 0     |
+----------------------+-------+
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+
| ID                                   | Binary         | Host             | Zone     | Status  | State | Updated At                 |
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+
| ad436761-a459-43d8-9c18-6ea22dd82c34 | nova-scheduler | ubuntu-openstack | internal | enabled | up    | 2026-11-10T12:17:30.000000 |
| 32a43783-228b-4d22-a0fb-d95237f7ddfd | nova-conductor | ubuntu-openstack | internal | enabled | up    | 2026-11-10T12:17:29.000000 |
| d904ee27-a23b-43b2-84b2-f215d75addde | nova-conductor | ubuntu-openstack | internal | enabled | up    | 2026-11-10T12:18:32.000000 |
| a222e8e5-282c-4f10-8d19-71578330a059 | nova-compute   | ubuntu-openstack | nova     | enabled | up    | 2026-11-10T12:17:37.000000 |
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+


### LIVE MIGRATION COMMAND HELP
usage: openstack server migrate [-h] [--live-migration] [--host <hostname>]
                                [--shared-migration | --block-migration]
                                [--disk-overcommit | --no-disk-overcommit]
                                [--wait]
                                <server>

Migrate server to different host. There are two types of migration operation:
a cold migration and a live migration. A cold migration operation is
implemented as a resize operation using the same flavor as the old server.
This means that, like resize, migrate works by shutting down the original
server, creating a new server using the same flavor and copying the contents
of the original disk into a new one. As with resize, the migrate operation is
a two-step process for the user: the first step is to perform the migrate, and
the second step is to either confirm (verify) success and release the old
server, or to declare a revert to release the new server and restart the old
one. By comparison, a live migration operation does not involve shutting the
server down, and is a one-step process that does not require a confirmation or
revert to finish.

positional arguments:
  <server>              Server (name or ID)

options:
  -h, --help            show this help message and exit
  --live-migration      Live migrate the server; use the ``--host`` option to
                        specify a target host for the migration which will be
                        validated by the scheduler
  --host <hostname>     Migrate the server to the specified host. (supported
                        with --os-compute-api-version 2.30 or above when used
                        with the --live-migration option) (supported with
                        --os-compute-api-version 2.56 or above when used
                        without the --live-migration option)
  --shared-migration    Perform a shared live migration (default before --os-
                        compute-api-version 2.25, auto after)
  --block-migration     Perform a block live migration (auto-configured from
                        --os-compute-api-version 2.25)
  --disk-overcommit     Allow disk over-commit on the destination host
                        (supported with --os-compute-api-version 2.24 or
                        below)
  --no-disk-overcommit  Do not over-commit disk on the destination host
                        (default) (supported with --os-compute-api-version
                        2.24 or below)
  --wait                Wait for migrate to complete

### COLD MIGRATION / RESIZE COMMAND HELP
usage: openstack server resize [-h] (--flavor <flavor> | --confirm | --revert)
                               [--wait]
                               <server>

Scale server to a new flavor. A resize operation is implemented by creating a
new server and copying the contents of the original disk into a new one. It is
a two-step process for the user: the first step is to perform the resize, and
the second step is to either confirm (verify) success and release the old
server or to declare a revert to release the new server and restart the old
one.

positional arguments:
  <server>           Server (name or ID)

options:
  -h, --help         show this help message and exit
  --flavor <flavor>  Resize server to specified flavor
  --confirm          **Deprecated** Confirm server resize is complete.
                     Replaced by the 'openstack server resize confirm' and
                     'openstack server migration confirm' commands
  --revert           **Deprecated** Restore server state before resize.
                     Replaced by the 'openstack server resize revert' and
                     'openstack server migration revert' commands
  --wait             Wait for resize to complete

### 4. Q43 - SSH KEYPAIR MANAGEMENT


### KEYPAIR CREATE COMMAND HELP
usage: openstack keypair create [-h] [-f {json,shell,table,value,yaml}]
                                [-c COLUMN] [--noindent] [--prefix PREFIX]
                                [--max-width <integer>] [--fit-width]
                                [--print-empty]
                                [--public-key <file> | --private-key <file>]
                                [--type <type>] [--user <user>]
                                [--user-domain <user-domain>]
                                <name>

Create new public or private key for server ssh access

positional arguments:
  <name>                New public or private key name

options:
  -h, --help            show this help message and exit
  --public-key <file>   Filename for public key to add. If not used, generates
                        a private key in ssh-ed25519 format. To generate keys
                        in other formats, including the legacy ssh-rsa format,
                        you must use an external tool such as ssh-keygen and
                        specify this argument.
  --private-key <file>  Filename for private key to save. If not used, print
                        private key in console.
  --type <type>         Keypair type (supported by --os-compute-api-version
                        2.2 or above)
  --user <user>         The owner of the keypair (admin only) (name or ID)
                        (supported by --os-compute-api-version 2.10 or above)
  --user-domain <user-domain>
                        Domain the user belongs to (name or ID). This can be
                        used in case collisions between user names exist.

output formatters:
  output formatter options

  -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated to
                        show multiple columns

json formatter:
  --noindent            whether to disable indenting the JSON

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX       add a prefix to all variable names

table formatter:
  --max-width <integer>
                        Maximum display width, <1 to disable. You can also use
                        the CLIFF_MAX_TERM_WIDTH environment variable, but the
                        parameter takes precedence.
  --fit-width           Fit the table to the display width. Implied if --max-
                        width greater than 0. Set the environment variable
                        CLIFF_FIT_WIDTH=1 to always enable
  --print-empty         Print empty table if there is no data to show.

### EXISTING LOCAL SSH PUBLIC KEYS

### 5. Q44 - CLOUD-INIT AND IMAGE INFORMATION
+--------------------------------------+--------------------------+-------------+------------------+----------+----------------------------------+--------+------------+-----------+----------------------------------+----------------+----------------------------------------------------------------------------------------------------------------------------------+------+
| ID                                   | Name                     | Disk Format | Container Format |     Size | Checksum                         | Status | Visibility | Protected | Project                          | Hash Algorithm | Hash Value                                                                                                                       | Tags |
+--------------------------------------+--------------------------+-------------+------------------+----------+----------------------------------+--------+------------+-----------+----------------------------------+----------------+----------------------------------------------------------------------------------------------------------------------------------+------+
| 4ae86027-571b-4f0c-986f-34e55f70cf99 | cirros-0.6.3-x86_64-disk | qcow2       | bare             | 21692416 | 87617e24a5e30cb3b87fda8c0764838f | active | public     | False     | 8f2e49eef93a4b2bbc33c2d5bbb6c35d | sha512         | 9a9bce0083a00939ec17c11febbfc767aa211aaa54f51e75c5a8b271a9b5637c77205a518b7a2007cb391d23cceb01e0e4e8d64832317151bc85b734b92a7be0 |      |
+--------------------------------------+--------------------------+-------------+------------------+----------+----------------------------------+--------+------------+-----------+----------------------------------+----------------+----------------------------------------------------------------------------------------------------------------------------------+------+

### CLOUD-INIT HOST TOOL VERSION (NOT GUEST IMAGE VALIDATION)
/usr/bin/cloud-init 25.1.4-0ubuntu0~24.04.1

### NEUTRON METADATA AGENT PROCESS
No separate metadata-agent process found.

### INSTANCE LIST


### 6. Q45 - INSTANCE ERROR TROUBLESHOOTING
### ALL PROJECTS - ERROR STATE INSTANCES


### NOVA SERVICE HEALTH
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+
| ID                                   | Binary         | Host             | Zone     | Status  | State | Updated At                 |
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+
| ad436761-a459-43d8-9c18-6ea22dd82c34 | nova-scheduler | ubuntu-openstack | internal | enabled | up    | 2026-11-10T12:17:30.000000 |
| 32a43783-228b-4d22-a0fb-d95237f7ddfd | nova-conductor | ubuntu-openstack | internal | enabled | up    | 2026-11-10T12:17:29.000000 |
| d904ee27-a23b-43b2-84b2-f215d75addde | nova-conductor | ubuntu-openstack | internal | enabled | up    | 2026-11-10T12:18:52.000000 |
| a222e8e5-282c-4f10-8d19-71578330a059 | nova-compute   | ubuntu-openstack | nova     | enabled | up    | 2026-11-10T12:17:37.000000 |
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+

### HYPERVISOR STATUS
+--------------------------------------+---------------------+-----------------+--------------+-------+
| ID                                   | Hypervisor Hostname | Hypervisor Type | Host IP      | State |
+--------------------------------------+---------------------+-----------------+--------------+-------+
| 20cf3bc6-c982-4727-9cb8-8019b5480df3 | ubuntu-openstack    | QEMU            | 192.168.1.11 | up    |
+--------------------------------------+---------------------+-----------------+--------------+-------+

### DEVSTACK LOG DIRECTORY
total 30M
drwxr-xr-x 2 stack stack 4.0K Sep 19 17:30 archive
-rw-r--r-- 1 stack stack  24M Nov 10 17:49 dstat-csv.log
lrwxrwxrwx 1 stack stack   46 Sep 22 12:32 stack.sh.log -> /opt/stack/logs/stack.sh.log.2026-09-22-123234
-rw-r--r-- 1 stack stack  28K Sep 19 16:33 stack.sh.log.2026-09-19-163325
-rw-r--r-- 1 stack stack   86 Sep 19 16:33 stack.sh.log.2026-09-19-163325.summary.2026-09-19-163325
-rw-r--r-- 1 stack stack    0 Sep 19 16:59 stack.sh.log.2026-09-19-165900
-rw-r--r-- 1 stack stack    0 Sep 19 16:59 stack.sh.log.2026-09-19-165900.summary.2026-09-19-165900
-rw-r--r-- 1 stack stack 210K Sep 19 17:15 stack.sh.log.2026-09-19-171147
-rw-r--r-- 1 stack stack  145 Sep 19 17:11 stack.sh.log.2026-09-19-171147.summary.2026-09-19-171147
-rw-r--r-- 1 stack stack 2.2M Sep 19 17:43 stack.sh.log.2026-09-19-172542
-rw-r--r-- 1 stack stack 1.5K Sep 19 17:43 stack.sh.log.2026-09-19-172542.summary.2026-09-19-172542
-rw-r--r-- 1 stack stack 711K Sep 21 21:30 stack.sh.log.2026-09-21-212831
-rw-r--r-- 1 stack stack  353 Sep 21 21:30 stack.sh.log.2026-09-21-212831.summary.2026-09-21-212831
-rw-r--r-- 1 stack stack 216K Sep 21 22:13 stack.sh.log.2026-09-21-221258
-rw-r--r-- 1 stack stack  251 Sep 21 22:13 stack.sh.log.2026-09-21-221258.summary.2026-09-21-221258
-rw-r--r-- 1 stack stack 265K Sep 21 22:44 stack.sh.log.2026-09-21-224326
-rw-r--r-- 1 stack stack  251 Sep 21 22:43 stack.sh.log.2026-09-21-224326.summary.2026-09-21-224326
-rw-r--r-- 1 stack stack 265K Sep 22 12:20 stack.sh.log.2026-09-22-121928
-rw-r--r-- 1 stack stack  251 Sep 22 12:19 stack.sh.log.2026-09-22-121928.summary.2026-09-22-121928
-rw-r--r-- 1 stack stack 1.9M Sep 22 12:41 stack.sh.log.2026-09-22-123234
-rw-r--r-- 1 stack stack 1.5K Sep 22 12:41 stack.sh.log.2026-09-22-123234.summary.2026-09-22-123234
lrwxrwxrwx 1 stack stack   72 Sep 22 12:32 stack.sh.log.summary -> /opt/stack/logs/stack.sh.log.2026-09-22-123234.summary.2026-09-22-123234
-rw-r--r-- 1 stack stack  37K Sep 19 17:15 worlddump-2026-09-19-114543.txt
-rw-r--r-- 1 stack stack  45K Sep 21 21:30 worlddump-2026-09-21-160035.txt
-rw-r--r-- 1 stack stack  50K Sep 21 22:44 worlddump-2026-09-21-171406.txt
-rw-r--r-- 1 stack stack  52K Sep 22 12:20 worlddump-2026-09-22-065009.txt
-rw-r--r-- 1 stack stack  52K Sep 22 12:20 worlddump-latest.txt

### RECENT NOVA API / SCHEDULER / CONDUCTOR LOGS
Log not found: /opt/stack/logs/n-api.log
Log not found: /opt/stack/logs/n-sch.log
Log not found: /opt/stack/logs/n-cond.log

### SYSTEM SERVICE STATUS
  devstack@n-novnc-cell1.service                  loaded active running Devstack devstack@n-novnc-cell1.service
  devstack@neutron-api.service                    loaded active running Devstack devstack@neutron-api.service
  devstack@neutron-ovn-maintenance-worker.service loaded active running Devstack devstack@neutron-ovn-maintenance-worker.service
  devstack@neutron-periodic-workers.service       loaded active running Devstack devstack@neutron-periodic-workers.service
  devstack@neutron-rpc-server.service             loaded active running Devstack devstack@neutron-rpc-server.service
  devstack@q-ovn-agent.service                    loaded active running Devstack devstack@q-ovn-agent.service
  ovn-controller-vtep.service                     loaded active running Open Virtual Network VTEP gateway controller daemon
  ovn-controller.service                          loaded active running Open Virtual Network host control daemon
  ovn-northd.service                              loaded active running Open Virtual Network central control daemon
  ovn-ovsdb-server-nb.service                     loaded active running Open vSwitch database server for OVN Northbound database
  ovn-ovsdb-server-sb.service                     loaded active running Open vSwitch database server for OVN Southbound database

==========================================================
Q41-Q45 EVIDENCE COLLECTION COMPLETED
==========================================================