Error: "global name '_' is not defined" during glance image-create

Bug #1401154 reported by George Shuklin on 2014-12-10
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-glanceclient (Ubuntu)
Low
Sravani Maddukuri

Bug Description

python-glanceclient 1:0.14.0-0ubuntu1~cloud0

If unauthorized user run any glance commant, it reports:

$ glance image-create
global name '_' is not defined

This bug is only in juno version (ubuntu-cloud-archive), not reproducible in current git head.

description: updated
Changed in python-glanceclient:
assignee: nobody → Sravani Maddukuri (sravani-maddukuri)

Hi George Shuklin,

I have cloned the stable version of Juno using the below command:
git clone https://github.com/openstack-dev/devstack.git -b stable/juno

I am trying to reproduce this bug but not seeing it.

Can you please provide me more details on how to reproduce the issue?

George Shuklin (george-shuklin) wrote :

Hello.

I don't know about devstack, but it exists in current ubuntu/juno cloud archive: http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/p/python-glanceclient/python-glanceclient_0.14.0-0ubuntu1~cloud0_all.deb

Btw, bug is not in openstack (glance), but in python-glanceclient.

Changed in python-glanceclient (Ubuntu):
assignee: nobody → Sravani Maddukuri (sravani-maddukuri)
James Page (james-page) wrote :

Impacts in Utopic as well (source for Juno CA) - marking Confirmed

Other that the _ what's the direct impact of this problem?

Changed in python-glanceclient (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
George Shuklin (george-shuklin) wrote :

Main impact is user/operator's confusion in case of errors in command line or environment variables. Normally glanceclient should reports readable message about what's wrong, but this bug cause it to print strange message without clues.

Amandeep (rattenpal-amandeep) wrote :

i am able to create an image there is not any issue.

George Shuklin (george-shuklin) wrote :

@rattenpal-amandeep, if you can create image, than means you got your credentials set up.

Bug happens only if user have no credentials in the environment.

Tharanya (tharanya-s35) wrote :

I installed juno version of openstack. I got the error "Global name _ is not defined" when I run any glance command without credentials.
I made changes in /glanceclient/shell.py file and now it is working fine.

The attachment "1401154_glance.txt" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
kangchunyang (1115680520-f) wrote :

What should I do to solve the error "Global name _ is not defined"?

Ian Cordasco (icordasc) wrote :

This appears to only affect the UCA version of glanceclient, not the upstream version.

no longer affects: python-glanceclient
Corey Bryant (corey.bryant) wrote :

Thank you for reporting this bug. I've marked this as won't fix since the Juno cloud archive is no longer supported. The kilo, liberty, or mitaka cloud archives can be enabled on 14.04 with:

sudo add-apt-repository cloud-archive:kilo # or liberty, or mitaka
sudo apt update

Changed in python-glanceclient (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers