Skip to content
This repository was archived by the owner on Jun 18, 2020. It is now read-only.
This repository was archived by the owner on Jun 18, 2020. It is now read-only.

Can't restore a container using restic #46

@john-kheir

Description

@john-kheir

Scenario

1- Create container C1

2- Backup the container C1 image, should succeed

url = 'file:///var/cache/%s?password=rooter' % repo
job = self.client.container.backup(C1, url)
snapshot = job.get(30)

3- Make full restore to the conatiner, should succeed

res_url = url + '#{}'.format(snapshot)
cid = self.client.container.restore(res_url).get()

Actual Result

When trying to restore the container in step 3, it throw an error:

zeroos.core0.client.client.ResultError: "open /tmp/restic258443673/.corex.meta: no such file or directory"
> /root/0-core/tests/testsuite/b_extended/tests_02_machines.py(184)test_003_containers_backup_restore()
    183         import ipdb;ipdb.set_trace()
--> 184         cid = self.client.container.restore(res_url).get()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions