Currently, the keystone providers ignore the output of the create
command even though it provides much-needed information. This is a
problem because if during the course of the puppet run that
information is needed again, it must make another API request for it.
This is especially problematic with the neutron providers, which
instead of looking up the information via the API, look it up in the
catalog. Since a keystone resource does not specify its ID upon
creation, it reports it as nil, causing the neutron providers to
silently fail when they need the ID of a keystone resource.
This patch corrects the problem by saving the output from the create
command in the @instance variable so that it is known to that
resource and can be retrieved by other resources.
Reviewed: https:/ /review. openstack. org/156503 /git.openstack. org/cgit/ stackforge/ puppet- keystone/ commit/ ?id=9a32c026ae2 8b56ac29edc6588 32fe4691ebe44e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9a32c026ae28b56 ac29edc658832fe 4691ebe44e
Author: Colleen Murphy <email address hidden>
Date: Tue Feb 17 00:17:40 2015 -0800
Create resource cache upon creation
Currently, the keystone providers ignore the output of the create
command even though it provides much-needed information. This is a
problem because if during the course of the puppet run that
information is needed again, it must make another API request for it.
This is especially problematic with the neutron providers, which
instead of looking up the information via the API, look it up in the
catalog. Since a keystone resource does not specify its ID upon
creation, it reports it as nil, causing the neutron providers to
silently fail when they need the ID of a keystone resource.
This patch corrects the problem by saving the output from the create
command in the @instance variable so that it is known to that
resource and can be retrieved by other resources.
Alternative to https:/ /review. openstack. org/#/c/ 154812/
Change-Id: I2090f5f4a94a6a e21bf71ac0f1b33 caaa602e0bc
Closes-bug: 1421573