Commit Graph

24 Commits

Author SHA1 Message Date
Ghanshyam Mann b4f5c8f670 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: Icfd5b97688d8906e0b873065a6e5f80cb63df451
2024-02-17 20:50:10 -08:00
Lance Albertson 8f5801890f Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: Id30919fdf1e52405001abe964f434123c867f717
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:19:17 -07:00
Lance Albertson cb26946e73 Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/neutron/neutron.conf] and
  template[/etc/neutron/metadata_agent.ini] to resources improve security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Update lbaas recipe to use v2 agent driver.
- Add recommended configuration settings to neutron.conf based in Stein
  installation docs.
- Remove any resources that define the default action.
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Manage /etc/neutron/neutron_lbaas.conf so we can set service_provider
  properly.
- Add some missing ChefSpec tests.
- Configure neutron_lbaas.conf on Ubuntu in a manner that allows it to properly
  pull in the configuration via the --config-dir option. This is due to the fact
  we need to set an additional [service_providers] service_provider line and we
  can't do that with hashes.
- Remove FWaaS as it's unmaintained upstream.

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706151
Change-Id: Id29884766440d37fa18fd62f3f93eecc22224d51
2020-03-23 14:23:34 -07:00
Lance Albertson 1c40ad731e 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.

Additional fixes:
- Pull in openstack-network::ml2_core_plugin in server spec so that we get the
  default attributes set
- Remove unused shared_examples

Speed was improved from 4 minutes 18.7 seconds to 1 minute 2.73 seconds

Change-Id: Ib10a6828e6886a57527a5e5a506cc57364ec0c2a
2020-01-07 09:55:25 -08:00
Samuel Cassiba 22d034d20a starting rocky development patch
Change-Id: I4d16b90987e8fb6569ff8775694868e2ad91eeef
2018-08-03 06:41:32 -07:00
Samuel Cassiba 25349d6187 Fixes for Ocata, style and lint fixes for chefdk
- Corrections made to db_migration for Ocata
- Style and lint fixes for newer chefdk
- Rewrote metadata.rb for readability
- Added some defaults from the linuxbridge documentation for Ocata
  in an attempt to get virtual networking functional out of the box
  https://docs.openstack.org/ocata/install-guide-ubuntu/neutron-controller-install-option2.html

Change-Id: I16d6f892f325a80eb3eabd10110177246b63663f
2017-08-10 16:09:18 -04:00
Jan Klare 2ec770de11 refactoring final step
* added new logic to render plugin templates
* refactored recipe names to be more consistence
* moved version up to 13.0.0 for mitaka release
* removed suse as supported platform
* added verisionbumb for refactored os-identity and common
* adapted optimized endpoint logic
* added endpoint attributes to fit new endpoint logic
* adapted the specs (unit tests) to work again
* refactored attributes throughout all recipes that were connected to the
  attributes used for the neutron.conf.erb template to adapt the new template
  attribute syntax
* removed some attributes that were set to non default values, since the
  defaults from neutron cloud and should be used instead
* moved all attributes form attributes/default.rb that were used in
  neutron.conf.erb to attributes/neutron_conf.rb
* refactored attributes to fit new template logic
* refactored recipes/default.rb to fit new template logic
* removed all attributes set to default values in attribtues/default and
  template
* replaced static plugin logic and templates with new config logic, following
  the same principles as for neutron.conf
* renamed recipes to fit attributes and actual service names
* added recipes for ml2_core_plugin, ml2_openvswitch and ml2_linuxbridge as well
  as a recipe for the creation of all plugin configs (plugin_conf) like plugin.ini

Change-Id: I9cc1b5cc069987ac83e064322c2291772505ff5f
Implements: blueprint cookbook-refactoring
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
2016-02-08 10:44:13 +01:00
Mark Vanderwiel b49df0cb25 Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: I364d902de5943c9bbf55eca6c5f76fb7fef64162
Partial-Bug: #1467662
2015-06-24 13:50:16 -05:00
Mark Vanderwiel 095db20713 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: I6451b7593f36287d4efe4d7542f97d0a090fb1d1
2015-05-29 12:56:08 -05:00
Jan Klare ae7a80fcd4 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- replaced Runner by SoloRunner in specs

Change-Id: Ic99092a33eeaa57dc7083c892bca729735bebdf7
2015-04-29 10:21:23 +02:00
gekun e7761b347f Make the metadata_workers attribute in metadata_agent.ini configurable.
The default value of metadata_workers in metadata_agent.ini is half of the
number of CPU cores in the computer system. The value will be large only if
there are many CPU cores, which may not be necessary. It should be acceptable
to make this attribute configurable, which follows what has been done for
api_workers and rpc_workers in neutron.conf.

Change-Id: I823b485d72fb74c13e4bce221a256cfed6770d65
2015-04-22 02:04:36 +00:00
Mark Vanderwiel 53366aac19 Use identity_uri_transform for identiry_uri support
Remove deprecated keys and use identity_uri via the new transform
helper method.

Also, cleanup specs for endpoint testing to make sure Common is
fully tested.

