Commit Graph

6 Commits

Author SHA1 Message Date
Volker Theile
29629c75f8
Enhance importer to handle several issue (#42)
- 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>
2025-02-04 07:42:42 +01:00
Volker Theile
ea161c2fc1
Validate the network mapping configuration (#46)
- 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>
2024-10-09 11:39:48 +02:00
Gaurav Mehta
acd5fce6e7 include feedback from pr review
fix up typos
2024-08-02 12:23:45 +10:00
Moritz Röhrich
5e03d6d864 logs: Log errors when client fails verification
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>
2024-04-18 12:23:48 +10:00
PoAn Yang
148cec8766 fix: golangci-lint error
Signed-off-by: PoAn Yang <poan.yang@suse.com>
2024-01-12 10:55:44 +08:00
Gaurav Mehta
0ac976b4cc reorg groups and some reconcile logic 2022-08-26 16:41:47 +10:00