Commit Graph

37 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 2cf59c353a Update zuul config to not use the deprecated queue syntax
This is regards to the following email [1] which also references [2] with the
actual fix.

In addition, disable auto discovery as a workaround in setup.py [3]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html
[2] https://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html
[3] https://review.opendev.org/c/openstack/tripleo-quickstart/+/835192

Change-Id: I93b97525172f26a25e189661fc31ecd80b88395b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2022-05-19 14:54:16 -07:00
Lance Albertson b740947c11 Switch to CentOS Stream 8
Change-Id: I25825814d51c22333c5e1314ef56674558bd1f8b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2022-01-27 15:44:59 -08:00
Lance Albertson 7d2ecf253c CentOS 8 support
This adds support for testing CentOS 8.

- Update documentation
  - Add references to CentOS 8
  - Update genealogy to include latest releases
  - Update minimum Chef requirement
  - Add Bare Metal to list of cookbooks when creating a stable branch
- Include memcached in identity role
- Update InSpec tests for CentOS 8
- Ensure we install the yum package on rpm distros (required by Chef to
  run properly and is missing on the default image)
- Remove yum-epel attributes in integration since it breaks on EL8

Change-Id: Ie648432021325150fdd2fd7ab7f1af10bc69b655
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:29:33 -07:00
Lance Albertson 442dcab018 Chef 17 support
- Switch to testing Chef/Cinc 17 by default
- Remove testing Chef/Cinc 15 and require >= 16.0
- Update to testing with Chef Workstation 21.10.640
- Remove workaround with berkshelf

Change-Id: I3eb69389f73de86dc06d11ee935028297dbc0aea
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 08:25:30 -07: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 1f16b43c7d Re-enable voting
Change-Id: I64b0252b97a117e5e862a8e200f7ef085a5e3e1b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-14 14:56:42 -07:00
Lance Albertson e84e1be514 Disable SELinux for integration testing on RHEL only
We currently don't fully support SELinux so we need to disable it for now until
we get it fixed properly. Make this a variable so that we can change dynamically
later if we need to for testing purposes.

Temporarily disable voting until we get things working properly again.

Change-Id: Ib6dec3f6ea1cbc13d9c82d372b4f65f689adc0bc
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-14 10:59:55 -07:00
Lance Albertson 62c86ca3c1 Re-enable voting
Change-Id: I452bf181a5cfaee59b18750df3aaab9923a1de2b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-09-23 09:35:05 -07:00
Lance Albertson b70036a70e Re-enable latest Chef 16 builds
This requires a fix in cookbook-openstack-common that will depend on this patch
so jobs need to be disabled.

Change-Id: Ide2fefddcd79ad7ff9bbe748187b4fd4999a857a
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-09-21 10:50:36 -07:00
Lance Albertson b0076369c5 Re-enable voting
Change-Id: I74d9ee7d3739cf1a602c41c7691a4a328523d4d9
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-09-02 10:16:00 -07:00
Lance Albertson 0e1bbc88fc Chef 16 support
This adds support for testing both Chef/Cinc 15 and Chef/Cinc 16 which
are still supported upstream. For now this disables voting on 16 as we
have some known issues that need to be worked out first.

In addition, this updates to Chef Workstation 20.8.111 which includes
Chef 16 for spec testing. For now, let's only worry about doing unit
testing against Chef 16 and worry about integration testing to catch any
issues with Chef 15.

Also remove installation of the fog-openstack gem as it's now included
in Chef Workstation by default.

Change-Id: I191b14a295bf323ab37f5a97298f9f0594e8843c
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-25 10:24:05 -07:00
Lance Albertson 841565eb25 Re-enable voting
Change-Id: I7742aeedc1895295c42cc56ba0e57678e9edb7d8
2020-06-11 13:59:12 -07:00
Zuul a9e48de68e Merge "Add testing with the community built client" 2020-06-11 20:54:10 +00:00
Jens Harbott 967ea2bd5e Add testing with the community built client
Create a role for installing a chef-client implementation instead of
having it hardcoded within the pre playbook.

Create additional jobs running with cinc-client.

Change-Id: Ib6c592f684072f60962c1be5fccff035fd4c3459
2020-06-10 09:52:46 +02: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 8e80dcab4b Re-enable jobs
Change-Id: Ia54e36bcbee9e3688fa4e396de5af5d83632c335
2020-03-27 13:40:17 -07:00
Dr. Jens Harbott 5111603bb5 Start Stein development
- Update references from Rocky to Stein.
- Switch to using chef-workstation
- Exclude integration group from Berksfile. This is to ensure ChefSpec tests
  should always work regardless if we're working on integration related
  cookbooks that don't interact with those tests.
- Temporarily disable voting for integration tests due to cookbook version
  conflicts
- Add tests for openstack-common::etcd and openstack-common::completions
- Update tests for Stein
- Update OVS port to check
- Add tests for lbaas but only for kitchen, not for CI pipeline
- Add suite and tests for integration-test

Change-Id: Id451b08e361acc709879a65d0d92b35640a5dba9
2020-03-23 14:22:28 -07:00
Lance Albertson 1fe9d31295 Update tests for using newer mariadb cookbook
This updates the integration tests for the ops-database cookbook so that
it works properly with the new mariadb cookbook. In addition:

- Enable auto_correct for forwarded_port so we can run more than one
  instance at a time with test-kitchen
- Remove mariadb attributes that are no longer needed
- Temporarily disable voting on centos/ubuntu gates since this will
  require a patch from ops-database and we cannot create a circular
  dependency

