nova client requires NOVA_VERSION in environment

Bug #920474 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

It seems that nova-client is currently busted.

#!/bin/sh
export NOVA_API_KEY="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
export NOVA_USERNAME="smoser"
export NOVA_PROJECT_ID="smoser_project"
export NOVA_URL="http://mynova:8774/v1.0/"

[ -n "$PDIR" ] &&
   export PYTHONPATH=$PDIR && PATH=$PDIR/bin:$PATH
exec "$@"

$ ./ngo nova image-list; echo $?

1

$ git clone https://github.com/rackspace/python-novaclient.git trunk.git
$ cd trunk.git
$ PDIR=$PWD ../ngo nova image-list > out
$ sed -n '1,5p;6s/.*/../<snip>/p;$p' out
+-----+------+----------+--------+
| ID | Name | serverId | Status |
+-----+------+----------+--------+
| 1 | None | | ACTIVE |
| 2 | None | | ACTIVE |
<snip>
+-----+------+----------+--------+

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-novaclient 2012.1~e3~20120111.452-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-10.17-generic 3.2.1
Uname: Linux 3.2.0-10-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Mon Jan 23 09:26:30 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-novaclient
UpgradeStatus: Upgraded to precise on 2011-11-07 (77 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

adding '--version 1.1' or '--version 2' to the nova command line works around issue:
  nova --version 1.1 image-list

Revision history for this message
Scott Moser (smoser) wrote :

I can't submit upstream openstack fixes at the moment (waiting on membership to openstack-cla group).
Attached is the patch that I think makes sense, and passes for me.

Scott Moser (smoser)
summary: - nova client does not work on ubuntu
+ nova client requires NOVA_VERSION in environment
Revision history for this message
Scott Moser (smoser) wrote :
tags: added: patch
Dave Walker (davewalker)
Changed in python-novaclient (Ubuntu):
importance: Undecided → Medium
tags: added: rls-mgr-p-tracking
Revision history for this message
Scott Moser (smoser) wrote :

Marking fix-released per inclusion in essex release (12.04).

Changed in python-novaclient (Ubuntu):
status: New → 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.