Commit Graph

71 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 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 dac0c7c8d4 Updates for Train
Deprecated:
- LBaaS has been removed as it's been deprecated upstream [1]

Changed:
- Update release to train

Fixed:
- Cookstyle

Removed:
- Unused .rubocop.yml

[1] https://docs.openstack.org/releasenotes/neutron/train.html#relnotes-15-0-0-stable-train-deprecation-notes

Change-Id: I4c7f58ea60c02704877531fe3e7849c47aacf7ae
Depends-On: https://review.opendev.org/731859
2020-05-29 17:18:15 -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 70fda6ae3a 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: Ia621986157956cb8f03fabd00741959bd2879aff
2019-12-06 11:27:39 -08:00
ZhijunWei 66490ada34 Change openstack-dev to openstack-discuss
Change-Id: I9596e05c8c9ff069087b17ed858960a4e608d23d
2018-12-04 23:21:08 -05:00
Samuel Cassiba 22d034d20a starting rocky development patch
Change-Id: I4d16b90987e8fb6569ff8775694868e2ad91eeef
2018-08-03 06:41:32 -07:00
Samuel Cassiba 526ea82f5e 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/549345
Change-Id: Ib864e84dddfc59b5876932b4c2d809406e2d5007
2018-03-06 12:09:03 -08:00
Samuel Cassiba 77e2e705c3 network refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- deduplicated resource calls for identity registration
- moved dpkg overrides to common cookbook for DRY

Implements blueprint modern-chef

Depends-On: I143e0ed0a2bdd76269fc0c402052696426d96d81
Change-Id: Ib268737d2f5c3196061d89202d806c3af1c54e72
2018-01-09 15:14:37 +00:00
Jan Klare 3868368eca
starting pike development patch
Change-Id: I54d6b08011eae2d7a47a6b56214c5170fd7e71b3
2017-08-17 14:19:33 +02: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 a45c1578a3 starting ocata development patch
Change-Id: I310cf43f3d7e0f30656954b90c1e9b971bdd3dec
2017-02-23 17:06:47 +01:00
Christoph Albers d1fe020bd6 use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- updated readme
- updated neutron-package dependencies for debian

Change-Id: I2d404a424bd79a6e9b282304e21591fa33a48981
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
2016-09-30 14:19:49 +02:00
Samuel Cassiba 77060a6212 Style and lint fixes to support newer ChefDK
Change-Id: Ie45076f0ee36e880c9a6080f2b330982e40c282c
2016-07-06 11:56:17 -07:00
Jan Klare 91e0220e20 initial commit for the newton development cycle
Change-Id: I944f010b065c8d9756ed351e355085c2900e37ce
2016-05-31 10:39:40 +02:00
Jan Klare 05638d06d7 update the README after refactoring and align it with other cookbooks
Change-Id: I6ba2d2279c6494d45092a8e94fd2e0a924cbbccf
2016-04-28 16:40:23 -05: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
JJ Asghar 28a867e442 Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

remvoe db2 refs

Change-Id: I5fe98b00fc82ae36d217e62b0b1de46af6070368
2015-08-28 22:53:19 -05:00
Song Li 08bd03d011 Support installing hyperv mech_driver in Neutron cookbook
Hyperv mech_driver has been moved out of neutron core code, and it
became a stand alone package. Current network cookbook did not
install the hyperv mech_driver, so add the logic in hyperv recipe
to intall the hyperv mech_driver when the hyperv is configured in
mechanism_drivers of environment.

Currently there is no package for hyperv mech_driver in all linux
distribution, as the hyperv mech_driver code has been moved out of
neutron code. So here names the package networking-hyperv by
default, overwrite the package name when other users generate the
packages themselves.

Change-Id: I0d27f41e2dc068fc0dd2a67fef5999a006f685dd
Closes-Bug: 1475151
2015-07-28 02:21:08 -04: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 78f3c0ba43 Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: Ice44d4d401d7a03041257c61283ef0f6aed41dc3
Partial-Bug: 1464706
2015-06-16 10:45:15 -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
Wei Hu 0becd08722 Add rabbitmq max_retries and retry_interval in neutron.conf.erb
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.

Partial-bug: #1439968

