#1123808 ganeti: gnt-backup export is broken

Package:
ganeti
Source:
ganeti
Submitter:
Matija Nalis
Date:
2025-12-22 07:07:06 UTC
Severity:
normal
Tags:
#1123808#5
Date:
2025-12-22 07:05:38 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

trying to do "gnt-backup export" fails with 3.1.0rc2

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

"gnt-backup export" is broken in Debian Trixie (and upstream 3.1.0RC2).
It has been since fixed in upstream in https://github.com/ganeti/ganeti/pull/1840

Manually applying that upstream PR fixes the the backup again.

   * What was the outcome of this action?

it errors out, e.g.:
```
# gnt-backup export -n example-gntnode0.example.org example-haproxy02.example.org
Mon Dec 22 07:56:16 2025 Shutting down instance example-haproxy02.example.org
Mon Dec 22 07:56:22 2025 Creating a snapshot of disk/0 on node example-gntnode0.example.org
Mon Dec 22 07:56:23 2025 Starting instance example-haproxy02.example.org
Mon Dec 22 07:56:23 2025 Exporting snapshot/0 from example-gntnode0.example.org to example-gntnode0.example.org
Mon Dec 22 07:56:26 2025 snapshot/0 is now listening, starting export
Mon Dec 22 07:56:29 2025  - WARNING: import 'import-disk0-2025-12-22_07_56_23-190jbvhv' on example-gntnode0.example.org failed: Exited with status 1
Mon Dec 22 07:56:29 2025 snapshot/0 failed to receive data: Exited with status 1 (recent output: socat: W OpenSSL: Warning: this implementation does not check CRLs)
Mon Dec 22 07:56:29 2025  - WARNING: Aborting export 'export-disk0-2025-12-22_07_56_28-gcd4r5_m' on 01b5b2d3-71bd-4fc1-ba9f-0c033d845a0e
Mon Dec 22 07:56:29 2025  - WARNING: export 'export-disk0-2025-12-22_07_56_28-gcd4r5_m' on example-gntnode0.example.org failed: Exited with status 1
Mon Dec 22 07:56:29 2025 snapshot/0 failed to send data: Exited with status 1 (recent output: socat: W OpenSSL: Warning: this implementation does not check CRLs\nsocat: E certificate is valid but its commonName does not match hostname "example-gntnode0.drbd.example.org")
Mon Dec 22 07:56:29 2025 Removing snapshot of disk/0 on node example-gntnode0.example.org
Mon Dec 22 07:56:29 2025  - WARNING: Some disk exports have failed; there may be leftover data for instance example-haproxy02.example.org on node example-gntnode0.example.org
Failure: command execution error:
Export failed, errors in export finalization, disk export: disk(s) 0
```

   * What outcome did you expect instead?

backup to succeed, like it did in Bookworm.