group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #08408
[Bug 1634475] Re: Files missing from package
** Also affects: mistral (Ubuntu Xenial)
Importance: Undecided
Status: New
** Also affects: cloud-archive
Importance: Undecided
Status: New
** Changed in: cloud-archive
Status: New => In Progress
** Changed in: mistral (Ubuntu)
Status: New => In Progress
** Changed in: mistral (Ubuntu Xenial)
Status: New => In Progress
** Also affects: cloud-archive/mitaka
Importance: Undecided
Status: New
** Changed in: cloud-archive/mitaka
Status: New => In Progress
** Changed in: cloud-archive
Assignee: (unassigned) => Corey Bryant (corey.bryant)
** Changed in: mistral (Ubuntu Xenial)
Assignee: (unassigned) => Corey Bryant (corey.bryant)
** Changed in: cloud-archive/mitaka
Assignee: (unassigned) => Corey Bryant (corey.bryant)
** Summary changed:
- Files missing from package
+ [SRU] Files missing from package
** Changed in: mistral (Ubuntu)
Assignee: (unassigned) => Corey Bryant (corey.bryant)
** Description changed:
After the package is installed some of the files that support the
initialisation of the database seem to missing. As does the policy.json.
The files that are missing:
/usr/lib/python2.7/dist-packages/mistral/actions/openstack/mapping.json
/usr/lib/python2.7/dist-packages/mistral/resources (directory + contents)
/etc/mistral/policy.json
Without the DB files the schema initialisation fails:
# mistral-db-manage --config-file /etc/mistral/mistral.conf populate
Traceback (most recent call last):
- File "/usr/bin/mistral-db-manage", line 10, in <module>
- sys.exit(main())
- File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 129, in main
- CONF.command.func(config, CONF.command.name)
- File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 70, in do_populate
- action_manager.sync_db()
- File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 82, in sync_db
- register_action_classes()
- File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 128, in register_action_classes
- _register_dynamic_action_classes()
- File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 88, in _register_dynamic_action_classes
- actions = generator.create_actions()
- File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 77, in create_actions
- mapping = get_mapping()
- File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 45, in get_mapping
- MAPPING_PATH)).read())
+ File "/usr/bin/mistral-db-manage", line 10, in <module>
+ sys.exit(main())
+ File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 129, in main
+ CONF.command.func(config, CONF.command.name)
+ File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 70, in do_populate
+ action_manager.sync_db()
+ File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 82, in sync_db
+ register_action_classes()
+ File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 128, in register_action_classes
+ _register_dynamic_action_classes()
+ File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 88, in _register_dynamic_action_classes
+ actions = generator.create_actions()
+ File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 77, in create_actions
+ mapping = get_mapping()
+ File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 45, in get_mapping
+ MAPPING_PATH)).read())
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/mistral/actions/openstack/mapping.json'
And without the policy.json clients cannot authorise.
-
Reproduce db issue:
lxc launch ubuntu-daily:yakkety
lxc exec <container-name> bash
apt update
apt install mistral-api
mistral-db-manage --config-file /etc/mistral/mistral.conf populate
** Description changed:
- After the package is installed some of the files that support the
- initialisation of the database seem to missing. As does the policy.json.
+ [Description]
+ After the package is installed some of the files that support the initialisation of the database seem to missing. As does the policy.json.
The files that are missing:
/usr/lib/python2.7/dist-packages/mistral/actions/openstack/mapping.json
/usr/lib/python2.7/dist-packages/mistral/resources (directory + contents)
/etc/mistral/policy.json
Without the DB files the schema initialisation fails:
# mistral-db-manage --config-file /etc/mistral/mistral.conf populate
Traceback (most recent call last):
File "/usr/bin/mistral-db-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 129, in main
CONF.command.func(config, CONF.command.name)
File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 70, in do_populate
action_manager.sync_db()
File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 82, in sync_db
register_action_classes()
File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 128, in register_action_classes
_register_dynamic_action_classes()
File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 88, in _register_dynamic_action_classes
actions = generator.create_actions()
File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 77, in create_actions
mapping = get_mapping()
File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 45, in get_mapping
MAPPING_PATH)).read())
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/mistral/actions/openstack/mapping.json'
And without the policy.json clients cannot authorise.
+ [Test Case]
Reproduce db issue:
lxc launch ubuntu-daily:yakkety
lxc exec <container-name> bash
apt update
apt install mistral-api
mistral-db-manage --config-file /etc/mistral/mistral.conf populate
+
+ [Regression Potential]
+ Very little as the fix just updates the package to install the missing json files.
** Also affects: cloud-archive/newton
Importance: Undecided
Assignee: Corey Bryant (corey.bryant)
Status: In Progress
** Also affects: mistral (Ubuntu Yakkety)
Importance: Undecided
Status: New
** Changed in: mistral (Ubuntu Yakkety)
Assignee: (unassigned) => Corey Bryant (corey.bryant)
** Changed in: mistral (Ubuntu Yakkety)
Status: New => In Progress
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1634475
Title:
[SRU] Files missing from package
Status in Ubuntu Cloud Archive:
In Progress
Status in Ubuntu Cloud Archive mitaka series:
In Progress
Status in Ubuntu Cloud Archive newton series:
In Progress
Status in mistral package in Ubuntu:
In Progress
Status in mistral source package in Xenial:
In Progress
Status in mistral source package in Yakkety:
In Progress
Bug description:
[Description]
After the package is installed some of the files that support the initialisation of the database seem to missing. As does the policy.json.
The files that are missing:
/usr/lib/python2.7/dist-packages/mistral/actions/openstack/mapping.json
/usr/lib/python2.7/dist-packages/mistral/resources (directory + contents)
/etc/mistral/policy.json
Without the DB files the schema initialisation fails:
# mistral-db-manage --config-file /etc/mistral/mistral.conf populate
Traceback (most recent call last):
File "/usr/bin/mistral-db-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 129, in main
CONF.command.func(config, CONF.command.name)
File "/usr/lib/python2.7/dist-packages/mistral/db/sqlalchemy/migration/cli.py", line 70, in do_populate
action_manager.sync_db()
File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 82, in sync_db
register_action_classes()
File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 128, in register_action_classes
_register_dynamic_action_classes()
File "/usr/lib/python2.7/dist-packages/mistral/services/action_manager.py", line 88, in _register_dynamic_action_classes
actions = generator.create_actions()
File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 77, in create_actions
mapping = get_mapping()
File "/usr/lib/python2.7/dist-packages/mistral/actions/openstack/action_generator/base.py", line 45, in get_mapping
MAPPING_PATH)).read())
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/mistral/actions/openstack/mapping.json'
And without the policy.json clients cannot authorise.
[Test Case]
Reproduce db issue:
lxc launch ubuntu-daily:yakkety
lxc exec <container-name> bash
apt update
apt install mistral-api
mistral-db-manage --config-file /etc/mistral/mistral.conf populate
[Regression Potential]
Very little as the fix just updates the package to install the missing json files.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1634475/+subscriptions