Change-Id: I8e19c3343627d4e2316f91b4fb084c5b6486dd84
2015-04-17 03:01:26 +00:00
Mark Vanderwiel 3b3f948fe8 Initial kilo updates
Change-Id: Ib3388e277698e8cd2fcc6edf9229c7da019838a2
Partial-Bug: #1426424
2015-02-27 13:52:42 -06: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
Mark Vanderwiel 59f67f104a Missed bumping Common version
Change-Id: Idd5920424e1c2011ce01590ccfdfae332377e144
Related-Bug: #1412919
2015-02-09 11:49:25 -06:00
Elliott Davis 64fd769eb5 Removed all files not needed by the neutron cookbook
There were three files provided by the neutron cookbook that were
not related to neutron or used by the cookbook.  This patch removes
those files along with the files directory.  This patch also removes
any related tests or code to put said files in place.

Closes Bug: #1411032

Change-Id: I07f72e0b16d5f83f6c670b191a0904122c2e54ae
2015-01-15 01:48:24 -06:00
Mark Vanderwiel d78d61f42d Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix broken link in Testing.md
* Readme tweaks

Change-Id: I518825f4d280148df982ab07a996f87d70b75174
Partial-Bug: #1342735
2014-10-14 10:09:46 -05:00
Xu Han Peng 1dd7be7ee4 Enable Neutron VPN as Service
Add a recipe, related attribute/template, and unit tests to
to install, configure and start VPN service.
Stop L3 agent if VPN is enabled.

Change-Id: I63322e3c43e38444163371636cbab2c3bbdeaacf
Implements: Blueprint neutron-vpnaas-enablement
2014-09-19 11:10:13 +08:00
Hu 802685281c Add tunnel_types in ovs_neutron_plugin.ini.erb
Nowadays, there is no tunnel_types item in ovs_
neutron_plugin.ini.erb template. And user can not
assign value to this item by environment. Therefore,
the vxlan enablement will failure because of the item
default value is '[]' which will disable tunneling
support in the agent.

Fixes bug #1355663

Change-Id: I21378cbc3fe021b6763dd9f560e027ddd704c982
2014-08-18 09:56:56 +08:00
galstrom21 6eebbbabff Setting up repo for master Juno Branch
* Update metadata version
* Removing Strainer file
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)

Change-Id: I136897badca86f30733a6752d393e4b8748cc47b
Partial-Bug: 1349865
2014-07-31 10:04:02 -05:00
ericzhou 54ea878fea Allow namespaces to be removable.
When network namespaces are used for dhcp and l3, we need to allow
router_delete_namespaces and dhcp_delete_namespaces to be overridden so
that the namespaces can be deleted.

Change-Id: I8255f0a43ffd1100f971470208103503e9dd8229
Closes-Bug: #1336613
2014-07-08 11:28:12 +08:00
Ionuț Arțăriși f8078e88aa use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: Id3c8a262f8ce177da71201f765afaa0e2c890e0e
Implements: blueprint move-python-db-client-attrs-to-common
2014-07-02 14:28:12 +02:00
ericzhou ae8fd25552 Start the neutron server service.
After neutron server is installed, start the server service immediately.

Change-Id: I0488821cfb40863f984d9a04e0e57ba1a9694720
Closes-Bug: 1327029
2014-06-11 15:49:33 +08:00
Mark Vanderwiel 27c2f7bdba Fix symlink when main changed from ML2 to ovs
When the main plugin is changed from ML2 to OpenVSwitch, the redhat
required plugins.ini symlink does not get properly updated. Change the
symlink to rely solely on the main plugin attribute and not the conf
files as there is not a 1-1 relationship between them.  See bug for more
details.

Change-Id: If32747e54e8a8f31d1d553b750e6ae663670b873
Closes-Bug: #1320011
2014-06-06 14:22:39 +00:00
Matt Odden 545094e3be Add missing AMQP options to neutron.conf
Using the new attributes added in common, we can allow
deployers to optionally turn on durable queues, auto-delete
for queues, and enabled QPID federation support.

Bump common dependency version, since we need the attributes
introduced in 9.4

Depends on change I850c01a40aab02cf4531f7983543ef89e0e60446

Change-Id: I24c70dbcaedbe8db68286f6107ddce36da80d5d8
2014-05-27 23:27:09 +00:00
Mark Vanderwiel 16c85da754 Allow misc options for neutron.conf
Add support like alreayd exists for openrc, keystone and nova.conf.

