Bug 1797659
Summary: | [API]Have a generic way to initialize a VM in run-once | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Liran Rotenberg <lrotenbe> |
Component: | BLL.Virt | Assignee: | Liran Rotenberg <lrotenbe> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Beni Pelled <bpelled> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.4.0 | CC: | bugs, michal.skrivanek, rbarry, rgolan |
Target Milestone: | ovirt-4.3.9-1 | Flags: | pm-rhel:
ovirt-4.3+
|
Target Release: | 4.3.9.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ovirt-engine-4.3.9.4 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-06 06:53:11 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Liran Rotenberg
2020-02-03 15:18:34 UTC
Changing the bug title. We will have now a generic flag in API. The flag will let the engine decide the initialization type depending on the operation system of the VM. In case the user will run-once with this flag, the VM will have the desired payload. Verified with: - ovirt-engine-4.3.9.4-11.el7.noarch - ovirt-engine-restapi-4.3.9.4-11.el7.noarch - libvirt-4.5.0-33.el7.x86_64 (host) - vdsm-4.30.43-1.el7ev.x86_64 (host) - cloud-init-18.5-7.el8.noarch (vm) Verification steps: curl -k --location --request POST 'https://<ENGINE_FQDN>/ovirt-engine/api/vms/<VM_ID>/start' \ --header 'Content-Type: application/xml' \ --user '<USER>:<PASS>' \ --data-raw '<action> <use_initialization>true</use_initialization> <vm> <initialization> <host_name>test_hostname</host_name> <timezone>NZ</timezone> <user_name>test_user</user_name> <root_password>654321</root_password> </initialization> </vm> </action>' Result: - The VM is up and running with the initialization parameters (Hostname, TZ, u/p) This bugzilla is included in oVirt 4.3.9 release, published on March 20th 2020. Since the problem described in this bug report should be resolved in oVirt 4.3.9 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |