- 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>
Log errors in the OpenStack and VMWare import controllers when the
client fails to verify.
The client for VMWare and OpenStack VM import are constructed and then
verified in an additional step. Instead of just indicating that there
was an error with the status conditions, this change adds a log message
to the controllers logs, which gives an indication why the verification
failed.
related-to: https://github.com/harvester/vm-import-controller/issues/26
Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>