Comment 2 for bug 1625293

Revision history for this message
Vitalii Kulanov (vitaliy-t) wrote :

Actually you yaml file works good http://paste.openstack.org/show/581229/,
But if we change it from your example to this one:

meta:
  description: description
  group: other
  name: fuel_plugin_example_v4
  weight: 70
name: fuel_plugin_example_v4 # We add here '_v4'
volumes_roles_mapping:
- allocate_size: min
  id: os

it fails:
[root@fuel ~]# fuel role --rel 2 --create --file fuel_plugin_example_v4.yaml
400 Client Error: Bad Request for url: http://10.20.0.2:8000/api/v1/releases/2/roles/ (u'fuel_plugin_example_v4' does not match '^[a-zA-Z_-]+$'

Failed validating 'pattern' in schema['properties']['name']:
    {'pattern': '^[a-zA-Z_-]+$', 'type': 'string'}

On instance['name']:
    u'fuel_plugin_example_v4')