dockerctl backup fails if containers are already paused
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
New
|
Undecided
|
Unassigned |
Bug Description
dockerctl backup attempts to pause the containers, but if the containers are already paused (for example from a previous failed backup attempt) dockerctl backup will fail.
What I'd expect: Either dockerctl backup should recognize that the containers are already paused and continue with the backup resuming the containers when finished or if for some reason this behavior is necessary then it should check the container status before starting the backup procedure so that the failure is immediate rather than half way through the lengthy backup procedure.
[root@fuel ~]# /usr/bin/dockerctl backup /var/log/fueldocker
Reading container data...
Committing fuel-core-
db3bc3312d4cc0f
Committing fuel-core-
d6533f91aa29930
Committing fuel-core-
077302afd1758ae
Committing fuel-core-
4e357316cfd3b07
Committing fuel-core-
db703ca5d2e85f4
Committing fuel-core-
02a4171d6c3e32b
Committing fuel-core-
098fdf5f47d7352
Committing fuel-core-
1a393b8220fe60e
Committing fuel-core-
10d17561f1f8210
Committing fuel-core-
28372785bfd3ebd
Committing fuel-core-
575d3fa14ade66a
Saving containers to combined archive...
time="2016-
Cleaning up temporary images...
Untagged: fuel/postgres_
Deleted: 575d3fa14ade66a
Untagged: fuel/rabbitmq_
Deleted: 28372785bfd3ebd
Untagged: fuel/keystone_
Deleted: 10d17561f1f8210
Untagged: fuel/rsync_
Deleted: 1a393b8220fe60e
Untagged: fuel/astute_
Deleted: 098fdf5f47d7352
Untagged: fuel/rsyslog_
Deleted: 02a4171d6c3e32b
Untagged: fuel/nailgun_
Deleted: db703ca5d2e85f4
Untagged: fuel/ostf_
Deleted: 4e357316cfd3b07
Untagged: fuel/nginx_
Deleted: 077302afd1758ae
Untagged: fuel/cobbler_
Deleted: d6533f91aa29930
Untagged: fuel/mcollectiv
Deleted: db3bc3312d4cc0f
Pausing containers...
Error response from daemon: Cannot pause container 8f4a682011e8: Container 8f4a682011e8a4a
Error: failed to pause containers: [8f4a682011e8]
Error response from daemon: Cannot pause container 7d9c5f6dee19: Container 7d9c5f6dee19bc8
Error: failed to pause containers: [7d9c5f6dee19]
Error response from daemon: Cannot pause container 1ce7b238fb66: Container 1ce7b238fb6629f
Error: failed to pause containers: [1ce7b238fb66]
Error response from daemon: Cannot pause container dbede3985db4: Container dbede3985db41e4
Error: failed to pause containers: [dbede3985db4]
Error response from daemon: Cannot pause container 3f0453364c84: Container 3f0453364c845d5
Error: failed to pause containers: [3f0453364c84]
Error response from daemon: Cannot pause container 8b0b08ae4135: Container 8b0b08ae41355e3
Error: failed to pause containers: [8b0b08ae4135]
Error response from daemon: Cannot pause container 880325d381e9: Container 880325d381e9d43
Error: failed to pause containers: [880325d381e9]
Error response from daemon: Cannot pause container bc481b553b4a: Container bc481b553b4a7d7
Error: failed to pause containers: [bc481b553b4a]
Error response from daemon: Cannot pause container 24ec877bdbc1: Container 24ec877bdbc189d
Error: failed to pause containers: [24ec877bdbc1]
Error response from daemon: Cannot pause container 9f398899266e: Container 9f398899266edab
Error: failed to pause containers: [9f398899266e]
Error response from daemon: Cannot pause container 11626b9707f9: Container 11626b9707f9f81
Error: failed to pause containers: [11626b9707f9]
Backup failed!
description: | updated |
description: | updated |