You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can create snaphots named with any kinds of characters, but if a container has snapshots with other characters than hyphens or alphanumeric, then an import on such an exported container will fail with the following error message:
Error: Create instance from backup: Invalid instance name "xxxxxxx": Name can only contain alphanumeric and hyphen characters
Where "xxxxxxx" is the name of a snapshot containing non-alphanumeric characters.
This issue happens even if a valid instance name is supplied to the import command. Also, the error message suggests that "import" is trying to create an instance with a snapshot name, which is counter-intuitive.
Steps to reproduce
lxc launch ubuntu: test-export
lxc snapshot test-export snap_2024.08.05
lxc export test-export test-export.tgz
lxc import test-export.tgz test-import --> fails with "Error: Create instance from backup: Invalid instance name "snap_2024.08.05": Name can only contain alphanumeric and hyphen characters"
Workarounds
Renaming problematic snaphots
Using "--instance-only" with the export command
The text was updated successfully, but these errors were encountered:
Required information
Issue description
We can create snaphots named with any kinds of characters, but if a container has snapshots with other characters than hyphens or alphanumeric, then an import on such an exported container will fail with the following error message:
Where "xxxxxxx" is the name of a snapshot containing non-alphanumeric characters.
This issue happens even if a valid instance name is supplied to the import command. Also, the error message suggests that "import" is trying to create an instance with a snapshot name, which is counter-intuitive.
Steps to reproduce
lxc launch ubuntu: test-export
lxc snapshot test-export snap_2024.08.05
lxc export test-export test-export.tgz
lxc import test-export.tgz test-import
--> fails with "Error: Create instance from backup: Invalid instance name "snap_2024.08.05": Name can only contain alphanumeric and hyphen characters"Workarounds
The text was updated successfully, but these errors were encountered: