Commit Graph

25 Commits

Author SHA1 Message Date
Ghanshyam Mann 0a53c4a961 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: Idb3769e91814eb7703a3a4787f485fab1caa97f8
2024-02-17 20:47:50 -08:00
Lance Albertson 89f4b5c1e7 Start Train development
Changed:
- Temporarily disable voting during development
- Update git URI for bind cookbook to use upstream master
- Renamed .kitchen.yml -> kitchen.yml
- Genealogy updated

Fixed:
- Idempotency with use of apt_update resource
- InSpec tests to work with Train
- Cookstyle

Added:
- Data bag for placement service
- Set deprecations_as_errors to true in kitchen.yml

Removed:
- Unused statsd cookbook in Berksfile
- Unused .rubocop.yml

Deprecated:
- LBaaS recipes and tests. This has been deprecated upstream.

Change-Id: I53a28de6aad000a246ff8f610b64dd5201c03b27
2020-06-08 10:59:07 -07:00
Lance Albertson cbc1b9bcf4 Refactor integration tests
This changes the logic so that we use the Berksfile in the cookbook
we're doing changes in instead of what's included in openstack-chef.
This should allow us to properly deal with cookbook dependencies in a
saner fashion with Gerrit without getting into depends-on hell.

This also required refactoring the Rakefile and roles used in Gerrit and
test-kitchen. Each cookbook now has their own role and test role which
includes specific Tempest configuration settings. This will require
updates in most cookbooks' Berksfile to include missing cookbook
dependencies such as ops-database, ops-messaging and integration-test.

Other major changes includes migrating to using InSpec for integration
testing instead of relying on simple commands included in the Rakefile.
I have replaced most of what was included in _run_basic_queries as
InSpec tests which also improves our coverage overall. Currently the
InSpec coverage is fairly basic and should probably include additional
tests, but in general it covers the following:

I've also added minimal non-voting jobs for both platforms so we can
catch any issue we might have missed downstream.

- Services are enabled and running
- Basic commands return sane output
- Openstack users, services and endpoints are correct

The all suites exclude running Tempest due to the fact that InSpec
doesn't have the ability to change the command timeout beyond 600
seconds [1] which is an issue I've run into. It's recommended to run
tempest manually when using test-kitchen.

NOTE: I haven't made any updates to the multi-node test-kitchen
environment in this patch and will plan on doing that later. I don't
believe this will break anything there.

Other various minor changes include:

- Replaced bare-metal cookbook with block-storage in minimal role
- Print out the command that run_command is going to run to help with
  debugging.
- Use different public_ip so that it doesn't interfere with people using
  10.0.0.0/24 locally (like me!).
- Add forwarded port to access Horizon
- Switch to using Chef 15 with test-kitchen
- Include log files from additional services that we were missing
- Add missing databag for aodh and telemetry_metric
- Include a real rndc key in the databag to assist with testing
- Use OSUOSL for EPEL mirror to work around public mirror issues

[1] https://github.com/inspec/inspec/issues/1675

Depends-On: https://review.opendev.org/703882

Change-Id: Idebc87ebb6acad7d0af222fb9025fefcb9bf5a1e
2020-01-30 10:10:45 -08:00
Lance Albertson e536f52ba2 Fix typo in openstack-bare-metal databag
It used 'openstac-bare-metal' instead of 'openstack-bare-metal'.

Change-Id: If780398073eb2b4a8d8fc865c15179a677d2e42e
2020-01-15 13:20:14 -08:00
Samuel Cassiba 8fa54db5cf Add ironic to integration
Depends-On: https://review.openstack.org/599690
Change-Id: Idb9a075381615e5ed99090764e1afd7f5eab09d9
2018-09-04 19:42:09 -07:00
Samuel Cassiba d248359638 Regenerate JSON artifacts
Depends-On: I72a1775369f955901260173b061f28640055c808
Change-Id: I35f35c402aff7c333d34f0d623b3d24595f59760
Implements: blueprint deprecate-rakefiles
2018-07-12 15:42:32 -07:00
Jens Harbott d7f40835d6 Add databag secrets for keystone credential tokens
These will be used in a patch for the identity cookbook to handle
credential tokens properly.

Required-By: Idabc34d101d9fb145a205acedf8f652ebec3ad9f
Change-Id: Icf0a8f644ddbfa61bfef124a772663e8af4e1f16
2018-06-28 10:54:29 +00:00
Roger Luethi cb70838708 Add heat_domain_admin user password to data_bags
Add user password for heat_domain_admin to data_bags to make kitchen
work again.

Change-Id: Ia5fd4011f4b96c32471e6f01eacc1c5a21d650b9
2017-10-12 16:51:18 +02:00
Stefan Hoffmann 2439bd903f move fernet keys
for using attribute for keystone fernet_keys the keys have to move
from data bag keystone to secrets

Change-Id: I06dc597f0503f399ed1369214e92b2acbc36c774
Depends-On: I286fbfe89395544d1f8d0139acca0d689e4737fa
2017-09-14 15:41:24 +02:00
Jens Harbott 0398e8f13c Add cookbook to deploy Designate service
Depends-On: I3407e698dd990661d280f25fc3de93aaa1477354
Change-Id: I633f115a49f2780de56ef627ed2ac9c0d07ba6c0
2017-09-12 09:04:23 +00:00
Jens Rosenboom 020c81d106 Update things for Ocata release
- Remove old workaround for oslo-privsep
- Set up nova cells
- Add databags for keystone fernet keys
- Drop ceilometer-{api,collector}

Change-Id: I256b9d4294282ede5235d6d86cf14d48667e9430
Depends-On: I8bc2eb5622b14457ef80cb70bf7a1d60c9fe9793
Depends-On: Ib87e9b5142b835c4be5e07b9d53e39b48b6f605e
Depends-On: I28c27caacc09a3e46eca135a6c4f5a841f4715f9
Depends-On: I77ac294fd8e1cd4e6bc39667ddfdea21c4daed8a
2017-03-30 14:28:36 +00:00
Jens Rosenboom 5a22e2dcc0 Add testing for nova placement-api recipe
The placement_api recipe is being added to the compute cookbook, so we
add an example data bag for it and include the recipe in the allinone
role that is referenced for integration testing.

Change-Id: Ie75d743a94973b2e9a37e1df8e7a0f691d3358f0
Depends-On: I1d1f1cc7046cb30a91894a0c884bc861d7f3dd95
2017-03-06 18:04:08 +00:00
Jan Klare e4870d3dab add telemetry to allinone setup, data bag items
- adds telemetry to allinone role
- add telemetry-related data bag items
- use database as default store until gnocchi packages work on trusty
- add some basic ceilometer api querys to Rakefile

Change-Id: I87ff3df0dc92b9e9f5c7abc06727b53be521d8c7
Depends-On: If513cb2715d8266845bd6541d12005edef70f11c
Depends-On: I432555c558adfd9db07b27acd15365e333a13dc2
2016-06-14 09:41:40 +02:00
Jens Rosenboom 8d1b74b24e Add databag for nova_api db_password
Change Idf6645064a1c2f337f542b29a026969c7d35efbe added a nova_api
database, we need the corresponding data bag for the integration tests
to work.

Change-Id: I4aa89315eb86166193cf3c389adfdd868736d5dc
2016-03-18 10:32:24 +01:00
Jenkins 22f99b219b Merge "Fix dashboard integration testing" 2016-03-10 20:41:22 +00:00
Jens Rosenboom 5f04755bed Fix dashboard integration testing
The data bags were using the wrong keys, leading to the generated files
being empty.

Set some more attributes to fix the generated apache config.

Change-Id: Ic61f5e20002628694ae11c8a9ba6ddfff607e581
2016-03-10 11:21:16 +01:00
Jenkins 960c05c54b Merge "add heat back to allinone role after refactoring" 2016-03-09 17:48:01 +00:00
Jan Klare 7fc714104b add heat back to allinone role after refactoring
* added orchestration recipes to integration test (allinone role)
* added heat queries back to basic_queries in Rakefile (were removed previously
  until refactore)

Change-Id: Ic1a1863343be0d0d21b66a804af18c67ee625ee0
Implements: blueprint cookbook-refactoring
Depends-On: I16a29e28068d106f0edcbe04cb529aabbbed1ac5
2016-03-08 10:55:54 +01:00
Christoph Albers ff8202a51e Added horizon data bag
* added horizon.key.json and pem for upcoming dashboard patch

Change-Id: I7a4279aa6b3cbcc60a334900cd8442fd76792896
2016-02-29 16:43:28 +01:00
Christoph Albers 4871bf1816 Moved mysqlroot
* moved mysqlroot for consitency with ops-database and common from
  user_passwords to db_passwords

Change-Id: I004180046900f502681cc7df70feec49148410fa
Depends-On: I0afb5942c38ed4e20037f553879de8e2c1a1f75f
Depends-On: Iae7e302973805af3cb44be1b29d0e61e76eb0aa0
2016-02-22 15:29:47 +01:00
Jan Klare 481af2f96a adaptions for refactored cookbooks in mitaka cycle
* added new test scenarion allione (and all the needed files for it)
* removed old test scenarios aio-nova and aio-neutron as well as multi-neutron
  and multi-node and the related files since they will not work with the
  refactored cookbooks
* removed databag items for currently untested service cookbooks
* modified Rakefile to use new test scenarios for local and jenkins integration
  testing
* adapted README and docs to fit new test setup and explain the new
  attributes/template logic (with TODO)
* adapted Berksfile to use the master apache2 cookbook to comply with the
  dependencies in identity and dashboard
* removed image_upload recipe since this is already done in the
  integration-test::setup one
* moved recipe integration-test to a different chef_run to allow all services to
  be restarted in delayed actions of first run before using them
* removed heat from the testing stack until refactored
* removed tempest unit tests 'run_tests.sh' from integration testing scenarion,
  since there is no need to run tempests unit tests in our deployment

Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I80ed8a7892b59f7fd582505445a31b0df8d68752
Depends-On: Ia7fd927f42f4a1e484e8f2d34c52b1dc6d0ce6dd
Depends-On: Ifd11f86c576d7dbb709bdd302d41e39e900e1b74
Depends-On: Ida408a025f1a3e6a632108a9a32877026e286116
Depends-On: Idadc97bd7380d6c4f9f6f33d9c6b1215a5f24772
Depends-On: I9ac9eeb29ab27f31394830e4b6f999d5870cc0e4
Depends-On: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
Depends-On: I9cc1b5cc069987ac83e064322c2291772505ff5f
Implements: blueprint cookbook-refactoring

Change-Id: Icf0921229e9473a842d7ce5706027d56229e11d4
2016-02-10 09:25:55 +01:00
Mark Vanderwiel fb1b9d8a1f Add heat into single controller roles
Keep flushing out our stack by adding heat into the default mix.
I look into adding a simple heat stack integration test with
another patch.

Fix length of heat auth_encryption_key to 32 chars

Depends-On: Ie8d62b449ec272f5cb7a06acdd54b3437aa57f98

Change-Id: I683aafcb060cdcb80ff7ccd025a5bd228c9b41c7
2015-10-02 14:56:13 -05:00
Mark Vanderwiel 51f8555d1e Add cinder storage to CI
create and attach a volume during the test
also added databag for orchestration secret

Change-Id: I97ba0776858b16257b91668fdc9515ffe604c3d1
2015-07-30 14:30:43 +00:00
wenchma d4c9172edf Add roles for cookbook openstack-bare-metal
* Adds cookbook-openstack-bare-metal to Berksfile
* Updates infrastructure.yml
* Adds the roles for openstack-bare-metal services
* Adds databag items for openstack-bare-metal

blueprint bare-metal-enablement

Change-Id: Id26509013d33757be65c5f1df6ac11cf33cb6552
2015-03-05 22:19:23 +08:00
Mark Vanderwiel 016a08eadc Update repo with new testing suite
The new testing suite is based upon Chef 12, Chef DK and
Chef Provisioning.  It supports all in one and multi node
environments.  It will be used as the base for future gate
integration testing.  There's is more work to as noted in
the TODO list at the botton of the readme.

Note: to get this thru the existing gate, had to keep the existing
Gemfile.  Added a Gemfile-Provisioning for new stuff and updated
readme with some notes on that.  When we make the switch to kilo
rake gates, we can decide what type of gates the repo needs. I think
it's ready for rubocop at least and maybe continue with something
like spiecweasel to look at the role and environment syntax.

Added draft bootstrap and test default to rubocop to rakefile to
allow for easy integration with new gate rake jobs.

Change-Id: I187df8b78c4cecfb783ab26a6b66b8e8dd6745bd
2015-02-26 15:09:06 -06:00