Commit Graph

59 Commits

Author SHA1 Message Date
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
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
Jenkins
8008c8b12f Merge "Add Google Container Registry to KubernetesCluster" 2015-12-03 16:24:23 +00: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
Kirill Zaitsev
53435ca624 Remove malformed leading character in KubernetesCluster
Also removes trailing spaces in empty line

Related-Bug: #1481748
Change-Id: I91af71a6861a29a07ad6ae9cc8f27c4cf87f39a1
2015-08-20 18:14:06 +03:00
Dmytro Dovbii
f5d67b622d Fix typo in Kubernetes Cluster app
Due to the fact that yaql 0.2 allows to compare the number with a
string there are no errors in this check and method works
incorrectly allowing to application to use port 22

Change-Id: I4e6be454b9ee3d6f5f594856610c201e741f310d
Closes-Bug: #1481748
2015-08-05 13:01:34 +00:00
Alexey Deryugin
b4bb6a2191 Fix missing function call in Docker DIB element
Replace call of undefined function 'lowercase' with standart bash string conversion to lowercase

Change-Id: I7fa4a85058e81afbd72d2f245c66995afc5ce26a
Closes-Bug: #1465282
2015-06-15 14:09:17 +00:00
Alexey Deryugin
0661ee3e30 Update Docker DIB elements for usage with Debian-based images
Change-Id: I319c28b5314f9d8ee070a0cafe10968851adf64c
2015-06-05 13:21:46 +00:00
Jenkins
3f06af663d Merge "Set Docker version to 1.6.2 due to Docker update" 2015-06-04 21:43:46 +00:00
Alexey Deryugin
96701cbcfa Set Docker version to 1.6.2 due to Docker update
Change-Id: Idf9e400191787c4df76011a41c192194fd45b012
Closes-Bug: #1457086
2015-05-28 10:04:55 +00: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
Dmytro Dovbii
f56c8d889e Add messages in cases when scaleUp/Down action execution fails
Change-Id: Id233e69ab0bd4d2fd993b3c52b0ce2754cca5588
Closes-Bug: #1449595
2015-05-08 10:38:00 +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
a143180618 Fixes k8s deployment without Replication Controller
UpdatePod execution plan was using field from Pod
definition that was present in v1beta1 API but is no
longer used in v1beta3

Change-Id: Ib57a0e5cc7104d5e1fa39b07644eab182a7fdf45
Closes-Bug: #1447594
(cherry picked from commit a680bf5899e006ff1e3ecf1ee3e3c7cce4a9bebb)
2015-04-24 12:55:02 +00:00
Stan Lagun
b0655459b9 Report correct Node capabilities to k8s
KubernetesCluster used to report 2 CPU cores and 4GB RAM
for each Node no matter what flavor was used for the Node.

This fix adds additional step to ask VM for its real capabilities
and provide those values during Node creation

Closes-Bug: #1447386
Change-Id: I786de0b5fcf5cf094397c8c88b2f03a88326b884
(cherry picked from commit dee685beaba7270b0258c8a5be2d028ecab6d2f8)
2015-04-23 11:09:35 +00:00
Alexey Deryugin
c1660be27e Fix wrong permissions on element files
Change-Id: I106542a3c52657a5cbfcdaac32aa7e1208f5d5a4
2015-04-22 18:50:45 +03:00
Stan Lagun
b1d27539d6 Adds missing DIB element name
kubernetes DIB element was forgotten in readme

Change-Id: Idfc15f692e212111d8610e8feeaef8a7a690e4e2
2015-04-22 12:08:28 +00:00
Alexey Deryugin
a514989c9c Elements for Docker and Kubernetes migrated to murano-apps
Versions for kubernetes components fixed to:
* Kubernetes v0.15
* etcd v2.0.9
* flannel v0.3.1
* confd v0.7.1
* Docker v1.6.0

Change-Id: Ibf4028dc4fbc4568e5de24805669d9caa6d4caf1
(cherry picked from commit cc765433d6878f752a0709b04676de0a96e93c13)
2015-04-22 10:35:09 +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