Commit Graph

25 Commits

Author SHA1 Message Date
Dmytro Dovbii
a631cf57ff Add missed parts of providing versioning to stable/mitaka
Change-Id: Ife9de7da408f340c5a855be3281e4a8ca55837bc
2016-09-26 15:25:03 +00:00
Sergey Kraynev
d83b8b48c6 Pin stable/mitaka to 1.0.0 version
Change-Id: Ic4c2fe480c6f2a99bfea545a9855ad9635322c2a
2016-09-23 12:34:15 +00:00
Tetiana Lashchova
3b233af5cb Fix usage of id() and super() methods in Docker apps
Change-Id: Ieb34aee28b796adfceebca0c825d05de02cf37ac
Closes-Bug: #1593682
(cherry picked from commit 1d0fc0a3e0)
2016-09-21 14:36:20 +03:00
Dmytro Dovbii
3807b06250 Fix yaql related issues in Docker apps
Partially-Implements: bp refactor-apps-scripts

Change-Id: Iaf75ec38b133d45778bb1c0f3328e939a9a54bda
(cherry picked from commit b46d49af09)
2016-09-21 14:30:34 +03:00
Dmytro Dovbii
b8eeb2bfee Initial refactoring of murano apllications
* Increases format of packages
* Adds missed licence headers
* Other minor refactoring

Change-Id: I580bea2eb2f7e4616cd12245367ada8d43c5c4ff
Targets: bp refactor-apps-scripts
(cherry picked from commit aa524e0acc)
2016-09-21 14:27:17 +03:00
Nikolay Mahotkin
c1ec6caaaf Fixing volume entry definitions
* According to
   http://kubernetes.io/docs/user-guide/volumes/#types-of-volumes
   and
   a1b5325011
   there is hostPath volume type instead of hostDir;
   And there is no 'source' keyword anymore.

 * Replacing 'kubectl update' on 'kubectl replace':
   kubectl update is deprecated, need to use 'replace':
   9b3d42c090

Closes-Bug: #1604766

Change-Id: I1029caeb2827fc9de271b457c7a61b043d0189cb
2016-08-26 15:11:14 +03:00
Nikolay Mahotkin
74f943b92f [k8s] Restrict getEndpoints to search only in current pod
* If we have a k8s cluster installed and
   then deploy 2 apps, each on separate pod,
   then in logs we will see 2 endpoints for
   2nd app. Then we will see 3 endpoints for
   next pod/app deployment. The reason is searching
   endpoints was done by whole k8s cluster but it
   should rather be only by current pod.
   Now it is fixed.

Closes-Bug: #1613631

