[hammer] Can't import openstack vms from registered compute resource as unmanaged hosts via cli
While it's possible to do from webui by selecting a vm from Infrastructure->Compute Resources->[Your resource here]->Virtual Machines->[Your machine here]->Import as unmanaged host there is no intuitive way to automate that with hammer.
The closest I got was
$ hammer host create --location-title "Default Location" --organization-title "Default Organization" --compute-resource "openstack_cloud_leapp_tenant" --name ivasilev-noudevadminfo330 --managed False --build False Could not create the host: No finish templates were found for this host, make sure you define at least one in your settings
Updated by Oleh Fedorenko almost 4 years ago
- Category set to Compute resources
- Triaged changed from No to Yes
Thank you for pointing out the missing functionality!
Unfortunatelly there is no such possibility (to import vms from compute resources). My suggestions are:
1 - Create an issue for API component which would add CRUD or at least import action for ComputeResourcesVmsController.
2 - Implement the API call in form of hammer-cli command for current issue.