neutron_subnet provider fails when a identity v2 tenant is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-neutron |
Fix Released
|
High
|
Unassigned |
Bug Description
I believe this is related to the naming convention change as part of https:/
The error message I get is:
Error: Could not set 'present' on ensure: Unable to find Keystone_tenant for name admin at 47:/etc/
Error: Could not set 'present' on ensure: Unable to find Keystone_tenant for name admin at 47:/etc/
Wrapped exception:
Unable to find Keystone_tenant for name admin
Error: /Stage[
Code that fails is:
$floating_net = 'net04_ext'
neutron_subnet { "${floating_
ensure => 'present',
cidr =>'10.122.6.0/24',
network_name => $floating_net,
tenant_name => 'admin',
gateway_ip => '10.122.6.1,
enable_dhcp => false,
allocation_
}
I've traced it down to https:/
The name returned here is 'admin::Default' which will never match 'admin'. So this breaks backwards compatibility when you upgrade between v2 and v3.
Changed in puppet-neutron: | |
importance: | Undecided → High |
Changed in puppet-neutron: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/244900 /git.openstack. org/cgit/ openstack/ puppet- neutron/ commit/ ?id=e7487aff3d7 d5814725c33af73 71d91929918517
Committed: https:/
Submitter: Jenkins
Branch: master
commit e7487aff3d7d581 4725c33af7371d9 1929918517
Author: Alex Schultz <email address hidden>
Date: Thu Nov 12 16:36:25 2015 -0600
Add workaround for v2 tenant names
The change (https:/ /review. openstack. org/#/c/ 226919/) to the naming
convention for keystone tenants has introduced an issue with some
neutron providers as they are no longer able to find the v2 named
tenants since the name returned from the keystone provider now
also includes the domain. This change adds a check to see if the name
matches the Default domain applied by default until support for a
resource without the domain set is removed.
Change-Id: I4c5b6b2b663a1d 08005369fa755ac 03b0603102b
Closes-Bug: #1515787