lp://staging/charms-6wind

Created by Pascal Mazon and last modified
Get this branch:
bzr branch lp://staging/charms-6wind

Related bugs

Related blueprints

Branch information

Owner:
6WIND Juju charmers
Project:
6WIND Virtual Accelerator Charm
Status:
Development

Import details

Import Status: Suspended

This branch is an import of the HEAD branch of the Git repository at https://git.launchpad.net/charms-6wind.

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-3 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-3 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-3 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-2 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-2 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 15 seconds — see the log

Recent revisions

56. 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>

55. 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>

54. 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>

53. 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>

52. 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>

51. 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>

50. 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>

49. 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>

48. By Amine Kherbouche

va-compute: upgade os extension when upgrading va

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

47. 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>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.