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>
If it gets longer than 63 characters, then replace the label value by a hash to do not abort the VM import. The origin value is still used as `VirtualMachineImageSpec.DisplayName`. The label is currently used to search for the `VirtualMachineImage` object during the reconciliation phase.
Related to: https://github.com/harvester/harvester/issues/6463
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>
Add the fields `UploadImageRetryCount` and `UploadImageRetryDelay` to `OpenstackSourceSpec`.
Related to: https://github.com/harvester/harvester/issues/6675
Signed-off-by: Volker Theile <vtheile@suse.com>
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption.
- Download and write the image file in chunks (32KiB by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk.
- Fix a variable name shadowing issue.
- Improve logging.
Related to: https://github.com/harvester/harvester/issues/6674
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>
Add log messages to better track what the importer is doing and to better isolate errors if necessary.
Related to: https://github.com/harvester/harvester/issues/6512
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