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

Bug #1401154 reported by George Shuklin
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-glanceclient (Ubuntu)
Won't Fix
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.

Tags: patch
description: updated
Changed in python-glanceclient:
assignee: nobody → Sravani Maddukuri (sravani-maddukuri)
Revision history for this message
Sravani Maddukuri (sravani-maddukuri) wrote :

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?

Revision history for this message
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)
Revision history for this message
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
Revision history for this message
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.

Revision history for this message
Amandeep (rattenpal-amandeep) wrote :

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

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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
Revision history for this message
kangchunyang (1115680520-f) wrote :

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

Revision history for this message
Ian Cordasco (icordasc) wrote :

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

no longer affects: python-glanceclient
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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