Change-Id: I730016dcd55a922ac6c9ee20f9de500f7831f9c3
2016-08-22 13:51:38 +03:00
Vitaly Lopatkin
186a562d7f privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
(cherry picked from commit 2080ebd86a42c3b56b5e5643ba9886ed0b4dfb13)
2016-07-26 08:19:12 +00:00
Valerii Kovalchuk
c80837557a [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
(cherry picked from commit 92238f78c873cfada8befbf0afd8bb35e16ed28d)
2016-07-22 13:39:50 +00:00
Tetiana Lashchova
b103490c4c Update namespaces for k8s applications
Replace io.murano.apps with com.mirantis

bp fix-fqn-usage

Change-Id: I5bb6129a51beadffe124cd0fb289f41e05cd52c3
(cherry picked from commit cdd7bc068408726313952dd5d4bc9be8579ecbb9)
2016-07-15 11:36:48 +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
17fea01068 [Kubernetes] Action to scale Pod up/down
Change-Id: I6b2737524955b1f72b6a692559d3942cbb60deb7
Closes-Bug: #1449599
2015-10-09 15:54:32 +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
Dmytro Dovbii
0fc2e52dc4 Add Require section to maniest file for all apps
Change-Id: I88d690eab977d54e8272fd66a4b785ee5022a2c6
Closes-Bug: #1446563
2015-05-26 09:41:30 +03:00
Stan Lagun
39a9001c04 Adds ability to delete docker applications from the host
Application deletion were supported on DSH/Pod but not exposed
in DockerApplication. Once it became exposed number of bugs in
KubernetesPod and DSH became visible.

Change-Id: I33650936a73994668f72348a909b7a51bae2b98c
Closes-Bug: #1446582
(cherry picked from commit a74293e2b4ed5695737066d9154d51a4170b8a80)
2015-05-01 22:44:24 +00:00
Stan Lagun
cf80a59454 Fixes env validation in k8s 0.15/API v1beta3
for ENV variables parameter name was renamed from "key" to "name"

Closes Bug: #1447948

Change-Id: I2977800eaa8606c934ee33b907a68981753696c7
2015-04-24 13:04:55 +00:00
Stan Lagun
342ef70801 Added missing execution plan
Execution plan to patch existing k8s services to include node IPs
when number of nodes changed and we are not using gateways
or we was using gateways and now we don't

These 2 files were supposed to be in
https://review.openstack.org/#/c/175506/
but I forgot to commit them

Also fixes typo that is already fixed in stable/kilo

Change-Id: I6af644511bf25ae7ae31c88914d33b8c518a4eec
2015-04-22 03:28:37 +03:00
Jenkins
1576a5626b Merge "Add license information" 2015-04-22 00:23:44 +00:00
Jenkins
e4645044e1 Merge "Update for changes in k8s 0.15" 2015-04-21 14:17:48 +00:00
Stan Lagun
c681e2197d Update for changes in k8s 0.15
* Migrated to v1beta3 API
* cAdvisor is now enabled by default
* command line daemon settings updated
* HAproxy template updated for multi-port services
* Better reporting

Change-Id: Iefcbe8073fb35503e2fe2ee5c6bf4610561c3cb6
Closes-Bug: #1446306
Closes-Bug: #1445541
2015-04-20 20:34:02 +03:00
Ekaterina Chernova
53c9a9ad26 Add license information
* LICENSE file placed to every package
* License information is shown during application creation
* License added to every file

Change-Id: I682f3d9a09d0c0b575206d79223c1822c4b94f27
Closes-Bug: #1446121
2015-04-20 19:15:15 +03:00
Dmytro Dovbii
6e0e04f47c Add validators to k8s pod UI
Kubernetes imposes a number of restrictions for the names
of pods and labels syntax.
This patch adds validation of pod name and labels fields.

Change-Id: If93d1cc8750f1550aaa9649fdc012c302560b88d
Closes-Bug: #1445149
2015-04-20 17:10:04 +03:00
Stan Lagun
a855e9a879 Adds support for several applications in single Pod
Kubernetes doesn't allow to add containers to a Pod that
is already deployed. With this change old pods will be deleted
and either new pod created which will include new container
or Replication Controller will be modified (before Pod delete
so that updated Pods be created instead)

Also now Pods are created only when replica number set to 0.
Otherwise Pods created by ReplicationController alone.

Change-Id: I8552793f39083de47ad07e7013dedb72e0550885
Closes-Bug: #1444208
2015-04-15 00:28:31 +00:00
Stan Lagun
e9a04c4db0 Fixes replication controller deletion
KubernetesCluster method to delete RC was using incorrect
property and there was a typo in execution plan making it
fail on validation

Also renames destroy* methods to delete* methods to match
Kubernetes terms

Change-Id: I2ff71679deeb5ad3692fcc1a5fcfed8fa0e8d94f
Closes-Bug: #1443857
2015-04-15 03:15:58 +03:00
Dmytro Dovbii
7cb39996f0 Restructure murano-apps repository
Change-Id: I9cdb1e4afcb9929c7b7a5437faaa25d284daefdb
Closes-Bug: #1441644
2015-04-14 09:42:21 +03:00