Commit Graph

17 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 611fb2bf4c Deprecate OpenStack-Ansible nspawn repositories
Since nspawn support has been removed with [1] we now
start repositories deprecation process.

[1] https://review.opendev.org/c/openstack/openstack-ansible/+/782569

Depends-On: https://review.opendev.org/c/openstack/project-config/+/797723
Change-Id: I113f0f2b5befc4bca830c130d7f60e621c86798e
2021-06-23 17:22:41 +00:00
Kevin Carter e873bda7d6
Add host only network option
The host only network function was adding a global network address and a
host only network address which would flip flop should networkd or the
nspawn-macvlan service be restarted. This change makes resolves the flip
flopping and adds an option to enable this functionality when required.

Change-Id: Ia856723580d345d01e0df06ac41adb9cb7fcdb24
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-09-30 10:14:53 -05:00
Zuul af91693ce0 Merge "Allow user-defined extra distro packages" 2018-09-07 02:04:53 +00:00
Jonathan Rosser ba45a33f53 Allow user-defined extra distro packages
This change allows the deployer to specify lists of distro packages
which will be installed in addition to those specified by this role

Change-Id: Ief887c705ab477eeb6d56a21850ddfd85d89722b
2018-08-21 12:57:09 +01:00
Kevin Carter 7ba42bc3d7 Add documentation for routed interfaces
Using the container_(extra)_networks hash a user can define a routed
interface for a network without an address. This change documents that
capability.

Change-Id: I93bdfde1aa5a9820d1853a779caf6670ee58d335
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-20 18:50:35 -05:00
Kevin Carter ca6fe7df8d Document adding "extra" networks
This change moves the hidden `container_extra_networks` options to the
defaults file and adds a blerb regarding how this functions.

Change-Id: I4d7a9f05cf8382d0b83dd0ce574f7f4ba3783a63
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-20 18:50:35 -05:00
Kevin Carter bf931fb29f
Document primary interfaces and add mv addresses
The macvlan primary interface will now allow deployers to run a fully
minimal network stack without any bridges or out-of-band configurations.
This capability has now been added to the defaults with documentation
regarding how its implemented.

Change-Id: I73e52ff9237dcc9c0d1bd156345d730454d28533
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-10 14:09:05 -05:00
Kevin Carter cfb3f9e7cd
Set container create tasks to non-voting/fix pkg
There are some inter-dependencies here where the container tasks will
not pass until a few updates are in both here and elsewhere. This change
sets the container create tasks to non-voting until all of the required
updates get in.

Remove the aria2 requirement

While aria2 has some nice features, the get_url command can do most of
what we need and does so in a far more universal way. This change
removes the aria2 dependency and updates the aria2 tasks to use the
get_url module.

Change-Id: Iab422c718d789ef13b8ec55938fdb7e73e40061b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-21 00:56:33 -05:00
Kevin Carter eececf267f Add trailing slash to copy files
Without the trailing slash the sync task will create a nested directory
for the target when is a directory. This change ensures we're copying
copying the directories correctly.

This behaviour has been documented in the defaults file.

Change-Id: I6965e132674238727d69606464f2140ec42d6434
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-21 04:49:35 +00:00
Kevin Carter d520e80462
Make host copying more selective
The host copy process was taking too much, this makes that process more
selective.

Change-Id: Ic25559d9b68b6208ffdbed020cc79bd6b3d52fdd
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-18 19:16:03 -05:00
Kevin Carter 559987522a
Update copy from host options
This change removes some more boiler plate and ensures all of the
required files are copied into the base container image.

Change-Id: I4f74364d0969363297b286ae8327291659d20a00
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-18 00:41:55 -05:00
Kevin Carter 556748bc4e
Document everything in config
Update container pkg list and use qgroups

Other roles within OSA require additional packages that were removed
from the base cache. This change puts those packages back.

Additionally this change implements qgroups which will resolve an issue
where the containers are spamming a reoccuring error message indicating
an issue with the loopback file system.

Change-Id: If658e5f332e4580cc51182ac92331a2ef91fbcb8
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-14 20:42:33 -05:00
Kevin Carter 50d7cc82c5
Update nspawn hosts
Use the common roles throught this role to remove all of the boilerplate
code we had. The common modules do most of the heavy lifing.

Update to fix the resolve.conf issue with the image cache prep.

Add legacy image support and use smaller upstream images by default.

Now that suse supports systemd-networkd we can enable suse support in
nspawn.

Change-Id: I5f6ceb928f5c0902adf2e34f96a5998840400777
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-13 14:28:16 -05:00
Kevin Carter 2758cbfc6a
add network ops
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-16 21:25:39 -06:00
Kevin Carter 0c69cf6cdf Add the option to follow inherit the parent MTU
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-08 18:06:11 -06:00
Andy McCrae f12c997bb5 Default container_networks to be empty
container_networks is only required for compatibility. If it isn't
specified it will cause the |combine to fail. Lets default it to an
empty dict.
2018-02-08 18:08:28 +00:00
Kevin Carter e97c013f67
First commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-08 11:39:40 -06:00