Change-Id: I9efc9ebe4801d13f434a8d17057b9f49b072c527
Closes-Bug: #1321010
2014-05-20 09:32:35 -05:00
Mathew Odden 5d727d6279 Revert "switch to using auth_url instead of auth_host et al"
This reverts commit 6d252ac484.

keystone_authtoken middleware has no config option for auth_url,
so the change breaks neutron-server from being able to contact the
correct keystone service (unless it runs on localhost,
which is what auth_host defaults to)

Related-Bug: #1319280
Change-Id: I41a2ecd0ada3ec59983fd408123b0f3570050bb1
2014-05-19 22:25:46 +00:00
Mark Vanderwiel ec78019024 Fix ovs_use_veth default in dhcp_agent.ini
The correct default for ovs_use_veth is False in IceHouse.
Fix the default and add a test case.

Change-Id: I156a61926987a10160835068fd84e8462ff58f7c
Closes-Bug: #1318790
2014-05-14 16:08:30 -05:00
Mark Vanderwiel 10f0cd2f8b Fix spec to remove internal chef cache path
No need for spec to check for chef internal cache path. This causes
the spec to fail on other platforms like windows or where these
paths have been modified on the chef install.

Change-Id: I98a45288dd1cd8ac92b3f0d01ba389c6f6813968
Closes-Bug: #1307678
2014-05-09 09:54:26 -05:00
Mark Vanderwiel 268552e009 Fix openvswitch and linux bridge agent confs for ml2 on redhat
The agent conf files were not being created when using ml2 on redhat.
This patch creates the conf directory and file for the agent recipes.
For openvsiwtch, it's specific to redhat, as debian uses different conf
file, reported under this bug 1314751.
For linuxbridge, it's the same conf for both redhat and ubuntu.

See bug for more details.

Change-Id: Iae8fff68c5b270593ba9c23ecc8deac7577e2382
Closes-Bug: #1311311
2014-05-07 11:53:36 -05:00
Mark Vanderwiel 841d4fce05 Allow data network openvswitch bridge to be created
Allow data network ovs bridge to be created for flat and vlan.
Add attributes to control creation.
Add Tests.

Change-Id: I4d4cb79c40f849193c5ff1a79c88b7049886d594
Closes-Bug: #1307587
2014-05-07 09:56:37 -05: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 8dec4d04a8 Icehouse branch version updates
* also cleanup unused database dependencies

Change-Id: I8874699feb02c55aad2c7d90bfe99406abd73f52
2014-03-27 16:53:35 -05:00
Chen Zhiwei e52fdf6913 Fix DB2 ODBC driver installation issue
There is an LWRP in db2 cookbook to install ODBC driver,
so need to move this driver installation to db2 cookbook.

Change-Id: Id82f41712569359960dc199b95c9a1581a34fa07
Closes-bug: 1294376
2014-03-21 03:05:20 -04:00
ericzhou e558c101fd Use the library method auth_uri_transform
Use the library method auth_uri_transform and remove the authtoken
configuration from api-paste.ini.

Change-Id: I46d10bf9b3707c16c3d2ddc84171968ecc4e46a1
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-19 21:11:23 +08:00
gengjh f923580086 Add new template for ml2 plugin.
Add new template for ml2 plugin since the vxlan depends on this
plugin.

Implements: blueprint neutron-ml2
Change-Id: Ie7307bebb0b9882d79d92b34aaf8e402d36af63c
2014-03-11 19:15:53 +08:00
gengjh 782cf9b24b Add new attributes in linuxbridge plugin templates
Add new attributes in linuxbridge plugin templates to support vxlan.

Implements: blueprint neutron-ml2
Change-Id: I8b65488d04acd7e3ec865f89b3c1363387cae8ed
2014-03-07 15:41:44 +08:00
gengjh 2543667cb0 Update the neutron.conf.erb according to the latest ver from upstream.
- Move the database section into neutron.conf from plugins
- Make the service_provider attribute configurable

Implements: blueprint neutron-ml2
Change-Id: Ia9e932a490e5c13ba49aa8358356e2fa640b845c
2014-02-27 16:15:33 +08: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