openstack-cli: Openstack service "name" attribute issue

Bug #1940824 reported by Amin Emami
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Health
New
Undecided
Unassigned

Bug Description

openstack: Wallaby
openstack cli version: 5.5.0

It is not possible to set attribute "name" while creating service or editing service using openstack cli.

command: openstack service create --name glance --description "OpenStack Image" image

result:
ubuntu@host1:~$ openstack service show 923db0ac2228b9401df48604c03b8560
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Image |
| enabled | True |
| id | 923db0ac2228b9401df48604c03b8560 |
| name | |
| type | image |
+-------------+----------------------------------+

It is not possible to update available service name using the following command as well:
command: openstack service set --name "glance" 923db0ac2228b9401df48604c03b8560
Result:
{} does not have enough properties

Failed validating 'minProperties' in schema:
    {'additionalProperties': True,
     'minProperties': 1,
     'properties': {'enabled': {'enum': [True, False, None],
                                'type': 'boolean'},
                    'name': {'maxLength': 255,
                             'minLength': 1,
                             'pattern': '[\\S]+',
                             'type': 'string'},
                    'type': {'maxLength': 255,
                             'minLength': 1,
                             'type': 'string'}},
     'type': 'object'}

On instance:
    {} (HTTP 400) (Request-ID: req-25ddd6f7-60dd-4093-b082-f26055f54de8)

It also cause some problem in horizon "Admin/System/System Information" page, all services identified as network except keystone!

Revision history for this message
Amit Bhardwaj (bhardwajamit23) wrote (last edit ):

Even other commands have "Service name" missing:

openstack endpoint create --region RegionOne \
> image internal http://controller:9292
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 1e7def4db8654d71b9f12a3f5b91d4d3 |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 80dad59810fa495e820c9ed7eaa1a4c6 |
| service_name | |
| service_type | image |
| url | http://controller:9292 |
+--------------+----------------------------------+

openstack service create --name placement \
> --description "Placement API" placement
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | Placement API |
| enabled | True |
| id | a1923350ce4740e9a6bdf5145640958c |
| name | |
| type | placement |
+-------------+----------------------------------+
------------------------------------------------------------------------------------------------------------------------------------------------------
openstack endpoint create --region RegionOne \
> placement public http://controller:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | d32e5b093f944a199363747cd8140723 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | a1923350ce4740e9a6bdf5145640958c |
| service_name | |
| service_type | placement |
| url | http://controller:8778 |
+--------------+----------------------------------+

----------------------------------------------------------------------------------------------------------------------------------------
openstack service create --name nova \
> --description "OpenStack Compute" compute
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Compute |
| enabled | True |
| id | c4cbbd5cbdb44689b623a35c9e6aee34 |
| name | |
| type | compute |
+-------------+----------------------------------+

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.