Bug 1285462
Summary: | Rally DB writing should work without root privileges | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | yfried |
Component: | openstack-rally | Assignee: | Joe Talerico <jtaleric> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.0 (Liberty) | CC: | apevec, dmellado, jschluet, lhh, smalleni, srevivo |
Target Milestone: | --- | Keywords: | Automation, ZStream |
Target Release: | 8.0 (Liberty) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-01 00:25:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
yfried
2015-11-25 16:19:03 UTC
Seeing this: There exists a folder /etc/rally but no file /etc/rally/rally.conf [stack@manager ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.2 (Maipo) [stack@manager ~]$ rpm -qa | grep rally openstack-rally-0.1.1-4.2.el7ost.noarch [stack@manager ~]$ sudo yum install gcc libffi-devel python-devel openssl-devel gmp-devel libxml2-devel libxslt-devel postgresql-devel redhat-rpm-config^C [stack@manager ~]$ ls *.json existing.json instackenv.json overcloud-env.json [stack@manager ~]$ cat existing.json { "type": "ExistingCloud", "auth_url": "http://10.0.0.100:5000/v2.0/", "region_name": "RegionOne", "endpoint_type": "public", "admin": { "username": "admin", "password": "7VtT8sNR9JsBRcfKRNd6qhqXq", "tenant_name": "demo" }, "https_insecure": false, "https_cacert": "" } [stack@manager ~]$ rally deployment create --file=existing.json --name=overcloud Traceback (most recent call last): File "/usr/bin/rally", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/rally/cli/main.py", line 42, in main return cliutils.run(sys.argv, categories) File "/usr/lib/python2.7/site-packages/rally/cli/cliutils.py", line 464, in run default_config_files=find_config_files(CONFIG_SEARCH_PATHS)) File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1890, in __call__ self._namespace._files_permission_denied) oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/rally/rally.conf [stack@manager ~]$ sudo rally deployment create --file=existing.json --name=overcloud (sqlite3.OperationalError) table deployments has no column named admin [SQL: u'INSERT INTO deployments (created_at, updated_at, uuid, parent_uuid, name, started_at, completed_at, config, admin, users, enum_deployments_status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'] [parameters: ('2016-08-31 17:20:55.137608', '2016-08-31 17:20:55.137636', '1788ec67-1f52-4668-9691-b67364b5fde2', None, u'overcloud', None, None, '{"endpoint_type": "public", "auth_url": "http://10.0.0.100:5000/v2.0/", "region_name": "RegionOne", "https_insecure": false, "admin": {"username": "admin", "tenant_name": "demo", "password": "7VtT8sNR9JsBRcfKRNd6qhqXq"}, "https_cacert": "", "type": "ExistingCloud"}', None, <read-only buffer for 0x3872180, size -1, offset 0 at 0x38777f0>, 'deploy->init')] Looks like Rally can't connect to it's DB. Make a sure that connection string in rally.conf is proper: sqlite:////tmp/rally.sqlite Is this still a issue? We haven't seen this, but we run Rally within a venv. |