Depends-On: https://review.opendev.org/710348
Change-Id: I215a777d255b4b5f9a3481f782a2b7b89f9c3a07
2020-02-27 19:05:50 -08: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
Jens Harbott 70a3478b80 Add a queue spec to our project template
All cookbook projects should use a shared queue for gating, so that
patches are merged in order and tested together.

Change-Id: I71da5029d7f6ffa9e9067eb1e3c32ef05cc0ab4b
2019-10-29 08:26:16 +00:00
Lance Albertson d3a307d917 Add CentOS 7 for integration check and gate jobs
I'd really like to re-enable integration tests for CentOS since we use
it quite a bit. This should also hopefully catch any issues that might
be missed.

Change-Id: I2be43a81c5c8d4e36253b740affe7223f7a54acd
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-07 22:14:03 -07:00
Jens Harbott d1d1139f15 Make integration job voting again
After the stack to move to using chef-client for the integration tests
has merged, we can make the integration job voting again.

Change-Id: If906f4e07c2afc6dbbf1784aecbb8f473ca62c86
2019-07-05 09:13:49 +00:00
Lance Albertson 9a1672a072 Install and use Chef Client instead of ChefDK on integration tests
Using the chef-client baked into ChefDK is causing issues with the
fog-openstack gem since it is locked in ChefDK. To work around this and
better mimic how this is used in production, switch the integration
tests to installing chef-client instead of ChefDK.

- Split out pre-run playbooks between delivery and integration (keep
  ChefDK for delivery)
- Install Chef 14 by default
- Install Berkshelf in Chef
- Install cookstyle which is needed in the Rakefile
- Update command paths so that berkshelf is available with Chef and
  ChefDK
- Update ChefDK to 3.2.30 but not higher due to issues with chefspec and
  apache2 [1]
- Upgrade fog-openstack gem to work around extraneous warnings to match
  cookbook-openstackclient
- Remove unneeded pip downgrade

[1] https://github.com/sous-chefs/apache2/issues/588

Change-Id: I0b0c2eb80dc0d831685cc7f69a1186a6148e6258
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-04 11:12:41 +00:00
Zuul a608b02128 Merge "Build a deploy-guide" 2019-04-05 15:31:58 +00:00
Jens Harbott 141190bc66 Adapt job timeouts
There were some integration tests running into timeouts while they were
almost finished, so let us increase the timeout for them from 1h to
90mins.

The openstack-chef-delivery job otoh takes only a couple of minutes
usually, so reduce the timeout from 45min to 30min.

Change-Id: I11601843293d1e0c04b4fafb8019261f20cb50ff
2019-04-04 13:59:43 +00:00
Jens Harbott a96d883066 Build a deploy-guide
Seems that since we are a deployment project, we should produce a
deployment guide rather than an installation guide. Using
what OpenStack-Ansible did as a guide.

Change-Id: I9740b7dbc8cf48c47e5bbc5d261f8736b00ee068
2019-04-03 13:27:22 +00:00
Jens Harbott 9e62a39913 Updates for Rocky deployment
OpenStack Rocky is only supported on Ubuntu Bionic, so we no longer can
run any sensible tests on Xenial.

- Update default mariadb version to 10.1

Depends-On: https://review.openstack.org/645119
Depends-On: https://review.openstack.org/645162
Change-Id: Ifcf73e49a77e497b19700566a3a13ebfc9ca9741
2019-03-21 12:48:44 +00:00
Jens Harbott 29ccb7ba1c Make integration jobs non-voting and version-pinned
The upstream base job has been switched from Xenial to Bionic, causing
our integration job to fail. Make it non-voting while we work on fixing
it and also introduce a job that runs on Xenial to ensure we keep
testing there.

Change-Id: Ie7981ee522f3b73bb62a2ce02ed247c2b7a33458
2019-03-14 11:25:57 +00:00
Samuel Cassiba 9cff721792 Switch to publish-openstack-docs-pti for openstack-chef
Change-Id: Ib8b074531ca712897e657d1959b4ab398f89ac60
2018-08-09 06:05:02 -07:00
Samuel Cassiba 5cf51b76f0 Finalize the move from openstack-chef-repo to openstack-chef
Change-Id: Ie97fe2af2a068f5c4a970fb45f24c162b705860c
2018-08-06 09:30:52 -07:00
Samuel Cassiba d37238a2d1 Use Chef Delivery to run verification tests
Chef Delivery is the command-line interface for workflow capabilities in Chef
Automate and the standard interface that Chef community cookbooks use for
verification.

Change-Id: I72a1775369f955901260173b061f28640055c808
Implements: blueprint deprecate-rakefiles
2018-07-12 12:01:28 -07:00
Jens Harbott 780c0d06e9 Add doc build job locally
We want to control the doc build locally, so we do not depend on changes
to project-config.

Also, since this is a greenfield thing, use python3 from the start.

Change-Id: I811d492fe4aa5525003820936e16d7be4632209c
2018-06-29 13:09:10 +00:00
Jens Harbott c383004130 Increase timeout for rake job
The default of 30 minutes does lead to timeouts on some smaller nodes and
larger cookbooks.

Change-Id: I2db0b355f666fe5fb61bce3788255ddc1e7a6f3f
2018-04-24 13:21:16 +00:00
James E. Blair 0e3e2a86cd Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I1ecc5a139199177e5bfd004e9f8354ff460567ac
2018-01-31 19:32:47 -08:00
James E. Blair 97f5fb4b5b Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated.  Update references
to include the extension.

Change-Id: I159084ce5a0181cc1a8dd3112762d2e7c05a14ae
2017-10-29 14:44:14 -07:00
Jens Harbott 577adaea35 Implement native zuul v3 tests
Change-Id: I5160ce88aefa2c5b70e4a4cb085867198e60b45a
2017-10-27 13:34:05 +00:00