Docker failed to start due to invalid local registry ""
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Invalid
|
Low
|
Mingyuan Qi |
Bug Description
Brief Description
-----------------
During the installation of StarlingX, the docker local registry is set to "" after first unlock. And after the second lock/unlock, the docker will fail to start because invalid local registry.
Severity
--------
Major
Steps to Reproduce
------------------
- Deploy StarlingX AIO SIMPLEX/DUPLEX with local registry
- after executing ansible, check the /etc/docker/
{
"insecure-
}
- after first unlock, check the /etc/docker/
{
"insecure-
}
- after the second lock/unlock, the docker will fail to start. You can check docker status by the following command:
sudo systemctl status docker
source /etc/platform/
fm alarm-list
Expected Behavior
------------------
- Docker registry is written in /etc/docker/
- Docker start correctly all the time
Actual Behavior
----------------
- Wrong docker registry "" in /etc/docker/
- After the second lock/unlock, docker will fail to restart.
Reproducibility
---------------
100%
System Configuration
-------
AIO SIMPLEX & DUPLEX
Branch/Pull Time/Commit
-------
stx master as of 20190524T013000Z
Last Pass
---------
Unclear
Timestamp/Logs
--------------
controller-1:~$ sudo cat /etc/docker/
{
"insecure-
}
controller-1:~$ sudo systemctl status docker
\u25cf docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/
Drop-In: /etc/systemd/
Active: failed (Result: exit-code) since Mon 2019-06-10 18:34:45 UTC; 1h 38min ago
Docs: https:/
Main PID: 73369 (code=exited, status=1/FAILURE)
cat /var/log/daemon.log | grep "invalid" -A 5
2019-06-
2019-06-
2019-06-
2019-06-
2019-06-
2019-06-
Test Activity
-------------
Developer Testing
Changed in starlingx: | |
assignee: | nobody → Mingyuan Qi (myqi) |
Changed in starlingx: | |
status: | New → Incomplete |
Changed in starlingx: | |
importance: | Undecided → Medium |
Workaround for AIO simplex: daemon. json before unlock.
Add the correct local registry to the file /etc/docker/
But this workaround doesn't work for the controller-1 in Duplex deployment.