Commit Graph

21 Commits (c98e9525c7db34734afb29d1b9fb409a08d16ef7)

Author SHA1 Message Date
Spyros Trigazis 273405cb5a Leverage heat-container-agent for monitoring
Use the heat-container-agent from a system container.
It means that the docker daemon can be started later.

Pass as a software deployment with the heat-agent the following
* prometheus-monitoring
** pin prometheus to v1.8.2 since its config is not 2.0.0

Add heat-container-agent container image.

Implements: blueprint heat-agent
Related-Bug: #1680900
Change-Id: I084b7fe51eddb7b36c74f9fe76cda37e8b48f646
2017-12-17 16:35:50 +00:00
Mathieu Velten d003e80a3a Launch k8s scheduler & controller-manager as system containers
Following up of

Depends-On: I22918c0b06ca34d96ee68ac43fabcd5c0b281950
Implements: blueprint run-kube-as-container

Change-Id: I9a7d00cddb456b885b6de28cfb3d33d2e16cc348
2017-08-22 14:01:43 +02:00
yatin 8623776813 Copy service configurations also
This will help in verification of configuration and
troubleshooting ci failures

Change-Id: I81484c507781a8c96f95bc19f7afc591bc01827b
2017-08-16 09:50:07 +00:00
Spyros Trigazis b4386f83ad Add swarm-mode driver
* add swarm-mode config
* remove etcd, flannel, discovery_url, swift_registry
* add swarm-mode COE obj
* add functional test, create cluster, create/remove
  service and delete cluster.

Co-Authored-By: ArchiFleKs <>
Implements: blueprint swarm-mode-support
Change-Id: Iba177be167cb3a3866441d5f42670171f26c5a86
2017-07-18 10:47:23 +02:00
Yasemin Demiral bd46372093 Use 'sudo' to access /etc/sysconfig/heat-params
The patch changed the
permission of /etc/sysconfig/heat-params to 600, so non-file owners
would require use of 'sudo' in order to access the file. This patch
fixes it

Closes-Bug: #1704076
Change-Id: I8bb4a12deb92fa5035bbbb8fc6ce4736ed99ea78
2017-07-13 13:27:20 +03:00
Spyros Trigazis 2910809fab ci: Rename ssh key
For multinode jobs a key with the default name id_rsa already
exists. Add a key for magnum named id_rsa_magnum.

Co-Authored-By: yatinkarel <>
Change-Id: I343e27a6e7311d7d0033bc089293f945c3af2ef8
2017-03-27 17:40:49 +02:00
Spyros Trigazis d4effea503 [k8s] Get logs of controller-manager and scheduler
Get the pod logs for controller-manager and scheduler.

The current copy logs from journalctl because controller-manager
and scheduler used to be managed by systemd.

Change-Id: I1e4e5a810f838cc59d4a4aaa4fc4478541872b0b
2017-01-30 15:06:58 +01:00
Spyros Trigazis d2532a3af2 Upgrade to Fedora 25
Atomic image contains:

The ironic image contains exactly the same packages.

* For this upgrade the upstream image is used, which is
  uploaded here [1].
* Minor changes for flannel and docker-storage-setup
  were needed.
* The image will be built in the CI and uploaded to as soon as possible.
* Ironic image [2].

* docker-storage-setup config changes were needed because in
  the previous images it was disabled and it was started by us.
* We can have selinux enables in containers since the images
  have kernel 4.9.x.


Change-Id: Iac6e30c530821a49a5c3978e335e0b1d56a576e0
2017-01-26 15:40:34 +01:00
Jaycen Grant 729c2d0ab4 Rename Bay DB, Object, and internal usage to Cluster
This is patch 3 of 3 to change the internal usage of the terms
Bay and BayModel.  This patch updates Bay to Cluster in DB and
Object as well as all the usages.  No functionality should be
changed by this patch, just naming and db updates.

Change-Id: Ife04b0f944ded03ca932d70e09e6766d09cf5d9f
Implements: blueprint rename-bay-to-cluster
2016-09-08 13:01:12 -07:00
Drago Rosson 83d154607e Remove kube-user.yaml
Since the fedora atomic already gets set up with the user "fedora",
we can get rid of the "minion" user since it does not add any value
and it is somewhat confusing logging into master nodes as "minion".

