Bug 1094757
| Summary: | openstack-sahara-api: missing files needed for db initialization | ||
|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Luigi Toscano <ltoscano> |
| Component: | openstack-sahara | Assignee: | Michael McCune <mimccune> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Luigi Toscano <ltoscano> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | unspecified | CC: | markmc, yeylon |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-sahara-2014.1.0-13.el7ost | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-25 14:08:15 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: | |||
The db initialization can be successfully performed now. Tested on openstack-sahara-2014.1.0-13.el7ost, F20 |
Description of problem: When the database is initialized according the documentation, an error is thrown; some files (env.py, versions directory) are missing # sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head Traceback (most recent call last): File "/usr/bin/sahara-db-manage", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/sahara/db/migration/cli.py", line 111, in main CONF.command.func(config, CONF.command.name) File "/usr/lib/python2.7/site-packages/sahara/db/migration/cli.py", line 50, in do_upgrade_downgrade do_alembic_command(config, cmd, revision, sql=CONF.command.sql) File "/usr/lib/python2.7/site-packages/sahara/db/migration/cli.py", line 31, in do_alembic_command getattr(alembic_cmd, cmd)(config, *args, **kwargs) File "/usr/lib/python2.7/site-packages/alembic/command.py", line 123, in upgrade script.run_env() File "/usr/lib/python2.7/site-packages/alembic/script.py", line 193, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.7/site-packages/alembic/util.py", line 177, in load_python_file module = imp.load_source(module_id, path, open(path, 'rb')) IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/sahara/db/migration/alembic_migrations/env.py' Version-Release number of selected component (if applicable): openstack-sahara-2014.1.0-3, Fedora 20