At some point I did have backups working to another directory, which I changed for the post here. I even moved the last successful backup to the /opt/serviced/var/backups/ dir just in case the backup command did something like read the last backup to get the image name. Unfortunately I don't know enough GO to figure out where the image name is supposed to be coming from.
Subject: |
RE: serviced backup no such image |
Author: |
Arthur |
Posted: |
2017-07-12 16:38 |
Hi
For me the command is ok.
[root@~]# serviced backup -h
NAME:
backup - Dump all templates and services to a tgz file
USAGE:
command backup [command options] [arguments...]
DESCRIPTION:
serviced backup DIRPATH <----------
OPTIONS:
--exclude '--exclude option --exclude option' Subdirectory of the tenant volume to exclude from backup
--check check space, but do not do backup
--force attempt backup even if space check fails
It seems that the backup is looking for the docker images. See my journalctl output after starting a backup. Maybe you can share or check your systemd journal which hopefully give you a hint.
--------------
[root@~]# journalctl --since "2017-07-12 21:00:00" |grep image
Jul 12 21:57:08 host serviced[2367]: time="2017-07-12T21:57:08+02:00" level=info msg="Loaded templates and their images" elapsed=208.319357ms location="dfs.go:81" logger=facade
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="
Preparing docker images for backup" backupversion=1 location="backup.go:59" logger=dfs timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/core_5.2:5.2.4_1" location="backup.go:81" logger=dfs numbercomplete=1 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/hbase:24.0.3" location="backup.go:81" logger=dfs numbercomplete=2 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/opentsdb:24.0.3" location="backup.go:81" logger=dfs numbercomplete=3 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/core_5.2:5.2.3_1" location="backup.go:81" logger=dfs numbercomplete=4 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/core_5.2:5.2.0_1" location="backup.go:81" logger=dfs numbercomplete=5 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/hbase:24.0.2" location="backup.go:81" logger=dfs numbercomplete=6 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/opentsdb:24.0.2" location="backup.go:81" logger=dfs numbercomplete=7 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/core_5.1:5.1.1_1" location="backup.go:81" logger=dfs numbercomplete=8 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/hbase:v10" location="backup.go:81" logger=dfs numbercomplete=9 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="zenoss/opentsdb:v17" location="backup.go:81" logger=dfs numbercomplete=10 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" backupversion=1 image="monitoringartist/zenoss5grafana2demo:latest" location="backup.go:81" logger=dfs numbercomplete=11 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST total=11
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Preparing images for tenant" backupversion=1 location="backup.go:99" logger=dfs tenant=e47so56gvai7f2jioknki83v7 timestamp=2017-07-12 21:57:08.446157888 +0200 CEST
Jul 12 21:57:13 host serviced[2367]: I0712 21:57:13.371570 02367 pull.go:88] Looking up image localhost:5000/e47so56gvai7f2jioknki83v7/zenoss5grafana2demo:20170712-195708.722
Jul 12 21:57:13 host serviced[2367]: time="2017-07-12T21:57:13+02:00" level=info msg="Prepared Docker image for backup" image="localhost:5000/e47so56gvai7f2jioknki83v7/zenoss5grafana2demo:20170712-195708.722" location="backup.go:129" logger=dfs
Jul 12 21:57:14 host serviced[2367]: time="2017-07-12T21:57:14+02:00" level=info msg="Preparing images for tenant" backupversion=1 location="backup.go:99" logger=dfs tenant=4qvth4i0ilwrkqym51thyajvw timestamp=2017-07-12 21:57:08.446157888 +0200 CEST
Jul 12 21:57:14 host serviced[2367]: I0712 21:57:14.802685 02367 pull.go:88] Looking up image localhost:5000/4qvth4i0ilwrkqym51thyajvw/hbase:20170712-195712.500
Jul 12 21:57:14 host serviced[2367]: time="2017-07-12T21:57:14+02:00" level=info msg="Prepared Docker image for backup" image="localhost:5000/4qvth4i0ilwrkqym51thyajvw/hbase:20170712-195712.500" location="backup.go:129" logger=dfs
Jul 12 21:57:14 host serviced[2367]: I0712 21:57:14.805235 02367 pull.go:88] Looking up image localhost:5000/4qvth4i0ilwrkqym51thyajvw/opentsdb:20170712-195712.500
Jul 12 21:57:14 host serviced[2367]: time="2017-07-12T21:57:14+02:00" level=info msg="Prepared Docker image for backup" image="localhost:5000/4qvth4i0ilwrkqym51thyajvw/opentsdb:20170712-195712.500" location="backup.go:129" logger=dfs
Jul 12 21:57:14 host serviced[2367]: I0712 21:57:14.807441 02367 pull.go:88] Looking up image localhost:5000/4qvth4i0ilwrkqym51thyajvw/core_5.2:20170712-195712.500
Jul 12 21:57:14 host serviced[2367]: time="2017-07-12T21:57:14+02:00" level=info msg="Prepared Docker image for backup" image="localhost:5000/4qvth4i0ilwrkqym51thyajvw/core_5.2:20170712-195712.500" location="backup.go:129" logger=dfs
Jul 12 21:58:44 host serviced[2367]: time="2017-07-12T21:58:44+02:00" level=info msg="Starting export of images to backup" backupversion=1 images=[zenoss/core_5.2:5.2.4_1 zenoss/hbase:24.0.3 zenoss/opentsdb:24.0.3 zenoss/core_5.2:5.2.3_1 zenoss/core_5.2:5.2.0_1 zenoss/hbase:24.0.2 zenoss/opentsdb:24.0.2 zenoss/core_5.1:5.1.1_1 zenoss/hbase:v10 zenoss/opentsdb:v17 monitoringartist/zenoss5grafana2demo:latest localhost:5000/e47so56gvai7f2jioknki83v7/zenoss5grafana2demo:20170712-195708.722 localhost:5000/4qvth4i0ilwrkqym51thyajvw/hbase:20170712-195712.500 localhost:5000/4qvth4i0ilwrkqym51thyajvw/opentsdb:20170712-195712.500 localhost:5000/4qvth4i0ilwrkqym51thyajvw/core_5.2:20170712-195712.500] location="backup.go:160" logger=dfs timestamp=2017-07-12 21:57:08.446157888 +0200 CEST
Jul 12 21:58:44 host serviced[2367]: time="2017-07-12T21:58:44+02:00" level=info msg="Starting image export" images=[zenoss/core_5.2:5.2.4_1 zenoss/hbase:24.0.3 zenoss/opentsdb:24.0.3 zenoss/core_5.2:5.2.3_1 zenoss/core_5.2:5.2.0_1 zenoss/hbase:24.0.2 zenoss/opentsdb:24.0.2 zenoss/core_5.1:5.1.1_1 zenoss/hbase:v10 zenoss/opentsdb:v17 monitoringartist/zenoss5grafana2demo:latest localhost:5000/e47so56gvai7f2jioknki83v7/zenoss5grafana2demo:20170712-195708.722 localhost:5000/4qvth4i0ilwrkqym51thyajvw/hbase:20170712-195712.500 localhost:5000/4qvth4i0ilwrkqym51thyajvw/opentsdb:20170712-195712.500 localhost:5000/4qvth4i0ilwrkqym51thyajvw/core_5.2:20170712-195712.500] location="docker.go:146" logger=dfs.docker
Jul 12 22:01:41 host serviced[2367]: time="2017-07-12T22:01:41+02:00" level=info msg="Finished image export." location="docker.go:156" logger=dfs.docker
Jul 12 22:01:41 host serviced[2367]: time="2017-07-12T22:01:41+02:00" level=info msg="Exported images to backup" backupversion=1 images=[zenoss/core_5.2:5.2.4_1 zenoss/hbase:24.0.3 zenoss/opentsdb:24.0.3 zenoss/core_5.2:5.2.3_1 zenoss/core_5.2:5.2.0_1 zenoss/hbase:24.0.2 zenoss/opentsdb:24.0.2 zenoss/core_5.1:5.1.1_1 zenoss/hbase:v10 zenoss/opentsdb:v17 monitoringartist/zenoss5grafana2demo:latest localhost:5000/e47so56gvai7f2jioknki83v7/zenoss5grafana2demo:20170712-195708.722 localhost:5000/4qvth4i0ilwrkqym51thyajvw/hbase:20170712-195712.500 localhost:5000/4qvth4i0ilwrkqym51thyajvw/opentsdb:20170712-195712.500 localhost:5000/4qvth4i0ilwrkqym51thyajvw/core_5.2:20170712-195712.500] location="backup.go:172" logger=dfs timestamp=2017-07-12 21:57:08.446157888 +0200 CEST
----------------
------------------------------
Arthur
------------------------------