Commit Graph

107 Commits

Author SHA1 Message Date
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
d7a963e83b Merge "Update namespaces for docker applications" 2016-06-21 08:25:38 +00:00
Jenkins
30cf1b9414 Merge "Update namespaces for k8s applications" 2016-06-21 08:25:28 +00:00
Tetiana Lashchova
492ec6e097 Update namespaces for docker applications
io.murano.apps -> com.mirantis for k8s applications,
io.murano.apps -> com.example for example applications.

bp fix-fqn-usage

Change-Id: I7061b48ebcc5c33b96a14cfabb982d709f8b709d
2016-06-17 12:37:23 +03: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
Dmytro Dovbii
39875b0e75 Fix Docker GuestBook
Function find() in DockerApplication `initialize` method
returned `null` due to the fact that instance of DockerRedisSlave
class was created with `new()` and this object didn't have owner.
This fix corrects the creation of object

Change-Id: Ib4209cd95edb0209f82dc05e55fe777a212ec9e5
Closes-Bug: #1560441
2016-03-22 15:41:32 +02: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
40008f2502 Merge "[Docker] Docker applications developer reference" 2015-12-03 20:43:36 +00:00
Jenkins
8008c8b12f Merge "Add Google Container Registry to KubernetesCluster" 2015-12-03 16:24:23 +00:00
Jenkins
b1862067d2 Merge "Add Google Container Registry to DockerStandaloneHost" 2015-12-03 16:24:00 +00:00
Stan Lagun
f8be41a14c [Kubernetes] Kubernetes documentation
Change-Id: Ic6c8a0769bd92cd70e5ff42c5aecdf377c836f0c
2015-12-03 16:48:42 +03:00
Tetiana Lashchova
2d2390cb72 Add Google Container Registry to DockerStandaloneHost
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: I904110522b482cce56a2fc14ae77eb50064b723f
2015-12-03 14:19:04 +02: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
Henar Muñoz Frutos
615f6acd40 Modifying Orion docker package to use MongoDB docker
The Orion context broker needs a MongoDB database to
persist its data. In terms of docker, two dockers (one for orion and
another for mongodb) should be deployed. It is important to
configure correctly orion docker with mongodb docker IP.

Change-Id: Iba09ceb6ad4145913dfcbff5ecff840a498f3d4a
2015-12-02 07:52:41 +01:00
Stan Lagun
931fd4406e [Docker] Docker applications developer reference
Change-Id: I90e9f5ab67829fd4c9dd6256ed835a458da692eb
2015-12-01 14:44:07 +03: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
Jenkins
082cc0c0cc Merge "Add custom docker registry to DockerStandaloneHost" 2015-11-09 10:26:18 +00:00
Tetiana Lashchova
f75e1e9700 Add custom docker registry to DockerStandaloneHost
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: I0e7b0ceebe9deda090fff56ec87f3c615050cc2a
2015-11-02 14:28:51 +02: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