Skip to content

Restoring config fails #52

@ben-ihelputech

Description

@ben-ihelputech
$ ansible-playbook -i ./hosts --extra-vars="maas_installation_type=snap maas_backup_file=/backups/postgres/localhost_maas_backup_2022-12-02T22:10:29Z.tgz" ./restore.yaml -K 
BECOME password: 

PLAY [maas_postgres_primary,maas_region_controller,maas_rack_controller] *************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Restore from backup] ***********************************************************************************************************************************************************************************************************************************

TASK [common : Create Temporary Unpack Directory] ************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [common : Unpack Backup Archive] ************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [common : Stop Region Controller] ***********************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [common : Stop Rack Controller] *************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [common : Stop MAAS snap] *******************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [common : Restore Config] *******************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["mv", "/tmp/maas_backup/etc/maas"], "delta": "0:00:00.006119", "end": "2022-12-02 16:28:49.906386", "msg": "non-zero return code", "rc": 1, "start": "2022-12-02 16:28:49.900267", "stderr": "mv: missing destination file operand after '/tmp/maas_backup/etc/maas'\nTry 'mv --help' for more information.", "stderr_lines": ["mv: missing destination file operand after '/tmp/maas_backup/etc/maas'", "Try 'mv --help' for more information."], "stdout": "", "stdout_lines": []}

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************
localhost                  : ok=4    changed=3    unreachable=0    failed=1    skipped=2    rescued=0    ignored=0   

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedTriaged to be addressed in a given cycle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions