Add the field `DefaultNetworkInterfaceModel` to `VirtualMachineImportSpec` and `NetworkInterfaceModel` to `NetworkMapping`. With this new fields it is possible to customize the interface models of the VM NICs.
Related to: https://github.com/harvester/harvester/issues/7999
Signed-off-by: Volker Theile <vtheile@suse.com>
When importing a VM from VMware or OpenStack, there is no log output of the origin VM spec that is going to be imported. In some situations this information would be helpful for troubleshooting and to understand what is going wrong.
For better processing of the amount of data the specification should be printed as JSON to be able to prettify it externally and to inspect it easily.
Related to: https://github.com/harvester/harvester/issues/8013
Signed-off-by: Volker Theile <vtheile@suse.com>
- Import OpenStack server by UUID
- Import OpenStack server with upper case characters in its name
The following improvements have been done:
- Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant.
- Convert UUID to real name for OpenStack imports
- Reduce waiting time to recheck if created VM is running from 5min to 2min
- Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module
- Improve error and log messages
- Fix typos
- Add comments
Related to: https://github.com/harvester/harvester/issues/6500
Related to: https://github.com/harvester/harvester/issues/6505
Signed-off-by: Volker Theile <vtheile@suse.com>
- A new `apiGroups` is added to the `ClusterRole` to be able to list `network-attachment-definitions`.
- The `network-attachment-definitions` CRD has to be generated in the test env.
Related to: https://github.com/harvester/harvester/issues/6491
Signed-off-by: Volker Theile <vtheile@suse.com>
added more debug info
close lease earlier
stage vmware migration improvements
improve openstack migration to check uefi/tpm/secureboot from associated image
improve firmware lookup for openstack, and add ability to specify custom storage classes
fix storage class caching issue
drop need for sync
fix imports
bumped up harvester/harvester to v1.1.0-rc2
changed vmware client to check VM state before attempting poweroff, add closure for ovf client to fix Operation timed out errors
fine tuned integration tests
changed logging message