Commit Graph

15 Commits

Author SHA1 Message Date
Volker Theile
39daa82266 Make timeout during waiting for uploadImage configurable
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>
2025-01-24 15:40:03 +08:00
Volker Theile
d7f05cece9 Bump go to v1.23.4
Related to: https://github.com/harvester/harvester/issues/7336

Signed-off-by: Volker Theile <vtheile@suse.com>
2025-01-17 13:33:34 +08:00
Volker Theile
ebf60d5ec9 VM Import Controller uses too much memory during QCOW2 conversion phase
- 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>
2024-10-09 17:43:32 +08: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
Volker Theile
0eff95eb0b
The description field is not imported (#40)
Related to: https://github.com/harvester/harvester/issues/6464

Signed-off-by: Volker Theile <vtheile@suse.com>
2024-10-07 16:52:52 +02:00
Gaurav Mehta
03a8ef08e9 address openstack network duplication when interface may have both ipv6 and ipv4 addresses and add preflight check to identify duplicate source network definitions 2024-10-07 11:09:01 +08:00
Volker Theile
409740f6f9 Do more logging during the import
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>
2024-09-11 13:27:51 +10:00
Gaurav Mehta
bda1e6284a enable smm when secureboot is enabled for openstack sources 2024-08-29 13:48:28 +10:00
Gaurav Mehta
acd5fce6e7 include feedback from pr review
fix up typos
2024-08-02 12:23:45 +10:00
Gaurav Mehta
bb1cef97a5 added debug logging and also change behaviour of controller when vm export from source fails to stop rather than keep trying
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
2024-08-02 12:23:45 +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
Gaurav Mehta
d26a8a9520 packaging changes. includes helm chart, drone.yml and minor fixes for
openstack client
2022-08-23 13:57:39 +10:00
Gaurav Mehta
fddce7d565
Openstack reconcilliation (#1)
* openstack source reconilliation

* tmp staging for openstack migration

* openstack import working and integration tests

* updated readme
2022-08-16 09:25:16 +10:00
Gaurav Mehta
112008bb81 initial commit for vm-import-controller 2022-08-10 11:08:50 +10:00