Class: Pvectl::Commands::MigrateContainer

Inherits:
Object
  • Object
show all
Includes:
MigrateCommand
Defined in:
lib/pvectl/commands/migrate_container.rb,
sig/pvectl/commands/migrate_container.rbs

Overview

Handler for the pvectl migrate container command.

Migrates one or more LXC containers to another cluster node. Always requires --target and confirmation (--yes to skip).

Examples:

Migrate a single container

pvectl migrate container 200 --target pve2 --yes

Restart migration

pvectl migrate container 200 --target pve2 --restart --yes

Constant Summary collapse

RESOURCE_TYPE =

Returns:

:container
SUPPORTED_RESOURCES =

Returns:

%w[container ct].freeze

Constants included from MigrateCommand

Pvectl::Commands::MigrateCommand::NODE_NAME_FORMAT

Method Summary

Methods included from MigrateCommand

#apply_selectors, #confirm_operation, #determine_exit_code, #execute, included, #initialize, #load_config, #no_resources_found, #output_results, #perform_operation, #resolve_resources, #resource_type_symbol, #restart_not_allowed?, #selector_strings, #service_options, #usage_error