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