Bug 1459501 - RHOS 10: openstack-rally (0.7.0) Exception when creating deployment -> user.json beforehand used on other installations
RHOS 10: openstack-rally (0.7.0) Exception when creating deployment -> user.j...
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-rally (Show other bugs)
10.0 (Newton)
Unspecified Linux
unspecified Severity urgent
: ---
: ---
Assigned To: Chandan Kumar
Martin Kopec
: Rebase
Depends On:
  Show dependency treegraph
Reported: 2017-06-07 06:07 EDT by Francisco Javier Lopez Y Grueber
Modified: 2017-08-01 15:30 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-08-01 13:20:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Francisco Javier Lopez Y Grueber 2017-06-07 06:07:37 EDT
Description of problem:

The way of rally to validate the user-env.json file when creating an environment  
seems to be handled differently between release version 0.7.0.  

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

Using an upstream used existing-user.json 

1. rally deployment create --file ./CCI06-LinuxEng-env.json  --name CCI06-ENV 

Returns a validation ERROR 

Failed validating 'additionalProperties' in schema:
    {'additionalProperties': False,
     'definitions': {'user': {'oneOf': [{'additionalProperties': False,
                                         'properties': {'password': {'type': 'string'},
                                                        'tenant_name': {'type': 'string'},
                                                        'username': {'type': 'string'}},
                                         'required': ['username',
                                        {'additionalProperties': False,
                                         'properties': {'domain_name': {'type': 'string'},
                                                        'password': {'type': 'string'},
                                                        'project_domain_name': {'type': 'string'},
                                                        'project_name': {'type': 'string'},
                                                        'user_domain_name': {'type': 'string'},
                                                        'username': {'type': 'string'}},
                                         'required': ['username',
                              'type': 'object'}},
     'properties': {'admin': {'$ref': '#/definitions/user'},
                    'auth_url': {'type': 'string'},
                    'endpoint': {'type': ['string', 'null']},
                    'endpoint_type': {'enum': ['admin',
                    'extra': {'additionalProperties': True,
                              'type': 'object'},
                    'https_cacert': {'type': 'string'},
                    'https_insecure': {'type': 'boolean'},
                    'region_name': {'type': 'string'},
                    'type': {'type': 'string'},
                    'users': {'items': {'$ref': '#/definitions/user'},
                              'type': 'array'}},
     'required': ['type', 'auth_url', 'admin'],
     'type': 'object'}

On instance:
    {'creds': {'openstack': {'admin': {'password': 'XXXXXXXXXXXXXXXXX',
                                       'project_domain_name': 'LinuxEng',
                                       'project_name': 'LinuxEng',
                                       'user_domain_name': 'default',
                                       'username': 'admin'},
                             'auth_url': 'https://cci06-ostctrl-oc.cloud.internal:35357/v3',
                             'endpoint_type': 'public',
                             'https_cacert': '/etc/pki/CA/certs/CCI06_Root_CA.pem',
                             'https_insecure': False,
                             'region_name': 'CCI06'}},
     'type': 'ExistingCloud'}.

Actual results:

Deployment creation fails for existing user.json on this version. 

The same json file has been used previously upstream. The deployment creation there succeeded. However, looking at the validation message it seems that there are no unknown properties set. 

Expected results:

Deployment succeeds and rally tests can be executed 

Additional info:
Comment 1 Francisco Javier Lopez Y Grueber 2017-06-07 06:21:55 EDT
Also note: 

1) Our RPM is not delivering the samples directory, which should guide users on how to use the rally release in use. (This directory includes the existing-user.json which was used in the given example. 

1.2) After internal communication I would request the inclusion of the sample directory in each and every release 

1.3) Please package openstack-rally-0.9.0-1el7 and include it (backport to RHOS10)
Comment 3 Martin Magr 2017-08-01 13:20:36 EDT
Rally is in the tech preview in OSP10.
Comment 4 Francisco Javier Lopez Y Grueber 2017-08-01 15:30:33 EDT
We packaged for OSP10. Here the --fromenv import worked just fine. 
So the recommendation would be to backport this version into OSP10.

Note You need to log in before you can comment on or make changes to this bug.