[Openstack] python-openstackclient issue while executing congress commands
Srinivasa Rao Ragolu
sragolu at mvista.com
Fri Dec 5 11:01:55 UTC 2014
Thanks Steve,
I have modified congressclient code using
https://review.openstack.org/#/c/139534 and problem got resolved.
Thanks,
Srinivas.
On Fri, Dec 5, 2014 at 12:38 PM, Steve Martinelli <stevemar at ca.ibm.com>
wrote:
> Looks like it might be mis-match between the installed pbr and the one you
> might have cloned?
>
> From where and how are you installing python-openstackclient? You could
> try uninstalling it cloning it from master (a new version was just
> released,
> so you'd be close to a new version).
>
> Steve
>
> Srinivasa Rao Ragolu <sragolu at mvista.com> wrote on 12/05/2014 12:44:51 AM:
>
> > From: Srinivasa Rao Ragolu <sragolu at mvista.com>
> > To: openstack at lists.openstack.org
> > Date: 12/05/2014 01:04 AM
> > Subject: [Openstack] python-openstackclient issue while executing
> > congress commands
> >
> > Hi All,
> >
> > I have been trying to execute command line utility "openstack" to
> > validate congress api's
> >
> > I am using python-openstackclient version 0.3.1 and latest master
> > (congress and congressclient) repos.
> >
> > when I try "openstack" command, I face below issue.
> > ===========================================================
> > root at controller:/usr/lib64/python2.7/site-packages# openstack
> > Traceback (most recent call last):
> > File "/usr/bin/openstack", line 6, in <module>
> > from openstackclient.shell import main
> > File "/usr/lib64/python2.7/site-packages/openstackclient/
> > shell.py", line 29, in <module>
> > from openstackclient.common import clientmanager
> > File "/usr/lib64/python2.7/site-packages/openstackclient/common/
> > clientmanager.py", line 197, in <module>
> > 'openstack.cli.extension',
> > File "/usr/lib64/python2.7/site-packages/openstackclient/common/
> > clientmanager.py", line 164, in get_plugin_modules
> > __import__(ep.module_name)
> > File "/usr/lib64/python2.7/site-packages/congressclient/
> > __init__.py", line 19, in <module>
> > 'congressclient').version_string()
> > File "/usr/lib64/python2.7/site-packages/pbr/version.py", line 72,
> > in version_string
> > for part in self.release_string().split('.'):
> > File "/usr/lib64/python2.7/site-packages/pbr/version.py", line 64,
> > in release_string
> > self.release = self._get_version_from_pkg_resources()
> > File "/usr/lib64/python2.7/site-packages/pbr/version.py", line 57,
> > in _get_version_from_pkg_resources
> > return packaging.get_version(self.package)
> > File "/usr/lib64/python2.7/site-packages/pbr/packaging.py", line
> > 863, in get_version
> > version = _get_version_from_git(pre_version)
> > File "/usr/lib64/python2.7/site-packages/pbr/packaging.py", line
> > 804, in _get_version_from_git
> > git_dir = _get_git_directory()
> > File "/usr/lib64/python2.7/site-packages/pbr/packaging.py", line
> > 224, in _get_git_directory
> > return _run_shell_command(['git', 'rev-parse', '--git-dir'])
> > File "/usr/lib64/python2.7/site-packages/pbr/packaging.py", line
> > 213, in _run_shell_command
> > env=newenv)
> > File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
> > errread, errwrite)
> > File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
> > raise child_exception
> > OSError: [Errno 2] No such file or directory
> > =========================================================
> > Even if I upgrade python-openstackclient to 0.4.1 , same issue.
> >
> > Could you please help me in identifying this issue?
> >
> > Thanks and Regards,
> > Srinivas._______________________________________________
> > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > Post to : openstack at lists.openstack.org
> > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141205/5d2012ec/attachment.html>
More information about the Openstack
mailing list