Commit Graph

58 Commits

Author SHA1 Message Date
Jenkins
b7fa4dce2a Merge "Checks: enable remaining core services." 2017-06-15 15:12:11 +00:00
Jenkins
de1a0ece08 Merge "KubeADM-AIO: Make init more stable and support multiple PVC backends" 2017-06-15 15:11:37 +00:00
Pete Birley
f9741a9679 Checks: enable remaining core services.
This PS enables the remaining core services of openstack-helm in
the check/gate runs.

Change-Id: Ia6caafcd0975a5ae020fe204605ef734e26eebbc
2017-06-15 01:59:38 +00:00
Pete Birley
979591af87 KubeADM-AIO: Make init more stable and support multiple PVC backends
This PS makes the init of the KubeADM environment more stable by ensuring
all kube-system pods are up before trying to launch tiller. the NFS PVC
provider is now made optional but enabled by default, so that Ceph (and
other more complex providers) can be supported in future. Finaly the
scripts to bring up k8s/helm are refined to not bring in the clients if
already present with the correct versions on the host.

Change-Id: I4d7ceb6196e8fd5e3350ec99f09fbe6bb5fe01f6
2017-06-14 20:30:51 -05:00
Tin Lam
4358552d8b Fix whitespace linter trap
When the linter fails due to trailing whitespaces, the trapped
dump_logs.sh execution will attempt to collect logs using kubectl,
which is not installed, causing further errors in the log.
This patch set prevents the log gathering if kubectl does not
exists.

Change-Id: I83c13caec2ece7cc8ec9bfd838ae7d4af9dcbed3
2017-06-14 13:31:59 +00:00
Tin Lam
b780680232 Remove trailing whitespaces in rst
This patch set cleans up some whitespaces introduced in preparation
for the linter gate to be voting.

Change-Id: If92a754204c40171b055bfd71eb03ff519955f9d
2017-06-13 22:39:43 -05:00
Jenkins
a094df8a31 Merge "Remove temporary folder copying logic" 2017-06-13 20:34:12 +00:00
Tin Lam
39d12c6d77 Remove temporary folder copying logic
This patch set removes the need to create a temporary directory
brought up in patch set [0].

[0] https://review.openstack.org/#/c/472451/

Change-Id: I57448d9722a33bb63fca5576d19b61f3015828ec
2017-06-12 23:02:12 -05:00
mattmceuen
cf4c6d50de Clarified a couple documentation points.
Conditionals:  since the developer flag is no longer used by the
glance chart, it's no longer a good example.  However, we want to
keep the flag around for future use if needed.  So, replaced with
a foo/bar example.

gen-oslo-openstack-helm README:  it referred to "this directory",
which doesn't make sense when the README is sourced into the
overall ops guide.  Specified the directory explicitly.

Change-Id: I2ba02bd3efd87e58fcb701c8b7c2bb6af05994ba
2017-06-12 21:38:49 -05:00
Jenkins
0a8dfeb517 Merge "Checks: Run the helm template plugin against charts" 2017-06-12 22:44:05 +00:00
Jenkins
374752131d Merge "N-Node gate, and improved logging" 2017-06-09 20:50:21 +00:00
Pete Birley
de656ea7f2 N-Node gate, and improved logging
This PS sets up the check scripts to support a N node gate in zuul
it also adds more comprehensive logging of OS-H.

Change-Id: Id2af01c688a438eeec348f221fb05b09401c80a0
2017-06-09 15:00:29 -05:00
Alan Meadows
a3972f6e5d Ensure gate failure summary shows node assigned to each pod
Change-Id: Ic765a423eddcd13961b395cbcee7b86c5fd07760
2017-06-09 08:10:15 -07:00
Pete Birley
8ec335cbfd Checks: Run the helm template plugin against charts
This PS runs the helm template plugin against charts in the linter
gate.

Change-Id: I660588707a4e2b49d9661222b590dfea67b74fb1
2017-06-08 17:23:41 -05:00
Curtis Collicutt
6ffd10403c Add sudo to docker log command
There are two spots where docker log is run without sudo, and
without sudo the command will usually fail and the loop will
never be exited. This would only be hit on an error.

Change-Id: I4335783478ad2583b581bd9264b029e929bfc8c3
2017-06-07 11:51:39 -06:00
Jenkins
caca8b9d56 Merge "Helm Test: Glance" 2017-06-07 00:22:52 +00:00
Pete Birley
77e02f143c Helm Test: Glance
This PS introduces 'helm test' functionaility to Glance.

Change-Id: I7a25a89f8413aa5e88f28c30f8a040e8d5909bc9
Partial-Implements: blueprint implement-helm-test-for-charts
2017-06-06 18:40:59 -05:00
Jenkins
71152b4fce Merge "Helm Test: Framework & Keystone" 2017-06-06 23:32:41 +00:00
Pete Birley
97f781d6c3 Helm Test: Framework & Keystone
This PS introduces 'helm test' functionaility to keystone and
provides the basic framwork for charts to use.

