openstack --help fails if clouds.yaml cannot be read

Bug #1541047 reported by Clark Boylan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Hideki Saito

Bug Description

Attempting to use the openstack client and the first thing I tried was the help flag, but that fails with:

$ venv/bin/openstack --help
[Errno 13] Permission denied: '/etc/openstack/clouds.yaml'

For most operations this makes sense as access to cloud credentials is required but they should not be required to print basic help info. Openstack client should just print the info instead.

Revision history for this message
Steve Martinelli (stevemar) wrote :

looks like a regression from when we switched over to occ

Changed in python-openstackclient:
importance: Undecided → Medium
Hideki Saito (saitou)
Changed in python-openstackclient:
assignee: nobody → Hideki Saito (saitou)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

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

Reviewed: https://review.openstack.org/279920
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=e5b8e08eb1322447940ced48b492fdc1e87399b2
Submitter: Jenkins
Branch: master

commit e5b8e08eb1322447940ced48b492fdc1e87399b2
Author: Hideki Saito <email address hidden>
Date: Sun Feb 14 14:06:49 2016 +0900

    Fix 'openstack --help' fails if clouds.yaml cannot be read

    'openstack --help' can display the basic information, even if
     openstack command does not have permission to read clouds.yaml.

    Change-Id: I7d5255c5ce3bd60af77fc70f433ca78dc011a79f
    Closes-Bug: #1541047

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-openstackclient 2.2.0

This issue was fixed in the openstack/python-openstackclient 2.2.0 release.

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.