lxd icon indicating copy to clipboard operation
lxd copied to clipboard

Rename lxd-migrate to lxd-convert

Open tomponline opened this issue 7 months ago • 4 comments

Please confirm

  • [x] I have searched existing issues to check if an issue already exists for my feature request.

Is your feature request related to a problem? Please describe.

It has been suggested that as part of the push to clarify/restrict the term "migrate" to refer to moving instances/volumes between LXD servers that the tool lxd-migrate would be better named lxd-convert.

Describe the solution you'd like

The tool currently has a --conversion flag which would somewhat stammer with the proposed application name so it has also been suggested this flag be changed to something like --mode or --options, or potentially separating into separate flag(s)?

Describe alternatives you've considered

No response

Additional context

No response

tomponline avatar May 19 '25 07:05 tomponline

Related documentation to update along with this change: https://documentation.ubuntu.com/lxd/latest/howto/import_machines_to_instances/ Also will need to update the help/man page to remove migrate wording.

minaelee avatar May 19 '25 14:05 minaelee

I like the change, but would suggest lxd-import. In all cases the instance is imported into LXD. However, conversion happens only in certain scenarios. For example, there is no conversion when importing raw VM image or a container.

MusicDin avatar May 20 '25 08:05 MusicDin

No, "import" is not to be used to avoid confusion with lxc import (otherwise we are just replacing one overloaded term with another).

tomponline avatar May 20 '25 08:05 tomponline

For example, there is no conversion when importing raw VM image or a container.

The broader idea here is that you are "converting" your external filesystem/block volume into a LXD instance.

There may be no need for "conversion options" and just accept the defaults, and its this we need to think about the naming/format of those flags.

tomponline avatar May 20 '25 08:05 tomponline