Bug 1459501 - RHOS 10: openstack-rally (0.7.0) Exception when creating deployment -> user.json beforehand used on other installations
Summary: RHOS 10: openstack-rally (0.7.0) Exception when creating deployment -> user.j...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-rally
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-07 10:07 UTC by Francisco Javier Lopez Y Grueber
Modified: 2017-08-01 19:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 17:20:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Francisco Javier Lopez Y Grueber 2017-06-07 10:07:37 UTC
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):

openstack-rally-0.7.0-6el7ost 


How reproducible:

Always


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',
                                                      'password',
                                                      'tenant_name']},
                                        {'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',
                                                      'password',
                                                      'project_name']}],
                              'type': 'object'}},
     'properties': {'admin': {'$ref': '#/definitions/user'},
                    'auth_url': {'type': 'string'},
                    'endpoint': {'type': ['string', 'null']},
                    'endpoint_type': {'enum': ['admin',
                                               'internal',
                                               'public',
                                               None]},
                    '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 10:21:55 UTC
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 17:20:36 UTC
Rally is in the tech preview in OSP10.

Comment 4 Francisco Javier Lopez Y Grueber 2017-08-01 19:30:33 UTC
We packaged 0.9.0.1 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.