Case Study: Docker (2/3)

small_h-darkWell, in previous post we’ve prepared 5 nodes (manage, registry and 3 compute nodes) for Docker implementation. Also we’ve installed Docker Trusted Registry. In this post I’m going to install Universal Control Plane — UCP.

There are two ways to install UCP — Evaluation and Production installation. In this post Production installation is considered. Documentation hardly recommend to read «Plan a production installation». Read UCP concepts and hardware&software requirements. We’ll follow to this document, but without optional steps, you may do it by yourselves.

Step 1 of documentation we can skip, it describes how to get help for installation tools and how to install UCP or join a node to pre-installed UCP.

Step 2 can be omitted — there no firewalls in test environment.

Step 3 we have already performed in previous post.

Steps 4 and 5 are optional

And here we are — UCP installation procedure in step 6. Let’s start, login to the management VM:

[nikolai@manage ~]$ docker run --rm -it --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp install -i
INFO[0000] Verifying your system is compatible with UCP 
WARN[0000] Your kernel is too old. You may experience problems with UCP. Consider upgrading to 3.10.0 or newer 
WARN[0004] 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[0018] Pulling required images... (this may take a while) 
We detected the following hostnames/IP addresses for this system [manage.docker 127.0.0.1 172.17.0.1 192.168.122.200]

You may enter additional aliases (SANs) now or press enter to proceed with the above list.
Additional aliases: 
INFO[0450] Installing UCP with host address 192.168.122.200 - If this is incorrect, please specify an alternative address with the '--host-address' flag 
WARN[0000] Your kernel is too old. You may experience problems with UCP. Consider upgrading to 3.10.0 or newer 
INFO[0071] Generating UCP Cluster Root CA 
INFO[0111] Generating UCP Client Root CA 
INFO[0114] Deploying UCP Containers 
ERRO[0188] We were unable to communicate with proxy we just started at address 192.168.122.200. Did you forget to specify an alternate DNS server with the '--dns' flag? If this address is incorrect, re-run the install using the '--host-address' option. Run "docker logs ucp-proxy" for more details from the proxy 
FATA[0188] Unable to connect to system

Hm, we use Oracle Enterprise Linux 7.2 and have upgraded it during infrastructure preparation. 🙂

Well I still got another kernel:

[nikolai@manage ~]$ uname -a
Linux manage.docker 3.10.0-327.el7.x86_64 #1 SMP Fri Nov 20 00:18:34 PST 2015 x86_64 x86_64 x86_64 GNU/Linux

Let’s try again!

[nikolai@manage ~]$ docker run --rm -it --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp install -i --fresh-install
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[0021] All required images are present 
We detected the following hostnames/IP addresses for this system [manage.docker 127.0.0.1 172.17.0.1 192.168.122.200]
You may enter additional aliases (SANs) now or press enter to proceed with the above list.
Additional aliases: 
INFO[0035] Installing UCP with host address 192.168.122.200 - If this is incorrect, please specify an alternative address with the '--host-address' flag 
INFO[0082] Generating UCP Cluster Root CA 
INFO[0109] Generating UCP Client Root CA 
INFO[0114] Deploying UCP Containers 
INFO[0196] UCP instance ID: SUQD:V2NU:BPPG:DNUM:SN3O:7XFV:47OQ:JXVD:BWGL:QB3D:6JDO:DIP4 
INFO[0196] UCP Server SSL: SHA1 Fingerprint=C6:99:2A:22:39:3C:6F:32:5D:C7:33:F6:87:2A:3E:5B:BE:D8:BA:84 
INFO[0196] Login as "admin"/(your admin password) to UCP at https://192.168.122.200:443

And it helped! Let’s take a look at UCP!

Снимок экрана из 2016-03-12 18-35-25

So, we have 8 images and 8 running containers, I assume they all are needed just for Universal Control Plane.

That’s great, now my goal is to join all my nodes to Cluster! But first of all, I must reboot all nodes using kernel>=3.10 version! And, by the way, disable and stop firewalld if you haven’t done it yet! This is important!

[nikolai@node2 ~]$ docker run --rm -it --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp join -i --fresh-install
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 enter the URL to your UCP server: https://192.168.122.200
UCP server https://192.168.122.200
Subject: ucp
Issuer: UCP Client Root CA
SHA1 Fingerprint=C6:99:2A:22:39:3C:6F:32:5D:C7:33:F6:87:2A:3E:5B:BE:D8:BA:84
Do you want to trust this server and proceed with the join? (y/n): y
Please enter your UCP Admin username: admin
Please enter your UCP Admin password:
INFO[0022] Pulling required images... (this may take a while)
We detected the following hostnames/IP addresses for this system [node2.docker 127.0.0.1 172.17.0.1 192.168.122.203]

You may enter additional aliases (SANs) now or press enter to proceed with the above list.
Additional aliases:
INFO[0014] This engine will join UCP and advertise itself with host address 192.168.122.203 - If this is incorrect, please specify an alternative address with the '--host-address' flag
INFO[0014] Verifying your system is compatible with UCP
INFO[0020] Starting local swarm containers

Repeat this over all nodes, and registry node as well, and enjoy:

 

Снимок экрана из 2016-03-12 20-28-09

And finally we’ve got information about all nodes with images they contain and Containers they run.

In next post I will make a brief about managing of containers, volumes and networks.

Реклама

Добавить комментарий

Заполните поля или щелкните по значку, чтобы оставить свой комментарий:

Логотип WordPress.com

Для комментария используется ваша учётная запись WordPress.com. Выход / Изменить )

Фотография Twitter

Для комментария используется ваша учётная запись Twitter. Выход / Изменить )

Фотография Facebook

Для комментария используется ваша учётная запись Facebook. Выход / Изменить )

Google+ photo

Для комментария используется ваша учётная запись Google+. Выход / Изменить )

Connecting to %s

%d такие блоггеры, как: