puppet-tempest/lib/puppet/provider
Hunter Haugen 5ef9dc94b4 Fix tempest_*_id_setter to query the RAL and cache
The tempest_glance_id_setter previously would query the catalog for the
id of a glance_image resource with a given name. This doesn't work on a
split-node openstack where tempest is not on the glance host. It would
also fail horribly if glance-api.conf didn't exist.

The tempest_neutron_id_setter previously would query the instances of
neutron network IDs from the RAL once for every line in the tempest.conf
file if the network did not exist (because the cache would be nil).

Now they both query the RAL directly from the system, similar to how
tempest_neutron_id_setter did it but using Puppet::Resource.indirection,
but don't continue requerying for every line in the tempest.conf when
the given resource title doesn't yet exist, and tempest_glance_id_setter
raises a helpful error if the glance-api.conf file does not exist.

Change-Id: Icdca2c1a5f449b3fcda68d43a34452cd119303cb
2014-04-10 17:37:40 -07:00
..
tempest_config Switch to ini_setting for managing tempest.conf. 2013-07-01 13:07:47 +00:00
tempest_glance_id_setter Fix tempest_*_id_setter to query the RAL and cache 2014-04-10 17:37:40 -07:00
tempest_neutron_net_id_setter Fix tempest_*_id_setter to query the RAL and cache 2014-04-10 17:37:40 -07:00