18 Commits

Author SHA1 Message Date
Chandan Kumar
4303ee2e7b Added manifests to install tempest from package
* Install tempest from distro package
* Create tempest workspace

Closes-Bug: #1549366

Change-Id: I9eef83bd56cd3b3a890dbdde34e1c317d4afa0e2
2017-01-31 11:17:05 +00:00
Javier Pena
74424c4a4b Enable Keystone v3 support for providers
tempest_glance_id_setter and tempest_neutron_net_id_setter were
previously using Credentialsv2_0, which do not work in a Keystone v3
environment (and that's what we should be using today).

Closes-Bug: #1633864

Change-Id: I95ea682064ff6365622fc31c562b42014fc52303
2016-10-17 17:12:45 +02:00
Sven Anderson
e1dcb9d6ae Create user and some fixes for ec2 credentials provider.
The ec2-api tempest tests need a non-administrative user. This change
creates such a user and uses it with the ec2 credentials provider.

Change-Id: I2a60bde92e8522362fefebc34c99cbb0346c6347
2016-10-10 14:22:20 +00:00
Sofer Athlan-Guyot
eb62b1e18f Fix ec2 credential provider.
The syntax for request was wrong.

Change-Id: Ic9964d5f145abb8ef37121ae94aea1084e4e2aa4
2016-09-16 15:25:14 +08:00
Sven Anderson
5d81f40301 Add provider for ec2 credentials
In order to run the the ec2api tempest tests, ec2 credentials have to
be created.  This provider creates the ec2 credentials and adds them
to the aws section of the tempest configuration together with some
static configuration that is necessary as well.  It also removes
service_available/ec2api parameter from tempest.conf, which actually
has no effect, since the ec2api tempest tests don't evaluate it.

Change-Id: Iab02a6f453de1a07cd059276cb46e23a4b0bb434
2016-09-09 17:45:49 +02:00
Javier Pena
62e9a74f09 Rename deprecated configuration options
https://review.openstack.org/301167 and https://review.openstack.org/185080
deprecated all Tempest configuration options including the "tenant"
term, and moved some options from the identity section to the auth
one.

Change-Id: Ibb29da9d543907063785256f8906199f111a38e4
2016-05-13 10:17:19 +02:00
Emilien Macchi
d26e970e88 deploy openstackclient and make our providers requiring it
* Deploy python-openstackclient, required by our providers to execute
  CLI against Glance & Neutron APIs.
* Require the package before trying to execute the providers.

Change-Id: I3b3523d947421583a8e926a2419055a5869291d4
2016-04-04 10:30:36 -04:00
Lukas Bezdicka
4a61da58d6 Switch id setters to openstack client
Switch tempest_glance_id_setter and tempest_neutron_id_setter to
use openstack client with credentials provided in tempest config.
This will allow to run puppet-tempest on standalone node but adds
dependancy to openstacklib.

Change-Id: I27215a9b0f94db39774e20515eddce4cffd7cadf
2015-11-30 16:35:02 +01:00
Sofer Athlan-Guyot
44dc670713 Bad configuration for glance/neutron setters.
When using the name of the network or the image the
tempest_glance_id_setter and tempest_neutron_net_id providers are used.
If the configuration is missing from the file, then they are just
appended to the file and they end up in the wrong block.

Change-Id: I5b525f643ab26cf1bd0f7d2bcaee9f45f55f0137
Closes-Bug: #1445251
2015-08-27 12:27:18 -04:00
Yanis Guenane
6c1d7f5620 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in tempest_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

tempest_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

tempest_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  tempest_config { 'DEFAULT/foo' : value => $myvar }
} else {
  tempest_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

tempest_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

tempest_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: Idb64253273ef5a1e4bc0311e1d5bb265a820b9b7
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 11:42:06 +02:00
Sebastien Badia
59fa10e72b Hide secrets from puppet logs
Currently secrets like rabbit_password or admin_password are laked

puppet logs when changed. This commit changes tempest_*_config and
tempest_*_ini types adding a new parameter that triggers obfuscation
the values in puppet logs.

Change-Id: Iba5b111584ddeefafc4aa1e8401f93ace2abd3be
Closes-Bug: #1328448
2014-07-22 13:12:53 +00:00
Attila Fazekas
792be887b6 removing the orphaned os_concat function
os_concat function not used anywhere in puppet-tempest.

Change-Id: I349b15edb669e9655a773ebb537cfbbd96b91e20
2014-05-30 07:41:23 +02:00
Chris Hoge
75324729ab Vendor concat function to support stdlib 3.2
Many installations are pinned to stdlib 3.2. This change vendors
the concat function from stdlib 4 until Puppet Enterprise
catches up. At that point the vendored function will be removed.

Change-Id: Ifae939292c7d03b62aa62f205109409c26e9503d
2014-05-02 14:26:45 -07:00
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
Maru Newby
666017e42e Rename quantum to neutron.
Change-Id: Ibacb9ef23b6b0f4480575139d4915b13c5a6b3ea
2013-08-07 11:42:33 -07:00
Maru Newby
beda52dcf9 Add support for configuring quantum.
Change-Id: Ia2043bfac86397cc02c015b7984b3ef62d75d050
2013-07-02 21:13:57 +00:00
Maru Newby
a60f362515 Switch to ini_setting for managing tempest.conf.
* The previous way of customizing tempest.conf was problematic
   for a number of reasons:

   - default values were being defined in the manifest and those
     values differed from the defaults in tempest.conf.sample.
     Defaults should be the province of the tempest maintainers,
     not the puppet module.
   - the use of templating meant that extra work would have to be
     expended maintaining the templates, not only for releases
     but also for the upstream master.

 * This changeset switches to using ini_setting to ensure that:

   - individual configuration settings can be set ad hoc, and
     the upstream defaults will be left alone if no value is provided.
   - tempest.conf can be sourced from the tempest repo sample rather
     than having to be maintained in the module.

 * Other included fixes:

   - removing unused glance uri configuration
   - consolidating the identity uri parameters into a single parameter,
     since that is how it is represented in tempest.conf

Change-Id: Idcdf7a1002a447b7d3ae909ca9043b8d7143c313
2013-07-01 13:07:47 +00:00
Dan Bode
647452f256 add native type tempest_glance_id_setter
this hacky native type has been added to
populate the glance config params with the ids
that are only available after glance images have
been remotely installed.
2013-02-15 15:34:35 -08:00