openstack provider only caches instance on first execution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-keystone |
Fix Released
|
Undecided
|
Javier Peña | ||
Juno |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The instance method for several types (e.g. keystone_tenant) using the openstack provider only caches the instance on its first execution, which does not account for potential changes to the tenant. The following snippet should create a tenant and a Neutron network associated to that tenant:
keystone_tenant { 'test1':
ensure => present,
enabled => true,
description => 'default tenant',
}
neutron_network { 'test1-network':
ensure => present,
router_external => true,
tenant_name => 'test1',
}
With the old keystone provider, test1-network was correctly associated to the tenant, while it is not with the new. Looking at the way puppet-neutron gets the tenant-id from the tenant name:
def self.get_
instance_type = 'keystone_tenant'
instance = catalog.
if ! instance
instance = Puppet:
end
end
if instance
return instance.
else
fail("Unable to find #{instance_type} for name #{name}")
end
end
Since Keystone_
Changed in puppet-keystone: | |
assignee: | Colleen Murphy (krinkle) → Javier Peña (jpena-c) |
Changed in puppet-keystone: | |
milestone: | none → 6.0.0 |
Changed in puppet-keystone: | |
status: | Fix Committed → Fix Released |
Changed in puppet-keystone: | |
status: | Fix Released → Fix Committed |
Changed in puppet-keystone: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/156503
Review: https:/