Bug #4057

Oneflow templates do not allow to use white spaces into Role Names

Added by Alvaro Simon over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:10/15/2015
Priority:NormalDue 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

Revision 3677eda7
Added by Carlos Martín over 5 years ago

Bug #4057: Add abide pattern to role names

Revision 58f3d110
Added by Carlos Martín over 5 years ago

Bug #4057: Add abide pattern to role names

(cherry picked from commit 3677eda777802bdef5243d8abe9aac9d2e71b5e9)

Revision e24f645a
Added by Carlos Martín over 5 years ago

Bug #4057: Show regexp in validator error

Revision ade6d0c0
Added by Carlos Martín over 5 years ago

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

Also available in: Atom PDF