Change-Id: Ie84a6ca0ed007fb55e10d503d1c3e49788908eec
Partial-Implements: blueprint implement-helm-test-for-charts
2017-06-06 16:52:34 -05:00
Jenkins
85d7b67385 Merge "Multinode-check: 2 Node via kubeadm with NFS" 2017-06-06 21:51:38 +00:00
Pete Birley
6c5e82e096 Multinode-check: 2 Node via kubeadm with NFS
This PS introduces a 2 node check in zuul, it uses the KubeADM-AIO
container to stand up a master and worker node, before deploying
OpenStack-Helm using NFS as a PV backend. This check is a stopgap
untill a 3 node gate is deployed which will use ceph and enable
HA of all components to be tested.

Change-Id: I7bb70e6b103a483a0e1df1492fa2047d229eb86f
2017-06-06 15:15:16 -05:00
Curtis Collicutt
249536bc18 Add -r to xargs command
-r on xargs will not run the command if the input is empty.
Otherwise the command will get run once and it will fail, though
the || true catches the error. With this the || true can be
removed.

Change-Id: I12fbe83b69de39d0cae67e337cbacf8cfab02180
2017-06-06 13:58:47 -06:00
Pete Birley
1ca8efa3a6 KubeADM-AIO: Update Image to support Multinode Operation Natively
This PS also pins the remaining components of the kubelet, moves
the K8s version to 1.6.4 and restores CentOS 7 operation.

Change-Id: Ia32c9e02dbf9451c13addce436f6e36f5a0a622f
2017-06-05 18:09:16 -05:00
Jenkins
c1e008643d Merge "Move dev directory contents and update VagrantFile" 2017-06-02 19:49:10 +00:00
Stacey Fletcher
bf5c643ce1 Move dev directory contents and update VagrantFile
This PS moves the dev contents to the tools directory as well
as updates the VagrantFile to use the existing scripts
for installing kubeadm-aio and deploying helm charts.

Change-Id: I6768d1f96abe6b15f66931d543e9adcc0e82829b
2017-06-02 10:11:04 -05:00
Darla Ahlert
78dd37efc2 Update deployment for kubernetes 1.6
In Kubernetes 1.6, the deployment API version was changed
from extensions/v1beta1 to apps/v1beta1

Change-Id: I14ee465de381d25866224b9eae3512f0b42588d3
2017-06-02 08:45:08 -05:00
Jenkins
1ca77db357 Merge "Update remaining markdown docs to RST" 2017-06-01 21:32:41 +00:00
Pete Birley
d33cf42b84 Add dry-runs to all charts in OpenStack-Helm in dev and gate scripts
This PS adds a dry-run to all the charts in OpenStack-Helm as part
of the Checking process. The output is logged to a ./log dir by
default so the results are caught and handled by the devstack-logs
publisher.

Change-Id: I8f82e371b5098c97311d51071ebb60e8734c2900
2017-05-31 12:50:18 -05:00
Chris Wedgwood
b7150eb0b4 Allow glance to use file method
Allow glance to use the "pvc" method, this was previously called file
but has been renamed for clarity.

We now require Kubernetes 1.6 or later; remove the storage annotation
in favor of storageClassName.

Change-Id: I315eaf68937f91b56c1a26954072bda53767c606
2017-05-25 17:22:14 +00:00
Pete Birley
5c9d0f9562 Nova: Disable virtlogd for Libvirt >1.3
This PS disables virtlogd for running libvirt >1.3

See: https://bugzilla.redhat.com/show_bug.cgi?id=1290357

Closes-Bug: 1686069

Change-Id: I27ab690ef41e99e23a57f42b0695b1becb101e69
2017-05-24 02:03:34 +00:00
Michał Dulko
cc243499ec Update remaining markdown docs to RST
There were few remaining README.md files. This commit converts them to
RST.

Change-Id: Ia0be0012fff33b9be5c9db3febc1e45a076701ec
2017-05-22 10:56:51 +02:00
Tin Lam
e28c4f7ae3 Add a whitespace check script
This patch sets put in whitespace check against all files except .tgz,
files in hidden directory or things in the doc/build folder.  Enforcing
the cleanup work in [0]. Also fixed two readmes' trailing blank spaces.

[0] https://review.openstack.org/#/c/466409/

Change-Id: I21ee232e4d502ca2db9dbf012624d6552d0f7ad2
2017-05-20 11:17:45 -05:00
Pete Birley
f68b0306ab Gate: CentOS, Fedora and local use support
This PS adds support for CentOS, Fedora and running the gate locally
on a developers machine. It also expands on the original gate scripts
by setting up dns access to the OpenStack cluster from the host's
running OpenStack-Helm using a daemonset.

Change-Id: I99c573a44a73452d558e612fc020e22e7f41ade7
2017-05-18 17:49:05 -05:00
Pete Birley
ad1a8fbdf3 KubeADM-AIO: Stability changes
This PS makes the versioning of kubeadm and kubelet a bit easier to
control. It also directs users and the gate to use a published image
providing a consistent known good state to start from.

Change-Id: I052c1784c8549f6f1cb6137bd01e40cec6476249
2017-05-15 16:01:00 -05:00
Pete Birley
54272c4096 kubelet version hotfix
Change-Id: Ic775940e240fa77cd41ebac4e84c2c03fadb55c6
2017-05-11 10:18:16 -05:00
gardlt
51428afe7b Gate: Fix gate selection scipt case
Change-Id: If55773ca5462d0ae3922587394aec8a6a0bc3c58
2017-05-08 11:34:30 -05:00
Pete Birley
33efd05ef8 KubeADM-AIO container tidy
Change-Id: I08696a512d94595b595bb41d27ea72a4b0e48ccd
2017-05-05 15:58:47 -05:00
Pete Birley
67d80770e6 Gate: Refactor and setup for integration gating
This PS tidies up the gate and introduces the intial framework
for integration gating.

Change-Id: I0bbdfa2088e9ebbe86640c79df4d8b716d9a9705
2017-05-05 11:33:56 -05:00
Stacey Fletcher
bab04be137 Add initial gate for OpenStack-Helm
This patch set is setting up initial lint gate job for the
OpenStack-Helm project.

Co-Authored-By: Alexis Rivera <gardlt@tetrasol.org>

Change-Id: I6ebf2d22467f1c56f474c437abd94e5cc4055ee1
2017-05-03 10:48:27 -05:00
Pete Birley
d1313cd0a0 KubeADM-AIO: Reinstate Calico CNI
This PS reinstates Calico as the default CNI backend, and deploys from
a local manifest.

Change-Id: Ic92a40f88b05ccbe0426a207af30608fbadfaf82
2017-05-02 02:14:45 -05:00
Pete Birley
8f41cde73a KubeADM-AIO: update NFS image and move to Canal
This PS updates the NFS Image, and moves the CNI to use Canal as
the backend for container networking.

Change-Id: Iade12181be9a427bad7bc5eb2658eefacbff0279
2017-04-26 15:22:33 -05:00
Jenkins
badd8740f6 Merge "Make the gate job script executable" 2017-04-25 21:38:03 +00:00
Tin Lam
78f900c48a Make the gate job script executable
The -nv gate is throwing permission error.  This patchset makes
the script with ug+x permission.

Change-Id: I78ae8a3588b840529f4f83ad658601e5e84be992
2017-04-25 16:31:45 -05:00
Jenkins
b3dc2d6f2f Merge "Add /var/log/containers mount" 2017-04-24 19:18:18 +00:00
Steve Wilkerson
f5f6dd8a2b Add /var/log/containers mount
The /var/log/containers mount is necessary for use with fluentd.
The kubelet creates symlinks that grab the pod name, namespace,
and container name from this directory on the host, so it needs
to be mounted

Change-Id: Ib1e4769b739d1f85ab22ad66612fb96d4c917b33
2017-04-22 18:29:01 -05:00
Tin Lam
d031d799ce Add a gate setup script
This patch set adds in a skeleton setup_gate.sh script in preparation
of integration with the OpenStack infra job.

Change-Id: I62e84593e50b5e5d8ee04007d5e36cd3116322d8
2017-04-22 17:02:46 -05:00
Jenkins
b73b1896e5 Merge "Update documentation to make previously assumed steps explicit." 2017-04-17 14:58:07 +00:00
Pete Birley
7675b3c2b7 Update documentation to make previously assumed steps explicit.
This updates the documentation for KubeADM-AIO based development
to explicity state previously assumed steps, and add the requirements
to build OpenStack-Helm. This has been tested on a freshly provisioned
AWS Ubuntu 16.04 AMI.

Change-Id: Ie64f75ba29b5263d50ea2d4c26b6e6952ace9310
2017-04-15 22:03:57 -05:00
Pete Birley
56190fb314 Fix Kubeadm-aio /var/lib/kubelet mounts
The script had a typo that prevents it from running on a brand new
host, this commit fixes that.

Change-Id: If73bfcbed5adc703c256c02dcb90a71f6b713a74
2017-04-15 14:27:29 -05:00
Pete Birley
3f894c65ea Kubeadm-aio: Fix echo outputs
This PS fixes the quotes round the echo statments. Though mostly
cosmetic, it is needed for some things that slipped thorough with ! them.

Change-Id: Ie752cc88732192c51e97a2f44f554ad0474f09e5
2017-04-14 19:16:44 -05:00