Bug 1641694
Summary: | [RFE] hosted-engine --vm-start-paused should clean up any existing HE-VM. | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Nikolai Sednev <nsednev> |
Component: | ovirt-hosted-engine-setup | Assignee: | Asaf Rachmani <arachman> |
Status: | CLOSED ERRATA | QA Contact: | Nikolai Sednev <nsednev> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.2.7 | CC: | arachman, lsurette, mavital, mtessun, pelauter, pmatyas, rdlugyhe, sgoodman, stirabos |
Target Milestone: | ovirt-4.4.0 | Keywords: | EasyFix, FutureFeature, Triaged |
Target Release: | 4.4.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ovirt-hosted-engine-setup-2.4.4 | Doc Type: | Enhancement |
Doc Text: |
With this update, you can start the self-hosted engine virtual machine in a paused state. To do so, enter the following command:
----
# hosted-engine --vm-start-paused
----
To un-pause the virtual machine, enter the following command:
----
# hosted-engine --vm-start
----
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-08-04 13:26:25 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1795672 | ||
Bug Blocks: |
Description
Nikolai Sednev
2018-10-22 14:19:38 UTC
Please also see https://bugzilla.redhat.com/show_bug.cgi?id=1630090. re-targeting to 4.3.1 since this BZ has not been proposed as blocker for 4.3.0. If you think this bug should block 4.3.0 please re-target and set blocker flag. Moving to 4.3.2 not being identified as blocker for 4.3.1. Please provide your input regarding this RFE if required. Is this still reproducible? There is a patch that should fix it - https://gerrit.ovirt.org/#/c/100538/ Could you please verify if this is still reproducible? See comment#6 What is happening now is as follows: hosted-engine --set-maintenance --mode=global [root@alma04 ~]# hosted-engine --vm-shutdown [root@alma04 ~]# hosted-engine --vm-status !! Cluster is in GLOBAL MAINTENANCE mode !! --== Host alma03.qa.lab.tlv.redhat.com (id: 1) status ==-- Host ID : 1 Host timestamp : 534586 Score : 3400 Engine status : {"vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host"} Hostname : alma03.qa.lab.tlv.redhat.com Local maintenance : False stopped : False crc32 : c74d12cd conf_on_shared_storage : True local_conf_timestamp : 534586 Status up-to-date : True Extra metadata (valid at timestamp): metadata_parse_version=1 metadata_feature_version=1 timestamp=534586 (Tue Mar 3 15:19:38 2020) host-id=1 score=3400 vm_conf_refresh_time=534586 (Tue Mar 3 15:19:38 2020) conf_on_shared_storage=True maintenance=False state=GlobalMaintenance stopped=False --== Host alma04.qa.lab.tlv.redhat.com (id: 2) status ==-- Host ID : 2 Host timestamp : 527447 Score : 3400 Engine status : {"vm": "down_unexpected", "health": "bad", "detail": "Down", "reason": "bad vm status"} Hostname : alma04.qa.lab.tlv.redhat.com Local maintenance : False stopped : False crc32 : 626df609 conf_on_shared_storage : True local_conf_timestamp : 527448 Status up-to-date : True Extra metadata (valid at timestamp): metadata_parse_version=1 metadata_feature_version=1 timestamp=527447 (Tue Mar 3 15:19:39 2020) host-id=2 score=3400 vm_conf_refresh_time=527448 (Tue Mar 3 15:19:39 2020) conf_on_shared_storage=True maintenance=False state=GlobalMaintenance stopped=False !! Cluster is in GLOBAL MAINTENANCE mode !! alma04 ~]# hosted-engine --vm-start-paused VM exists and is down, cleaning up and restarting Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/vdsm_helper.py", line 214, in <module> args.command(args) File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/vdsm_helper.py", line 42, in func f(*args, **kwargs) File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/vdsm_helper.py", line 52, in create vm_params = vmconf.parseVmConfFile(args.filename) File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/vmconf.py", line 169, in parseVmConfFile engine_xml_tree = ovfenvelope.etree_.fromstring(xml) File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1872, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. VM failed to launch alma04 ~]# virsh -r list --all Id Name State ---------------------- 8 VM1 running 10 VM3 running Engine still fails to get started in paused mode. VM1 and VM3 are regular guest VMs running on environment. Tested on these components: NFS deployment on these components: rhvm-appliance.x86_64 2:4.4-20200123.0.el8ev rhv-4.4.0 sanlock-3.8.0-2.el8.x86_64 qemu-kvm-4.2.0-12.module+el8.2.0+5858+afd073bc.x86_64 vdsm-4.40.5-1.el8ev.x86_64 libvirt-client-6.0.0-7.module+el8.2.0+5869+c23fe68b.x86_64 ovirt-hosted-engine-setup-2.4.2-2.el8ev.noarch ovirt-hosted-engine-ha-2.4.2-1.el8ev.noarch Linux 4.18.0-183.el8.x86_64 #1 SMP Sun Feb 23 20:50:47 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.2 Beta (Ootpa) Engine is software version:4.4.0-0.17.master.el7 Red Hat Enterprise Linux Server release 7.8 Beta (Maipo) Linux 3.10.0-1123.el7.x86_64 #1 SMP Tue Jan 14 03:44:38 EST 2020 x86_64 x86_64 x86_64 GNU/Linux In case I'm running "hosted-engine --vm-start" command, I'll get as follows: Command VM.getStats with args {'vmID': '876bfd86-c46a-47cb-895c-51e61c953782'} failed: (code=1, message=Virtual machine does not exist: {'vmId': '876bfd86-c46a-47cb-895c-51e61c953782'}) VM in WaitForLaunch And then engine gets started: alma04 ~]# virsh -r list --all Id Name State ------------------------------ 8 VM1 running 10 VM3 running 12 HostedEngine running *** Bug 1721144 has been marked as a duplicate of this bug. *** hosted-engine --set-maintenance --mode=global hosted-engine --vmstatus !! Cluster is in GLOBAL MAINTENANCE mode !! hosted-engine --vm-shutdown Command VM.shutdown with args {'vmID': '9e2e81a5-64be-444e-b1c5-d9463f3eee35', 'delay': '120', 'message': 'VM is shutting down!'} failed: (code=1, message=Virtual machine does not exist: {'vmId': '9e2e81a5-64be-444e-b1c5-d9463f3eee35'}) alma03 ~]# virsh -r list --all Id Name State -------------------- alma03 ~]# hosted-engine --vm-start-paused Command VM.getStats with args {'vmID': '9e2e81a5-64be-444e-b1c5-d9463f3eee35'} failed: (code=1, message=Virtual machine does not exist: {'vmId': '9e2e81a5-64be-444e-b1c5-d9463f3eee35'}) VM in WaitForLaunch [root@alma03 ~]# virsh -r list --all Id Name State ----------------------------- 1 HostedEngine paused Worked for me on fresh and clean environment, deployment of HE 4.4 was performed on NFS. Tested on host with these components: rhvm-appliance.x86_64 2:4.4-20200326.0.el8ev ovirt-hosted-engine-setup-2.4.4-1.el8ev.noarch ovirt-hosted-engine-ha-2.4.2-1.el8ev.noarch Red Hat Enterprise Linux release 8.2 Beta (Ootpa) Linux 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Engine: ovirt-engine-setup-base-4.4.0-0.26.master.el8ev.noarch ovirt-engine-4.4.0-0.26.master.el8ev.noarch openvswitch2.11-2.11.0-48.el8fdp.x86_64 Linux 4.18.0-192.el8.x86_64 #1 SMP Tue Mar 24 14:06:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.2 Beta (Ootpa) 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 (RHV RHEL Host (ovirt-host) 4.4), 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-2020:3246 |