Change-Id: Iad3da2be74823b8d706eb9b4e12311cbf655ab7f
Implements: blueprint identity-uri
2015-04-07 01:30:23 +00:00
Mark Vanderwiel 6ec0caf181 Add compute metadata api to common endpoints
Nova metadata api endpoint was missing from common endpoints.
This patch will be follow by one for compute and network to
make use of these new endpoint.

Change-Id: Ie3e9f27f7d6eec4f4ebb0b1dbebd0b12a03a0b65
Partial-Bug: #1425633
2015-02-25 17:25:35 -06:00
Federico Gimenez Nieto 424ce1db27 Added missing template tests and checked existing ones (II)
Covers lbaas_agent.ini.erb, metadata_agent.ini.erb, neutron.conf.erb,
neutron-server.erb, neutron.sysconfig.erb and rootwrap.conf.erb
Change-Id: Ie5c1bf67f57f4db554ba341d02732061a1f2c97c
Partial-Bug: #1328999
Implements: blueprint add-template-tests
2014-09-23 14:50:46 +02:00
Mark Vanderwiel 904016e6e8 Allow packages to be updatable
In order for package updates to occur, package resources need to use
the upgrade action.  This is first phase of blueprint, to get some
consistency, next phase is to allow some update control.

Change-Id: I86750067b47766220f497303b2e187c93aeadc2f
Implements: blueprint allow-package-updates
2014-05-06 10:38:01 -05:00
galstrom21 4b6b5ee4ce Refactor ChefSpec tests
Change-Id: I0f1f3ea7b0bb1cefaf88277e8163dd9ceb561a60
Addresses: blueprint refactor-spec-files
2014-04-09 22:43:44 -05:00
Stephan Renatus 615b4ef2cd Subscribe Neutron agent services to neutron.conf
Before this change, a change to neutron.conf would not cause any agent
to restart. I doubt this was intended, since for example changing
rabbitmq stuff in neutron.conf really needs the agent to restart to have
any effect.

Furthermore, the balancer recipe subscription/notification logic has
been changed to fit in line with the other agents, i.e. having the ini
template notify the service and the service subscribe to neutron.conf.

Change-Id: I2d5b20a13945fb8a360b81091e68e0fcf5748e93
Closes-Bug: #1300076
2014-03-31 10:19:20 +02:00
Andy McCrae 12a59ac3d0 Utilise ['openstack']['region'] from cookbook-openstack-common
- Set ['openstack']['network']['region'] to equal ['openstack']['region']
- Add test to override the endpoint region and confirm it is used

Change-Id: I68463f8cad7c424115ad75a39068c880ad3d3ef9
Addresses: blueprint uniform-region
2014-02-20 18:34:59 +00:00
Paul Czarkowski 61d2267d75 rubocop compliance
all cops now pass except for the following
(which are silenced in .rubocop.yml )

* LineLength, MethodLength: not sure if we care about these
* WordArray: I prefer [] vs %w{} for readability.

Conflicts:
	metadata.rb
	recipes/common.rb
	recipes/openvswitch.rb
	spec/openvswitch_spec.rb

Change-Id: I92996b5db9f292e9ba93c7619ca727ffa92ddd71
2014-01-13 14:02:31 -06:00
gengjh 0f7feef177 Upgrade to Havana release
Also upgrade gems:
- berkshelf, ~> 2.0.10
- chefspec, ~> 3.0.2
- foodcritic, ~> 3.0.3
And update the DEPRECATION keywords

Change-Id: I203124c42cccd0c96b40518bc71006b731b2edee
2013-12-17 18:03:55 +08:00
gengjh 6cda0639c3 Support neutron configuration
Since in OpenStack Havana release the Quantum project was renamed to the
Neutron, for the cookbooks we also need do the same things to support
the Neutron. I do the %s/Quantum/Neutron/g in all the files under
cookbook-openstack-netwrok. It will effect other cookbooks:
openstack-compute, openstack-ops-database which should be covered in
others patches.

Implemented: blueprint neutron-support

Change-Id: I59f3f2d8dfad678f70b97d4cbc4e10dfa163e9b2
2013-12-13 22:37:04 +08:00
paulczar 2843fcce6e only run recipes if quantum or neutron
* now with working tests
* negative tests for when nova
* version bump

Change-Id: I90ffb0abcf8b551c5ce69d031fa2fccf54df97dc
2013-12-02 15:14:18 -06:00
John Dewey 4c428ad08c Bug fix pyparsing upgrade for python quantum client
The python-quantumclient package may not include the correct
version of pyparsing in its dependencies, requiring us to
ensure that it is upgraded to the latest version prior to usage.
Needed to correct tests to pass openstack-common 0.4.0 changes.

Change-Id: Ia8507a5fe94322ff3106d12d161dcedf2ee19fdd
2013-08-12 17:53:29 -07:00
Alan Meadows 7b7da095c2 Add metadata_agent recipe
Change-Id: Ib8107816ea2f3187b7634cb05e0720bf2177051d
2013-08-05 09:03:53 -07:00