How do you use rally within OSP 10
Issue
- Rally has been installed by running
yum install openstack-rally
- When running rally commands, the following errors are encountered:
# rally deployment list
Command failed, please check log for more info
2017-02-16 22:35:50.062 16858 CRITICAL rally [-] DBNonExistentTable: (sqlite3.OperationalError) no such table: deployments [SQL: u'SELECT deployments.enum_deployments_status AS deployments_enum_deployments_status, deployments.created_at AS deployments_created_at, deployments.updated_at AS deployments_updated_at, deployments.id AS deployments_id, deployments.uuid AS deployments_uuid, deployments.parent_uuid AS deployments_parent_uuid, deployments.name AS deployments_name, deployments.started_at AS deployments_started_at, deployments.completed_at AS deployments_completed_at, deployments.config AS deployments_config, deployments.credentials AS deployments_credentials \nFROM deployments \nWHERE deployments.parent_uuid IS NULL']
2017-02-16 22:35:50.062 16858 ERROR rally Traceback (most recent call last):
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/bin/rally", line 10, in <module>
2017-02-16 22:35:50.062 16858 ERROR rally sys.exit(main())
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/cli/main.py", line 40, in main
2017-02-16 22:35:50.062 16858 ERROR rally return cliutils.run(sys.argv, categories)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/cli/cliutils.py", line 573, in run
2017-02-16 22:35:50.062 16858 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/cli/commands/deployment.py", line 151, in list
2017-02-16 22:35:50.062 16858 ERROR rally deployment_list = deployment_list or api.Deployment.list()
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/api.py", line 133, in list
2017-02-16 22:35:50.062 16858 ERROR rally return objects.Deployment.list(status, parent_uuid, name)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/common/objects/deploy.py", line 40, in list
2017-02-16 22:35:50.062 16858 ERROR rally return db.deployment_list(status, parent_uuid, name)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/common/db/api.py", line 298, in deployment_list
2017-02-16 22:35:50.062 16858 ERROR rally name=name)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/common/db/sqlalchemy/api.py", line 101, in wrapper
2017-02-16 22:35:50.062 16858 ERROR rally deployment = fn(*args, **kwargs)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/common/db/api.py", line 87, in wrapper
2017-02-16 22:35:50.062 16858 ERROR rally result = fn(*args, **kwargs)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib/python2.7/site-packages/rally/common/db/sqlalchemy/api.py", line 390, in deployment_list
2017-02-16 22:35:50.062 16858 ERROR rally return query.all()
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/query.py", line 2588, in all
2017-02-16 22:35:50.062 16858 ERROR rally return list(self)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/query.py", line 2736, in __iter__
2017-02-16 22:35:50.062 16858 ERROR rally return self._execute_and_instances(context)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/query.py", line 2751, in _execute_and_instances
2017-02-16 22:35:50.062 16858 ERROR rally result = conn.execute(querycontext.statement, self._params)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
2017-02-16 22:35:50.062 16858 ERROR rally return meth(self, multiparams, params)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
2017-02-16 22:35:50.062 16858 ERROR rally return connection._execute_clauseelement(self, multiparams, params)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
2017-02-16 22:35:50.062 16858 ERROR rally compiled_sql, distilled_params
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
2017-02-16 22:35:50.062 16858 ERROR rally context)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception
2017-02-16 22:35:50.062 16858 ERROR rally util.raise_from_cause(newraise, exc_info)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
2017-02-16 22:35:50.062 16858 ERROR rally reraise(type(exception), exception, tb=exc_tb)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2017-02-16 22:35:50.062 16858 ERROR rally context)
2017-02-16 22:35:50.062 16858 ERROR rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
2017-02-16 22:35:50.062 16858 ERROR rally cursor.execute(statement, parameters)
2017-02-16 22:35:50.062 16858 ERROR rally DBNonExistentTable: (sqlite3.OperationalError) no such table: deployments [SQL: u'SELECT deployments.enum_deployments_status AS deployments_enum_deployments_status, deployments.created_at AS deployments_created_at, deployments.updated_at AS deployments_updated_at, deployments.id AS deployments_id, deployments.uuid AS deployments_uuid, deployments.parent_uuid AS deployments_parent_uuid, deployments.name AS deployments_name, deployments.started_at AS deployments_started_at, deployments.completed_at AS deployments_completed_at, deployments.config AS deployments_config, deployments.credentials AS deployments_credentials \nFROM deployments \nWHERE deployments.parent_uuid IS NULL']
2017-02-16 22:35:50.062 16858 ERROR rally
Environment
- Red Hat OpenStack Platform 10.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.