Commit Graph

200 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 222df62ab3 Use correct packages on Ubuntu for linuxbridge
Change-Id: I20a3ab5c51e1d984a4d87e2333d26d504f0f711d
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-17 00:41:33 +00: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
Jens Harbott ed27001087 Revert deploying fwaas v2 by default
Customer testing has show fwaas v2 to be rather buggy, revert to running
with fwaas v1 now. The fwaas project seems to be lacking maintainers
currently, see whether that situation improves until the next cycle.
Otherwise we may need to drop the service completely, as fwaas v1 has
been removed for Train.

Change-Id: I5d1af49a56a86a66a1d2509b4ca306b6e0cdf77c
2019-11-27 09:42:29 +00: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 dbc69c742e More updates for rocky
- Change fwaas attributes to default to v2 instead of deprecated v1
- Drop the deprecated external_network_bridge attribute
- Fix some wordings in comments

Change-Id: Ib4e8c93356ce67d5a77b1260c1b6b9c2082ecbec
2019-09-02 12:19:00 +00:00
Jens Harbott 65e4f8512f Fix fwaas installation under Ubuntu
In earlier releases python-neutron-fwaas was pulled in as a dependency
of neutron-common automatically, now we need to install that package
explicitly.

Note that this requires the fwaas recipe to be executed also on the
controllers, while previously it only needed to be run on the network
nodes.

Change-Id: I84659e62ae110d79eb486eef7f86869584aba4ee
2019-08-12 08:57:56 +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
Roger Luethi 5bb0cf6aaa Allow overriding replies for specific domain names via dnsmasq.conf
backport: queens

Change-Id: I44d1d01b943167049e2f09fb251e1a54b6c43d47
2019-04-05 16:12:59 +02:00
Roger Luethi f03e5c65fa
remove unmaintained vpnaas from all recipes and attributes
The vpnaas agent has been removed for the OpenStack Queens release.

Virtual Private Network-as-a-Service (VPNaaS) scenario
(for Rocky, no vpnaas docs found for Queens)
https://docs.openstack.org/neutron/rocky/admin/vpnaas-scenario.html

missing release note (or doc) on vpn-agent change in queens
https://bugs.launchpad.net/neutron/+bug/1751069

vpnaas agent is removed since Queens and configuration changed
https://bugs.launchpad.net/openstack-ansible/+bug/1781148

Change-Id: Idf74445445683058cd992e95df87724579e70433
2018-10-25 11:46:35 +00: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
Zuul b3439eaea1 Merge "Replace platform_family method and use attribute instead" 2017-10-29 01:50:26 +00:00
Seb-Solon 3b6c8c04e0 Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions

Change-Id: I364ba316dd91cf11cc813f0c642708fd46cd6caf
Depends-On: Ibfc34ec195950e844c6e5b939708bb0ef7411029
Partial-Bug: #1724987
2017-10-28 15:46:52 -04:00
Seb-Solon ebc878441e Fix control_exchange attribute
Regression introduced by https://review.openstack.org/#/c/502980/
Fix follows [block-storage] cookbook logic

Change-Id: Ibfc34ec195950e844c6e5b939708bb0ef7411029
2017-10-26 13:15:18 -04:00
Christoph Albers 7d6850fda5 Neutron OVS Interfacedriver name deprecation
- now its just openvswitch

Change-Id: Ibb67f0ed977b14f542650108c68b7db0ba24a768
2017-07-31 15:38:08 +02:00
Jens Rosenboom 1317cfa7ad Update default upstream DNS servers
The Level3 public DNS server is responding with fake answers instead of
NXDOMAIN, replace with OpenDNS.

Change-Id: I908d15a56f39f9a2b1de639570493c07346e8b43
2017-03-10 16:42:26 +01: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
Jenkins d885b68c6d Merge "Deprecated python-neutronclient" 2016-12-20 11:04:42 +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 4e898caf1f Changed lbaas packages to use lbaasv2
Change-Id: Ibf0d74db49b043b7fbbdbba551baeec481e21b5d
2016-11-29 11:32:14 +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
Jan Klare 0141794350 Enable fwaas recipe again after refactoring
Change-Id: Id2b6035ca330c1bf1e89bdda237d84b785f6a212
2016-08-26 13:10:11 +02:00
Jan Klare 29e771a9f3 Adapt vpnaas attributes and recipe to use StrongSwan instead of OpenSwan
* use StrongSwan driver instead of OpenSwan since xenial does not even provide
  openswan packages anymore
* start and enable strongswan service (needs to be verified for centos)
* do not include ::l3_agent recipe in vpnaas recipe, since neutron-vpn-agent
  fully replaces neutron-l3-agent

Change-Id: I81cd2e05273402e8db57f3ca5029fb4938bbfe29
2016-08-25 17:47:31 +02:00
Lance Albertson cace7ca3de Fix linuxbridge service name for rhel
Change-Id: Ibe4229f6c425a32c9c15da11163eeac3d0b6ff21
Signed-off-by: Lance Albertson <lance@osuosl.org>
2016-05-26 16:03:05 -07:00
Lance Albertson 123d31c9c2 Fix linuxbridge agent service attribute
This fixes an error when running where its looking for a string not an array.

Change-Id: Ic9aa44cdb553b5f695d54e9d86d7cda1165136f0
Signed-off-by: Lance Albertson <lance@osuosl.org>
2016-05-22 20:13:54 -07: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
Jens Rosenboom 4b0f4a49d0 Do not hardcode any DHCP options for Neutron
With Mitaka, Neutron has learned to set proper MTU values for the DHCP
agent depending on the encapsulation type being used. So do not override
them any more from our side.

Change-Id: Ib3c14a828374d607c49257682d552159c72a13f9
Closes-Bug: 1567923
2016-04-08 17:04:05 +02:00
Mark Vanderwiel 820c8eebdb Ubuntu mitaka package name changes for openvswitch agent
neutron-openvswitch-agent
Replaces:
  neutron-plugin-ml2 (<< 2:8.0.0~b2-0ubuntu5~)
  neutron-plugin-openvswitch-agent (<< 2:8.0.0~b2-0ubuntu1~)

Change-Id: Icd75ff370f20d77f564bd6eb700704372345b0de
2016-04-06 12:10:34 -05:00
Jan Klare 79005fa659 add recipe and basic configuration for metering-agent deployment
* added recipe metering_agent following the structure of the other neutron
  agents recipes
* added minimal viable config options to default attributes
* added specs

Change-Id: I5f7d8b8a650497b4bcfff5f2b02b0669df656732
2016-03-07 09:31:02 +01:00
Jan Klare e7aefcd3a8 python package dependency attributes need to be an array
Change-Id: Ie64c46537da548fe0de9ef006aecee0ca08b4af3
2016-03-04 13:45:17 +01:00
Jan Klare 875bda5cc5 neutron server should not install lbaas or vpnaas agent
* currently if lbaas or vpnaas is enable, the neutron-server recipe will
  install the same packages as the node where lbaas-agent or vpnaas-agent is
  running on, while it just needs the python modules
* added attributes for definiton of python_dependencies for lbaas and vpnaas
  to allow neutron-server to have the modules without installing the full
  agent/service-packages

Change-Id: I1be325b7f246fa0628aed2d2a360acd604dd864a
2016-03-02 09:39:51 +01: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 66ed38fb89 invert the order of endpoint and bind_service attributes
* endpoint type (admin, internal, public) and service (identitiy, network etc.)
  was switched during refactoring, this patch reverts this unintended switching
* edited bind_service service type from public,internal,admin to 'all'
  for default binding to just one service

Change-Id: I9bf230ba53d23ce11a32acaea2410572eaeb6123
Depends-On: Iec485deaf415e4187a323435cce2b6bbadfc5d42
Depends-On: Ia5bddfc5e2fd77cd6e9e855c680b079f78fc1c3f
2016-02-15 19:05:49 +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
leejian0612 f8b8355684 Support to set external_network_bridge empty
external_network_bridge could be empty to support multiple external
networks, update l3_agent recipe to support this situation.

Change-Id: Idca94b9d40df750f89e70567e641fe96b6f4a4b1
Closes-Bug: #1483994
2015-08-14 09:43:17 +08: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
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
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
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
ZHU ZHU 14cd028b8b Revert neutron with admin role
Looks neutron still require admin to work. With neutron policy,
the port binding for VM require admin permission.
https://github.com/openstack/neutron/blob/master/etc/policy.json#L53

A bug is opened against neutron.
https://bugs.launchpad.net/neutron/+bug/1445475

Until it is changed by neutron, cookbook need to revert it back to
using admin role.

Related-Bug: #1436050

Change-Id: I8342f7da783c2fc7bb42488b6d461851f66b2228
2015-04-20 14:33:04 +00:00
Mark Vanderwiel 9f3f6316f6 Fix fwaas, lbaas, vpnaas package names for redhat
Change-Id: I6ae71ca576289bd1fadcc8c3be69492e7d650891
Closes-Bug: #1445649
2015-04-20 03:32:21 +00:00
Jenkins 65eb2625a8 Merge "dnsmasq attributes defined in wrong order" 2015-04-18 03:56:28 +00: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