Docker Community Forums

Share and learn in the Docker community.

UCP doesn't install - no errors shown, only 2 containers built


(E4jet) #1

Hello,
I started with CentOS7 core, followed the CS Engine instructions, then ran the following command to install UCP:
docker run --rm -it --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp:1.0.0 install -i
The container exists without error, but I don’t end up with a full install of UCP.
Below is the output of the command as well as some version info and the logs. Any help would be greatly appreciated.
Thanks!

[root@docker-node1 ~]# docker run --rm -it --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp:1.0.0 install -i
Unable to find image 'docker/ucp:1.0.0' locally
1.0.0: Pulling from docker/ucp
9ba637b863b8: Pull complete 
a3ed95caeb02: Pull complete 
Digest: sha256:92e6dd6bed9ecfd9cc84a51d7e2032a362a96f61b20d5c3d0f3ed7cf91b09382
Status: Downloaded newer image for docker/ucp:1.0.0
INFO[0000] Verifying your system is compatible with UCP 
WARN[0000] Your system uses devicemapper.  We can not accurately detect available storage space.  Please make sure you have at least 3.00 GB available in /var/lib/docker 
Please choose your initial Orca admin password: 
Confirm your initial password: 
INFO[0011] Pulling required images... (this may take a while) 
We detected the following hostnames/IP addresses for this system [docker-node1.localdomain 127.0.0.1 172.17.0.1 192.168.180.137]

You may enter additional aliases (SANs) now or press enter to proceed with the above list.
Additional aliases: 
INFO[0051] Installing UCP with host address 192.168.180.137 - If this is incorrect, please specify an alternative address with the '--host-address' flag 
INFO[0007] Generating UCP Cluster Root CA               
INFO[0035] Generating UCP Client Root CA                
INFO[0040] Deploying UCP Containers
                     
[root@docker-node1 ~]# docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                                                                             NAMES
264a4df72416        docker/ucp-proxy:1.0.0   "/bin/run"               7 minutes ago       Up 7 minutes        0.0.0.0:12376->2376/tcp                                                           ucp-proxy
0450a5ec5942        docker/ucp-etcd:1.0.0    "/bin/etcd --data-dir"   7 minutes ago       Up 7 minutes        2380/tcp, 4001/tcp, 7001/tcp, 0.0.0.0:12380->12380/tcp, 0.0.0.0:12379->2379/tcp   ucp-kv

[root@docker-node1 ~]# docker version
Client:
 Version:      1.10.2-cs1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   8e23741
 Built:        Mon Feb 22 20:56:00 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.2-cs1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   8e23741
 Built:        Mon Feb 22 20:56:00 2016
 OS/Arch:      linux/amd64


[root@docker-node1 ~]# docker logs ucp-kv
2016-03-03 18:48:08.276193 I | etcdserver: setting up the initial cluster version to 2.2
2016-03-03 18:48:08.276838 N | etcdserver: set the initial cluster version to 2.2
2016-03-03 18:48:08.277096 I | etcdserver: published {Name:orca-kv-192.168.180.137 ClientURLs:[https://192.168.180.137:12379]} to cluster 252125939fb3fd12

[root@docker-node1 ~]# docker logs ucp-proxy
Using TLS
Listening on 2376
time="2016-03-03T18:48:08Z" level=info msg="docker proxy" 
time="2016-03-03T18:48:08Z" level=info msg="Configuring TLS: ca=/etc/docker/ssl/ca.pem cert=/etc/docker/ssl/cert.pem key=/etc/docker/ssl/key.pem"

(Vivek Saraswat) #2

Hi e4jet,

There’s definitely something odd going on there. In particular after “INFO[0040] Deploying UCP Containers” there should be several status message as part of the install process. There should also be several more containers installed on the controller node.

What specific version of CentOS 7 are you running?


(Vivek Saraswat) #3

Also, devicemapper has some issues in which UCP cannot automatically detect if enough space is available to install. Might be useful to see if you have the minimum amount of space required for installation (3 GB) in /var/lib/docker


(E4jet) #4

Hi Vivek,
Thanks for the response. Below is the version info. BTW, I enjoyed the webinar today. I’m looking forward to playing with this myself!

[root@docker-node1 ~]# uname -a
Linux docker-node1.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@docker-node1 ~]# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)

(E4jet) #5

Yes, there is plenty of space.

[root@docker-node1 ~]# df -k /var/lib/docker
Filesystem                            1K-blocks    Used Available Use% Mounted on
/dev/mapper/centos_docker--node1-root  18307072 1327544  16979528   8% /

(E4jet) #6

I snagged the latest CentOS7, installed using partitions instead of lvm, and now everything is working!

[root@docker-node2 ~]# uname -a
Linux docker-node2.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@docker-node2 ~]# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)

I’m not sure which bit fixed it, but thanks for the pointers.