Commit Graph

41 Commits

Author SHA1 Message Date
Ghanshyam Mann 48c554d385 Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: I55dedc984bf004dd1bebb28bef197a77a90e3925
2024-02-17 20:50:34 -08:00
Lance Albertson 25839992da CentOS 8 support
- Update packages for EL8
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/814234
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-ops-database/+/815139
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-ops-messaging/+/815137
Change-Id: Icf3119067dd4dd45291c0565d97b3fcc89ca3cac
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-24 12:25:54 -07:00
Lance Albertson d5ea08e31a Update to Chef Workstation 21.2.303
- Fixes for using the resolver 3.x cookbook

Change-Id: I5b0a6783f0602983baeaf8b0e9bb90f150212644
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:46:13 -08:00
Lance Albertson 6f6e3ec9fd Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: Id5721708ce05ab03f581ca14cf8b25e89da88b81
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:33:02 -07:00
Lance Albertson 87b4f83273 Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output
- Update Berksfile for cookbook-bind to point to upstream since the PR
  was merged, but not released (yet).
- Ensure systemd-resolved is stopped and disabled

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706158
Depends-On: https://review.opendev.org/706101
Depends-On: https://review.opendev.org/713762
Depends-On: https://review.opendev.org/706157
Depends-On: https://review.opendev.org/713285
Change-Id: I38d8707be687fee53e6f066e6e9bc80587e1e878
2020-03-20 14:41:43 -07:00
Lance Albertson 3b3e8721fe Adjustments for per-cookbook testing
This provides some updates so that this cookbook can be run for
individual cookbooks depending on whether or not various services are
enabled or not. This is useful if you're wanting to test just keystone,
and don't need glance or nova just to do that.

Some other changes:

- Update catalog_type for volume to 'volumev3' which matches what we
  provide (We may want to change this back to 'volume' at some point).
- Create orchestration recipe to assist with testing heat.
- Create dns recipe to assist with testing designate.
- Remove unused cookbook dependencies for compute, block-storage and
  identity. These should get pulled in automatically with how we setup
  the test environment in openstack-chef.
- Blacklist
  tempest.api.compute.servers.test_create_server.ServersTestBootFromVolume
  test from running due to an issue with our cinder environment.

Change-Id: I0eb2247f163132ef343bbcf6f4cc80326b9704d9
2020-01-29 21:59:42 -08:00
Lance Albertson 4c2082764b Improve ChefSpec test speed by enabling caching
This updates all references of let(:chef_run) to cached(:chef_run) to
speed up tests. By doing this, we have to create a new cached(:chef_run)
block whenever we need to adjust node attributes for testing.

Speed was improved from 1 minute 14.88 to 21.64 seconds

Change-Id: Iff9c0f56d17e8f2924b4126144ed116081278842
2020-01-06 12:31:26 -08:00
Jens Harbott a63d483b15 Update tempest installation
- Adopt for the use of python3 on Ubuntu
- Use the endpoint_type attribute
- Install recent tempest version
- Make sure to install matching requirements
- Adjust default tempest.conf to work in our minimal scenario

Change-Id: Ib413971c15d11cbb46befda55ffc28f3c16f2a8a
2019-11-22 13:08:13 +00:00
Lance Albertson 5fc3d0635b Fixes to support fog-openstack-1.x
fog-openstack-1.x already appends "auth/tokens" so we no longer need to
do that.  In addition, comment out endpoint type until this PR [1] gets
merged and released.

[1] https://github.com/fog/fog-openstack/pull/494

Depends-On: https://review.opendev.org/666176
Change-Id: I929722b032e37970fe74018e609b76c1682e0db9
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-03 16:57:46 -07:00
Lance Albertson d68cadb1a8 Drop poise-python in favor of directly installing python packages
The poise-python cookbook is no longer maintained by the upstream maintainer and
is causing lots of issues for the testing pipeline. Instead, install tempest
directly using pip via an execute resource.

Change-Id: I6991581056d6037eb269a6753b1af7e5c2ba7d90
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-15 11:47:24 -07:00
Jens Harbott ef8d213673 Update identity endpoint handling
- Use the internal endpoint like in the identity cookbook
- Drop the api auth version attribute

Change-Id: I99c55bcd4451d4cac2c127ccad0dc471fc641be0
2019-05-06 08:29:25 +00:00
Samuel Cassiba e84e56c8f2 Pin setuptools and wheels packages
In order to maintain consistency for pip versions, align pip, wheels,
and setuptools. Use OSA as a basis for consistency between deploy
projects.

Depends-On: I573bd84e1f15b6e9bda8ebb1d8e12fa66970757a
Change-Id: I123508ad8c65805f6d95abe5e592e7e761d63142
2018-12-10 21:00:25 -08:00
Samuel Cassiba 3ee1872f7f Use node.override for SSL resources
- HTTP is the default, but node.normal will not apply the HTTPS changes
  correctly without node.override

Change-Id: I123bb1baa37f540f908633f34693d4d7834032f1
2018-07-16 12:44:07 -07:00
Samuel Cassiba 9b67abe1d8 Simplify identity endpoint
Per the Keystone Install Guide[1] the admin endpoint is superseded in
favor of a single public endpoint. As a result, the admin endpoint is no
longer deployed by default.

[1] https://docs.openstack.org/keystone/queens/install/keystone-install-ubuntu.html#install-and-configure-components

Change-Id: I06d0f98e641a041ddc864f524858edc0cffbbbba
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:14:30 -07:00
Samuel Cassiba 10e64092dd Run discover_hosts after computes are added, before running Tempest
Change-Id: If1b300bdb4e1d9a5e1be2361c29816d75d368b91
2018-02-26 07:32:33 -08:00
Samuel Cassiba bf4b77133a Pin Tempest to 17.2.0 for Pike
17.2.0 eliminates random failures in Kitchen and CI

Change-Id: I503c7583dd1147b63a289e206de354d4bd4b56d7
2018-02-22 15:57:55 -08:00
Samuel Cassiba 72ad95ea4d Revert from packaged tempest to git, update image refs
- due to inconsistencies in RDO versus UCA packaging, Tempest performs more
  consistently from upstream git
- update cirros references to 0.4.0

Change-Id: I374497db1b602683f1f9c62489f523b18c50266c
Implements: blueprint modern-chef
2018-02-08 22:24:07 -08:00
Samuel Cassiba badb2eac3d integration-test refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- switched Tempest installation back to packages since it is now fresh enough for use
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- removed calls to GitHub for Tempest
- moved apt package_overrides to common cookbook

Implements blueprint modern-chef

Change-Id: Ia315e51d9ef3fd4677b65074cd7f18a47669208d
Depends-On: I5c5371eed12b282a527576822b270cce8b0e76a7
2018-01-11 20:45:56 +00:00
Roger Luethi 4c44ad5817 Remove domain role from tempest users
This patch removes the openstack_user resource with :grant_domain
action. A user is always created within a specific domain; such a
membership cannot be tacked on later. This resource gave the user the
role intended for their project for the domain (i.e., for the Default
domain instead of for the service project).

We add the domain_name attribute that creates the tempest users in the
desired domain. Note that this change needs a sufficiently recent
openstackclient cookbook -- otherwise the domain_name attribute is
ignored (which does not matter as long as the tempest users are to be
created in the Default domain).

Change-Id: I345826bc3dae80d25b8f8826c63c5914cf1c2db5
2017-11-13 15:08:28 +00:00
Roger Luethi 9bd4339b3b Remove superfluous role_name arguments
This patch removes the role_name when using openstack_user's :create
action (it gets ignored by the target method).

Note that the spec test would still pass if only the line in
identity_registration.rb (but not the test) were changed, because the
code that actually does grant the role to the resource is executed right
after user creation and before any tests check the resource for the
existence of the role_name attribute. In other words: if the argument
were required in a call but only supplied in another call, the spec
tests would not catch it. Something to watch out for.

Change-Id: I92b47cd0156e4146a40ca7be89c102a625b5bdf6
2017-11-13 10:39:19 +01:00
Samuel Cassiba fa8127ae6c Initial integration-test Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions

Change-Id: If9ef1641600ca2d4bea1e3b538304dd2f1d3651f
2017-08-25 09:46:46 -04:00
Samuel Cassiba f9274818dd Style and lint fixes for newer chefdk, deprecated Gemfile
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability

Change-Id: I7c2950270f88cc9d54de593460009c6741913796
2017-08-02 02:18:54 -04:00
Jens Rosenboom 76d7e264ee Fix setup of tempest virtualenv
- Untangle venv dir and git repo
- Install tempest into venv properly
- Install wrapper script to run tempest from venv
- Use latest stable cirros image

Change-Id: If64fd079a8955d417daa76d431959f0335280467
2017-03-03 08:25:08 +00:00
Christoph Albers 0725e015b9 Tempest fixes for Newton
- added venv for tempest
- added python_execute for install tempest
- added tempest dependencies (python / debian)
- added needed tempest.conf attributes (especially identity v3)
- removed tempest template
- refactored tempest template to use openstack-common strategy
- added tempest_conf.rb for easier configuration
- removed ruby_block to fetch image ids
- added static image ids

Change-Id: I0431f09c5898bc2a42b17d27b60592ed5d2a4353
Depends-On: I29fd680ca4b16160a015fbf809cdd81860df9eeb
2017-01-17 22:43:28 +01:00
Kyle Jorgensen 4a6f46749b Add support for https endpoint in auth URI
Since the 'scheme' for the identity endpoint is defined as a
node attribute, we can use this value when constructing the auth
URI in the tempest.conf

Closes-Bug: #1650364
Change-Id: Ieaadef347661547cb549870e42e2a0d92c722b8e
2016-12-28 13:43:22 -08:00
Jenkins 842c377cdf Merge "use_cookbook-openstackclient/identity_v3" 2016-10-18 14:46:40 +00:00
Christoph Albers 03b3ee079e use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- edited values to work with identity_v3
- rewrote specs to work again
- edited image_upload to work with domains

Change-Id: I88ea66da9e8c189208d7e69ecc38dcf502d518db
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: I2d404a424bd79a6e9b282304e21591fa33a48981
Depends-On: I2f339055883354c6a8a77daa7967ff279c4d18d9
Depends-On: I84f850f32f25a318c3ed3c7337a0dfa6f641a5fe
2016-10-07 12:10:58 +02:00
Samuel Cassiba 9f842b1acf Increment Ubuntu release to 16.04
- increments Ubuntu release to mock for Xenial tests. This is a cosmetic
  change that only affects unit tests.

Change-Id: I0e69bd2fb8469fca2bc246f6c042d0bf6268112b
Implements: blueprint newton-xenial
2016-08-29 08:49:10 -07:00
Samuel Cassiba 09a7de3b5e Style and lint fixes to support newer ChefDK
Change-Id: If08006279134ecaed1ab49c6dd6d51e5bcab7f88
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-06 13:55:10 -07:00
Jenkins 38c9252c98 Merge "Add Heat tests" 2016-05-24 09:06:06 +00:00
Mark Vanderwiel 0a5e2d64ab Add Heat tests
Enable Heat tests.
Create heat stack owner role.

Change-Id: Ic3f142772aae40eaa1fd1b78ae0d6921e9cf6e57
2016-05-10 00:48:24 +00:00
Mark Vanderwiel f73e592744 Deprecation cleanups
tentant to project changes.
minor unit test cleanups.

Change-Id: I0f7da600b6ae78fee8545d1559e0c789215a3b81
2016-05-09 13:09:22 -05:00
Mark Vanderwiel 5a86f23c2a Changes for tempest tests
Create and use  m1.nano flavor.
Disable volume snapshots.
Use local-net created in repo integration test runs.
Remove python virtualenv package, it contains old setuptools for centos

Change-Id: I42216a174930b17a4771e78c639da54e170a288c
2016-05-04 16:36:30 +00:00
Mark Vanderwiel fece8b5af2 Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: I9c2160bc329e6ee8f562b1a334dc6b5d2cf2eed4
Partial-Bug: #1467662
2015-06-22 15:52:16 -05:00
Mark Vanderwiel 133a49e150 Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: I94577ea628c4f6ee81f3f9dadb24309ca7c856a3
2015-05-29 10:20:01 -05:00
Mark Vanderwiel cb833f1573 Only clone tempest with depth of 1
For automation, there's usually no need to clone the entire
revision history.

Change-Id: I766fc0ef100376578daac985cb7a85a9a07dd6ed
Closes-Bug: #1455240
2015-05-14 17:10:20 -05:00
Jan Klare 72b60f01a2 replace Runner with SoloRunner to fix deprecation warnings
Change-Id: If16ac30f358fd64a27bf295fe54ea3ff9453ae64
2015-04-29 10:13:23 +02:00
Mark Vanderwiel b98e9b561a Move to rhel 7.1
rhel 7.0 is not EUS/LTS, need to switch to 7.1.

Change-Id: If76be546189b74c8d08d5e5bd5d28a6af9c34a0c
Related-Bug: #1438878
2015-04-22 10:40:44 -05:00
JJ Asghar bd109dbd1b This creates the role it doesn't by default
This allows integration tests to run.

Partial-Bug: 1433808

Change-Id: Id9cdca2f8718f0f000a82cab1ba8fd70462d6329
2015-04-21 10:54:18 -05:00
Jan Klare 1d5758fbee Automatic upload of needed image files to glance for tempest tests
This change adds an automated upload of the needed (here just a standard
cirros) images for the tempest integration tests.

Change-Id: I95e8c01703822c4adc6d1fbf369fc6fa1115406b
2014-06-13 15:40:19 +02:00
Matt Thompson 2debea8459 First pass at cookbook-openstack-integration-test
This first pass gets tempest installed to /opt/tempest, and sets up
necessary users for testing.  More work needs to be done on adding
correct configuration to tempest.conf and enabling different features
depending on what exists in the environment.  This will most likely
involve exposing everything via different attributes.

Since we checkout master of tempest, the cookbook assumes tempest
will be executed to use a virtual env.  This will hopefully safe-guard
us from future package-related issues.  Note that at the moment
the python virtual env does NOT build cleanly on RHEL 6.5.  According
to devstack, it appears that a number of work-arounds are required to
make tempest run on RHEL 6.5.

Change-Id: I08224d2f4784d2fc041a5806f221e7411d5b813a
2014-06-05 16:26:14 +01:00