Bug #4057
Oneflow templates do not allow to use white spaces into Role Names
Status: | Closed | Start date: | 10/15/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Carlos Martín | % Done: | 0% | |
Category: | OneFlow | |||
Target version: | Release 4.14.2 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 4.14 |
Description
Dear OpenNebula developers
We found that you cannot create oneflow templates which contains white spaces into Role names field. You can include white spaces into the description and the oneflow name but when you try it with role names like this:
...
"name": "EL5 test",
"cardinality": 1,
...
You get this error (also from Sunstone wizard):
$ oneflow-template create onflow_templ.json
KEY: 'name' malformed;
If you remove the white space everything goes fine:
"name": "EL5test",
Is this an known issue? If so it should be displayed from the sunstone view that white spaces are not allow.
Cheers and thanks!
Alvaro
Associated revisions
Bug #4057: Add abide pattern to role names
Bug #4057: Add abide pattern to role names
(cherry picked from commit 3677eda777802bdef5243d8abe9aac9d2e71b5e9)
Bug #4057: Show regexp in validator error
Bug #4057: Show regexp in validator error
(cherry picked from commit e24f645a5cfdece2fa23c171dc801fb7650d1d17)
History
#1 Updated by Ruben S. Montero over 5 years ago
- Target version set to Release 4.14.2
#2 Updated by Carlos Martín over 5 years ago
- Status changed from Pending to Closed
- Assignee set to Carlos Martín
- Resolution set to fixed
Hi,
This is not really a bug. Role names can only be alphanumeric and underscore characters, as documented here:
http://docs.opennebula.org/4.14/integration/system_interfaces/appflow_api.html#resource-representation
I've tried to make the error message more useful, returning the regexp that should match. The wizard also validates the role name and shows a more friendly error in sunstone.
Regards