[rbac] enable service request results with validation error 'disabled_reason' is a required property when using admin role
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
When using admin role, the response for "enable service" request doesn't contain the "disabled_reason" property as the tempest validation expects.
* it happens to admin only since this operation is forbidden for readers & members.
tempest.log:
2024-06-16 11:53:44,270 884733 INFO [tempest.
2024-06-16 11:53:44,271 884733 DEBUG [tempest.
Body: {"binary": "cinder-backup", "host": "controller-1"}
Response - Headers: {'date': 'Sun, 16 Jun 2024 11:53:44 GMT', 'server': 'Apache', 'content-length': '106', 'x-compute-
Body: b'{"disabled": false, "host": "controller-1", "service": "", "binary": "cinder-backup", "status": "enabled"}'
Traceback (most recent call last):
File "/home/
File "/usr/lib/
raise error
jsonschema.
Failed validating 'required' in schema:
'type': 'object'}
On instance:
{'binary': 'cinder-backup',
'host': 'controller-1',
'service': '',
'status': 'enabled'}
rhosp-release: Red Hat OpenStack Platform release 17.1.3 (Wallaby)
Cinder version: 7.4.1
If this is a bug in downstream product then report the bug to the vendor.
This is not a bug tracker for any downstream product but upstream development. It should contain upstream release version/name instead of any downstream product name or version.