Running glance without defining some env variables leads to AttributeError

Bug #1384759 reported by Oleksii Chuprykov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Oleksii Chuprykov

Bug Description

For example,
oleksii@ubuntu:~/devstack$ glance --os-username=admin --os-password=admin --os-project-name=admin image-list --sort-key=name --sort-dir=desc

Output:
'Namespace' object has no attribute 'project_domain_name'

Steps to reproduce: run any glance command without defining such variables: --os-tenant-id, --os-tenant-name

Changed in python-glanceclient:
assignee: nobody → Oleksii Chuprykov (ochuprykov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/130571

Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/130571
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=bd73a5482ca8174b6ac83b26ae09cac0e82a468e
Submitter: Jenkins
Branch: master

commit bd73a5482ca8174b6ac83b26ae09cac0e82a468e
Author: Oleksii Chuprykov <email address hidden>
Date: Thu Oct 23 18:12:23 2014 +0300

    Add os_ prefix to project_domain_name/id

    Running glance without defining --os-tenant-id and
    --os-tenant-name leads to AttributeError. Add os_ prefix
    to project_domain_name and project_domain_id because args
    object doesn't have them

    Closes-Bug: #1384759

    Change-Id: Id85569aad538efcf327312d9936bb6463279ce34

Changed in python-glanceclient:
status: In Progress → Fix Committed
Louis Taylor (kragniz)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
Revision history for this message
Mingyu Li (mingyu-li-cn) wrote :

I still face this problem when use python-clientglance installed form the kilo repository on ubuntu.

Revision history for this message
Mingyu Li (mingyu-li-cn) wrote :

I used "apt-get install python-clientglance".

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.