mistral-db-manage populate error on muranoclient

Bug #1659663 reported by Winson Chan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Unassigned

Bug Description

When running mistral-db-manage populate, it returns an error when importing the muranoclient module, complaining that it needs sdist tarball or .git to determine version.

Traceback (most recent call last):
  File "/opt/openstack/mistral/.venv/bin/mistral-db-manage", line 10, in <module>
    sys.exit(main())
  File "/home/vagrant/projects/stackstorm/mistral/mistral/db/sqlalchemy/migration/cli.py", line 130, in main
    CONF.command.func(config, CONF.command.name)
  File "/home/vagrant/projects/stackstorm/mistral/mistral/db/sqlalchemy/migration/cli.py", line 71, in do_populate
    action_manager.sync_db()
  File "/home/vagrant/projects/stackstorm/mistral/mistral/services/action_manager.py", line 82, in sync_db
    register_action_classes()
  File "/home/vagrant/projects/stackstorm/mistral/mistral/services/action_manager.py", line 128, in register_action_classes
    _register_dynamic_action_classes()
  File "/home/vagrant/projects/stackstorm/mistral/mistral/services/action_manager.py", line 87, in _register_dynamic_action_classes
    for generator in generator_factory.all_generators():
  File "/home/vagrant/projects/stackstorm/mistral/mistral/actions/generator_factory.py", line 32, in all_generators
    mod_action_cls = importutils.import_class(mod_cls_name)
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 30, in import_class
    __import__(mod_str)
  File "/home/vagrant/projects/stackstorm/mistral/mistral/actions/openstack/actions.py", line 37, in <module>
    muranoclient = importutils.try_import('muranoclient.v1.client')
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 103, in try_import
    return import_module(import_str)
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 73, in import_module
    __import__(import_str)
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/muranoclient/v1/client.py", line 17, in <module>
    from muranoclient.v1 import artifact_packages
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/muranoclient/v1/artifact_packages.py", line 22, in <module>
    from muranoclient.common import utils
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/muranoclient/common/utils.py", line 20, in <module>
    from muranopkgcheck import manager as check_manager
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/muranopkgcheck/__init__.py", line 19, in <module>
    'muranopkgcheck').version_string()
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/pbr/version.py", line 465, in version_string
    return self.semantic_version().brief_string()
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/pbr/version.py", line 460, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/pbr/version.py", line 447, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)
  File "/home/vagrant/projects/stackstorm/mistral/.venv/local/lib/python2.7/site-packages/pbr/packaging.py", line 725, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

Changed in mistral:
milestone: none → ocata-rc2
importance: Undecided → High
Revision history for this message
Dawid Deja (dawid-deja-0) wrote :

This bug is connected to this: https://bugs.launchpad.net/mistral/+bug/1659819 . We have different tracebacks since git is installed on the gates, but the problems remains.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/428005
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=bc18ecbe245cbcadc22e8a37a39c4f49291b0e8c
Submitter: Jenkins
Branch: master

commit bc18ecbe245cbcadc22e8a37a39c4f49291b0e8c
Author: Winson Chan <email address hidden>
Date: Thu Feb 2 05:22:37 2017 +0000

    Fix try import of openstack client modules

    The import of python-muranoclient is causing mistral-db-manage populate
    to fail. This patch fixes the try import to log and print to stdout the
    modules that fail and allow other imports to continue.

    Change-Id: Ied643a6173f40141fea59e5ab6e0df26b53d33f5
    Partial-Bug: #1659663

Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

@Winson, why did you specify that the bug is fixed partially? What else is left on it?

Revision history for this message
Winson Chan (winson-c-chan) wrote :

Do we need to follow up w/ the murano team to fix their client?

Changed in mistral:
milestone: ocata-rc2 → pike-1
Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

Winson, since you know the details can you please take care of this? I mean file a bug in Murano etc.

Changed in mistral:
milestone: pike-1 → pike-2
Changed in mistral:
milestone: pike-2 → pike-3
Changed in mistral:
milestone: pike-3 → queens-1
Changed in mistral:
milestone: queens-1 → none
Revision history for this message
Dougal Matthews (d0ugal) wrote :

I believe this is resolved.

Changed in mistral:
status: New → Triaged
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.