Misleading error message when trying to change project's domain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
We are running a Mitaka environment. When browsing ask.openstack.org there was a question about changing a project's domain and I wanted to test if that works. According to [1] it's not designed to be changed, but there is still the option in openstackclient:
---cut here---
(openstack) project set -h
usage: project set [-h] [--name <name>] [--domain <domain>]
Set project properties
positional arguments:
<project> Project to modify (name or ID)
optional arguments:
-h, --help show this help message and exit
--name <name> Set project name
--domain <domain> Domain owning <project> (name or ID)
---cut here---
Executing the command with a valid project ID leads to an error, saying there is no such project:
---cut here---
control1:~ # openstack domain list
+------
| ID | Name | Enabled | Description |
+------
| 696819fc8d8d401
| d17c72d57ef344d
| default | Default | True | Owns users and ...|
+------
control1:~ # openstack project list
+------
| ID | Name |
+------
| 1d8581b15e714e5
| 2e2408fba098448
| 4654ccbd038b45c
| 67ba6231930c4e1
| 90c403f317ee47f
+------
control1:~ # openstack project show 67ba6231930c4e1
+------
| Field | Value |
+------
| description | |
| domain_id | d17c72d57ef344d
| enabled | True |
| id | 67ba6231930c4e1
| is_domain | False |
| name | PLA |
| parent_id | d17c72d57ef344d
+------
control1:~ # openstack project set --domain default 67ba6231930c4e1
No project with a name or ID of '67ba6231930c4e
---cut here---
Obviously, that's not true. If it's not supposed to be changed, I would expect a correct error message or the option should be disabled.
Please let me know if I there's more information required.
description: | updated |