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'}
Actually you yaml file works good http:// paste.openstack .org/show/ 581229/,
But if we change it from your example to this one:
meta: example_ v4 example_ v4 # We add here '_v4' roles_mapping:
description: description
group: other
name: fuel_plugin_
weight: 70
name: fuel_plugin_
volumes_
- allocate_size: min
id: os
it fails: example_ v4.yaml 10.20.0. 2:8000/ api/v1/ releases/ 2/roles/ (u'fuel_ plugin_ example_ v4' does not match '^[a-zA-Z_-]+$'
[root@fuel ~]# fuel role --rel 2 --create --file fuel_plugin_
400 Client Error: Bad Request for url: http://
Failed validating 'pattern' in schema[ 'properties' ]['name' ]:
{'pattern': '^[a-zA-Z_-]+$', 'type': 'string'}
On instance['name']: plugin_ example_ v4')
u'fuel_