[ovirt-users] Users Digest, Vol 54, Issue 45 VM migration by using the Python SDK
Jean-Pierre Ribeauville
jpribeauville at axway.com
Mon Mar 7 19:33:49 UTC 2016
Hi,
Thx a lot.
Regards,
J.P.
-----Original Message-----
From: users-bounces at ovirt.org [mailto:users-bounces at ovirt.org] On Behalf Of users-request at ovirt.org
Sent: lundi 7 mars 2016 20:00
To: users at ovirt.org
Subject: Users Digest, Vol 54, Issue 45
Send Users mailing list submissions to
users at ovirt.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ovirt.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
users-request at ovirt.org
You can reach the person managing the list at
users-owner at ovirt.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Users digest..."
Today's Topics:
1. Re: restore-nets failing (was: Fresh install failing (Hosted
Engine)) (Jonathan Sherman)
2. Re: regenerate libvirt-spice keys after libvirtd restart?
(Bill James)
3. Re: VM migration by using the Python SDK (Yaniv Kaul)
----------------------------------------------------------------------
Message: 1
Date: Mon, 7 Mar 2016 12:49:56 -0500
From: Jonathan Sherman <haviland at gmail.com>
To: Dan Kenigsberg <danken at redhat.com>
Cc: Martin Polednik <mpolednik at redhat.com>, users <users at ovirt.org>
Subject: Re: [ovirt-users] restore-nets failing (was: Fresh install
failing (Hosted Engine))
Message-ID:
<CAG7LhDtBRxQUC1Qnzqg6gY_tXQz8MSS3HUJfPO3F789=cVndUg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Bug 1315435 Submitted. Let me know if there's anything else I can do to help.
On Mon, Mar 7, 2016 at 12:04 PM, Dan Kenigsberg <danken at redhat.com> wrote:
> On Mon, Mar 07, 2016 at 11:45:27AM -0500, Jonathan Sherman wrote:
> > The SMBIOS settings were indeed indeed the issue that was blocking
> > me. I investigated how to configure the SMBIOS settings and now
> > restore-nets works, and I'm getting past where I was failing on the
> > hosted-engine --deploy.
> >
> > FYI, I had to download the "Intel Integrator Toolkit" (which is now
> > EOL) and create a custom BIOS to add those settings in for my
> > system, which is an Intel NUC DN2820FYKH.
> >
> > I am happy to back this out and test any changes if you'd like, but
> > this has gotten me to where I can continue oVirt testing for now.
> > I'll likely be reinstalling a few times along the way to polish my
> > documentation, so let me know if you want me to revert my BIOS and test anything.
> >
> > Thanks all!
> > -js
> >
> > On Mon, Mar 7, 2016 at 11:22 AM, Martin Polednik
> > <mpolednik at redhat.com>
> > wrote:
> >
> > > On 07/03/16 11:09 -0500, Jonathan Sherman wrote:
> > >
> > >> Thanks for your time on this Dan!
> > >>
> > >> The output from the hostdev looks like it may be unparseable, so
> > >> I'm hoping this is the issue (and that it can be easily
> > >> remedied).
> > >>
> > >> I've also create a log of the other items you asked for, available at:
> > >> https://www.dropbox.com/s/qh0yw1ptpivpatm/typescript?dl=0
> > >>
> > >> [root at ovirt01 vdsm]# vdsm-tool restore-nets <device>
> > >> <name>computer</name> <capability type='system'>
> > >> <product>?????????????????????????????????</product>
> > >> <hardware>
> > >> <vendor>?????????????????????????????????</vendor>
> > >> <version>?????????????????????????????????</version>
> > >> <serial>?????????????????????????????????</serial>
> > >> <uuid>d6a3e3c1-c5cb-42e9-a54c-ff8d0df91722</uuid>
> > >> </hardware>
> > >> <firmware>
> > >> <vendor>Intel Corp.</vendor>
> > >> <version>FYBYT10H.86A.0052.2015.0923.1845</version>
> > >> <release_date>09/23/2015</release_date>
> > >> </firmware>
> > >> </capability>
> > >> </device>
> > >>
> > >
> > > That seems to be the issue. Even bigger issue is that we can not
> > > skip this device easily, as it is the root of device tree and must
> > > be present in database.
> > >
> > > I can think of logging the exception but letting the call go
> > > through and create a hook to fake a (minimal) device tree. Dan,
> > > what do you
> think?
>
>
> But why isn't this a valid xml, Martin? I suspect that we need to
> utf-8-decode nodedev-xml before using them in Vdsm, similar to what we
> do with domain-xml? (consider Klingon characters in the <vendor>
> element).
>
> In any case, this issue merits a bug - could you open it, Jonathan,
> and attach relevant data to it?
>
> Regards,
> Dan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160307/64af14fd/attachment-0001.html>
------------------------------
Message: 2
Date: Mon, 7 Mar 2016 10:09:30 -0800
From: Bill James <bill.james at j2.com>
To: users <users at ovirt.org>
Subject: Re: [ovirt-users] regenerate libvirt-spice keys after
libvirtd restart?
Message-ID: <56DDC3DA.9040601 at j2.com>
Content-Type: text/plain; charset="utf-8"; format=flowed
thanks for the reply.
I tried reinstall of one host. Didn't help.
Also tried removing the host and reinstalling it. Didn't help.
Looks like server cert & key were regenerated, but not ca-cert.pem.
[root at ovirt2 test ~]# ls -rtl /etc/pki/vdsm/libvirt-spice|grep -v 2016|tail total 84
-rw-r--r-- 1 root kvm 1379 Feb 19 17:09 ca-cert.pem
-rw-r--r-- 1 root kvm 1570 Mar 7 09:44 server-cert.pem
-r--r----- 1 vdsm kvm 1675 Mar 7 09:44 server-key.pem
[root at ovirt2 test ~]# tail -3 /etc/libvirt/qemu.conf
spice_tls=1
spice_tls_x509_cert_dir="/etc/pki/vdsm/libvirt-spice"
## end of configuration section by vdsm-4.17.0
Chown'd all the files to vdsm:kvm just incase, and rebooted the host.
Didn't help.
Changed console back to VNC and it starts up fine.
Seems strange that I could mess up the spice keys just by restarting libvirtd. (service libvirtd restart)
On 03/07/2016 06:15 AM, David Ja?a wrote:
> Hi,
>
> it looks like you messed up private key location and/or contents. If you
> "Reinstall" the host in ovirt engine, the keys/certs should get
> regenerated.
>
> David
>
> On P?, 2016-03-04 at 10:16 -0800, Bill James wrote:
>> I needed to bounce libvirtd after changing a config in libvirt/qemu.conf
>> so import-to-ovirt.pl,
>> but now my VMs with Spice console complain:
>>
>> libvirtError: internal error: process exited while connecting to
>> monitor: ((null):2791): Spice-Warning **: reds.c:3311:reds_init_ssl:
>> Could not use private key file
>>
>> What is the proper way to sync up the key after restarting libvirtd?
>> I even tried rebooting host and restart ovirt-engine and ovirt-engine
>> setup, didn't help.
>>
>> Work around is just use VNC consoles. But I'd like to get spice working
>> again.
>>
>> centos 7.2
>> libvirt-client-1.2.17-13.el7_2.2.x86_64
>> ovirt-engine-3.6.2.6-1.el7.centos.noarch
>>
>>
>>
>> Cloud Services for Business www.j2.com
>> j2 | eFax | eVoice | FuseMail | Campaigner | KeepItSafe | Onebox
>>
>>
>> This email, its contents and attachments contain information from j2 Global, Inc. and/or its affiliates which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is prohibited. If you have received this email in error please notify the sender by reply e-mail and delete the original message and any copies. (c) 2015 j2 Global, Inc. All rights reserved. eFax, eVoice, Campaigner, FuseMail, KeepItSafe, and Onebox are registered trademarks of j2 Global, Inc. and its affiliates.
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
------------------------------
Message: 3
Date: Mon, 7 Mar 2016 20:59:23 +0200
From: Yaniv Kaul <ykaul at redhat.com>
To: Jean-Pierre Ribeauville <jpribeauville at axway.com>
Cc: "users at ovirt.org" <users at ovirt.org>
Subject: Re: [ovirt-users] VM migration by using the Python SDK
Message-ID:
<CAJgorsahS5V+qgcGNrdnRMoMYLUwgqmMuP_3NtmLkj43sJHNTw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Mon, Mar 7, 2016 at 6:17 PM, Jean-Pierre Ribeauville <
jpribeauville at axway.com> wrote:
> Hi,
>
>
>
>
>
> I?m a little bit lost by looking how to migrate a Guest between two nodes
> of a same cluster by using ovirt python API .
>
Copy-paste from oVirt system tests[1], adapt as you need:
def vm_migrate(prefix):
api = prefix.virt_env.engine_vm().get_api()
host_names = [h.name() for h in prefix.virt_env.host_vms()]
migrate_params = params.Action(
host=params.Host(
name=sorted(host_names)[1]
),
)
api.vms.get(VM1_NAME).migrate(migrate_params)
testlib.assert_true_within_short(
lambda: api.vms.get(VM1_NAME).status.state == 'up',
)
Y.
[1]
https://gerrit.ovirt.org/#/c/48206/4/basic_suite_3.6/test-scenarios/004_basic_sanity.py
>
>
> Is it the good way to start for ovirt engine sources ?
>
>
>
> Thx for help.
>
>
>
> Regards,
>
>
>
> Jean-Pierre RIBEAUVILLE
>
>
>
> +33 1 4717 2049
>
>
>
> [image: axway_logo_tagline_87px]
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160307/41bbf9f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11720 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160307/41bbf9f9/attachment.png>
------------------------------
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
End of Users Digest, Vol 54, Issue 45
*************************************
More information about the Users
mailing list