Commit Graph

20 Commits

Author SHA1 Message Date
Monty Taylor 0568a3e20c Retire repo
Depends-On: https://review.opendev.org/720892
Change-Id: Iac68bd9001ef9d0bd70492d7e28e115b4f9d3ed7
2020-04-22 10:19:06 -05:00
Jenkins 988c4d7e74 Merge "Add the ability to configure bridge name" 2016-09-28 09:49:30 +00:00
Yolanda Robla Mota 86371bdb51 Remove not used element
We now rely on glean and create_bridge to configure network,
so remove non used element.

Change-Id: Iee24bd96ab320a046a5b6d0d907e820731998fd8
2016-09-21 10:29:36 +02:00
Yolanda Robla Mota 2fbabecfbf Add the ability to configure bridge name
Naming with dashes is causing issues on CentOS,
because glean is called with interface br/xxx instead
of br-xxx due some naming translation.
Also interface name and vlans can differ on environments,
causing all puppet modules to change their naming. Instead of
depending on vlan or nic to configure bridge name, add the
ability to pass that name as a parameter, and likely set
to br_infracloud on our deployments.
At the moment, leaving the default naming to do not break
existing cloud deployment.

Change-Id: I0790bab2fd63f525e8b9c8d47ee79ea63a72750a
2016-09-21 10:28:04 +02:00
Yolanda Robla Mota b3d0ecb24d fix typo in bridge config for trusty
Change-Id: Ib088b3f961b107d515cd4263ef3b05253fb13db2
2016-09-14 17:14:14 +02:00
Yolanda Robla Mota 60bff722c8 Temporary workaround for bridge naming on CentOS
We cannot use naming with br-xxx because it is translated
to br/xxx when passed to glean, causing it to fail.
As a temporary workaround until https://review.openstack.org/368692
lands, use br_xxx naming for not debian/ubuntu (to avoid
crashing current deploys of infracloud)

Change-Id: I6a511bef0b262e40981abfc46bb5c60865fde566
2016-09-12 12:52:44 +02:00
Jenkins f2c3b8372a Merge "Add wants setting for network-online.target" 2016-09-12 10:33:42 +00:00
Jenkins 3d869aa096 Merge "Restart service properly on RHEL case" 2016-09-12 10:04:57 +00:00
Yolanda Robla Mota 26239b94c6 Add wants setting for network-online.target
According to documentation, the proper way to start a service
after the network comes up, is add After and Wants on the
default file.

Change-Id: Ibf252426210fcb1716dae918266d988a36ccbbb6
2016-09-12 11:59:56 +02:00
Yolanda Robla Mota a5f2db712a Restart service properly on RHEL case
Per documentation on RHEL side, the proper way
to activate the bridge, is full restarting the
network service.

Change-Id: I61564b3c39b169f9de13dd2297210a2348f448e2
2016-09-12 09:25:54 +02:00
Yolanda Robla Mota fcd90f18b2 Add execution perms to post-install in bridge
Change-Id: Id271028e031b0ba6e679b1618a1ae0308d5b2e06
2016-09-09 13:19:34 +02:00
Yolanda Robla Mota c3baf51bea Enable create bridge service by default
systemd needs to have the service enabled in order
to chain with glean.

Change-Id: Ia79c95c6d384c66131317b4feabe9d578ec572c3
2016-09-08 17:24:43 +02:00
Yolanda Robla Mota 32379697c7 Refactor infra-cloud-bridge element to support CentOS/RH
Use platform module to detect distro, and refactor the
create_bridge code to support it.
Add a create_bridge unit definition to be used in systemd

Change-Id: I71e1a0a3d10bd6946c12d1e2477fb88b2f10f4e1
2016-08-25 12:22:13 +02:00
Jenkins 6bf9a3c29e Merge "Fix bridge creation in no vlan use case" 2016-08-22 09:55:24 +00:00
Ricardo Carrillo Cruz cdfb4d8c05 Search for VLAN devices on config drive to create bridge on it
Currently, the infra-cloud-bridge element expects the VLAN device
being the first interface on the config drive links section.
That used to work, but in my testing it seems that due to some
changes in Glean that's no longer the case and the VLAN is after
the physical device.
Try to be more smart by searching the VLAN device if exists and create
the bridge on it, otherwise just fallback to the physical device.

Change-Id: I028ce200c0cc7d30b2ebb3a159d26005a06021f0
2016-08-18 16:32:33 +00:00
Yolanda Robla Mota d1aa222895 Fix bridge creation in no vlan use case
It was configuring the bridge each time, and needs to be
called only once. Also, optimize code to reuse conditionals and
vars.

Change-Id: I17648b28803b4dfc2507af7fa0553eb17e487ebd
2016-08-18 16:43:44 +02:00
Yolanda Robla Mota 9c55b0a783 Fix bridge creation when no vlan is involved
Script was failing when no vlan was involved on bridge
creation, just with native interface.

Change-Id: I2eb7d1d6cdb54f0c0f3a54f03872e7211726e387
2016-08-16 12:52:15 +02:00
Jenkins 1d5b0a1227 Merge "Add element to bring up bridge on infra cloud" 2016-02-26 01:54:55 +00:00
Colleen Murphy 478f4ec6a9 Add bifrost manifest
Add class to manage bifrost:
 - clones bifrost from source
 - adds config files
 - runs bifrost install procedure
 - runs custom ansible playbook to generate static dhcp inventory
 - starts an additional dnsmasq instance and runs it like a service

Based on the ironic::bifrost class[1] but with some modifications to
avoid heavy reliance on the puppet DSL.

Co-Authored-By: Clint Byrum <clint@fewbar.com>
Co-Authored-By: greghaynes <greg@greghaynes.net>
Co-Authored-By: Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>
Co-Authored-By: Yolanda Robla <info@ysoft.biz>

[1] http://git.openstack.org/cgit/openstack/puppet-ironic/tree/manifests/bifrost.pp

Change-Id: I949344c16cf9ee3965b0bc96850eb208ac65b168
2016-02-23 09:02:00 -08:00
Yolanda Robla 917b02c3da Add element to bring up bridge on infra cloud
This will grab the content present on config drive, and
will create a bridge in top of network interface.

Change-Id: I7b6788ad2640650329d80114439d731d51dab340
2016-02-17 08:55:24 +01:00