Commit Graph

79 Commits

Author SHA1 Message Date
alexz
3f7ec09847 Shell files syntax cleanup
* add SC2001 to shellcheck skip-list
* few functions from CloudFoundryDiego application was changed -
  manual deployment test requeired

Change-Id: Ib7b223553bdfc14f7051911d7ed0e4076c6aebb0
2016-07-29 09:05:33 +00:00
alexz
719a47fa86 Yaml syntax cleanup
* remove 'error' like:
- no new line character at the end of file
- trailing spaces

Change-Id: I981f5353a5bd5bfb1546946b240a85905272887e
2016-07-27 14:06:24 +00:00
Jenkins
001f04c3a2 Merge "privileged mode support for KubernetesPod and DockerStandaloneHost" 2016-07-24 18:35:15 +00:00
Vitaly Lopatkin
ba744855df privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
2016-07-22 16:52:44 +06:00
Dmytro Dovbii
82c876eb1e [k8s] Fix typo in member configuration script
Change-Id: I07fd7a1e773b6e9c975f246abfd7055078db2c0a
2016-07-22 12:37:48 +03:00
Dmytro Dovbii
8da5a549fc [K8s] Delete hardcoded name of image
Now app can use two images: debian 8 and ubuntu 14.04

Change-Id: I360c2d02ad1ea726448a2338852d3c190cf1f3bb
2016-07-15 11:32:36 +00:00
Dmytro Dovbii
aadbfa87f2 Add info about Debian image building to elements readme
Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a
2016-07-15 13:57:33 +03:00
Dmytro Dovbii
62cbb515af [K8s] Update dib elements to support debian image
Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6
2016-07-15 13:57:33 +03:00
Dmytro Dovbii
f666ae2b3f [K8s] Add units to make k8s working on debian
Change-Id: Iec45db413f0e88a68b435a13aa7a4b4a6fdfd818
2016-07-15 13:57:24 +03:00
Dmytro Dovbii
93878c0db1 [K8s] Update scripts with etcd and flannel configuration
This patch adds tuning of existing scripts related to
updating etcd binaries from 2.0.13 to 2.2.5

Change-Id: I33eac5abe96449a2a35f7305632b68fd20960f5c
2016-07-15 13:49:53 +03:00
Nikolay Mahotkin
2d4eb1d122 [K8s] Updating DIB elements and fix k8s application
* DIB element is updated to the latest k8s version - 1.3.0
 * K8s application is fixed according to the new k8s version:
    - replaced short '-t' flag on the long one - '--template'

Change-Id: I37d73a907c55c0e3aca6a2e786b05a9e99a215ac
2016-07-04 19:34:14 +03:00
Jenkins
f0513c429a Merge "[K8s] Update DIB elements to use latest stable binaries" 2016-06-21 23:20:17 +00:00
Jenkins
df5b08864b Merge "Fix usage of id() and super() methods in Docker apps" 2016-06-21 12:33:20 +00:00
Tetiana Lashchova
1d0fc0a3e0 Fix usage of id() and super() methods in Docker apps
Change-Id: Ieb34aee28b796adfceebca0c825d05de02cf37ac
Closes-Bug: #1593682
2016-06-21 13:27:35 +03:00
Jenkins
30cf1b9414 Merge "Update namespaces for k8s applications" 2016-06-21 08:25:28 +00:00
Tetiana Lashchova
f57eb2fa4c Update namespaces for k8s applications
Replace io.murano.apps with com.mirantis

bp fix-fqn-usage

Change-Id: I5bb6129a51beadffe124cd0fb289f41e05cd52c3
2016-06-17 12:36:17 +03:00
Dmytro Dovbii
c78ac38bcb [K8s] Update DIB elements to use latest stable binaries
Change-Id: I98c0815d8dd0295c5982934b7b42cad126e04d88
2016-06-16 13:20:48 +03:00
Jenkins
2bbc0f8936 Merge "[kubernetes] Create actions to recreate pods and restart containers" 2016-06-16 01:15:00 +00:00
Jenkins
8298db5d79 Merge "[k8s] Save gateway node ip before its release for proper reporting" 2016-06-10 20:19:00 +00:00
Valerii Kovalchuk
3c3371f270 [kubernetes] Create actions to recreate pods and restart containers
This patch adds actions to KubernetesPod class which allow to
recreate a pod (delete it and create new one) and to restart docker
containers on minion nodes.

