-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Hi,
We are using Atomic Host CentOS on our systems in the field to run our docker application containers.
We are also running cockpit to have easy access to system services and Atomic Host updates. We noticed when updating to the latest Atomic Host release (via cockpit), docker storage setup fails on reboot.
systemctl diagnostics give the following errors:
`bash-4.2# systemctl status docker-storage-setup.service
â docker-storage-setup.service - Docker Storage Setup
Loaded: loaded (/usr/lib/systemd/system/docker-storage-setup.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2018-04-23 10:48:40 CEST; 42min ago
Process: 859 ExecStart=/usr/bin/container-storage-setup (code=exited, status=1/FAILURE)
Main PID: 859 (code=exited, status=1/FAILURE)
Apr 23 10:48:39 master systemd[1]: Starting Docker Storage Setup...
Apr 23 10:48:40 master container-storage-setup[859]: ERROR: Storage is already configured with devicemapper driver. Can't configure it wi... retry.
Apr 23 10:48:40 master systemd[1]: docker-storage-setup.service: main process exited, code=exited, status=1/FAILURE
Apr 23 10:48:40 master systemd[1]: Failed to start Docker Storage Setup.
Apr 23 10:48:40 master systemd[1]: Unit docker-storage-setup.service entered failed state.
Apr 23 10:48:40 master systemd[1]: docker-storage-setup.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
`
I think this is caused by the docker storage system switching to overlay2 FS by default ?
On a system BEFORE the Atomic Host update I notice that the file /etc/sysconfig/docker-storage-setup contains the configuration:
CONTAINER_THINPOOL=docker-pool
On a system after the Atomic Host update I notice that the same file now contains the configuration:
STORAGE_DRIVER=overlay2
There is already a docker storage setup on this system however, in /etc/sysconfig/docker-storage:
DOCKER_STORAGE_OPTIONS="--storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/cah_master-docker--pool --storage-opt dm.use_deferred_removal=true --storage-opt dm.use_deferred_deletion=true "
My understanding is that this existing configuration is what container-storage-setup complains about during startup of the updated system.
I have two questions:
- Should container-storage-setup really generate an error when there is an existing storage configuration or is this a bug ?
- Can we safely run with the existing storage configuration after update (even though docker storage setup failed) or is there something which is then missing ?