charms-6wind:master

Last commit made on 2018-08-14
Get this branch:
git clone -b master https://git.launchpad.net/charms-6wind
Members of 6WIND Juju charmers can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
master
Repository:
lp:charms-6wind

Recent commits

1e46e97... by Valentina Krasnobaeva

layers: set openvswitch-switch service status

dpkg sets status 'disable' to openvswitch-switch systemd service during
openvswitch-switch package downgrade procedure. This causes dpkg
--configure error while installing neutron-openvswitch-agent in a
compute-scaling case. Always set status 'enabled' for openvswitch-switch
service in the postinstall scenario helps to avoid the issue. See more
details in a salesforce ticket #00011516.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Acked-by: Gabriel Frey <gabriel.frey@6wind.com>

c409ffa... by Valentina Krasnobaeva

layers: fix move VA service to multi-user.target

This completes 04e3a825b607c062cf6807f6b600f44a58825169 ("layers: move
VA service to multi-user.target unit") commit.

To move virtual-accelerator.service properly into multi-user.target we
also need to make rc-local.service file executable and to create
symlink to it in /usr/lib/systemd/system.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>

04e3a82... by Valentina Krasnobaeva

layers: move VA service to multi-user.target unit

Due to changes in virtual-accelerator.service file, introduced by commit
0a542fc99dddd1c54456d7881885fd54d1e45920 ("scripts: be more precise when
defining dependencies", products/virtual-accelerator) VA service is
often in a race conditions with cloud-init.service at system boot.
Cloud-init.service is in the same network-pre.target unit as VA and
calls ifup@.service slightly at the same moment, when fast-path.sh
performs its "if down/up". To avoid this, let's move
virtual-accelerator.service in rc-local.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Acked-by: Gabriel Frey <gabriel.frey@6wind.com>

0b90e3d... by Valentina Krasnobaeva

layers: force to install python3-pylxd=2.0.5

Make 6wind-common layer dependent from python3-pylxd version 2.0.5
instead of latest available in repository version of this package,
because of following issue in python3-pylxd 2.2.6:

https://github.com/lxc/pylxd/issues/295.

Commit, that introduces the issue:
https://github.com/lxc/pylxd/commit/4fd212b9029cdb3a0dc2baca45392daaacf0cdf2.

This leads to netdev names changing in requests to LXD daemon, for
example: vxlan_sys_4788 --> vxlan-sys-4788, which provokes the following
traceback:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pylxd/models/_model.py", line 122, in __getattribute__
    return super(Model, self).__getattribute__(name)
AttributeError: used_by

So dependency "python3-pylxd=2.0.5-0ubuntu1.2" allows to downgrade
python3-pylxd until version 2.0.5-0ubuntu1.2 by system apt util.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Acked-by: Gabriel Frey <gabriel.frey@6wind.com>

73022ca... by Gabriel FREY

layers: update supported VA versions

Update supported VA versions in generic VirtualAcceleratorCharmTools
class.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Acked-by: Gabriel Frey <gabriel.frey@6wind.com>

a82dfaa... by Gabriel FREY

va: update supported OpenStack releases

Update OpenStack releases versions, that support 6WIND monkey-patch.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Acked-by: Gabriel Frey <gabriel.frey@6wind.com>

b6ac102... by Gabriel FREY

va: update supported VA versions

Update supported VA versions in *.yaml configs.

Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Acked-by: Gabriel Frey <gabriel.frey@6wind.com>

c598a8c... by Amine Kherbouche

va: keep config files when upgrading

When upgrading va, dpkg finds a custom configuration file and asks for
a prompt anwer. Since the upgrade is done by juju there is no answer and
fails.

Configuration file '/etc/fpm.env'
DEBUG upgrade *** fpm.env (Y/I/N/O/D/Z) [default=N] ? dpkg: error
processing package 6windgate-fp (--configure):
DEBUG upgrade Package 6windgate-fp is not configured yet.
DEBUG upgrade E: Sub-process /usr/bin/dpkg returned an error code (1)

Let's force dpkg to keep old config files.

Signed-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>

5787663... by Amine Kherbouche

va-compute: upgade os extension when upgrading va

Signed-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>

24566d2... by Amine Kherbouche

va: prevent missing config file to raise error

When deploying va without a custom fp config file, juju raises an error:

DEBUG install ERROR could not download resource: HTTP request failed:
resource "license" not found

We don't want this to be an error, let's make it an info.

Signed-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>