nova-manage project zipfile throws AttributeError

Bug #616312 reported by Márton Kiss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Vish Ishaya

Bug Description

Exporting credential with nova-manage project zipfile <project-id> <user-id> throws an AttributeError.

Traceback (most recent call last):
  File "bin/nova-manage", line 290, in <module>
    main()
  File "bin/nova-manage", line 282, in main
    fn(*argv)
  File "bin/nova-manage", line 210, in zipfile
    zip_file = self.manager.get_credentials(project_id, user_id)
  File "/home/martin/openstack/nova/nova/auth/manager.py", line 691, in get_credentials
    rc = self.__generate_rc(user.access, user.secret, pid)
AttributeError: 'NoneType' object has no attribute 'access'

auth/manager.py excepts:
def get_credentials(self, user, project=None):

but bin/nova-manage calls get_credentials with wrong parameter order (swapped project_id and user_id):
zip_file = self.manager.get_credentials(project_id, user_id)

Related branches

Revision history for this message
Márton Kiss (marton-kiss) wrote :

see the attached patch.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

thanks for the patch, committing for review

Changed in nova:
assignee: nobody → vishvananda (vishvananda)
importance: Undecided → Medium
Soren Hansen (soren)
Changed in nova:
status: New → Fix Committed
Eric Day (eday)
Changed in nova:
status: Fix Committed → 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.