Commit Graph

6 Commits

Author SHA1 Message Date
Chris Wedgwood
04d8ced3c4 libvirt: fix secret so that volume attach works
In addition to restoring the secret setting again this removes some
redundant logic and does minimal cleanups.

Change-Id: I5dbcbd393b18befd762518e3865da9e006cf5bd9
2017-10-03 20:35:37 +00:00
Pete Birley
af1e19ef49 libvirt: fix operation when ceph is disabled
The movement of the ceph secret logic into the start script introduced
a bug that was missed in review when ceph is disabled, this PS
restores expected operation.

Closes-Bug: #1720061

Change-Id: Ie373ff94814ea396832a83101c885ebf92b6f8cc
2017-09-29 17:59:59 +00:00
Chris Wedgwood
e12d762136 [libvirt] Move 'ceph secret' to daemon start up
At present (Kubernetes 1.7.x) there is no logging for postStart
operations, when things this causes the pod to restart.  This change
means we once again get logging.

Change-Id: Id046968eef404c05a4215d73406a4eb604eb3ee5
2017-09-22 03:29:47 +00:00
Craig Anderson
388562e672 Check libvirtd based on /proc instead of /var/run
Change libvirtd check to look for pre-existing libvirt processes on the host based on /proc, which is more reliable than pidfiles written under /var/run/ which may be stale or may not be written at all.

Change-Id: I8a08dc7930c15ae90e1c6fb8a5fa3344cca2380f
Closes-Bug: #1715702
2017-09-14 11:06:27 -07:00
Chris Wedgwood
bfd9cb8655 Wait for libvirtd socket to be available
There is a race where the libvirtd.pid file appears but the socket has
not (yet) been created; this adds a timeout-loop waiting specifically
for the socket.

Change-Id: Ib2ede3b8d5c49bc650bf8a64cbffc03444bb2dd0
2017-08-31 17:24:47 +00:00
Pete Birley
0252ca776e Nova: Move Libvirt into its own chart
This PS moves libvirt into its own chart - decoupling it from nova,
both making it easier to deploy and use seperately and permitting
use of other compute backends.

Partially implements: blueprint split-nova-and-neutron-infra

Change-Id: I06237157244c3cdb5503eafa01229d061b1614f0
2017-08-29 23:50:08 -05:00