Bug #18844
closed
import-diff failed: (33) Numerical argument out of domain - if image size of the child is larger than the size of its parent
Added by Bernhard J. M. Grün about 7 years ago.
Updated over 5 years ago.
Tags:
import, import-diff, rbd
Description
Steps to setup the test case (create a basic image):
rbd create vms/test -s 1G
rbd snap create vms/test@snap
rbd snap protect vms/test@snap
Steps ro reproduce the bug:
rbd resize vms/test-larger --size 8G
rbd create backup/test-larger -s 1
rbd export-diff --no-progress --whole-object vms/test-larger - | rbd import-diff - backup/test-larger
Result: (not as expected)
import-diff failed: (33) Numerical argument out of domain
Please have a look at full error output which is attached to this ticket.
Steps to validate that import-diff works correctly on the cluster if no resize happend:
rbd clone vms/test@snap vms/test-not-larger
rbd create backup/test-not-larger -s 1
rbd export-diff --no-progress --whole-object vms/test-not-larger - | rbd import-diff - backup/test-not-larger
Result: (as expected)
Importing image diff: 100% complete...done.
Environment:
Cluster runs Ceph 10.2.5 on CentOS 7.3.
Files
how do you create vms/test-larger?
Whops - I forgot that one line. It is basically the same as in the validate case.
These are the all steps to reproduce the bug:
rbd clone vms/test@snap vms/test-larger
rbd resize vms/test-larger --size 8G
rbd create backup/test-larger -s 1
rbd export-diff --no-progress --whole-object vms/test-larger - | rbd import-diff - backup/test-larger
Sorry for the inconvenience
- Target version deleted (
v10.2.6)
- Project changed from Ceph to rbd
- Category deleted (
librbd)
- Status changed from New to Need More Info
- Status changed from Need More Info to Resolved
- Status changed from Resolved to In Progress
- Assignee set to Jason Dillaman
- Backport set to luminous,jewel
If the 'rbd export-diff' is corrupt, it can result in that error:
$ echo "" | rbd import-diff - lun0
rbd: import-diff failed: (33) Numerical argument out of domain
- Status changed from In Progress to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #23607: luminous: import-diff failed: (33) Numerical argument out of domain - if image size of the child is larger than the size of its parent added
- Copied to Backport #23608: jewel: import-diff failed: (33) Numerical argument out of domain - if image size of the child is larger than the size of its parent added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF