29 Commits

Author SHA1 Message Date
Pete Birley
2b20d818a8 Libvirt: allow the libvirt config to include list params
This PS udpates the libvirt chart to correctly handle listed params.

Change-Id: I73d71a8d10b99420d3f1c69be476cf7ca4927951
Signed-off-by: Pete Birley <pete@port.direct>
2018-08-01 11:39:13 -05:00
Anderson, Craig (ca846m)
82d99e8f7a Improve robustness of hugepage checks on startup
Change-Id: I46284eb2c1cb80dd7c274e03ee1f074e63e0ba7d
2018-07-13 23:11:07 -07:00
Pete Birley
25e50a34c6 Nova/Libvirt: mount vm state directories with bidirectional propagation
This PS updates the Nova and Libvirt charts to mount the vm state
directories with bidirectional mount propagation for k8s >= 1.10.
This allows mounts created by some volume drivers to be used, and
unaffected by pod restart.

Change-Id: Idaf664efb23a424dd8d9e1376ea7231b8565e3fe
Signed-off-by: Pete Birley <pete@port.direct>
2018-06-27 04:00:25 +00:00
Pete Birley
dd006e9569 Libvirt: add dynamic deps on neutron agents as option.
This PS adds the ability for the Libvirt chart to depend on
neutron agents being up if desired.

Change-Id: I7cd2dca4416d1852261591a0064381ae2b087b9a
Depends-On: Idcade7eebed317852b70392431ed02a352241c9b
Signed-off-by: Pete Birley <pete@port.direct>
2018-06-16 17:54:53 +00:00
Pete Birley
5cfa1501a2 Daemonsets/Deployments: Use current kubernetes api version
This PS moves to use the current ga version for kubernetes daemonsets,
additionally any remaining deployments that were using the
`extensions/v1beta1` have been updated to `apps/v1`.

Story: 2002205
Task: 21735
Depends-On: If9703162dc472af1e6096bf2b9062802fd5ce8ab

Change-Id: Iba4e3d2798c54639e077b80999e669c79b616c6f
Signed-off-by: Pete Birley <pete@port.direct>
2018-06-15 14:35:31 -05:00
Pete Birley
460675bf7f Add image management function to manifests
When removing helm-toolkit from OSH and swithcing to use the
toolkit from OSH-Infra, the image declaration function was missed.

Depends-On: I2f2012590d81ffcb159d49d8a76eedd4441744cd
Change-Id: I0f1118bb748f3fe1b6bb73acfc00e77c5cca9c7d
Signed-off-by: Pete Birley <pete@port.direct>
2018-05-20 10:10:16 -05:00
Steve Wilkerson
354b311ec5 Add local-registry image managment to OSH from OSH-Infra
This PS adds the local registry image managment to OSH from OSH-Infra.
With this the delta between helm-toolkits in the Repo's is removed,
allowing the toolkit from OSH-Infra to be used and the one from OSH
to be depreciated.

Change-Id: If5e218cf7df17261fe5ef249d281f9d9637e2f6a
Co-Authored-By: Pete Birley <pete@port.direct>
2018-05-12 14:35:48 +00:00
Pete Birley
45b223d9d1 Ceph/Libvirt/Cinder/Nova: update charts to support OpenStack >= Ocata
This PS updates the charts to suuport Ceph RBD volume attachment, for
Newton to Queens.

Change-Id: I675ee65579e7f9a0b328a03b4064cd85ae5d1de7
2018-05-08 18:32:17 +00:00
Sean Eagan
97ac197a6e Move to v0.3.1 of kubernetes-entrypoint
Move to v0.3.1 of kubernetes-entrypoint which has 2
breaking changes to pod dependencies, and also adds support for
depending on jobs via labels.

Change-Id: I49d2cea11fbe5c5919ae22a020b877ebbb285992
2018-04-25 12:45:50 -05:00
Hyunsun Moon
7295f308cc Don't mount pvc-ceph-client-key when not used
Closes-Bug: 1755975
Change-Id: I65a2e99cecce63bdae20f6e83cf62edf5327d7c6
2018-04-17 17:14:08 +09:00
Betterme001
0f0e696ae8 fix the vms turn transient after libvirt pod restarts
After libvirt pod restarts, the virtual machines created before
turn transient ,then opetrate these vms ,nova-compute will throw
exception. This is because that the directory /etc/libivrt/qemu
in pod contains vitual machines xml files and it is temporary,
the xmls files disappear after the pod restarts, so we mount it
to hostpath /etc/libvirt/qemu.

Change-Id: I48fd712c2b0565cb2cfe850482e8501f4e5022a4
Closed-bug: 1760003
2018-03-30 14:12:48 +08:00
Zuul
eb18200d21 Merge "Detect and enable hugepage support for QEMU" 2018-03-22 17:22:18 +00:00
Craig Anderson
059453c40c Detect and enable hugepage support for QEMU
Change-Id: I3284c0f8f8946a36a63871dc57e287fbe7260490
2018-03-21 15:14:54 -04:00
Sean Eagan
85587f2f56 Use v0.3.0 of kubernetes-entrypoint
This version is already being used by some charts, so this brings the
rest of the charts in line and allows them to use a new feature,
pod dependencies, that this version provides.

Change-Id: Ie8289eb09b31cd8f98c2c5b4dd5bbe469078e6d8
2018-03-19 10:35:36 -05:00
Pete Birley
f57972b5b6 dependencies: move static dependencies under a 'static' key
This PS moves static dependencies under a 'static' key to allow
expansion to cover dynamic dependencies.

Change-Id: I38990b93aa79fa1f70af6f2c78e5e5c61c63f32c
2018-02-23 12:31:15 -08:00
Chris Wedgwood
6b844382ad yaml cleanup: trim multiline strings
Change-Id: Ice615c1d252651793dfa09b8e85a5b4228d68737
2018-02-20 16:39:52 +00:00
portdirect
3f8895b2b7 Libvirt: Move to lightweight Libvirt 1.3.1 image
This PS moves to use a lightweight libvirt 1.3.1 image based on
ubuntu xenial for used with newton openstack.

Change-Id: I99f64bba7aca3896fc3d32884c3e6f59ff088f79
2018-02-18 14:49:31 -05:00
portdirect
cdaa02ef38 Libvirt: update default params for newer versions of libvirt
This PS updates the default params for the libvirt chart to enable
operations with newer releases.

Change-Id: I0b6fd5cdb9cd7de3c3ea45c49b2d4b8e1ab5b323
See: https://review.openstack.org/#/c/492552/
2018-02-04 23:39:08 -05:00
portdirect
dade748dcf Libvirt: move configuration to be generated directly from values
This PS moves the configuration files used by libvirt to be
generated directly from the values, rather than being templated.

Change-Id: I8ab2783c9d1d5d815cc02eccafa21058ff3acead
2018-01-04 18:24:08 -05:00
portdirect
fa2620d54b RBAC for OSH
This PS applys RBAC rules to OSH, based off the work
done in https://review.openstack.org/#/c/526464/

Change-Id: I541b0ac1a3972566ef2b66571ae32744dab70c17
2017-12-26 10:24:19 -05:00
intlabs
fe6107cf76 Images: Update values to allow simple parse of images being used
This PS updates the values file layout for images to allow simple
parsing of the images in use by charts, allowing them to be queried
and modified much more simply. By moving the image tags to a 'tags'
key, we can extend the options used simply to accomodate extra
options simply (eg prefixing the tag for use with an internal
registry) or pre-pulling the images to reduce chart deploy failure.

Change-Id: I9ec1dbb00d997ab6cb021bf0b698f7aae740e95d
2017-10-23 10:05:20 -05:00
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
Jenkins
4379e5aadc Merge "Check libvirtd based on /proc instead of /var/run" 2017-09-22 03:21:33 +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
Seungkyu Ahn
da30982acf Make qemu use nova user
Ubuntu cloud archive released libvirt-bin version 2.5.0 which runs vms as
libvirt-qemu user. We need to force qemu to use this user to be able to
access vm files.

Change-Id: I47ff3e3b3f9412734bdc662f14681850bf64d53f
Closes-bug: 1714421
2017-09-02 11:09:16 +09: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