After deploy of a murano-env with "Kubernetes Cluster (package)" with setting "Custom Docker registry URL" env became unavailable.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
k8s-docker-suite-app-murano |
Confirmed
|
High
|
Dmytro Dovbii |
Bug Description
Hello,
Please take a look at the following issue:
After deploy of a murano-env with "Kubernetes Cluster (package)" with setting "Custom Docker registry URL" env became unavailable.
Configuration:
MOS 9.0 official ISO: MirantisOpenSta
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---+-
4 | ready | slave-01_controller | 1 | 10.109.2.3 | 64:3a:68:0b:7f:af | controller | | 1 | 1
1 | ready | slave-02_controller | 1 | 10.109.2.4 | 64:34:8b:c8:9e:57 | controller | | 1 | 1
3 | ready | slave-03_controller | 1 | 10.109.2.5 | 64:fb:3a:e3:b0:39 | controller | | 1 | 1
2 | ready | slave-04_compute | 1 | 10.109.2.6 | 64:b3:56:cb:60:3b | compute | | 1 | 1
7 | ready | slave-05_compute | 1 | 10.109.2.7 | 64:b5:04:27:69:f6 | compute | | 1 | 1
5 | ready | slave-06_compute | 1 | 10.109.2.8 | 64:43:29:cf:9c:81 | compute | | 1 | 1
6 | ready | slave-07_cinder | 1 | 10.109.2.9 | 64:fd:f9:b3:fe:e0 | cinder | | 1 | 1
Actions:
1) OK - Deploy Env with Murano enabled.
2) OK - Install several murano packeges:
Horizon -> Applications -> Manage -> Packages.
Install:
- Kubernetes Cluster | FQN = com.mirantis.
- Kubernetes Pod | FQN = com.mirantis.
- Docker HTTPd | FQN = com.example.
3) OK - In security rules open port 5000.
4) OK - Create ubuntu VM and assign floating IP to it.
5) OK - Inside created VM with ubuntu install docker and set up local Docker registry.
# sudo apt-get update
# curl -sSL https:/
# curl -sSL https:/
# sudo usermod -aG docker $(whoami)
# docker version
# docker run hello-world
# docker run -d -p 5000:5000 --restart=always --name registry registry:2
# docker pull ubuntu
# docker tag ubuntu localhost:
# docker push localhost:
# docker pull localhost:
6) OK - Get address on your local Docker registry.
It will be <floating IP of VM>:5000.
In my case it is = 10.109.4.132:5000
7) OK - Create murano env.
Horizon -> Applications -> Catalog -> Environments.
8) OK - Add to env following packages.
- Kubernetes Cluster
- Kubernetes Pod
- Docker HTTPd
Inside "Kubernetes Cluster" options set:
- Custom Docker registry URL = 10.109.4.132:5000
9) OK - Run deploy ot the Murano env.
10) OK - Check that all instances are running.
Here are my instances:
- Name: murano-
- Name: murano-
- Name: murano-
- Name: ubuntu_
11) NOT OK - Check that deployment of the murano-env finished successfully.
Deployment of the murano-env finished with unknonw status.
It is not possible to check it because not possible to open "Horizon -> Applications -> Catalog -> Environments".
Following error appears in web-browser:
Something went wrong!
An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.
Deployment, launched from murano API finished with error:
HTTPBadRe
Here is extraction from "Horizon -> Applications -> Catalog -> Environments -> Env_Name -> Logs" before it became unavailable:
. . .
2016-08-23 11:25:42 — Action deploy is scheduled
2016-08-23 11:25:52 — Creating VMs for Kubernetes cluster
2016-08-23 11:25:53 — Installing HTTPd
2016-08-23 11:25:53 — Deploying Replication Controller for Pod testpod
2016-08-23 11:25:55 — Setting up Kubernetes cluster
2016-08-23 11:25:55 — Creating Kubernetes Master
2016-08-23 11:25:55 — Creating Kubernetes Node minion-1
2016-08-23 11:25:55 — Creating Gateway node for Kubernetes services
2016-08-23 11:35:36 — Configuring etcd master node
2016-08-23 11:35:43 — Configuring etcd node minion-1
2016-08-23 11:36:19 — Configuring etcd node gateway-1
2016-08-23 11:36:37 — Setup Flannel network on master node
2016-08-23 11:36:37 — Setup Kubernetes API host
2016-08-23 11:36:44 — Kubernetes API is now available at http://
2016-08-23 11:36:44 — Setup Flannel network on minion-1
2016-08-23 11:36:45 — Setup Flannel network on gateway-1
2016-08-23 11:36:49 — Setup Kubernetes Node on minion-1
2016-08-23 11:36:49 — Setup Load Balancer on gateway-1
2016-08-23 11:36:51 — Gateway gateway-1 is now available at 10.109.4.136
2016-08-23 11:36:51 — cAdvisor monitoring for Node minion-1 is now available at http://
2016-08-23 11:37:25 — Kubernetes cluster is up and running
2016-08-23 11:37:29 — Pod testpod is ready
2016-08-23 11:37:29 — Creating services for Pod testpod
. . .
# . openrc
# murano environment-list
Could not initialise glance client. Image creation will be unavailable.
+
| ID | Name | Status | Created | Updated |
+
| 6e1bca0883fb4a5
+
# murano environment-show MuranoEnv_
Could not initialise glance client. Image creation will be unavailable.
400 Bad Request: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400)
Performing the same actions, but WITHOUT setting "Custom Docker registry URL" in "Kubernetes Cluster" package will lead to successful murano-env deploy.
Changed in fuel: | |
milestone: | none → 9.1 |
tags: | added: area-library |
Changed in fuel: | |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
importance: | Undecided → High |
status: | New → Confirmed |
affects: | fuel → mos |
Changed in mos: | |
milestone: | 9.1 → none |
assignee: | Fuel Sustaining (fuel-sustaining-team) → MOS Murano (mos-murano) |
milestone: | none → 9.1 |
tags: |
added: area-murano removed: area-library |
Changed in mos: | |
assignee: | MOS Murano (mos-murano) → Dmytro Dovbii (ddovbii) |
affects: | mos → k8s-docker-suite-app-murano |
Changed in k8s-docker-suite-app-murano: | |
milestone: | 9.1 → none |
Changed in k8s-docker-suite-app-murano: | |
milestone: | none → ongoing |
> mysql -u murano -p
> use murano;
> select * from environment;
http:// paste.openstack .org/show/ 562475/