Commit Graph

38 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 75e073a7b0 CentOS 8 support
- Update various packages for EL8
- Use platform family for installing dnsmasq
- ChefSpec updates

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: Ia566d70348f1245733b5074b3ad6e0bb30c3e405
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:33:19 -07:00
Lance Albertson f687f40c16 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/814051
Change-Id: I36f04f496425cd3d7a8a3f0f135e0d1bdcaf2ae5
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:40:56 -07: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
Samuel Cassiba 9de60304f4 Initial network Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions

Change-Id: I5dd1971392fdf282d0f214dfce9dcbecc18542a8
2017-08-25 09:57:18 -04: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
Samuel Cassiba f67ff76aae Deprecated python-neutronclient
- deprecated python-neutronclient references
- removed deprecated references to repoforge; use OS-provided package for dnsmasq
- removed neutron-client and client-packages

Implements blueprint newton-xenial

Change-Id: Idcb54b1ece38403dc4fc5dab758ddbdbab8ca968
2016-12-20 08:39:38 +00: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 2d463d69ec Fix dnsmasq centos for 7.1
Change the 6.5 dnsmasq checking to not include 7.1 which contains
the package fixes.

Change-Id: Ic9b8e2151f6218522dc592d3974073ea446559ac
Closes-Bug: #1483794
2015-08-11 10:25:36 -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
Mark Vanderwiel d98525a6c7 dnsmasq attributes defined in wrong order
Allow this to be skipped if version is nil.  Some
repos provide their own version of dnsmasq package.

Change-Id: Ibeb847613b4dabbe5e8570302feb7d0bfc8935b2
Closes-Bug: #1441310
2015-04-17 03:13:26 +00:00
Mark Vanderwiel c565a5e4e8 Trusty juno updates
* update spec platform versions
* remove dhcp build from source for precise

Change-Id: Id719f63650a01af8c60a6d91337718520d7d938d
Implements: blueprint trusty-juno
2015-02-03 11:47:42 -06:00
JJ Asghar 4808ba56fc Centos 6.5 and up has and old version of dnsmasq
This patch updates the version of dnsmasq so dhcp-agent
can start correctly. This was found attempting to start
the testing framework with centos and neutron. This is
not triggered if the machine is anything other than
centos and 6.5 and above.

Change-Id: I622e51f8f9f912ca7bc4185614b3098208d29d11
Closes-Bug: 1397610
2015-01-15 07:46:57 -06:00
Elliott Davis dc2c87d1f9 Renamed common.rb to default.rb
Renamed the common.rb recipe to default.rb in an early attempt
to simplify the refactor happening here:
https://review.openstack.org/#/c/141459/

Change-Id: Idd904f80cd51711db456606298e9761452bed23d
2014-12-17 10:47:44 -06: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
Mark Vanderwiel 3c70fb2224 ml2 is new icehouse core plugin default
Update core plugin default to ml2.
Replace plugin_conf_map with core_plugin_map since basing it upon
interface driver does not work for ml2.
Cleanup interface_driver settings for ml2, it should default to
openvswitch interface.
Update tests.

Implements: blueprint neutron-icehouse-default-changes
Change-Id: I934d20258beac779da5e53147571c0c2b1149563
2014-04-17 10:48:41 -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
Jenkins d99acf384c Merge "Wait for dnsmasq to become available" 2014-02-20 12:32:34 +00:00
Jesse Nelson 3e47f2a6d3 make dnsmasq compile optional
Some users wont want to compile source, and instead choose
to build or otherwise install a package for dnsmasq on precise
This does not change the default behavior, just provides a short circuit
mechanism for folks who don't want to have these recipes build from
source

Change-Id: I85ee904f2bc47dc352b13e2c6f35e14e2084b5d2
2014-02-18 12:34:04 -08:00
Darren Birkett 26c2952486 Wait for dnsmasq to become available
Fixes: bug 1280214

When we install dnsmasq, it takes a few seconds to start up, during
which time dns resolution on the system is unavailable.  If we carry on
with the chef run during this time, subsequent steps (eg package
installations) will fail due to transient errors with name resolution.

This patch introduces a small loop to ensure we have working dns resolution
before moving on

Change-Id: Ia508a7243554bca64c0451d99086ae596ec9e462
2014-02-18 16:57:05 +00:00
Mark Vanderwiel 61e24b607e Remove unneeded and redundant rhel setup scripts
3 scripts called in rhel/centos/fedora case
- neutron-dhcp-setup
- neutron-l3-setup
- neturon-node-setup (openvswitch)

