Bug 1653865 - Add support for interface tags (and tags in general) in OpenStack CLI
Summary: Add support for interface tags (and tags in general) in OpenStack CLI
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Julie Pichon
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-27 19:08 UTC by Andreas Karis
Modified: 2020-02-21 05:25 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Andreas Karis 2018-11-27 19:08:06 UTC
Description of problem:
Add support for interface tags (and tags in general) in OpenStack CLI
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html/networking_guide/use-tagging

Seems that tagging is currently only possible with the nova CLI which is deprecated.

Version-Release number of selected component (if applicable):
OSP 13 latest

How reproducible:
~~~
    (overcloud) [stack@undercloud-r430 ~]$  openstack server create --flavor m1.medium  --image rhel --nic net-id=$NETID,tag=provider1 --nic port-id=$PORT_ID1,tag=sriov1 --nic port-id=$PORT_ID2,tag=sriov2 --key-name id_rsa   sriov_vm
Invalid nic argument 'tag'. Nic arguments must be of the form --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid>.

    (overcloud) [stack@undercloud-r430 ~]$ nova boot --flavor m1.medium  --image rhel --nic net-id=$NETID,tag=provider1 --nic port-id=$PORT_ID1,tag=sriov1 --nic port-id=$PORT_ID2,tag=sriov2 --key-name id_rsa   sriov_vm
    +--------------------------------------+-------------------------------------------------------------+
    | Property                             | Value                                                       |
    +--------------------------------------+-------------------------------------------------------------+
    | OS-DCF:diskConfig                    | MANUAL                                                      |
    | OS-EXT-AZ:availability_zone          |                                                             |
    | OS-EXT-SRV-ATTR:host                 | -                                                           |
    | OS-EXT-SRV-ATTR:hostname             | sriov-vm                                                    |
    | OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                           |
    | OS-EXT-SRV-ATTR:instance_name        |                                                             |
    | 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-yb4dg72u                                                  |
    | OS-EXT-SRV-ATTR:root_device_name     | -                                                           |
    | OS-EXT-SRV-ATTR:user_data            | -                                                           |
    | OS-EXT-STS:power_state               | 0                                                           |
    | OS-EXT-STS:task_state                | scheduling                                                  |
    | OS-EXT-STS:vm_state                  | building                                                    |
    | OS-SRV-USG:launched_at               | -                                                           |
    | OS-SRV-USG:terminated_at             | -                                                           |
    | accessIPv4                           |                                                             |
    | accessIPv6                           |                                                             |
    | adminPass                            | cgcY38GDaYtN                                                |
    | config_drive                         |                                                             |
    | created                              | 2018-11-27T19:04:10Z                                        |
    | description                          | -                                                           |
    | flavor:disk                          | 16                                                          |
    | flavor:ephemeral                     | 0                                                           |
    | flavor:extra_specs                   | {"hw:cpu_policy": "dedicated", "hw:mem_page_size": "large"} |
    | flavor:original_name                 | m1.medium                                                   |
    | flavor:ram                           | 4096                                                        |
    | flavor:swap                          | 0                                                           |
    | flavor:vcpus                         | 8                                                           |
    | hostId                               |                                                             |
    | host_status                          |                                                             |
    | id                                   | aa99b4e8-5e1a-4aca-8513-9dd072244e9d                        |
    | image                                | rhel (c571d74d-4820-49a9-a269-b0c1b91e4366)                 |
    | key_name                             | id_rsa                                                      |
    | locked                               | False                                                       |
    | metadata                             | {}                                                          |
    | name                                 | sriov_vm                                                    |
    | os-extended-volumes:volumes_attached | []                                                          |
    | progress                             | 0                                                           |
    | security_groups                      | default                                                     |
    | status                               | BUILD                                                       |
    | tags                                 | []                                                          |
    | tenant_id                            | 8a73bd72346446ae8b643bbd2cf48fa0                            |
    | updated                              | 2018-11-27T19:04:10Z                                        |
    | user_id                              | 5ff6468028a343b8a56ab825ea682091                            |
    +--------------------------------------+-------------------------------------------------------------+
~~~

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


Note You need to log in before you can comment on or make changes to this bug.