Comment 0 for bug 1625293

Revision history for this message
Alexander Kurenyshev (akurenyshev) wrote :

I tried to add a new role with name fuel_plugin_example_v4, it's yaml file:
meta:
  description: description
  group: other
  name: fuel_plugin_example_v4
  weight: 70
name: fuel_plugin_example
volumes_roles_mapping:
- allocate_size: min
  id: os

When I execute:
[root@nailgun ~]# fuel role --rel 2 --create --file fuel_plugin_example_v4.yaml

it fails with:
400 Client Error: Bad Request for url: http://10.109.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')

Actual result:
^^
Expected result:
role added successfully

This fail is related to the plugin tests, were role consists of letters and numbers

[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 495
cat /etc/fuel_build_number:
 495
cat /etc/fuel_release:
 9.1
cat /etc/fuel_openstack_version:
 mitaka-9.0
rpm -qa | egrep 'fuel|astute|network-checker|nailgun|packetary|shotgun':
 python-fuelclient-9.0.0-1.mos355.noarch
 fuel-misc-9.0.0-1.mos8599.noarch
 fuel-setup-9.0.0-1.mos6356.noarch
 fuel-nailgun-9.0.0-1.mos8859.noarch
 fuelmenu-9.0.0-1.mos275.noarch
 fuel-notify-9.0.0-1.mos8599.noarch
 fuel-ui-9.0.0-1.mos2814.noarch
 shotgun-9.0.0-1.mos90.noarch
 fuel_plugin_example_v4_hotpluggable-4.0-4.0.0-1.noarch
 rubygem-astute-9.0.0-1.mos770.noarch
 fuel-provisioning-scripts-9.0.0-1.mos8859.noarch
 fuel-9.0.0-1.mos6356.noarch
 fuel-openstack-metadata-9.0.0-1.mos8859.noarch
 network-checker-9.0.0-1.mos74.x86_64
 fuel-utils-9.0.0-1.mos8599.noarch
 python-packetary-9.0.0-1.mos151.noarch
 fuel-migrate-9.0.0-1.mos8599.noarch
 nailgun-mcagents-9.0.0-1.mos770.noarch
 fuel-agent-9.0.0-1.mos291.noarch
 fuel-mirror-9.0.0-1.mos151.noarch
 fuel-bootstrap-cli-9.0.0-1.mos291.noarch
 fuel-release-9.0.0-1.mos6356.noarch
 fuel-library9.0-9.0.0-1.mos8599.noarch
 fuel-ostf-9.0.0-1.mos944.noarch