Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-6659

Failed to show flavor id in the output of 'openstack server show $vm'

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Low

      Description of problem:
      Failed to show flavor id in the output of 'openstack server show $vm'

      Version-Release number of selected component (if applicable):
      $ oc version 
      Client Version: 4.15.9
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      Server Version: 4.14.12
      Kubernetes Version: v1.27.10+28ed2d7

      How reproducible:
      100%

      Steps to Reproduce:

      1.Show the detailed info of flavor 'asb-m2'

       

      sh-5.1$ openstack flavor show 100
      +----------------------------+----------------------------------------------------------------------+
      | Field                      | Value                                                                |
      +----------------------------+----------------------------------------------------------------------+
      | OS-FLV-DISABLED:disabled   | False                                                                |
      | OS-FLV-EXT-DATA:ephemeral  | 0                                                                    |
      | access_project_ids         | None                                                                 |
      | description                | None                                                                 |
      | disk                       | 10                                                                   |
      | id                         | 100                                                                  |
      | name                       | asb-m2                                                               |
      | os-flavor-access:is_public | True                                                                 |
      | properties                 | hw:boot_menu='true', hw_rng:allowed='true', hw_rng:rate_bytes='5000' |
      | ram                        | 2048                                                                 |
      | rxtx_factor                | 1.0                                                                  |
      | swap                       |                                                                      |
      | vcpus                      | 2                                                                    |
      +----------------------------+----------------------------------------------------------------------+
       

      2. Create a new instance with the above flavor.

       

       

      $ openstack server create --flavor asb-m2 --volume aa5bb62e-3815-4758-9318-d14772e30cd0 --nic net-id=a72f299b-9cca-41c6-8283-1be44376e304 --availability-zone  nova:compute-0.ctlplane.example.com asb-vm-qcow2-vol 

      3. Show the detailed info of the new instance.

       

      sh-5.1$ openstack server show 0ac0c946-b594-47a8-a4be-e45a5651e02a
      +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | Field                               | Value                                                                                                                                                                                                   |
      +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | OS-DCF:diskConfig                   | MANUAL                                                                                                                                                                                                  |
      | OS-EXT-AZ:availability_zone         | nova                                                                                                                                                                                                    |
      | OS-EXT-SRV-ATTR:host                | compute-0.ctlplane.example.com                                                                                                                                                                          |
      | OS-EXT-SRV-ATTR:hostname            | asb-vm-qcow2-vol                                                                                                                                                                                        |
      | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.ctlplane.example.com                                                                                                                                                                          |
      | OS-EXT-SRV-ATTR:instance_name       | instance-0000004c                                                                                                                                                                                       |
      | OS-EXT-SRV-ATTR:kernel_id           |                                                                                                                                                                                                         |
      | OS-EXT-SRV-ATTR:launch_index        | 0                                                                                                                                                                                                       |
      | OS-EXT-SRV-ATTR:ramdisk_id          |                                                                                                                                                                                                         |
      | OS-EXT-SRV-ATTR:reservation_id      | r-mkxvbrng                                                                                                                                                                                              |
      | OS-EXT-SRV-ATTR:root_device_name    | /dev/vda                                                                                                                                                                                                |
      | OS-EXT-SRV-ATTR:user_data           | None                                                                                                                                                                                                    |
      | OS-EXT-STS:power_state              | Running                                                                                                                                                                                                 |
      | OS-EXT-STS:task_state               | None                                                                                                                                                                                                    |
      | OS-EXT-STS:vm_state                 | active                                                                                                                                                                                                  |
      | OS-SCH-HNT:scheduler_hints          | None                                                                                                                                                                                                    |
      | OS-SRV-USG:launched_at              | 2024-04-30T06:45:10.000000                                                                                                                                                                              |
      | OS-SRV-USG:terminated_at            | None                                                                                                                                                                                                    |
      | accessIPv4                          |                                                                                                                                                                                                         |
      | accessIPv6                          |                                                                                                                                                                                                         |
      | access_ipv4                         |                                                                                                                                                                                                         |
      | access_ipv6                         |                                                                                                                                                                                                         |
      | addresses                           | asb-net1=192.168.33.119                                                                                                                                                                                 |
      | adminPass                           | None                                                                                                                                                                                                    |
      | admin_password                      | None                                                                                                                                                                                                    |
      | attached_volumes                    | [{'device': None, 'id': 'aa5bb62e-3815-4758-9318-d14772e30cd0', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] |
      | availability_zone                   | nova                                                                                                                                                                                                    |
      | block_device_mapping                | None                                                                                                                                                                                                    |
      | block_device_mapping_v2             | None                                                                                                                                                                                                    |
      | compute_host                        | compute-0.ctlplane.example.com                                                                                                                                                                          |
      | config_drive                        | True                                                                                                                                                                                                    |
      | created                             | 2024-04-30T06:45:02Z                                                                                                                                                                                    |
      | created_at                          | 2024-04-30T06:45:02Z                                                                                                                                                                                    |
      | description                         | asb-vm-qcow2-vol                                                                                                                                                                                        |
      | disk_config                         | MANUAL                                                                                                                                                                                                  |
      | fault                               | None                                                                                                                                                                                                    |
      | flavor                              | asb-m2 (asb-m2)                                                                                                                                                                                         |
      | flavorRef                           | None                                                                                                                                                                                                    |
      | flavor_id                           | None                                                                                                                                                                                                    |
      | has_config_drive                    | True                                                                                                                                                                                                    |
      | hostId                              | 486d180c5da38eb044b8bae518c0f24dfe2a935f2700c2bacf35eb9a                                                                                                                                                |
      | host_id                             | 486d180c5da38eb044b8bae518c0f24dfe2a935f2700c2bacf35eb9a                                                                                                                                                |
      | host_status                         | UP                                                                                                                                                                                                      |
      | hostname                            | asb-vm-qcow2-vol                                                                                                                                                                                        |
      | hypervisor_hostname                 | compute-0.ctlplane.example.com                                                                                                                                                                          |
      | id                                  | 0ac0c946-b594-47a8-a4be-e45a5651e02a                                                                                                                                                                    |
      | image                               | N/A (booted from volume)                                                                                                                                                                                |
      | imageRef                            | None                                                                                                                                                                                                    |
      | image_id                            | None                                                                                                                                                                                                    |
      | instance_name                       | instance-0000004c                                                                                                                                                                                       |
      | interface_ip                        |                                                                                                                                                                                                         |
      | is_locked                           | False                                                                                                                                                                                                   |
      | kernel_id                           |                                                                                                                                                                                                         |
      | key_name                            | None                                                                                                                                                                                                    |
      | launch_index                        | 0                                                                                                                                                                                                       |
      | launched_at                         | 2024-04-30T06:45:10.000000                                                                                                                                                                              |
      | location                            | Munch({'cloud': 'default', 'region_name': 'regionOne', 'zone': 'nova', 'project': Munch({'id': 'a5779cb8219347a38106e73c4739e5fe', 'name': 'admin', 'domain_id': None, 'domain_name': 'Default'})})     |
      | locked                              | False                                                                                                                                                                                                   |
      | max_count                           | None                                                                                                                                                                                                    |
      | min_count                           | None                                                                                                                                                                                                    |
      | name                                | asb-vm-qcow2-vol                                                                                                                                                                                        |
      | networks                            | None                                                                                                                                                                                                    |
      | power_state                         | 1                                                                                                                                                                                                       |
      | private_v4                          |                                                                                                                                                                                                         |
      | private_v6                          |                                                                                                                                                                                                         |
      | progress                            | 0                                                                                                                                                                                                       |
      | project_id                          | a5779cb8219347a38106e73c4739e5fe                                                                                                                                                                        |
      | properties                          |                                                                                                                                                                                                         |
      | public_v4                           |                                                                                                                                                                                                         |
      | public_v6                           |                                                                                                                                                                                                         |
      | ramdisk_id                          |                                                                                                                                                                                                         |
      | reservation_id                      | r-mkxvbrng                                                                                                                                                                                              |
      | root_device_name                    | /dev/vda                                                                                                                                                                                                |
      | scheduler_hints                     | None                                                                                                                                                                                                    |
      | security_groups                     | name='default'                                                                                                                                                                                          |
      | server_groups                       | []                                                                                                                                                                                                      |
      | status                              | ACTIVE                                                                                                                                                                                                  |
      | tags                                |                                                                                                                                                                                                         |
      | task_state                          | None                                                                                                                                                                                                    |
      | terminated_at                       | None                                                                                                                                                                                                    |
      | trusted_image_certificates          | None                                                                                                                                                                                                    |
      | updated                             | 2024-04-30T06:45:10Z                                                                                                                                                                                    |
      | updated_at                          | 2024-04-30T06:45:10Z                                                                                                                                                                                    |
      | user_data                           | None                                                                                                                                                                                                    |
      | user_id                             | 800f8a48fbf9411fb7524fb56f6b5f56                                                                                                                                                                        |
      | vm_state                            | active                                                                                                                                                                                                  |
      | volumes                             | [{'device': None, 'id': 'aa5bb62e-3815-4758-9318-d14772e30cd0', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] |
      | volumes_attached                    | attachment_id=, bdm_id=, delete_on_termination='False', device=, id='aa5bb62e-3815-4758-9318-d14772e30cd0', location=, name=, tag=, volume_id=                                                          |
      +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
       

       

      Actual Results
      The value of 'flavor_id' is None.

       

      Expected Results

      The value of 'flavor_id' should display likes '100'

            rh-ee-bgibizer Balazs Gibizer
            juzhou@redhat.com Junqin Zhou
            rhos-dfg-compute
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: