Commit Graph

65 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 7a22416324 Remove bind cookbook from Berksfile
The bind cookbook has been migrated to the Sous Chefs and a new release has
finally been done which removes the need to have this in the pointer (which is
now broken).

In addition:

- Disable voting for other issues that need to be addressed
- Add CHEF_PRODUCT_NAME env var to kitchen.yml to allow users of Cinc to use it
  more easily

Change-Id: I2a58f3633f0e5cd2457ebcb09feaa3c848a7513c
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-12 18:05:00 -07: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
inspurericzhang 6f77318fce Replace git.openstack.org with opendev.org
Change-Id: I899a8d67e81a80a98ca5698ca18aa98cd4eeb6d6
2019-11-19 09:41:44 +08:00
Lance Albertson 5280706daa Refactor and update test-kitchen suites
This provides a large collection of updates and refactoring to improve
the development environment for the cookbooks using test-kitchen.

The primary change this provides is the addition of the 'minimal' suite
which replicates what the integration test jobs run in Zuul. This is
useful for testing and debugging issues that might be found during CI
jobs.

- Switch run_list to using roles to better match how the zuul jobs work
- Update to using Ubuntu 18.04 instead of 16.04
- Move all attributes from .kitchen.yml files to environments
- Update multi-node and dokken test-kitchen
- Use MariaDB 10.1 by default as 10.0 has been deprecated upstream for
  ubuntu 18.04. Also use OSUOSL mirror as it's more stable than
  upstream
- Don't disable EPEL on RHEL systems
- Synchronize attributes (within reason) between test-kitchen files
- Update roles run_list
- Create openstack_test cookbook and update /etc/apt/sources.list to
  OSUOSL mirrors to improve stability on Ubuntu

Change-Id: Ie6d7b56a78f7fadbd28e6d27a46446a46c3c5ebd
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-08-06 10:52:40 +00:00
Jan Klare f19d1d7dc4 use cookbook-openstackclient from official openstack git tree
Change-Id: I16165ba5e797078e32ce608b83067c6dfd87a755
2018-10-04 15:29:07 +00:00
Samuel Cassiba 929703e4b0 Use local copy of openstackclient if it exists
Change-Id: I024e4893fd67c245a00565930ac574eb3c6eed3c
2018-10-03 22:04:16 -07: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 16e1e62344 Re-add Designate cookbook
In the effort to import the dns and client cookbooks, the dns cookbook
reference was inadvertently left out.

Change-Id: Ibea92346c1d355db0bb71e1533e68168218a7af2
2018-07-11 22:55:33 -07:00
Samuel Cassiba 39f982d42a Update cookbook references for berkshelf
- cookstyle fixes to pass rake

Change-Id: Ice10e100468e3ad96e5b929350dae0cba73489b3
2018-06-06 09:08:04 -07:00
Jan Klare 4f374d32b9
use git.openstack.org for berks dependency resolution
Change-Id: I1d883ed812f571916cc24afe5dd1f85bedf2d557
2018-03-06 13:22:31 +01:00
Samuel Cassiba a317a117c8 Updated integration attributes and methods
- Implemented changes consistent with cookstyle
- DRY the environment files
- Added tempest recipes in minimal role; drop build-essential
- Corrected url for chefdk with current scheme
- Removed nova smoke test since this is handled by tempest and tends to fire
  before nova is available in integration

Implements blueprint modern-chef

Change-Id: I5c5371eed12b282a527576822b270cce8b0e76a7
2017-12-23 21:54:20 -08:00
Jens Harbott 0398e8f13c Add cookbook to deploy Designate service
Depends-On: I3407e698dd990661d280f25fc3de93aaa1477354
Change-Id: I633f115a49f2780de56ef627ed2ac9c0d07ba6c0
2017-09-12 09:04:23 +00:00
Samuel Cassiba 2873826b76 Refactored provisioning cookbook for Ocata, ChefDK updates
- changed to a more alive fork of statsd, as att-cloud/statsd has been stale
  for years
- renamed multi-node to multinode to be consistent with OpenStack
  naming conventions
- introduced network node in the multinode scenario
- bumped mysql2 to 0.4.5 to align with upstream
- removed nova cell setup helper since it is no longer needed

Change-Id: If4d4d45981c8895ca57cba9c34fa1eea4b8871e3
Depends-On: I950605f384405b55737af77bc4224f1e18fee8e1
Depends-On: I4c26aea78220eb20fc4e5e964af93414855df5f6
Depends-On: I3112615cec3dd80c63779d164893b4171773856c
Depends-On: I97b453fc419bfbf01679dadf39a256b1f0f99859
Depends-On: Iba9ba7110dfde7635edc6706ecbbafbdbb161002
Depends-On: Ie1d5f27a9cf8803044568a31e4dae7654b02c9a1
Depends-On: I7c2950270f88cc9d54de593460009c6741913796
Depends-On: I16d6f892f325a80eb3eabd10110177246b63663f
Depends-On: Ie61ae3ca685738fe1de98fc9223d3e39535ce000
Depends-On: I63e6680cec8b66e2ece2d2627c0b413f5d401317
2017-08-02 16:58:56 -04: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
Jan Klare 09f43b1c68 remove cookbook dependency version pinning
* cookbook version pinning should only happen in the cookbooks
themselves to avoid conflicts during integration-tests

Depends-On: Ic6b00a08ec29a9a7c04a72c743af5f756db45edf
Depends-On: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
Depends-On: Ib11ceab6a4192057904c0111074d41176144e2a3
Depends-On: Ib4b3b9b30487b9fcb6438b4f88d3642916f52208
Depends-On: I5a8802103373b59effd8db18502a83563c085414
Depends-On: I50df0befac140660d58eccb939d33a83edbb441c
Depends-On: Ic7a5e1c9191a9083125583c274c08b9335728c39
Change-Id: I12f8fc81d0fc4426325af8c8efe05ed1adb79c8c
2016-12-08 09:38:56 +01:00
Jan Klare 546d4289bc remove cookbooks from chef-repo that were not refactored and are not supported
anymore

* minor style fixes to pass rubocop (chefdk was bumped in another commit in
  common)

Change-Id: Id8de7ca218a98019f6d3f494c88deb774a23bb90
2016-08-29 17:33:38 +02:00
Samuel Cassiba 3ef72d6142 Update apache2 version
Switches from the master branch, to a supported release.

Change-Id: Ic16edc0f79ab69b39fd87cb4ef24b910133839eb
2016-03-29 12:34:25 -07:00
Jenkins aeffd17a1d Merge "Revert "fix branch for openstack cookbooks to stable/liberty"" 2016-03-17 15:19:20 +00:00
Jan Klare 1ed3f85844 Revert "fix branch for openstack cookbooks to stable/liberty"
This change was intended to be in the stable/liberty branch not in master.

This reverts commit 0ed07ceaca.

Change-Id: Ia0d7912ba9e92d8414f2dbbe6bae923be982bdc7
2016-03-16 07:58:21 +00:00
Jenkins ab047407e6 Merge "fix branch for openstack cookbooks to stable/liberty" 2016-03-16 00:29:19 +00:00
Jan Klare 0ed07ceaca fix branch for openstack cookbooks to stable/liberty
Change-Id: I0a23e41abe751dd00ba4cc4ab78c68ea713d39d5
2016-03-15 16:39:53 +01:00
Samuel Cassiba 261c35122a Remove locale cookbook from allinone role
The locale cookbook is broken on CentOS 7 and fails to converge.

Change-Id: I359e5dce2bdf9fbb65e31b20b04a41157b1b1198
2016-02-16 17:01:55 -08: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
Jens Rosenboom 013925d1ac Fix integration testing
The current setup breaks external connectivity for the test instance.
In order to avoid this, do not set the
external_network_bridge_interface. This will default to the external
network being set up on eth1.

After that, installation is still failing, add removing pre-installed
libvirt as a workaround for [0].

[0] https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1499199

Change-Id: If4dfaaa0a6aa089e395be6979d1b06cc70132645
2015-09-26 10:40:08 +02:00
Jan Klare 199f37f3b5 update apt and ceph cookbook versions
Change-Id: I687289759104d7b29ecb0542f065132d08326e4b
Depends-On: I4ddebafeba997ef2d4e39197f7cd2e74c9bb43c5
Depends-On: Ic58cbec9ba9ee7e5fb021b745a2dcd2d926332a0
Depends-On: I0709b1d961fb9871977b35602f6456bb5c26ee41
Depends-On: Ia0815db80e23e865771bced695067a5a95aa376e
Depends-On: Iac30fcbd7ce1abe0bd0acf0a730d96b1c6a217a4
2015-09-18 21:08:48 +00:00
JJ Asghar 87f7e2aa75 added 4.2.2 rabbit for the Ubuntu apt-force yes problem
Change-Id: I909b6851dc3ebcae5f14dceed41d391809285689
2015-09-08 05:42:06 +00:00
Samuel Cassiba 8484716322 Add mariadb to Berksfile
Change-Id: Iae010706a96008e612f37320e66dc14f424e98c3
2015-08-03 09:28:39 -07:00
Mark Vanderwiel e970f25b28 Pick up ssl ciphers fix in rabbitmq cookbook
from pull request: https://github.com/jjasghar/rabbitmq/pull/280

Depends-On: Ie803255049b44ceaa7e4715db2a5e4cc70a78c31

Change-Id: Ibc74640f9b8bf26815918e5c9da2c4245e691d31
Related-Bug: #1465846
2015-07-20 09:01:22 -05:00
Mark Vanderwiel 784c3cdba7 Minor cleanup to Berksfile
Remove the branch master as that is the default and it's not
done this way in any of the cookbook berksfiles, so this is also
more consistent, which is good.

Change-Id: I460daa0b2889d3f91759943ff33ef37249fb4dc1
2015-06-30 02:29:48 +00:00
Mark Vanderwiel 3fbdf1d0fc Allow keystone under apache
In order for keystone to get working under apache, we need a
later level of the apache cookbook, 3.1, which contains many
fixes.

Change-Id: I9493f048f6ccf2e385ce6b62195582370e2842d7
Implements: blueprint keystone-apache
2015-06-19 14:40:30 -05:00
Mark Vanderwiel 63d0246f02 Use latest version of rabbitmq cookbook
Change-Id: I2c9583afb7afaa9d88f86cbf902214b415615b3c
Depends-On:  I3ff70f636aa79d863d5915520cc086c14c0f6780
Partial-Bug: #1465846
2015-06-16 20:50:24 +00:00
Mark Vanderwiel 5eaa851302 Sync stackforge/cookbook* to openstack/cookbook* for repo cookbook
Change-Id: I372b911cf670820cf295fe17f1c6ccc84ff79743
Partial-Bug: #1465116
2015-06-15 09:05:06 -05:00
Mark Vanderwiel b99b94a852 New test_patch helper script
This tool allows a single patch to be tested against the chef repo.
It will to do job of cloning the repo, merging in the patch(s),
setting up the test and running it, basic queries and tempest.

Also enhanced the Berksfile to allow for easy local development.

Usage: chef exec ruby test_patch.rb help test

Change-Id: I32ba57c29f2f5caee0391ea791ffe10fe06caceb
2015-05-04 10:22:07 -05:00
Mark Vanderwiel 02d77a48f9 Bump rabbitmq and erlang versions
Newer versions allows erlang and ssl_ciphers.

Change-Id: Ifdb1b2a1b216b80c77a59f70c2785ea36f0cc868
2015-04-24 09:45:32 -05:00
Yuki Nishiwaki 63c48f49cb Conform to update of the cookbook-openstack-client
Berksfile is updated, because the cookbook-openstack-client is updated.
The update to be need to change Berksfile are following.
1. The name of cookbook was changed from "openstack-client" to
"openstack_client"
2. The dependency version of yum increased than 3.5.2, client cookbook requires 3.5.4.

Change-Id: I6393c815339800fdf0b2ca7c99d4c87caa176398
Closes-bug: #1447229
2015-04-22 19:18:12 +00:00
Samuel Cassiba 6e003ace66 DRY out the Berksfile
Since all core OpenStack cookbooks come from a single source, use
a loop for DRY

Change-Id: I29e898e355629eab0fda8a7981c2e74e9c5775b2
2015-04-19 09:16:44 -07:00
Mark Vanderwiel c0cbc44959 Update to pull in newer rabbitmq cookbook
Several minor fixes and enhancements have gone in that could be useful
in our testing.

Change-Id: Ife9c226bc151fc87c0c7cb7d6f562724e7c145a8
2015-04-13 15:41:34 -05:00
JJ Asghar 2deee806c5 Updated selinux cookbook
Upload the selinux cookbook

Change-Id: Ieb5f77dc55585e23e0772eeba4b8235bbc8cb7c7
2015-03-16 10:34:10 -05:00
wenchma 4bf0f904ff Fix version dependency inconsistency
openstack-client depends 'build-essential', '~> 2.1.3', so update
the version to satisfy the constraints.

Change-Id: Ib349c716edf4010a2095eb59c3303bf527d3a732
Closes-Bug:1428689
2015-03-05 23:28:09 +08:00
Mark Vanderwiel 03e2169504 Initial kilo updates
Change-Id: I9bbe279c526d58efbed4ce08f0557b5ab4639208
Partial-Bug: #1426424
2015-03-02 13:49:09 -06: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
Samuel Cassiba e029b6a1ad point berkshelf at supermarket.chef.io
bump versions in dependent cookbooks

Change-Id: Ia42a7828765e8ca711d80eac6992191d942e289e
2015-02-24 07:12:47 -08:00
Pierre RAMBAUD 28b6929bb2 Update rabbitmq and ubuntu versions
Reasons:
 - Rabbitmq cookbook in 3.0.4 return the following error:
 Error executing action `enable` on resource
 'rabbitmq_plugin[rabbitmq_management]'
 - Ubuntu 12.04 isn't the latest LTS version

Changes:
 - Update Rabbitmq cookbook to 3.10.0 in Berksfile
 - Change all occurences from 1204 or 12.04 to 1404 and 14.04

Change-Id: I364cb53cc73e567760d72e49df0e15105a66f2c7
2015-02-11 15:21:29 +01:00
Chen Zhiwei 9780e56900 Cleanup ceph cookbook, replace with upstream ceph cookbook
The stackforge ceph cookbook was replaced by upstream ceph cookbook,
so remove the roles defined in stackforge ceph cookbook and replace
with upstream ceph cookbook in Berksfile.

Change-Id: I2d12cb6c2c480a37ee1cfeaf5b76f068b6781160
Partial-Bug: #1409943
2015-01-20 18:07:44 +08:00
Jan Klare 5f023d7ee5 Updated berkshelf to 3.1.5
* Updated berkshelf from 2.0.18 to 3.1.5 in Gemfile
* Added supermarket source to Berksfile
* Pinned spiceweasel gem to 2.8
* Remove the unused knife-block gem

Change-Id: If2d801f86882fbd93b9ceb1f81f43ce7e57cbd43
Implements: blueprint update-berkshelf
2014-11-06 15:44:54 +01:00
Mark Vanderwiel a83f6bf1c9 Bump mysql and mysql-chef cookbooks to required levels for Juno
* Changes in ops-database for mysql
* Bugs in mysql-gem

Change-Id: I1ab3ec02993fd9ae3f8859815b63dc539a6b1e12
Partial-Bug: #1373523
2014-09-24 18:38:05 +00:00
galstrom21 569f4af706 Adding roles from cookbook-ceph
* Adding cookbook-ceph to Berksfile
* Updating infrastructure.yml
* Updated Gemfile.lock

Change-Id: I9f132efefdf5b78ea1a8d1ee66185c89e13713de
Partial-Bug: 1348324
2014-08-04 07:34:57 -05:00
Mark Vanderwiel b38b800d1b Setting up repo for master Juno Branch
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)

Change-Id: I7baf4f98780acc4dfee8b07466d8ecacbfee52d7
Partial-Bug: 1349865
2014-08-01 12:34:46 -05:00