Change-Id: Ia03b27d72662700fb302960adba9dae20203b597
Closes-bug: #1466359
2016-06-10 19:19:36 +03:00
Dmytro Dovbii
8dd4721331 [Docker] Add cidr configuration for docker0 interface
Change-Id: Ib332086359a005146ffefb8b16c324ef04604785
Closes-Bug: #1590070
2016-06-10 08:00:00 +00:00
Valerii Kovalchuk
b1b9bf39fb [k8s] Save gateway node ip before its release for proper reporting
During scaling gateways down, reporter was trying to get ip of the
instance which was already released and that caused index error.
This patch saves this ip for report before releasing resourses.

Change-Id: I9310a423b1ad8c488c1cc7400844ae5d8767879c
Closes-bug: #1590728
2016-06-09 20:26:20 +03:00
Dmytro Dovbii
b46d49af09 Fix yaql related issues in Docker apps
Partially-Implements: bp refactor-apps-scripts

Change-Id: Iaf75ec38b133d45778bb1c0f3328e939a9a54bda
2016-05-11 16:27:06 +00:00
Jenkins
7144c14372 Merge "Initial refactoring of murano apllications" 2016-05-10 08:03:06 +00:00
Tetiana Lashchova
53ad51fd3e Fix typos in log, comments and template section name
Unnstalling -> Uninstalling
envionrment -> environment
FormattVersion -> FormatVersion

Change-Id: I3efab0a44201935d077c9f5e25550b314731aa40
2016-04-25 13:42:43 +00:00
Dmytro Dovbii
aa524e0acc Initial refactoring of murano apllications
* Increases format of packages
* Adds missed licence headers
* Other minor refactoring

Change-Id: I580bea2eb2f7e4616cd12245367ada8d43c5c4ff
Targets: bp refactor-apps-scripts
2016-04-07 12:55:24 +03:00
Konstantin Snihyr
1dcc9914dc Action "exportConfig" removed from KubernetesCluster package
Change-Id: I9cb5366afca2d08c9e39808aa308f628d9bd0766
2016-03-02 19:25:21 +03:00
Kirill Zaitsev
ce64434d6a [Kubernetes][doc] Expand k8s docs. Add documentation for classes
Targets bp: docs-k8s-app-usage

Change-Id: I6f734f63a0e4b90cae58b7e45c1a7650bf0e76ff
2016-02-11 21:22:26 +00:00
Renat Akhmerov
c00a4cb72a Fixing typos in README.rst for Kubernetes apps
Change-Id: Ibdcc23468bc76d381d19bbec859d3b5bd8c11b96
2016-01-18 15:29:03 +00:00
Jenkins
1ec49e402a Merge "[Kubernetes] Kubernetes documentation" 2015-12-03 20:43:42 +00:00
Jenkins
8008c8b12f Merge "Add Google Container Registry to KubernetesCluster" 2015-12-03 16:24:23 +00:00
Stan Lagun
f8be41a14c [Kubernetes] Kubernetes documentation
Change-Id: Ic6c8a0769bd92cd70e5ff42c5aecdf377c836f0c
2015-12-03 16:48:42 +03:00
Tetiana Lashchova
d082560c46 Add Google Container Registry to KubernetesCluster
Allow access to Google Container Registry using json key as
a password for docker login. The key is scoped to a specific
Google Cloud Platform Console project and its resources.
Add new field for key.

Partially implements: blueprint k8s-google-registry-support

Change-Id: Ica71d1a48ac7fb75a71497fcbe318d1b9e4e8192
2015-12-03 14:14:09 +02:00
Stan Lagun
095dece649 [Kubernetes] Rename minions to Kubernetes nodes
Change-Id: I64b8b199d536bb56529c5b2c4d2879c8deac3cb8
Closes-Bug: #1466348
2015-11-12 01:36:52 +00:00
Jenkins
84e7e83cb6 Merge "Add custom docker registry to KubernetesCluster" 2015-11-09 17:51:25 +00:00
Tetiana Lashchova
3b1fba08b8 Add custom docker registry to KubernetesCluster
Allow access to private docker registry using docker argument
'--insecure-registry'.
Add new field for docker private registry host ip or domain name.

Partially implements: blueprint k8s-docker-enterprise-hub-support

Change-Id: I725c0b6a2bdbfe6eb9e627266411286fe44bfae3
2015-11-02 14:25:20 +02:00
Jenkins
c4c20022ac Merge "[Kubernetes] Bunch of issues regarding scaling was fixed" 2015-10-27 05:34:37 +00:00
Stan Lagun
9715d5e3e7 [Kubernetes] Bunch of issues regarding scaling was fixed
1. There was scaleGatewayUp but no Down action
2. Gracefully remove node from etcd upon down-scale of nodes/gateways
3. Log to user which gateways were created/deleted
4. Deployment either hanged or worked incorrectly when downscaling and then
     upscaling something again

Also sets minimum gateway node count to 1 until gateway-less mode be fully
functional again

Change-Id: Ie3255f70b8a3fdfadab119a579c00433938495c8
Closes-Bug: #1509074
2015-10-22 23:10:33 +03:00
Ekaterina Chernova
576cd97d0c Remove 'images.lst' files
Some images are updated and may not supported in the future.
Murano admins should build images by there own
from fresh elements, provided in the application folder

Change-Id: I683bcac64e46e4c93a1b958e5b79452874c44288
(cherry picked from commit bd51f268525a55c7800a32a3e3d3fd5e9ffc4fb0)
2015-10-20 12:05:20 +00:00
Stan Lagun
0549313491 [Docker] Do not try to delete container on destroyed host
When Environment get deleted both Docker/k8s host and
Docker applications get deleted. So it is possible that host
will try to delete container from an Instance that was already
destroyed. Attempt to send commands to such instance
will hang until timeout because there is no more agent
exist on the other side.

Change-Id: Ia6e8064ae50c24ce595ed08e446ed45b96b4a330
Closes-Bug: #1504623
Depends-On: I298f3f079a153ef87ed7213b7f1432c9e5e4b4b6
2015-10-12 11:23:27 +00:00
Stan Lagun
4026fd9c9f [Docker] Pod (RC) scaling was fixed
Change-Id: I287cdbed1c3b8f8bad0a80219e108f445ad409b3
Closes-Bug: #1504644
2015-10-10 12:10:06 +03:00
Stan Lagun
17fea01068 [Kubernetes] Action to scale Pod up/down
Change-Id: I6b2737524955b1f72b6a692559d3942cbb60deb7
Closes-Bug: #1449599
2015-10-09 15:54:32 +00:00
Stan Lagun
6659c87a67 [Kubernetes] Delete extra VMs upon cluster scale-down
Change-Id: I9bf45ad6d4ae92c667372d13f6fb94fc23bfb081
Closes-Bug: #1498380
2015-10-09 15:54:26 +00:00
Stan Lagun
c334c5fb66 [Kubernetes] Fix cAdvisor port was not added to security group
Change-Id: I0dd421b918c4bf7c85e9e75404f3876f9328c310
Closes-Bug: #1498879
2015-10-09 15:54:19 +00:00
Stan Lagun
6971ac48bc [Kubernetes] Kubernetes was updated to v1.0.6 and v1 API
Implements-Blueprint: update-k8-to-v1-api
Change-Id: Ie34997dc2aef87226459fa67640e39c08cca0ddf
2015-10-09 17:25:32 +03:00
Stan Lagun
ef413891de Updated Docker and k8s DIB elements
* Kubernetes element was updated to base on v1.0.6
* Docker now has its own repo and has different package name.
  Also it is now installed via downloadable script.
  TODO: Need somehow to fix docker version to 1.8.2

Change-Id: I230e9705cb850e9fb3772a67284561907d4be615
Implements: blueprint update-k8-to-v1-dib-elements
Co-Authored-By: Alexey Deryugin <aderyugin@mirantis.com>
2015-10-07 12:54:15 +00:00
Jenkins
8c7eeb87e4 Merge "Increased etcd member node service startup delay" 2015-09-13 18:29:50 +00:00
Alexander Tivelkov
9ddbfbf1dd Increased etcd member node service startup delay
etcd services on Kubernetes nodes should not start concurrently
or even close to each other, otherwise a split-brain may occur.

This patch increases the delay between service starts from 10 to
30 seconds.

Change-Id: I76a6de47e1fff911373cee1909580be73bf8fb02
Partial-bug: #1494999
2015-09-12 05:32:44 +03:00
Alexander Tivelkov
2da4435439 Fixed an issue occasionally causing an empty config for etcd slave nodes
The script which adds new nodes to etcd cluster now does up to 30 attempts
and fails (returns a non-zero exit code) if none are successful.

A minor performance optimization has been done as well, so no unneeded
waits happen when the command is successful and no temporary files are used.

Closes-Bug: #1494997
Change-Id: Ic0552f388518c119925da902b64797bbf96f979f
2015-09-12 05:22:34 +03:00
Stan Lagun
dfa22c8d20 Fixes availability zone selection
Availability zone was present for master node but not for
minion and gateway nodes which caused error when AZ was
not "nova"

Change-Id: I5b223f20223c2d4d1f2d797f94cd366e206773da
Closes-Bug: #1490575
2015-08-31 18:46:34 +03:00