They set config options that are already handled, for example:
messaging - rpc_backend and qpid_hostname.
keystone - auth_url, admin_username, admin_password, admin_tenant_name.
Testing confirmed no differences in etc/neutron config tree.

Addresses: blueprint centos-rhel-for-network

Change-Id: I56f8482d95908d41e0b33552017166a4e1105177
2014-01-30 10:49:33 -06: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 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
Ionuț Arțăriși 2e9a9ab694 add dhcp agent tests for the SUSE platform
updated chefspec to get regexp matchers on resource names

Change-Id: I32d18d1739324d4b3b71674b41d21ed3118ae0e8
2013-08-26 17:27:01 +02:00
Jenkins 738ada4168 Merge "Allow downgrading guest MTU settings" 2013-08-19 01:41:47 +00:00
Alan Meadows e220bb2f7e Allow downgrading guest MTU settings
Most standard networks will have a 1500 MTU sized
provider network.  Because there is a 24 byte overhead
with using any kind of encapsulation, most users will
want to downgrade the MTU set within their guests or
raise their internal network MTU above 1500.  The former
is much easier to do and has been added as an option to
dnsmasq that is passed to the client.

Change-Id: I199ec6e46c114d0277230eded002ad99786c061c
2013-08-16 15:44:03 -07:00
Ionuț Arțăriși c0c5f6da5e don't install any plugin packages on SUSE
Change-Id: Icb08473c8bb41e56e34ce6f51983b3195d631d11
2013-08-15 17:18:53 +02:00
Alan Meadows f8cf18e024 The DHCP build process will pin the version
Without setting the version, we end up with a dnsmasq
binary that reports an UNKNOWN version which quantum
raises an exception on

Change-Id: Ie1970b9526be1d6151a7eb08a2686be368239193
2013-08-14 12:43:37 -07:00
Alan Meadows a45270f9fe Support standalone services
* Do not include main plugin in server recipe and
everywhere else, so that we can manage services
with roles on independent servers
* Support an independent quantum api server not running
any of the agents or packages required by plugin
* Fix ordering issues with openvswitch-agent install.
* Try to unify platform_options names across
distributions.
* Introduce a common.rb for setting up templates
required by nearly everything, like quantum.conf.
* Plugin recipes now serve to only install any
additional components required

Change-Id: Ieb7c357baf882c9078dbdd577f53448af863c931
2013-08-06 09:34:40 -07:00
Hyunsun Moon 4b1920ab62 Add package_overrides options
Some packages throw error when re-run client due to conf file prompt.

Change-Id: I99bac2530cefd001d0304fcc4513fb3f8e0c022f
2013-08-06 19:39:57 +09:00
Jenkins 2b6ecb00e8 Merge "need to be explicit about the full path of the directory" 2013-08-02 17:53:17 +00:00
Ionuț Arțăriși 4d92f7c078 need to be explicit about the full path of the directory
chef(-solo) can't find the files otherwise

Change-Id: Ic668b0c741dd7eca1d301130e36e9158971a33e4
2013-08-01 14:43:29 +02:00
Hyunsun Moon 37bbc09ae2 Fix dnsmasq package install failure
* added gettext to quantum_dhcp_build_packages, or it throws 'ERROR xgettext: Command not found'
* made dnsmasq_all to be installed last to fix install failure due to version dependency on dnsmasq-base(>= 2.65-1)
* added gettext to test example in dhcp_agent_spec.rb

Change-Id: I4f3f113d0b3cb182d52b0df763eb329d07a20166
2013-08-01 14:34:17 +09:00
Alan Meadows c185ab284d Enhancements and fixes to various agents
* bugfixes to l3, dhcp, and openvswitch
* plugin lookup fixes for spec tests
* install kernel headers for openvswitch
* add spec tests for openvswitch
* add spec tests for dhcp_agent
* add spec skeleton tests for l3_agent

Change-Id: I68177c191e355dbfced23834a627cca5adf7abee
2013-07-03 05:38:43 -07:00
Ionuț Arțăriși 8bfd02003e SUSE support
Change-Id: Ibd83dbe0206ac0b63e19112e8520b5ce6bf4dfd4
2013-06-28 16:48:40 +02:00
Alan Meadows e31a3c4eab initial commit of working cookbook-openstack-network
Change-Id: Ib9fd63532becac6738db19f8de81885a5e04025a
2013-06-21 17:10:45 -07:00