Bug 1506449
| Summary: | [API] Cannot clear vm initialization via api | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> | |
| Component: | ovirt-engine | Assignee: | jniederm | |
| Status: | CLOSED ERRATA | QA Contact: | Vitalii Yerys <vyerys> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 4.1.5 | CC: | apinnick, lsurette, michal.skrivanek, rbalakri, Rhev-m-bugs, srevivo, tjelinek, ykaul | |
| Target Milestone: | ovirt-4.2.0 | Keywords: | ZStream | |
| Target Release: | --- | Flags: | lsvaty:
testing_plan_complete-
|
|
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
In the current release, virtual machine initialization can be cleared with the REST API.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1513684 (view as bug list) | Environment: | ||
| Last Closed: | 2018-05-15 17:45:44 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1513684 | |||
where's the 4.2 bug? (In reply to Michal Skrivanek from comment #1) > where's the 4.2 bug? sorry, cloned now. Verified on 4.2.2-0.1.el7 build. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:1488 BZ<2>Jira Resync sync2jira sync2jira |
Description of problem: Trying to set the Initialization of a VM to an empty value via REST api does not work. Version-Release number of selected component (if applicable): rhevm-4.1.5.2-0.1.el7.noarch How reproducible: 100% Steps to Reproduce: Doing a PUT of an empty initialization does not work. All the configurations remain. DEBUG:root:PUT /ovirt-engine/api/vms/b595e7fd-21e9-4bd7-ac5b-8559a78912b9 HTTP/1.1 DEBUG:root:Content-Length: 31 DEBUG:root:<vm> DEBUG:root: <initialization/> DEBUG:root:</vm> DEBUG:root:HTTP/1.1 200 OK If I try just the Cloud init part, no changes as well Everything is still there: DEBUG:root: <initialization> DEBUG:root: <configuration> ..... DEBUG:root: </configuration> DEBUG:root: <host_name>thisisatest</host_name> DEBUG:root: <nic_configurations/> DEBUG:root: <regenerate_ssh_keys>false</regenerate_ssh_keys> DEBUG:root: </initialization> I'm using this: vms_service = connection.system_service().vms_service() for vm in vms_service.list(): if vm.name.startswith("germano-"): print "Updating %s" % vm.name vm_service = vms_service.vm_service(vm.id) vm_service.update( types.Vm( initialization=types.Initialization( ) ) ) And the cloud_init element inside initialization seems to suffer from the same problem. Actual results: Initialization still there Expected results: Initialization removed