Commit Graph

44 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 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 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
Jens Harbott 46b89f7714 Use python3 packages on Ubuntu
Python2.7 is going EOL soon, let us deploy python3 for Rocky from the
start, so we avoid having to switch later.

Depends-On: https://review.opendev.org/682918
Change-Id: I3be10959888870cec8774c2729465a0785eb837f
2019-10-02 08:02:51 +00:00
Jens Harbott 7d5f72844f Drop admin endpoints
The admin endpoints offer no special functionality, users may talk to
the public endpoints instead. The only historic use case has been the
keystone v2 admin endpoint, but with keystone v3 API, even that is no
longer needed.

Also stop creating cache dirs that were only needed while keystone
supported PKI tokens.

[0]
https://opendev.org/openstack/openstack-chef-specs/src/branch/master/specs/ocata/all/drop-admin-endpoints.rst

Depends-On: https://review.openstack.org/652050
Change-Id: I309bf20e68e452489a24cf36472fc5c9f68cbe36
2019-04-16 09:38:29 +00:00
Samuel Cassiba c6195859d9 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: I833cc80421be375aed202c208cf93a0165761226
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:16:25 -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
Christoph Albers 88b37047c7 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: I09ab54c7444dca440e15161c62d3203a48463b4a
2016-12-20 11:45:08 +00: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
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
Jens Rosenboom b68271e144 Fix nova auth_url setting
Change Id350abd82df48c1e00e4b2bb8bc944658ddd85e6 replaced auth_plugin
with auth_type but missed one occurance in the default receipe.

Change-Id: I395b48616ea57167558df7c6a0dda30c01d724b1
2016-04-26 13:38:35 +02:00
Mark Vanderwiel 8a87bcaa20 Cleanup options deprecated for mitaka
Some options have been deprecated for Mitaka, replace them with the new
variants.

Change-Id: Id350abd82df48c1e00e4b2bb8bc944658ddd85e6
2016-04-13 14:26:02 -05:00
Jan Klare d518462595 removed bridge creation from recipes and splittet recipes
* removed the creation of ovs bridges (except br-int) from all recipes,
  since this can not be done in a sufficient generic way or only with a lot of
  case switches to cope with all possible network setups
* added an example recipe to create all default ovs bridges from the
  networking guide for legacy ovs setups (we should also create one for dvr later)
* splittet recipe ml2_openvswitch into seperate recipes for ml2_openvswitch config,
  openvswitch_agent and openvswitch to allow bridge creation from wrapper recipe inbetween
  and seperate configs from package installation

Change-Id: I6383575862ba110b3f3b5cba227288dc026fce77
2016-03-02 09:37:07 +01: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 56c95b6ce3 Fix unit tests
Remove dup in attributes
Incorrect service resource name reference
iproute package in wrong spec
White space cleanup

Change-Id: I269012e141bee21d1122dec300ba2a80b3d31780
2015-11-11 10:47:04 -06:00
Min Min Ren 94d875d7e1 Add database slave connection configure
- According to the bool attribute
   node['openstack']['endpoints']['db']['enabled_slave'], enable/disable
   neutron database slave_connection
 - Add the slave_connection generated from db_uri function

Implements: blueprint sql-slave-connection-support

Change-Id: I19fc7fb4ab4a62fcdea77c9c4d18135fb2f49d41
2015-08-26 00:09:35 -05:00
lzklibj b64ed92dc4 Install packages for services in service_plugins
When lbaas or vpnaas is enabled, we should make sure related
packages are installed before neutron-server start, otherwise
neutron-server will crash for could find plugin list in
service_plugins.

Change-Id: I8d5939dacd74496158932b658c3aec4d78ad1fe9
Closes-Bug: #1486390
2015-08-20 17:25:07 +08: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 4b0d6b1ec0 Allow oslo rabbit heartbeat configuration
In order to allow components to better handle and respond to mq failures,
oslo has some heartbeat options that are useful.

Change-Id: Ief96c7fce659376f476b11b527c60ce999777b81
Partial-Bug: #1462438
2015-06-15 03:05:00 +00:00
Song Li aea5f5ac7b Auth_url changes following auth_plugin in nova section
After the refact of nova authentication in neutron, it supports
three auth_plugin: password, v2password, v3password. Each
auth_plugin match a different auth_url. For example:
a) password
auth_plugin = password
auth_url = http://127.0.0.1:35357/
b) v2password
auth_plugin = v2password
auth_url = http://127.0.0.1:35357/v2.0
c) v3password
auth_plugin = v3password
auth_url = http://127.0.0.1:35357/v3

The auth_url should be set following the auth_plugin automatically.

Change-Id: Ia584a6c6a64fcaa92012c957da004ac029ca7db2
Closes-bug: #1459594
Closes-bug: #1461480
2015-06-07 23:53:02 -04: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
wenchma 38758fbb14 Refactor nova section to enable auth strategy
Authenticating to nova using nova_admin_* options is deprecated.

  CONF.nova_admin_auth_url
  CONF.nova_admin_username
  CONF.nova_admin_password
  CONF.nova_admin_tenant_id
  CONF.nova_admin_tenant_name

This should be done using an auth plugin, like password:

  [nova]
  region_name = RegionOne
  project_domain_id = default
  project_name = service
  user_domain_id = default
  password = passw0rd
  username = nova
  auth_url = http://127.0.0.1:35357
  auth_plugin = password

Reference: https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py#L85-90

Change-Id: I8896af89f1b5fef39776a8aa1289cb9ee7645a08
Closes-bug: #1449058
2015-05-27 10:51:46 +08: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
wenchma 2a1a38b542 Update the deprecated group/name to Kilo release
For Kilo release, there are many deprecated group/name in conf files of openstack,
so we need to change the deprecated group/name to new group/name.

blueprint conf-section-update-for-kilo
Closes-bug: #1436170

Change-Id: Ibdd35e55ab79bc684782182d3e4341e672f04401
2015-04-22 17:53:49 +08:00
Mark Vanderwiel adc1a82c52 neutron nova_admin_auth_url requires a protocol version
In my recent patch to move to identity_url, I mistakenly also
touched the nova_admin_auth_url which removed the v2.0 protocol
version from it.  This prevents neutron from working properly
with nova.

Change-Id: Ib48a9a4be4478eb5f6fd1a07c8bd13d57af1c4db
Closes-Bug: #1446652
2015-04-22 02:53:48 +00:00
Jenkins 7bbe7573b0 Merge "ml2_conf.ini OVS values were missing" 2015-04-20 20:06:10 +00:00
Mark Vanderwiel 7562a598b5 ml2_conf.ini OVS values were missing
On ubuntu, the openvswitch template is rendered into the ml2
template. Some of openvswitch template variables were missing
from the ml2 template definition.

Change-Id: I62274d2a1c15e6d7e2a5079b0182513ee18f67b2
Closes-Bug: #1444647
2015-04-17 23:03:02 -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 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 7963c596c9 Fix ubuntu ml2_conf missing ovs section
Used the existing ovs conf as a partial template to simply include
in the ml2 conf.  This keeps all the attributes the same.
A more detailed spec will have to be done after some refactoring
to allow for sections to be tested.

Please give this idea a try, it seems to allow me to setup neutron
on ubuntu with ml2. I'm working toward using this as a basis for
getting the repo aio_neutron test working.

Change-Id: Ia988f3d7ef1c280c40b55cea4f455710f673dd32
Closes-Bug: #1314751
2015-03-30 09:57:13 -05:00
Jenkins 7fdaa2835e Merge "Not restart neutron-server on compute node" 2015-03-30 02:17:27 +00:00
Xu Han Peng 0a6314174c Not restart neutron-server on compute node
This patch adds logic to check whether current node
is network node or not.

When current node is not network node, stop neutron-server
from restarting even when neutron configuration file
is changed.

Change-Id: I0649be26515435a9c1d01e7daa7d3fb3ade90cce
Closes-Bug:1393667
2015-03-27 10:58:13 +08:00
wenchma 29447d06a8 Enable kombu_ssl_version configuration for Rabbitmq SSL
Change-Id: Ibc8e8314907e2b42d9faee73fe17ba319887ea54
Closes-bug: #1433405
2015-03-23 17:38:02 +08:00
Jenkins 99cdcb65fd Merge "Use new nova_admin_tenant_name" 2015-03-16 14:32:43 +00:00
lzklibj 409abee58c Enable Distributed Virtual Router
blueprint enable-dvr-chef-cookbook

Change-Id: I5521cf73fb3eecabc2a63eb9b32f62073ad2bd57
2015-03-06 05:20:15 -08:00
Mark Vanderwiel 48d3cafe4f Use new nova_admin_tenant_name
Patches in base neutron allow for use of just the nova tenant name
instead of having to make an ugly cli call into keystone to get the
uuid.   This is much much cleaner way to do it.
Kept the old admin_tenant_id attribute, added a new
admin_tenant_name one.  This should come directly from the Compute
cookbook attribute, service_tenant_name, but since Network does
not depend upon Compute cookbook, I simply added the default here.
I don't think we want to introduce a depends between Network and
Compute, that would be a circular dependency.

Change-Id: I88948b6ad300192cb00b07f10d29dc7ec19d4ba2
Closes-Bug: #1427817
2015-03-04 12:35:14 -06:00
Hong Hui Xiao e4766fb2b6 Allow customize l3 agent HA parameters
Parameterize l3_ha, max_l3_agents_per_router,
ha_vrrp_advert_int setting, so that user can deploy
 a topology with neutron l3 agent HA enabled.

Change-Id: Iab159efcc30349e6481c944a5afb16293fbb0826
Closes-Bug: #1417913
2015-02-11 09:47:10 +08:00
Hong Hui Xiao e99affcf6a Allow customize dhcp_agents_per_network
Parameterize dhcp_agents_per_network setting, so that
user can deploy a topology with multiple dhcp agent
working.

Change-Id: I22d584f077e7cbc64bdf53522166352a512e84a5
Closes-Bug: #1414908
2015-02-09 13:06:49 +08:00
Mark Vanderwiel b758556226 Handle nil and empty string for cafile
The current check was only for nil and when folks used
empty string for cafile, it caused an error and was hard to
figure out want went wrong.

Change-Id: Ib638dcdaa65a490ffac90d2dffac56f0a05aa699
Closes-Bug: 1394688
2015-01-15 12:17:04 -06:00
Mark Vanderwiel 0695636cd1 rabbit ha cleanups
allow rabbit ssl to be enabled when ha is used.

Change-Id: I7e3ed77383917dda97ac69cf6152ad90fe5ad30c
Partial-Bug: # 1408705
2015-01-08 11:55:50 -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