Error creating AWS::IAM::AccessKey

Bug #1153397 reported by Steve Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Steve Baker

Bug Description

AccessKey.FnGetAtt is being called before the resource has been created, so the corresponding User also hasn't been created, which means the new resource_by_refid is (correctly) returning None.

  File "/home/steveb/dev/localstack/heat/heat/engine/template.py", line 145, in handle_getatt
    return resources[resource].FnGetAtt(att)

  File "/home/steveb/dev/localstack/heat/heat/engine/resources/user.py", line 202, in FnGetAtt
    res = self._secret_accesskey()

  File "/home/steveb/dev/localstack/heat/heat/engine/resources/user.py", line 172, in _secret_accesskey
    user_id = self._get_user().resource_id

AttributeError: 'NoneType' object has no attribute 'resource_id'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/24039
Committed: http://github.com/openstack/heat/commit/9060187b4d7df19fbcad1b7fddcb0108ca24ad4e
Submitter: Jenkins
Branch: master

commit 9060187b4d7df19fbcad1b7fddcb0108ca24ad4e
Author: Steve Baker <email address hidden>
Date: Mon Mar 11 17:05:44 2013 +1300

    Delay calling _get_user() until AccessKey is created

    Change-Id: I149909d9677f348edd415d3e5f37322b8ad33d28
    Fixes: bug #1153397

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: grizzly-rc1 → 2013.1
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.