docker-registry fails to start when installing undercloud on rhel7.3 with rdo-ocata thus failing the undercloud installation
Here is the output:
2017-03-24 15:46:08,520 INFO: ESC[1;31mError: Systemd start for docker-registry failed!
2017-03-24 15:46:08,521 INFO: journalctl log for docker-registry:
2017-03-24 15:46:08,521 INFO: -- No entries --
2017-03-24 15:46:08,521 INFO: ESC[0m
2017-03-24 15:46:08,521 INFO: ESC[1;31mError: /Stage[main]/Main/Service[docker-registry]/ensure: change from stopped to running failed: Systemd start for docker-registry failed!
2017-03-24 15:46:08,521 INFO: journalctl log for docker-registry:
2017-03-24 15:46:08,522 INFO: -- No entries --
2017-03-24 15:46:08,522 INFO: ESC[0m
Troubleshooting:
[root@undercloud-0-ocata ~]# systemctl status docker-distribution
● docker-distribution.service - v2 Registry server for Docker
Loaded: loaded (/usr/lib/systemd/system/docker-distribution.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2017-03-24 16:14:08 EDT; 4s ago
Process: 1325 ExecStart=/usr/bin/registry serve /etc/docker-distribution/registry/config.yml (code=exited, status=1/FAILURE)
Main PID: 1325 (code=exited, status=1/FAILURE)
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: Unit docker-distribution.service entered failed state.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service failed.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service holdoff time over, scheduling restart.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: start request repeated too quickly for docker-distribution.service
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: Failed to start v2 Registry server for Docker.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: Unit docker-distribution.service entered failed state.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service failed.
[root@undercloud-0-ocata ~]# journalctl -f
-- Logs begin at Fri 2017-03-24 15:02:52 EDT. --
Mar 24 16:14:08 undercloud-0-ocata.localdomain registry[1325]: time="2017-03-24T16:14:08-04:00" level=info msg="using inmemory blob descriptor cache" go.version=go1.7.4 instance.id=b236b438-4be7-4ff2-b03a-45b8fddf22da version="v2.6.0+unknown"
Mar 24 16:14:08 undercloud-0-ocata.localdomain registry[1325]: time="2017-03-24T16:14:08-04:00" level=fatal msg="listen tcp :5000: bind: address already in use"
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service: main process exited, code=exited, status=1/FAILURE
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: Unit docker-distribution.service entered failed state.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service failed.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service holdoff time over, scheduling restart.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: start request repeated too quickly for docker-distribution.service
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: Failed to start v2 Registry server for Docker.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: Unit docker-distribution.service entered failed state.
Mar 24 16:14:08 undercloud-0-ocata.localdomain systemd[1]: docker-distribution.service failed.
Mar 24 16:14:18 undercloud-0-ocata.localdomain container-server[32700]: Begin container update sweep
Mar 24 16:14:18 undercloud-0-ocata.localdomain container-server[32700]: Container update sweep completed: 0.00s
^C
[root@undercloud-0-ocata ~]# netstat -nap | grep 5000
tcp 0 0 192.168.24.1:5000 0.0.0.0:* LISTEN 20146/httpd
I believe this to be a duplicate of 1666459 which was caused by the docker package updates. This was fixed by https:/ /review. openstack. org/#/c/ 440842/ to use the puppet-tripleo profile for the docker updates. Can you please provide a package list with versions?