Commit Graph

90 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 86951caf29 Chef 17 support
- Update copyright years
- Require Chef >= 16.0
- Loosen deps slightly

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/814052
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-dns/+/814059
Change-Id: Ie86b894dafb8f13f0755adf41d10c35213db3e83
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 13:02:48 -07:00
Lance Albertson 5e0d2bd9d3 Remove bind cookbook from Berksfile and fix version pin
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, update cacert which is shipped in the python requests package on
RHEL to work around expired LetsEncrypt root certificate.

Depends-On: https://review.opendev.org/813719
Change-Id: Id537867e47ed54c7028abf7037b251077e57de64
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-13 15:23:47 -07:00
Lance Albertson bd5d493b45 Loosen version pin to bind cookbook
They still haven't released the cookbook however they've updated the release to
3.1.0 which is breaking tests globally. This should resolve the issue.

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/800815
Change-Id: Ie196f920b9431392e3c0d44eb97ee6e6685719db
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-14 10:49:42 -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 9f7b019ada Chef 16 updates
Depends-On: https://review.opendev.org/747752
Depends-On: https://review.opendev.org/747557
Change-Id: I986de1516de71ff578cb8c9e70f8afb49c0347e9
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:46:43 -07:00
Lance Albertson cb7643daef Updates for Train
Changed:
- Update release to train
- Fix ChefDeprecations/LogResourceNotifications in run_tempest recipe and use
  notify_group instead.
- Require Chef >= 15.8 since we're using notify_group now

Removed:
- Unused rubocop rules

Change-Id: I74963bd15968500f11bb70fed85eaa39381495d3
Depends-On: https://review.opendev.org/731859
Depends-On: https://review.opendev.org/731877
Depends-On: https://review.opendev.org/731860
Depends-On: https://review.opendev.org/731865
2020-05-29 22:06:48 -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
Lance Albertson 8ed82d41ad Updates for rocky
- Replace git.openstack.org with opendev.org
- Update some documentation
- Move README.md to README.rst for better rendering
- Drop obsolete bootstrap.sh script

Change-Id: I8fa06acd27a9705cd4eada9214c1fd2d9fed1c1c
2019-12-06 11:22:54 -08:00
Zuul 73be54e7f9 Merge "Update tempest installation" 2019-11-25 14:52:33 +00: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
inspurericzhang 269bad2103 Replace git.openstack.org with opendev.org
Also update the location of the openstackclient cookbook and make it
possible to test patches there as dependencies, too.

Change-Id: I19894b6f71d2a9aaf2ad0b7d93728fee862eb93c
2019-11-22 09:30:51 +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
OpenDev Sysadmins 53310d6c7d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:28:21 +00:00
Zuul 33cd025214 Merge "Pin setuptools and wheels packages" 2019-01-08 16:53:01 +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
ZhijunWei 443024b8e2 Change openstack-dev to openstack-discuss
Change-Id: I87af0e5744b639b9a2c53f8fb7bbb79deaf5674b
2018-12-04 23:21:03 -05:00
Samuel Cassiba 5ad76e9754 Rename openstack-chef-repo references to openstack-chef
Change-Id: Id496cb5f1cecd522d83558f98a2baac0ed2d7174
2018-08-06 21:49:56 -07:00
Samuel Cassiba 97d97f59b2 starting rocky development patch
Change-Id: I1c33766d32eff7e8dc1b3e653b94907d39fe9eb7
2018-08-03 06:27:17 -07: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
Zuul 2727d676ff Merge "Simplify identity endpoint" 2018-06-28 14:31:52 +00: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
XiaojueGuan 39b5a84868 Update links in README
Change the outdated links to the latest links in README

Change-Id: I7e5aa22efa7e50c60af8f6d4d64ad2cc72690cc7
2018-06-12 14:37:38 +08:00
Zuul 3e33e9985b Merge "Remove python_runtime references" 2018-04-16 14:37:46 +00:00
Samuel Cassiba fef11c3fb4 Add delivery config
Change-Id: I75bffaa62d70ba3f95d5a722cbf66f55d8b67dca
Implements: blueprint deprecate-rakefiles
2018-04-11 22:30:38 -07:00
Samuel Cassiba c23a6a1d91 Remove python_runtime references
In Chef 13+, resource duplication behaves differently. By centralizing
python_runtime to openstack-common, the resource executes once in a
given Chef run, instead of attempting to reinstall python multiple
times.

Change-Id: Ife452a1e21a82c877f4aceb85d768ed2f758e0de
2018-04-11 22:30:18 -07:00
Samuel Cassiba 9f7cb4d4de starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Depends-On: https://review.openstack.org/549341
Depends-On: https://review.openstack.org/549343
Depends-On: https://review.openstack.org/549345
Depends-On: https://review.openstack.org/549346
Depends-On: https://review.openstack.org/549348
Change-Id: I0ac10252dada252e027107b33e94e04fb02fdd4e
2018-03-06 12:27:37 -08: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
Zuul eb3b47cea7 Merge "Zuul: Remove project name" 2018-02-16 17:13:46 +00:00
James E. Blair d81d176e33 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: Ia4e1faabf35b0c5f46fdc431a52c88754f0abc5f
2018-02-14 21:35:05 +00: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
Jens Harbott 4cf5c849b2 Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: I320a65d20dbae5db701f164188871fa3dae93a5f
2017-11-02 10:40:17 +00:00
Roger Luethi c05b283229 Add recipes for kitchen testing
This changeset adds two recipes, create_network and run_tempest.
They implement parts of openstack-chef-repo's Rakefile for use in
kitchen testing.

Change-Id: I98706b1fc2c65a2359ca9b117a9491c0569514bd
2017-09-13 08:05:44 +02: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
Jan Klare c889c51093
starting pike development patch
Change-Id: I934bd53ed7d2ae8a783358eccfabe18f96296611
2017-08-17 14:19:26 +02: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
Lance Albertson a5bddb0812 Fix python development package name on RHEL
python-dev is not the correct package for RHEL systems and is instead
python-devel. It looks as thought this package is also installed in other places
for Ubuntu/Debian systems so this seems like logical to remove the duplicate
package resource.

Change-Id: Ifb6c439171ed6a65ba67cc6fe8076d2fa42da32d
2017-06-23 15:43:59 -07:00
Jan Klare c69306da58 add new Chef OpenStack Team Logo to README
Change-Id: I7b8683773c7c0287b5863074839166dcc49f66e8
2017-05-29 10:53:08 +02: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
Jan Klare 3beb5bb990 starting ocata development patch
Change-Id: I190f4be272e7f80fc52098d1843b97e6f6c6ae0b
2017-02-23 17:06:39 +01:00