Using the remote-viewer console to connect to a remote guest machine on Red Hat Enterprise Virtualization 4.0 in some cases failed because the state of the guest was not detected accurately. This update corrects a syntax error in the REST API that was causing this problem, and remote-viewer now opens the described guests more reliably.
Description of problem:
Wrong VM state get for vms in ovirt4.0
Version-Release number of selected component (if applicable):
libgovirt-0.3.3-2.el7.x86_64
virt-viewer-2.0-8.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Prepare a running vm in ovirt 4.0.
2. Got the ca file from ovirt 4.0.
$ wget -O 2.crt http://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA
3. Connect the vm by remote-viewer with ovirt uri.
$ remote-viewer --ovirt-ca-file=2.crt ovirt://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/$your_vm
Actual results:
An error dialog with info "Couldn't open oVirt session: oVirt VM xiaodwan-test is not running" pops up.
Expected results:
remote-viewer should open the vm correctly.
Additional info:
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://rhn.redhat.com/errata/RHBA-2016-2229.html