Change-Id: I8c842d08780a786a1568f2d50219e580334ef487
Closes-bug: #1608923
2016-08-05 16:33:34 -05:00
Eli Qiao 9c5199bc65 Grab heat-params for debugging
Change-Id: I5a87a275a47e2ca25d5dd558c66ad9ae8788a10f
2016-04-21 10:55:16 +08:00
Hongbin Lu 8972b0c1c4 Notify Heat only if kube-apiserver is running
Kubernetes bay needs to be fully functional before notifying Heat
to bring the stack to CREATE_COMPLETE. This patch added a systemd
unit that keeps pinging the kube-apiserver and notify Heat once
it goes through.

Change-Id: Ib4fb22f3040d76d488c6cac6873d64b4d973ebb1
Closes-Bug: #1551824
2016-04-10 17:42:48 -04:00
Hongbin Lu 68b51d2134 Fix an incorrect key path on copying logs
Magnum SSH into each bay node and copy logs when a test fails.
The specified SSH key path is relative to the home directory ("~"),
which didn't get expanded correctly.

Change-Id: Ie7265adf8027309a4482247283dd52a18397d5d7
Closes-Bug: #1566501
2016-04-05 16:03:56 -04:00
Jenkins ea7660ba9f Merge "Remove minion dependency on master" 2016-03-28 20:43:21 +00:00
Eli Qiao 30a436cf49 Functional: Set private key outside of remote_exec
We get priv_key in remote_exec, so every time we call remote_exec, we
need to compute it again, this can be move out.

Closes-Bug: #1552502
Change-Id: Id44cd5e98f070985feef2583162bd21bca44baf2
2016-03-07 14:57:15 +08:00
Corey O'Brien 08ac9a6cba Remove minion dependency on master
Make thhe minions work correctly without depending on the master.
Removing this dependency decreases provisioning time by provisioning
nodes in parallel.

Change-Id: I025dbf54ef0cdafc4fe26acc33a9faed8cacd1ca
Partial-Bug: 1536739
Partial-Bug: 1551824
2016-03-04 07:41:12 -05:00
dimtruck 7d524491c8 Copy logs on test failure
This patch will copy logs from nova servers to local environment
on test failures.
Don't delete bays until teardown so log gathering will work.
Give functional test types a common base.

Added timeout to docker ps; else, the command would time out,
failing to run the rest of the tests.

Closes-Bug: 1542390
Change-Id: I016ed8fe311bede407f57b7982126c4b77749bec
Co-Authored-By: Corey O'Brien <>
2016-02-29 10:25:10 -06:00
Egor Guz 0e7ba1e1a0 Increase size of Docker volume size
Add logs for docker and docker-storage-setup services.
docker-storage-setup uses MIN_DATA_SIZE=2G for Docker volume, so we
cannot use Docker volume less that 2G (realistic 3G, because some
space should be allocatedtd for medata-data)

Related-Bug: #1500062

Change-Id: I7a0c0023c164f890b492035c05efdb5ce32ef9f9
2016-01-07 20:42:57 -08:00
Egor Guz 2d6ed44e99 Copy Docker containers configs/logs
Magnum run several services (Swarm master/agent, Kub
api/scheduler/proxy) as Docker containers. For debugging any gate
issues we need output/configs from these running containers.

Change-Id: I7754b2479dc44e0213c542ee47b2804626ad21b9
2015-12-13 04:24:32 -08:00
Eli Qiao d38eee5b3a Functional: only copy logs on exception
This patch adds a copy_logs as the handler with unittest's addOnException,
by doing this, we can get logs for all failed cases instead of copy them
before teardown.

If without any failed case, don't copy logs for saving time.

Partially implements: blueprint swarm-functional-testing
Change-Id: I47725d0d16735f650adf325adcf4194eb70c384d
2015-12-03 10:21:20 +08:00
Hongbin Lu 035a07fe4d Record diagnostic info from bay nodes
In functional tests, copy logs from bay nodes to host before the
tests tear down. The bay node logs could be helpful for

Change-Id: I102d2ce37c2253c743719e4ccf978c23a92a3a3f
2015-11-23 17:14:21 -05:00