Re: [ovirt-users] can't import vm from KVM host

2016-11-28 Thread Shahar Havivi
On 28.11.16 17:35, Nelson Lameiras wrote:
> Hello Shahar,
> 
> Actually, our production servers use pool storage (+block devices), so I 
> quickly tried to import from them and I have the same error : 0 disks 
> "declared" on each VM.
> 
> I tried the patch you advised last week, and eventhough it didn't work, 
> clearly the logs showed you are going in the right direction.
> I'm available to try other patches on my test setup. Do not hesitate to ask 
> me.
Thank you,
We are working now on new method to fetch block devices and hope soon there
will be patch.
Once you select a VM and press the "Next" button you don't see any disks?
If so please send me the libvirt dumpxml via virsh.

With the latest patch you suppose to see the disks data but it may fail for
block device when you start the import.
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Shahar Havivi" 
> To: "Nelson Lameiras" 
> Cc: "Tomas Golembiovsky" , "Michal Skrivanek" 
> , users@ovirt.org
> Sent: Sunday, November 20, 2016 9:36:14 AM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 18.11.16 09:34, Nelson Lameiras wrote:
> > Hello Shahar,
> > 
> > I've rebuild my test system and installed recently released ovirt 4.0.5 + 
> > gerrit patch => still no luck. vdsm always gives me same error : 
> Hi,
> 
> yes once you have the alias you are half way there.
> but your alias path looks wrong, it starts with white-space:
> '/  var/lib/libvirt/images/rhel7.1.img'
> 
> check it via 'virsh -r dumpxml '
> and look if the white space are there two
> 
> regarding the pool you can check it too via virsh
> virsh pool-list
> and all pool-* commands (to create one), if you have problems building pool
> let me know.
> 
>  Shahar.
> > 
> > "
> > jsonrpc.Executor/6::ERROR::2016-11-17 
> > 16:38:56,320::v2v::934::root::(_add_disk_info) Error getting disk size
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> > _add_disk_info
> > vol = conn.storageVolLookupByPath(disk['alias'])
> >   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> > storageVolLookupByPath
> > if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
> > conn=self)
> > libvirtError: Volume de stockage introuvable : no storage vol with matching 
> > path '/dev/sdc'
> > jsonrpc.Executor/6::DEBUG::2016-11-17 
> > 16:38:56,325::__init__::555::jsonrpc.JsonRpcServer::(_handle_request) 
> > Return 'Host.getExternalVMs' in bridge with [{'status': 'Down', 'graphics': 
> > 'spice', 'arch': 'x86_64', 'disks': [ {'capacity': '8589934592', 'format': 
> > 'RAW', 'dev': 'hdd', 'allocation': '8589942784', 'alias': '/  
> > var/lib/libvirt/images/rhel7.1.img', 'type': 'disk'}, {'alias': '/dev/sdc', 
> > 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}], 'vmId': 
> > 'd0ddc4f6-a208-4286-a665-fb9e54d14bef', 'smp': 1, 'has_snapshots': False, 
> > 'video': 'qxl', 'memSize': 1  024, 'vmName': 'rhel7.1', 'networks': 
> > [{'model': 'virtio', 'macAddr': '52:54:00:00:d7:76', 'type': 'network'}]}]
> > "
> > 
> > FYI I added a normal disk (file based) to the VM ir order to try to 
> > understand what's happening. As expected, this disk is seen by the oVirt 
> > (without patch)
> > 
> > I do reckon something in the above log :
> > 
> >  'disks': [
> >{'capacity': '8589934592', 'format': 'RAW', 'dev': 'hdd', 'allocation': 
> > '8589942784', 'alias': '/  var/lib/libvirt/images/rhel7.1.img', 'type': 
> > 'disk'}, 
> >{'alias': '/dev/sdc', 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}
> >  ], 
> > 
> > the "alias" line is clearly new since it did not appear before de patch! 
> > something is working ;)
> > 
> > I confirm that when I created the test VM (via virt-manager), I gave 
> > directly the path to the device (/dev/sdc), so there is no "pool" to be 
> > addressed defined on libvirt! 
> > I read https://gerrit.ovirt.org/#/c/64272/4/ and I agree with Tomas 
> > findings : Currently the conversion process is expecting a volume on a pool 
> > and it's not able to use a block device directly.
> > 
> > So I'm hopping a solution can be found to this problem. We have a few 
> > hundreds VM waiting to be migrated in production and we don't have a NFS 
> > server, so this is our only option so far.
> > 
> > I'm able to test any patch quickly if needed, do not hesitate.
> > 
> > cordialement, regards, 
> > Nelson LAMEIRAS 
> > 
> > Lyra Network 
> > Service Projets et Processus 
> > Tel : +33 (0) 5 32 09 09 70 
> > 109 rue de l’innovation 
> > 31670 Labège - France 
> > www.lyra-network.com
> > 
> > - Original Message -
> > From: "Shahar Havivi" 
> > To: "Nelson Lameiras" 

[ovirt-users] Failed to delete snapshot '' for VM

2016-11-28 Thread Peter Calum
Hi

I am getting theese events 2-3 times every minute, any ideas ?

Failed to delete snapshot '' for VM ‘khk9dsw16’

I have tried :
Restarting VM
Set the host to maintenaince an activated again
Restarted ovirt-engine on Manager



SW : oVirt Engine Version: 4.0.1.1-1.el7.centos


-- 
Kind regards

Peter Calum
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] HA without Power Management

2016-11-28 Thread Sebastian Greco
Hi Oved!

That's a perfect explanation. Do we have a release date for 4.1? I'm
currently working with RHV in my production enviroment.

I may don't have the opportunity to wait for 4.1 to see the light as all my
customers VMs (im a web hoster) run on a non HA cluster as my provider does
not give me access to the IPMI. If anyone knows anyway to workaround this
limitation please do let me know.

Thanks a lot!

El 28 nov. 2016 9:12 p. m., "Oved Ourfali"  escribió:

> Hi Sebastian
>
> Currently in case a host is not responding, the only way to make sure no
> vms are running on it is to fence it, and we only support fencing through
> power management.
>
> In 4.1 we plan to have limited options for storage fencing. This will mean
> that if a host is not responding then we try to run HA VMs on another host.
> If the host is still up then it will fail, as the non responsive host is
> the one holding the lock. If, however, the host is really dead, then the
> run VM should succeed.
>
> So, a VM should be up and running, but it might run on a host that has
> connectivity issues.
>
> Better than what you have now, but still partial. I guess this might get
> improved during 4.2.
>
> Regards,
> Oved
>
> On Nov 28, 2016 18:29, "Sebastian Greco"  wrote:
>
>> Hi,
>>
>> Is there any way to have HA in a cluster which hosts have not got
>> configured the "Power Management"?
>>
>> In my scenario I have 2 hosts (v4) on OVH  and a hosted-engine to manage
>> them. Thing is that OVH does not allow direct communication with the hosts
>> IPMI interface. IPMI is only available in the "customer area" under a java
>> applet as that interface is connected to a non accesible network. So,
>> having no access to this interface I find myself in a situation in which I
>> lost all my HA functionality :(
>>
>> Any help would be more than welcome.
>>
>> Sebas
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to update ovirt on a single-host hosted-engine host

2016-11-28 Thread Derek Atkins
Hi,

"Derek Atkins"  writes:

> Hi,
>
> All storage is NFS storage exported by the host itself.  i didn't mention
> it because it shouldn't have mattered -- the HE export mounted but the
> others didn't..  Although it appears this may all have been due to the
> network issues between engine and host -- once I added a workaround to
> that issue the mounting issues seemed to resolve themselves.
>
> I'm not sure why I'm having this network issue.  The engine VM gets an ARP
> Redirect and then can't reach the host anymore -- but of course the host
> can reach the VM.  It's a strange issue that I haven't been able to track
> down (but is most likely not related to ovirt).

For what it's worth, it did come back after I:

1) worked around a strange networking problem where the engine couldn't
   reach the host.  I still need to figure out why I'm having this
   network issue, where the machines stop being able to communicate.  I
   don't think this is an ovirt issue, I suspect an ARP issue on my
   network.

2) Waited..  it took about 15 minutes to stabilize.

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Konstantin Shalygin
ovirt-shell will be deprecated and not supported or some functions on 
ovirt-shell (or all package ovirt-engine-cli)?


We use ovirt-shell on client desktops who connected to SPICE consoles 
and work (users provided by LDAP on ovirt-engine), like via RDP. For 
this I wrote very fast-hack patch for ovirt-shell and GUI for enter 
password (https://github.com/k0ste/ovirt-pygtk). Very simple, but via 
Internet people use SPICE without negative about packet loss and 
disconnects, instead RDP.



BTW, the ovirt-shell is something we deprecated. It is working on top of
the v3 api, which we plan to remove in 4.2.
So better not use it.



You can start maintain. For example I maintain packes for Arch Linux: 
ovirt-engine-cli (https://aur.archlinux.org/packages/ovirt-engine-cli) 
and ovirt-engine-sdk-python 
(https://aur.archlinux.org/packages/ovirt-engine-sdk-python).



  My workstation at work is running Ubuntu, and I do not believe that 
ovirt-shell is packaged for it.


--
Best regards,
Konstantin Shalygin


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Oved Ourfali
BTW, the ovirt-shell is something we deprecated. It is working on top of
the v3 api, which we plan to remove in 4.2.
So better not use it.

Alternatives are to use the SDKs according to your preference (we have
Java, python and Ruby SDKs) or the ansible modules mentioned above by Moran
(instead of writing scripts you can write playbooks to do various
operations ).

Regards,
Oved

On Nov 28, 2016 13:02, "Nathanaël Blanchet"  wrote:

>
>
> Le 26/11/2016 à 22:40, Chris Cowley a écrit :
>
> A few reasons really. I fancied playing around with Click, so I made
> this as I was also digging around the oVirt API. My workstation at work
> is running Ubuntu, and I do not believe that ovirt-shell is packaged for it.
>
> sudo apt-get install -y python-pip
> sudo pip install kitchen
> sudo pip install ply
> sudo pip install ovirt-shell
>
>
>
> Also, choice is good.
>
> Finally: because I didn't think of it.
>
> On 26/11/16 22:24, Derek Atkins wrote:
>
> Hi Chris,
>
> Just a quick question, but, why not just use ovirt-shell?
> Or make this a wrapper around ovirt-shell?
>
> -derek
>
> On Sat, November 26, 2016 4:10 pm, Chris Cowley wrote:
>
> Hi all
>
> I started hacking together something last night to use as a CLI to
> manage my oVirt clusters.
> https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage
>
> Currently it can create/delete a VM, list the VMS, and I started a
> function to show the details, but all that does for now is return the ID.
>
> The plan is for it to evolve with my own needs, but I am open to
> ideas/PRs from the community.
>
> Disclaimer #1: I am a SysAdmin, not a developer. If you a proper
> developer, what you see may cause you physical pain.
>
> Disclaimer #2: My Gogs repo is behind my ADSL in rural France, be
> patient and I withold the right to not respect any sort of SLA :-)
>
>
> --
> Regards
>
> Chris Cowleyhttp://about.me/chriscowley
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> Pôle Infrastrutures Informatiques
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5 
> Tél. 33 (0)4 67 54 84 55
> Fax  33 (0)4 67 54 84 14blanc...@abes.fr
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] kdump integration warnings

2016-11-28 Thread Martin Perina
Hi Michael,

the warning message means that Kdump integration is enabled for the host,
but the host doesn't contain proper kdump configuration. This can happen
due to following reasons:

1. Kdump integration was enabled, but host was not reinstalled after that
- every time you enable/disable kdump integration for the host you need
to reinstall the host by moving the host to Maintenance and executing
Reinstall

2. There was some error during kdump integration configuration during host
installation
- details about the error can be found in proper host installation log
(it's displayed in Events tab), all existing logs can be found on engine
machine in /var/log/ovirt-engine/host-deploy directory

More details about Kdump integration can be found at [1] or [2].

Thanks

Martin Perina

[1]
http://www.ovirt.org/develop/release-management/features/engine/fence-kdump/
[2] https://www.youtube.com/watch?v=RAGV_za_Qvw

On Mon, Nov 21, 2016 at 11:38 PM, Michael Watters 
wrote:

> I have two brand new ovirt hosts running ovirt 3.6 which are giving a
> warning message whenever the host is activated.
>
> >Kdump integration is enabled for host ovirt-node-production1, but
> kdump is not configured properly on host.
>
> The server does have the kdump package installed and the service is
> running according to systemctl.  Do I need to update the
> /etc/kdump.conf file to work properly or does ovirt do that on its own?
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ansible Modules for ovirt

2016-11-28 Thread Martin Perina
Hi,

currently the only way how to test not-yet-merged modules is to download
the from github and save them manually into the existing directory with
oVirt modules which are part of Ansible 2.2 (this way you can use all new
modules even with 2.2).

Thanks a lot for any testing and feedback for those modules

Martin Perina


On Mon, Nov 28, 2016 at 5:15 PM, Jean Paul Gatt <
jeanpaul.g...@gamesysnetwork.com> wrote:

> Thanks Ondra,
>
> I will follow them on Github.
>
> Keep up the good work. Also if there is any possibility to start testing
> the other modules(like managing networks) due to come out with ansible 2.3
> please let me know.
>
> Regards,
>
> Jean Paul Gatt
>
> -Original Message-
> From: Ondra Machacek [mailto:omach...@redhat.com]
> Sent: 28 November 2016 16:51
> To: Jean Paul Gatt ; users@ovirt.org
> Subject: Re: [ovirt-users] Ansible Modules for ovirt
>
> Hi,
>
> thank you very much for your feedback. I am sending few notes inline.
>
> On 11/25/2016 04:27 PM, Jean Paul Gatt wrote:
> > Hi,
> >
> >
> >
> > I have been trying to use the following ansible modules (based on the
> > last devel commit in the ansible github repo for the extras modules
> > 43bb97bc3763b0335e245606eb2985314902cc91):
> >
> > * ovirt_vms
> >
> > * ovirt_disks
> >
> >
> >
> > I have had varying degrees of success, and I would like to list the
> > following issues:
> >
> > * Through the REST API, I can define multiple nic card
> > configurations for cloud-init, however only 1 can be done with Ansible.
>
> This issue was already opened here:
>
>   https://github.com/ansible/ansible-modules-extras/issues/3447
>
> I will be very happy if you will take a look and tell what you think about
> the proposed fix.
>
> > Also, when using templates, it automatically assumes I will be using
> > the last version of the template, this had to be defined when using REST.
>
> I've opened an issue here:
>
>   https://github.com/ansible/ansible-modules-extras/issues/3555
>
> Feel free to comment there any additional requests regarding that issue.
>
> >
> > * Assume I have deployed from a template. This will create a VM
> > with a disk that is already attached. Now, let's say I want to
> > confirm, or add more disks to the VM. If I pass a number of disks,
> > that have already been attached, and I reference them by name (in
> > ovirt_disks), I get an error. If I do the same operation by ID it
> > seems to work. However I cannot get the ID when running ansible, I need
> to get it from REST.
> > When I query ovirt_vms, disk attachments comes up as
> >
> > o   "disk_attachments": [],
> >
> > If that field gets populated, I could then in turn run ovirt_disks
> > with the ID, after querying the VM to get the attachments, but as it
> > is it cannot be done.
> >
> >
> >
> > I'll give an example
> >
> >
> >
> > - name: Get Disks
> >
> >   ovirt_disks:
> >
> > auth: "{{ovirt_auth}}"
> >
> > vm_name: "{{item.0.name}}"
> >
> > name: "{{item.1.name}}"
> >
> > interface: "{{item.1.interface}}"
> >
> >   register: r_disks
> >
> >   with_subelements:
> >
> > - "{{virtual_machines }}"
> >
> > - drives
> >
> >
> >
> > If the drives have already been attached this will
> > fail... but
> >
> >
> >
> > - name: Add Disks to VMs
> >
> >   ovirt_disks:
> >
> > auth: "{{ovirt_auth}}"
> >
> > vm_name: "{{item.0.name}}"
> >
> > id: 8fc2811e-7774-4903-a5b3-489fdedb377b
> >
> > size: "100GiB"
> >
> > format: "{{item.1.format}}"
> >
> > storage_domain: "{{item.1.storage_domain.name}}"
> >
> > bootable: "{{item.1.bootable}}"
> >
> > interface: "{{item.1.interface}}"
> >
> > state: attached
> >
> >   with_subelements:
> >
> > - "{{virtual_machines }}"
> >
> > - drives
> >
> >
> >
> > The second example is working, even if the disk has
> > already been attached.
> >
> >
> >
> >
> >
> > I'm assuming that since I'm creating the VM from a template, there
> > might be multiple disks with the same name, and the wrong ID is being
> retrieved.
>
> Yes, that is the problem. To work reliably with disks, the only way is the
> ID. I will document it better, so users aren't confused.
>
> I've opened following issue:
>
>   https://github.com/ansible/ansible/issues/18650
>
> I will work on it, feel free to comment any ideas there.
>
> >
> >
> >
> > I'm happy to do more testing as further commits appear.
>
> Thank you, the fixes will be during this week, so hopefully merged soon.
>
> >
> >
> >
> > Regards*,*
> >
> > * *
> >
> > *Jean Paul Gatt*
> >
> >
> >
> >
> > This email (including any attachments) is confidential, protected by
> > copyright and/or other intellectual property rights and may be
> > privileged. If you have received it in error, please notify the sender
> > immediately before deleting the email from your device. Do not use,
> > copy or disclose the information contained in this message or in any
> > 

Re: [ovirt-users] Users Digest, Vol 62, Issue 192

2016-11-28 Thread jo...@familiealbers.nl
;> 
>> 
>> On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi
>> <stira...@redhat.com <mailto:stira...@redhat.com> [6]> wrote:
>> 
>> On Mon, Nov 28, 2016 at 12:24 PM, <jo...@familiealbers.nl 
>> <mailto:jo...@familiealbers.nl> [3]>
>> wrote:
>> 
>> Hi All,
>> 
>> In our ovirt 3.5 setup. i have always setup the ovirtmgmt
>> bridge manually .
>> The bridge consisted of 2 nics
>> 
>> Id have /etc/vdsm/vdsm.conf list net_persist = ifcfg
>> 
>> 
>> When i then deployed the host from the ovirt ui or api it
>> would install and would display the network setup correctly in
>> the ui.
>> 
>> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
>> I seem unable to follow the same approach.
>> 
>> In the engine logs i get among other things
>> 
>> If the interface ovirtmgmt is a bridge, it should be
>> torn-down manually.
>> 
>> the interface is indeed a bridge with two nics which i would
>> like to keep this way.
>> 
>> On the host vdsm.log i get limited info,
>> 
>> when start a python terminal to obtain netinfo i get this
>> 
>> from vdsm.tool import unified_persistence
>> unified_persistence.netswitch.netinfo()
>> Traceback (most recent call last):
>>  File "", line 1, in 
>>  File
>> "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
>> line 298, in netinfo
>>_netinfo = netinfo_get(compatibility=compatibility)
>>  File
>> 
>> 
>> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>> line 109, in get
>>return _get(vdsmnets)
>>  File
>> 
>> 
>> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>> line 101, in _get
>>report_network_qos(networking)
>>  File
>> 
>> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
>> line 46, in report_network_qos
>>iface, = host_ports
>> ValueError: too many values to unpack
>> 
>> As it appears the line in question does not like to deal with
>> a list of nics i think.
>> but either way.
>> 
>> Is in ovirt 4 the ability to use the ovirtmgmt bridge with
>> multiple nics removed?
>> 
>> But do you need a bridge or a bond?
>> 
>> 
>> If so what can i do to stick to what we have done in the past.
>> 
>> Thanks.
>> 
>> ___
>> Users mailing list
>> Users@ovirt.org <mailto:Users@ovirt.org> [1]
>> http://lists.ovirt.org/mailman/listinfo/users 
>> <http://lists.ovirt.org/mailman/listinfo/users> [2]
>> 
>> ___
>> Users mailing list
>> Users@ovirt.org <mailto:Users@ovirt.org> [4]
>> http://lists.ovirt.org/mailman/listinfo/users 
>> <http://lists.ovirt.org/mailman/listinfo/users> [5]
>> 
>> 
>> 
>> Links:
>> --
>> [1] mailto:Users@ovirt.org <mailto:Users@ovirt.org>
>> [2] http://lists.ovirt.org/mailman/listinfo/users 
>> <http://lists.ovirt.org/mailman/listinfo/users>
>> [3] mailto:jo...@familiealbers.nl <mailto:jo...@familiealbers.nl>
>> [4] mailto:Users@ovirt.org <mailto:Users@ovirt.org>
>> [5] http://lists.ovirt.org/mailman/listinfo/users 
>> <http://lists.ovirt.org/mailman/listinfo/users>
>> [6] mailto:stira...@redhat.com <mailto:stira...@redhat.com>
>> [7] mailto:ckozler...@gmail.com <mailto:ckozler...@gmail.com>
>> [8] mailto:stira...@redhat.com <mailto:stira...@redhat.com>
>> 
>> 
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
> 
> -- next part --
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.ovirt.org/pipermail/users/attachments/20161128/2d6dc373/attachment-0001.html>
> 
> --
> 
> Message: 2
> Date: Mon, 28 Nov 2016 19:05:34 +0100
> From: "jo...@familiealbers.nl" <jo...@familiealbers.nl>
> To: Charles Kozler <ckozler...@gmail.com>
> Cc: users <users@ovirt.org>
> Subject: Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in
>ovirt4.0
> Message-ID: <ccad1b7a-86ef-45b6-9794-c31f789a8...@familiealbers.nl>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi Charles, that worked, thanks!!! allthough im still wondering where this 
> change was listed at any point bet

Re: [ovirt-users] HA without Power Management

2016-11-28 Thread Oved Ourfali
Hi Sebastian

Currently in case a host is not responding, the only way to make sure no
vms are running on it is to fence it, and we only support fencing through
power management.

In 4.1 we plan to have limited options for storage fencing. This will mean
that if a host is not responding then we try to run HA VMs on another host.
If the host is still up then it will fail, as the non responsive host is
the one holding the lock. If, however, the host is really dead, then the
run VM should succeed.

So, a VM should be up and running, but it might run on a host that has
connectivity issues.

Better than what you have now, but still partial. I guess this might get
improved during 4.2.

Regards,
Oved

On Nov 28, 2016 18:29, "Sebastian Greco"  wrote:

> Hi,
>
> Is there any way to have HA in a cluster which hosts have not got
> configured the "Power Management"?
>
> In my scenario I have 2 hosts (v4) on OVH  and a hosted-engine to manage
> them. Thing is that OVH does not allow direct communication with the hosts
> IPMI interface. IPMI is only available in the "customer area" under a java
> applet as that interface is connected to a non accesible network. So,
> having no access to this interface I find myself in a situation in which I
> lost all my HA functionality :(
>
> Any help would be more than welcome.
>
> Sebas
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Fwd: spice console resolution now exceeding 1024x768

2016-11-28 Thread John Nguyen
Hi Uri,

Thank you for your suggestions. Unfortunately  I wasn't able to resize the
console either with the mouse method or with xrandr command.

When I resize the console window the image looks blurry similar to a
miss-sized image in a browser.

When I try the xrandr command.  I receive the following error:
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request: 139 (RANDR)
  Minor opcode of failed request: 7 (RRSetScreenSize)
  Serial number of failed request: 36
  Current serial number in output stream: 37


I've tested the remote-viewer from Window 10, CentOS 6.7 and CentOS 7.2
with the same results.
Also the engine is built on CentOS7.2 Minimal installation if that helps.

Thanks for your insight.
John



On Mon, Nov 21, 2016 at 1:52 PM, Uri Lublin  wrote:

> On 11/16/2016 06:16 PM, Yaniv Dary wrote:
>
>> On Tue, Nov 15, 2016 at 9:08 PM, John Nguyen > > wrote:
>>
>> Sorry I'm quite new to this
>>
>> Thank you Yaniv,
>>
>>
>> I'm running CentOS 7.2, with kernel 3.10.0-327.28.3 on both my guest
>> vm and ovirt host
>>
>> both the QXL driver and the spice-vdagent are installed on my guest
>> vm.
>> xorg-x11-drv-qxl version 0.1.1 18.el7
>> spice-vdagent-0.14.0-10.el7
>>
>> I'm running ovirt 4.0.4.4
>>
>> John
>>
>>
>>
>> On Tue, Nov 15, 2016 at 11:50 AM, Yaniv Dary > > wrote:
>>
>> Missing information on:
>> - What OS is running on the guest ?
>> - Is the QXL driver installed on the guest ?
>> - Is spice-vdagent installed and is running on the guest ?
>>
>> Thanks
>>
>> Yaniv Dary Technical Product Manager Red Hat Israel
>>
>> On Fri, Nov 4, 2016 at 3:40 AM, John Nguyen wrote:
>> Hello,
>>
>> I'm very sorry if this question has been covered before.
>> I've recently deployed the Ovirt 4 release on a CentOS 7.2
>> host.  I'm delighted with the dashboard improvements over
>> the 3.6 release. However I'm experiencing an issue with
>> trying to resize my spice console pass 1024x768 resolution.
>> The vm to shows an "Unknown Display".
>>
>> Any guidance would be greatly appreciated.
>>
>> Yours,
>> John N
>>
>>
>
> Hello John,
>
> This seems to be unrelated to Spice, and also happens with VNC
> and without QXL device.
>
> I suppose you are trying to change the resolution from within
> the guest using system Settings -> Displays.
>
> Please try the following methods:
> 1. Simply enlarge the "console" window with your mouse
>on the client side. With Spice (and vdagent running),
>that should adjust your guest resolution (although
>may not be exactly 1024x768). Or
>
> 2. In your guest, try to adjust resolution using xrandr:
>open a gnome-terminal and run
>xrandr | grep Virtual  ( make sure "Virtual-0" is the name to use)
>xrandr | grep '*'  ( see the resolution before/after the change)
>xrandr --output Virtual-0 --mode 1024x768  (set the resolution)
>
> Hope that helps,
> Uri.
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread jo...@familiealbers.nl
Hi Charles, that worked, thanks!!! allthough im still wondering where this 
change was listed at any point between 3.5 and 4.0. 

Verstuurd vanaf mijn iPhone

> Op 28 nov. 2016 om 16:11 heeft Charles Kozler  het 
> volgende geschreven:
> 
> What happens when you configure the bond and then build the bridge manually 
> over the bond? oVirt installer should skip over it and not do anything. Just 
> make sure you have DEFROUTE set or routes configuration file as you expect 
> (this is what used to screw me up)
> 
>> On Mon, Nov 28, 2016 at 10:06 AM,  wrote:
>> Thanks for your responses but the ui is not an option for me as i am dealing 
>> with loads of systems.
>> in 3.5 ovirt used to just accept the bridge as it was and incorporate it, i 
>> am just wondering if i am facing a bug or a feature at the moment.
>> 
>> 
>> Charles Kozler schreef op 2016-11-28 15:48:
>>> Thats what I used to do as well then on oVirt 4 it started screwing
>>> with the the bond as well so I ended up just dumbing it down and
>>> figured using the UI after the fact would be OK. I cant remember
>>> exactly what would happen but it would be stupid little things like
>>> routing would break or something. 
>>> 
>>> On Mon, Nov 28, 2016 at 9:43 AM, Simone Tiraboschi
>>>  wrote:
>>> 
 On Mon, Nov 28, 2016 at 3:42 PM, Charles Kozler
  wrote:
 
> What Ive been doing since oVirt 4 is just configuring one NIC
> manually when I provision the server (eg: eth0, em1, etc) and then
> let oVirt do the bridge setup. Once the engine is up I login to
> the UI and I use it to bond the NICs in whatever fashion I need
> (LACP or active-backup). Any time I tried to configure ovirtmgmt
> manually it seemed to "annoy" the hosted-engine --deploy script
 
 This is fine.
 Another thing you could do is manually creating the bond and then
 having hosted-engine-setup creating the management bridge over your
 bond.
 
  
 
> On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi
>  wrote:
> 
>> On Mon, Nov 28, 2016 at 12:24 PM, 
>> wrote:
>> 
>>> Hi All,
>>> 
>>> In our ovirt 3.5 setup. i have always setup the ovirtmgmt
>>> bridge manually .
>>> The bridge consisted of 2 nics
>>> 
>>> Id have /etc/vdsm/vdsm.conf list net_persist = ifcfg
>>> 
>>> 
>>> When i then deployed the host from the ovirt ui or api it
>>> would install and would display the network setup correctly in
>>> the ui.
>>> 
>>> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
>>> I seem unable to follow the same approach.
>>> 
>>> In the engine logs i get among other things
>>> 
>>> If the interface ovirtmgmt is a bridge, it should be
>>> torn-down manually.
>>> 
>>> the interface is indeed a bridge with two nics which i would
>>> like to keep this way.
>>> 
>>> On the host vdsm.log i get limited info,
>>> 
>>> when start a python terminal to obtain netinfo i get this
>>> 
>> from vdsm.tool import unified_persistence
>> unified_persistence.netswitch.netinfo()
>>> Traceback (most recent call last):
>>>   File "", line 1, in 
>>>   File
>>> "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
>>> line 298, in netinfo
>>> _netinfo = netinfo_get(compatibility=compatibility)
>>>   File
>>> 
>> 
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>>> line 109, in get
>>> return _get(vdsmnets)
>>>   File
>>> 
>> 
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>>> line 101, in _get
>>> report_network_qos(networking)
>>>   File
>>> 
>> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
>>> line 46, in report_network_qos
>>> iface, = host_ports
>>> ValueError: too many values to unpack
>>> 
>>> As it appears the line in question does not like to deal with
>>> a list of nics i think.
>>> but either way.
>>> 
>>> Is in ovirt 4 the ability to use the ovirtmgmt bridge with
>>> multiple nics removed?
>> 
>> But do you need a bridge or a bond?
>>  
>> 
>>> If so what can i do to stick to what we have done in the past.
>>> 
>>> Thanks.
>>> 
>>> ___
>>> Users mailing list
>>> Users@ovirt.org [1]
>>> http://lists.ovirt.org/mailman/listinfo/users [2]
>> 
>> ___
>> Users mailing list
>> Users@ovirt.org [4]
>> http://lists.ovirt.org/mailman/listinfo/users [5]
>>> 
>>> 
>>> 
>>> Links:
>>> --
>>> [1] mailto:Users@ovirt.org
>>> [2] http://lists.ovirt.org/mailman/listinfo/users
>>> [3] 

Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread Darrell Budic
I’m having trouble with that plan and I’m not even trying to put the ovirtmgmt 
bridge on an existing bond. I have a pre-existing gluster setup with gluster 
running on a bonded interface. The ovirtmgmt should go on a different 
interface, but even that fails on the bond with the “torn down manually” 
statement. Haven’t had much time to do more troubleshooting, but it’s rather 
annoying. 

I’d really prefer it if the installer would just deal with existing network 
setups, I (presumably) know what I want there, especially in the case of 
pre-existing gluster setups.

  -Darrell

> On Nov 28, 2016, at 9:11 AM, Charles Kozler  wrote:
> 
> What happens when you configure the bond and then build the bridge manually 
> over the bond? oVirt installer should skip over it and not do anything. Just 
> make sure you have DEFROUTE set or routes configuration file as you expect 
> (this is what used to screw me up)
> 
> On Mon, Nov 28, 2016 at 10:06 AM,  > wrote:
> Thanks for your responses but the ui is not an option for me as i am dealing 
> with loads of systems.
> in 3.5 ovirt used to just accept the bridge as it was and incorporate it, i 
> am just wondering if i am facing a bug or a feature at the moment.
> 
> 
> Charles Kozler schreef op 2016-11-28 15:48:
> Thats what I used to do as well then on oVirt 4 it started screwing
> with the the bond as well so I ended up just dumbing it down and
> figured using the UI after the fact would be OK. I cant remember
> exactly what would happen but it would be stupid little things like
> routing would break or something. 
> 
> On Mon, Nov 28, 2016 at 9:43 AM, Simone Tiraboschi
>  [8]> wrote:
> 
> On Mon, Nov 28, 2016 at 3:42 PM, Charles Kozler
>  [7]> wrote:
> 
> What Ive been doing since oVirt 4 is just configuring one NIC
> manually when I provision the server (eg: eth0, em1, etc) and then
> let oVirt do the bridge setup. Once the engine is up I login to
> the UI and I use it to bond the NICs in whatever fashion I need
> (LACP or active-backup). Any time I tried to configure ovirtmgmt
> manually it seemed to "annoy" the hosted-engine --deploy script
> 
> This is fine.
> Another thing you could do is manually creating the bond and then
> having hosted-engine-setup creating the management bridge over your
> bond.
> 
>  
> 
> On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi
>  [6]> wrote:
> 
> On Mon, Nov 28, 2016 at 12:24 PM,   [3]>
> wrote:
> 
> Hi All,
> 
> In our ovirt 3.5 setup. i have always setup the ovirtmgmt
> bridge manually .
> The bridge consisted of 2 nics
> 
> Id have /etc/vdsm/vdsm.conf list net_persist = ifcfg
> 
> 
> When i then deployed the host from the ovirt ui or api it
> would install and would display the network setup correctly in
> the ui.
> 
> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
> I seem unable to follow the same approach.
> 
> In the engine logs i get among other things
> 
> If the interface ovirtmgmt is a bridge, it should be
> torn-down manually.
> 
> the interface is indeed a bridge with two nics which i would
> like to keep this way.
> 
> On the host vdsm.log i get limited info,
> 
> when start a python terminal to obtain netinfo i get this
> 
> from vdsm.tool import unified_persistence
> unified_persistence.netswitch.netinfo()
> Traceback (most recent call last):
>   File "", line 1, in 
>   File
> "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
> line 298, in netinfo
> _netinfo = netinfo_get(compatibility=compatibility)
>   File
> 
> 
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
> line 109, in get
> return _get(vdsmnets)
>   File
> 
> 
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
> line 101, in _get
> report_network_qos(networking)
>   File
> 
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
> line 46, in report_network_qos
> iface, = host_ports
> ValueError: too many values to unpack
> 
> As it appears the line in question does not like to deal with
> a list of nics i think.
> but either way.
> 
> Is in ovirt 4 the ability to use the ovirtmgmt bridge with
> multiple nics removed?
> 
> But do you need a bridge or a bond?
>  
> 
> If so what can i do to stick to what we have done in the past.
> 
> Thanks.
> 
> ___
> Users mailing list
> Users@ovirt.org  [1]
> http://lists.ovirt.org/mailman/listinfo/users 
>  [2]
> 
> ___
> Users mailing list
> Users@ovirt.org  [4]
> http://lists.ovirt.org/mailman/listinfo/users 
>  [5]
> 
> 
> 
> 

Re: [ovirt-users] can't import vm from KVM host

2016-11-28 Thread Nelson Lameiras
Hello Shahar,

Actually, our production servers use pool storage (+block devices), so I 
quickly tried to import from them and I have the same error : 0 disks 
"declared" on each VM.

I tried the patch you advised last week, and eventhough it didn't work, clearly 
the logs showed you are going in the right direction.
I'm available to try other patches on my test setup. Do not hesitate to ask me.

cordialement, regards, 
Nelson LAMEIRAS 

Lyra Network 
Service Projets et Processus 
Tel : +33 (0) 5 32 09 09 70 
109 rue de l’innovation 
31670 Labège - France 
www.lyra-network.com

- Original Message -
From: "Shahar Havivi" 
To: "Nelson Lameiras" 
Cc: "Tomas Golembiovsky" , "Michal Skrivanek" 
, users@ovirt.org
Sent: Sunday, November 20, 2016 9:36:14 AM
Subject: Re: [ovirt-users] can't import vm from KVM host

On 18.11.16 09:34, Nelson Lameiras wrote:
> Hello Shahar,
> 
> I've rebuild my test system and installed recently released ovirt 4.0.5 + 
> gerrit patch => still no luck. vdsm always gives me same error : 
Hi,

yes once you have the alias you are half way there.
but your alias path looks wrong, it starts with white-space:
'/  var/lib/libvirt/images/rhel7.1.img'

check it via 'virsh -r dumpxml '
and look if the white space are there two

regarding the pool you can check it too via virsh
virsh pool-list
and all pool-* commands (to create one), if you have problems building pool
let me know.

 Shahar.
> 
> "
> jsonrpc.Executor/6::ERROR::2016-11-17 
> 16:38:56,320::v2v::934::root::(_add_disk_info) Error getting disk size
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> _add_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
> conn=self)
> libvirtError: Volume de stockage introuvable : no storage vol with matching 
> path '/dev/sdc'
> jsonrpc.Executor/6::DEBUG::2016-11-17 
> 16:38:56,325::__init__::555::jsonrpc.JsonRpcServer::(_handle_request) Return 
> 'Host.getExternalVMs' in bridge with [{'status': 'Down', 'graphics': 'spice', 
> 'arch': 'x86_64', 'disks': [ {'capacity': '8589934592', 'format': 'RAW', 
> 'dev': 'hdd', 'allocation': '8589942784', 'alias': '/  
> var/lib/libvirt/images/rhel7.1.img', 'type': 'disk'}, {'alias': '/dev/sdc', 
> 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}], 'vmId': 
> 'd0ddc4f6-a208-4286-a665-fb9e54d14bef', 'smp': 1, 'has_snapshots': False, 
> 'video': 'qxl', 'memSize': 1  024, 'vmName': 'rhel7.1', 'networks': 
> [{'model': 'virtio', 'macAddr': '52:54:00:00:d7:76', 'type': 'network'}]}]
> "
> 
> FYI I added a normal disk (file based) to the VM ir order to try to 
> understand what's happening. As expected, this disk is seen by the oVirt 
> (without patch)
> 
> I do reckon something in the above log :
> 
>  'disks': [
>{'capacity': '8589934592', 'format': 'RAW', 'dev': 'hdd', 'allocation': 
> '8589942784', 'alias': '/  var/lib/libvirt/images/rhel7.1.img', 'type': 
> 'disk'}, 
>{'alias': '/dev/sdc', 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}
>  ], 
> 
> the "alias" line is clearly new since it did not appear before de patch! 
> something is working ;)
> 
> I confirm that when I created the test VM (via virt-manager), I gave directly 
> the path to the device (/dev/sdc), so there is no "pool" to be addressed 
> defined on libvirt! 
> I read https://gerrit.ovirt.org/#/c/64272/4/ and I agree with Tomas findings 
> : Currently the conversion process is expecting a volume on a pool and it's 
> not able to use a block device directly.
> 
> So I'm hopping a solution can be found to this problem. We have a few 
> hundreds VM waiting to be migrated in production and we don't have a NFS 
> server, so this is our only option so far.
> 
> I'm able to test any patch quickly if needed, do not hesitate.
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Shahar Havivi" 
> To: "Nelson Lameiras" 
> Cc: "Tomas Golembiovsky" , "Michal Skrivanek" 
> , users@ovirt.org
> Sent: Tuesday, November 8, 2016 12:16:55 PM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 08.11.16 10:58, Nelson Lameiras wrote:
> > Hi Shahar,
> > 
> > We try to prioritise vm behaviour predictability over ressources 
> > consumption, so "thin provisionning" is not a option for us. "Preallocated" 
> > is always selected over default behaviour.
> > 
> > Nevertheless, while trying to import a KVM vm (from another host), I get a 
> > 0 disk count on 

[ovirt-users] HA without Power Management

2016-11-28 Thread Sebastian Greco
Hi,

Is there any way to have HA in a cluster which hosts have not got
configured the "Power Management"?

In my scenario I have 2 hosts (v4) on OVH  and a hosted-engine to manage
them. Thing is that OVH does not allow direct communication with the hosts
IPMI interface. IPMI is only available in the "customer area" under a java
applet as that interface is connected to a non accesible network. So,
having no access to this interface I find myself in a situation in which I
lost all my HA functionality :(

Any help would be more than welcome.

Sebas
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ansible Modules for ovirt

2016-11-28 Thread Jean Paul Gatt
Thanks Ondra,

I will follow them on Github.

Keep up the good work. Also if there is any possibility to start testing the 
other modules(like managing networks) due to come out with ansible 2.3 please 
let me know.

Regards,

Jean Paul Gatt

-Original Message-
From: Ondra Machacek [mailto:omach...@redhat.com]
Sent: 28 November 2016 16:51
To: Jean Paul Gatt ; users@ovirt.org
Subject: Re: [ovirt-users] Ansible Modules for ovirt

Hi,

thank you very much for your feedback. I am sending few notes inline.

On 11/25/2016 04:27 PM, Jean Paul Gatt wrote:
> Hi,
>
>
>
> I have been trying to use the following ansible modules (based on the
> last devel commit in the ansible github repo for the extras modules
> 43bb97bc3763b0335e245606eb2985314902cc91):
>
> * ovirt_vms
>
> * ovirt_disks
>
>
>
> I have had varying degrees of success, and I would like to list the
> following issues:
>
> * Through the REST API, I can define multiple nic card
> configurations for cloud-init, however only 1 can be done with Ansible.

This issue was already opened here:

  https://github.com/ansible/ansible-modules-extras/issues/3447

I will be very happy if you will take a look and tell what you think about the 
proposed fix.

> Also, when using templates, it automatically assumes I will be using
> the last version of the template, this had to be defined when using REST.

I've opened an issue here:

  https://github.com/ansible/ansible-modules-extras/issues/3555

Feel free to comment there any additional requests regarding that issue.

>
> * Assume I have deployed from a template. This will create a VM
> with a disk that is already attached. Now, let's say I want to
> confirm, or add more disks to the VM. If I pass a number of disks,
> that have already been attached, and I reference them by name (in
> ovirt_disks), I get an error. If I do the same operation by ID it
> seems to work. However I cannot get the ID when running ansible, I need to 
> get it from REST.
> When I query ovirt_vms, disk attachments comes up as
>
> o   "disk_attachments": [],
>
> If that field gets populated, I could then in turn run ovirt_disks
> with the ID, after querying the VM to get the attachments, but as it
> is it cannot be done.
>
>
>
> I'll give an example
>
>
>
> - name: Get Disks
>
>   ovirt_disks:
>
> auth: "{{ovirt_auth}}"
>
> vm_name: "{{item.0.name}}"
>
> name: "{{item.1.name}}"
>
> interface: "{{item.1.interface}}"
>
>   register: r_disks
>
>   with_subelements:
>
> - "{{virtual_machines }}"
>
> - drives
>
>
>
> If the drives have already been attached this will
> fail... but
>
>
>
> - name: Add Disks to VMs
>
>   ovirt_disks:
>
> auth: "{{ovirt_auth}}"
>
> vm_name: "{{item.0.name}}"
>
> id: 8fc2811e-7774-4903-a5b3-489fdedb377b
>
> size: "100GiB"
>
> format: "{{item.1.format}}"
>
> storage_domain: "{{item.1.storage_domain.name}}"
>
> bootable: "{{item.1.bootable}}"
>
> interface: "{{item.1.interface}}"
>
> state: attached
>
>   with_subelements:
>
> - "{{virtual_machines }}"
>
> - drives
>
>
>
> The second example is working, even if the disk has
> already been attached.
>
>
>
>
>
> I'm assuming that since I'm creating the VM from a template, there
> might be multiple disks with the same name, and the wrong ID is being 
> retrieved.

Yes, that is the problem. To work reliably with disks, the only way is the ID. 
I will document it better, so users aren't confused.

I've opened following issue:

  https://github.com/ansible/ansible/issues/18650

I will work on it, feel free to comment any ideas there.

>
>
>
> I'm happy to do more testing as further commits appear.

Thank you, the fixes will be during this week, so hopefully merged soon.

>
>
>
> Regards*,*
>
> * *
>
> *Jean Paul Gatt*
>
>
>
>
> This email (including any attachments) is confidential, protected by
> copyright and/or other intellectual property rights and may be
> privileged. If you have received it in error, please notify the sender
> immediately before deleting the email from your device. Do not use,
> copy or disclose the information contained in this message or in any
> attachment. We accept no responsibility for malware that we may have
> unintentionally transmitted to you within this email. Those
> communicating with us by email will be deemed to have consented to us
> intercepting and monitoring those communications. Gamesys Network Ltd
> is registered in Malta, with company registration number C47555 and
> VAT registered number MT19542837. The registered office is at Capital
> Business Centre, Entrance A, Level 1, Taz-Zwejt Street, San Gwann SGN3000.
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>

This email (including any attachments) is confidential, protected by copyright 
and/or other intellectual property 

Re: [ovirt-users] Ansible Modules for ovirt

2016-11-28 Thread Ondra Machacek

Hi,

thank you very much for your feedback. I am sending few notes inline.

On 11/25/2016 04:27 PM, Jean Paul Gatt wrote:

Hi,



I have been trying to use the following ansible modules (based on the
last devel commit in the ansible github repo for the extras modules
43bb97bc3763b0335e245606eb2985314902cc91):

· ovirt_vms

· ovirt_disks



I have had varying degrees of success, and I would like to list the
following issues:

· Through the REST API, I can define multiple nic card
configurations for cloud-init, however only 1 can be done with Ansible.


This issue was already opened here:

 https://github.com/ansible/ansible-modules-extras/issues/3447

I will be very happy if you will take a look and tell what you think
about the proposed fix.


Also, when using templates, it automatically assumes I will be using the
last version of the template, this had to be defined when using REST.


I've opened an issue here:

 https://github.com/ansible/ansible-modules-extras/issues/3555

Feel free to comment there any additional requests regarding that issue.



· Assume I have deployed from a template. This will create a VM
with a disk that is already attached. Now, let’s say I want to confirm,
or add more disks to the VM. If I pass a number of disks, that have
already been attached, and I reference them by name (in ovirt_disks), I
get an error. If I do the same operation by ID it seems to work. However
I cannot get the ID when running ansible, I need to get it from REST.
When I query ovirt_vms, disk attachments comes up as

o   "disk_attachments": [],

If that field gets populated, I could then in turn run ovirt_disks with
the ID, after querying the VM to get the attachments, but as it is it
cannot be done.



I’ll give an example



- name: Get Disks

  ovirt_disks:

auth: "{{ovirt_auth}}"

vm_name: "{{item.0.name}}"

name: "{{item.1.name}}"

interface: "{{item.1.interface}}"

  register: r_disks

  with_subelements:

- "{{virtual_machines }}"

- drives



If the drives have already been attached this will fail… but



- name: Add Disks to VMs

  ovirt_disks:

auth: "{{ovirt_auth}}"

vm_name: "{{item.0.name}}"

id: 8fc2811e-7774-4903-a5b3-489fdedb377b

size: "100GiB"

format: "{{item.1.format}}"

storage_domain: "{{item.1.storage_domain.name}}"

bootable: "{{item.1.bootable}}"

interface: "{{item.1.interface}}"

state: attached

  with_subelements:

- "{{virtual_machines }}"

- drives



The second example is working, even if the disk has
already been attached.





I’m assuming that since I’m creating the VM from a template, there might
be multiple disks with the same name, and the wrong ID is being retrieved.


Yes, that is the problem. To work reliably with disks, the only way is
the ID. I will document it better, so users aren't confused.

I've opened following issue:

 https://github.com/ansible/ansible/issues/18650

I will work on it, feel free to comment any ideas there.





I’m happy to do more testing as further commits appear.


Thank you, the fixes will be during this week, so hopefully merged soon.





Regards*,*

* *

*Jean Paul Gatt*




This email (including any attachments) is confidential, protected by
copyright and/or other intellectual property rights and may be
privileged. If you have received it in error, please notify the sender
immediately before deleting the email from your device. Do not use, copy
or disclose the information contained in this message or in any
attachment. We accept no responsibility for malware that we may have
unintentionally transmitted to you within this email. Those
communicating with us by email will be deemed to have consented to us
intercepting and monitoring those communications. Gamesys Network Ltd is
registered in Malta, with company registration number C47555 and VAT
registered number MT19542837. The registered office is at Capital
Business Centre, Entrance A, Level 1, Taz-Zwejt Street, San Gwann SGN3000.


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread Charles Kozler
What happens when you configure the bond and then build the bridge manually
over the bond? oVirt installer should skip over it and not do anything.
Just make sure you have DEFROUTE set or routes configuration file as you
expect (this is what used to screw me up)

On Mon, Nov 28, 2016 at 10:06 AM,  wrote:

> Thanks for your responses but the ui is not an option for me as i am
> dealing with loads of systems.
> in 3.5 ovirt used to just accept the bridge as it was and incorporate it,
> i am just wondering if i am facing a bug or a feature at the moment.
>
>
> Charles Kozler schreef op 2016-11-28 15:48:
>
>> Thats what I used to do as well then on oVirt 4 it started screwing
>> with the the bond as well so I ended up just dumbing it down and
>> figured using the UI after the fact would be OK. I cant remember
>> exactly what would happen but it would be stupid little things like
>> routing would break or something.
>>
>> On Mon, Nov 28, 2016 at 9:43 AM, Simone Tiraboschi
>>  wrote:
>>
>> On Mon, Nov 28, 2016 at 3:42 PM, Charles Kozler
>>>  wrote:
>>>
>>> What Ive been doing since oVirt 4 is just configuring one NIC
 manually when I provision the server (eg: eth0, em1, etc) and then
 let oVirt do the bridge setup. Once the engine is up I login to
 the UI and I use it to bond the NICs in whatever fashion I need
 (LACP or active-backup). Any time I tried to configure ovirtmgmt
 manually it seemed to "annoy" the hosted-engine --deploy script

>>>
>>> This is fine.
>>> Another thing you could do is manually creating the bond and then
>>> having hosted-engine-setup creating the management bridge over your
>>> bond.
>>>
>>>
>>>
>>> On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi
  wrote:

 On Mon, Nov 28, 2016 at 12:24 PM, 
> wrote:
>
> Hi All,
>>
>> In our ovirt 3.5 setup. i have always setup the ovirtmgmt
>> bridge manually .
>> The bridge consisted of 2 nics
>>
>> Id have /etc/vdsm/vdsm.conf list net_persist = ifcfg
>>
>>
>> When i then deployed the host from the ovirt ui or api it
>> would install and would display the network setup correctly in
>> the ui.
>>
>> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
>> I seem unable to follow the same approach.
>>
>> In the engine logs i get among other things
>>
>> If the interface ovirtmgmt is a bridge, it should be
>> torn-down manually.
>>
>> the interface is indeed a bridge with two nics which i would
>> like to keep this way.
>>
>> On the host vdsm.log i get limited info,
>>
>> when start a python terminal to obtain netinfo i get this
>>
>> from vdsm.tool import unified_persistence
> unified_persistence.netswitch.netinfo()
>
 Traceback (most recent call last):
>>   File "", line 1, in 
>>   File
>> "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
>> line 298, in netinfo
>> _netinfo = netinfo_get(compatibility=compatibility)
>>   File
>>
>>
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",

> line 109, in get
>> return _get(vdsmnets)
>>   File
>>
>>
> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",

> line 101, in _get
>> report_network_qos(networking)
>>   File
>>
>> "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
>
>> line 46, in report_network_qos
>> iface, = host_ports
>> ValueError: too many values to unpack
>>
>> As it appears the line in question does not like to deal with
>> a list of nics i think.
>> but either way.
>>
>> Is in ovirt 4 the ability to use the ovirtmgmt bridge with
>> multiple nics removed?
>>
>
> But do you need a bridge or a bond?
>
>
> If so what can i do to stick to what we have done in the past.
>>
>> Thanks.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org [1]
>> http://lists.ovirt.org/mailman/listinfo/users [2]
>>
>
> ___
> Users mailing list
> Users@ovirt.org [4]
> http://lists.ovirt.org/mailman/listinfo/users [5]
>

>>
>>
>> Links:
>> --
>> [1] mailto:Users@ovirt.org
>> [2] http://lists.ovirt.org/mailman/listinfo/users
>> [3] mailto:jo...@familiealbers.nl
>> [4] mailto:Users@ovirt.org
>> [5] http://lists.ovirt.org/mailman/listinfo/users
>> [6] mailto:stira...@redhat.com
>> [7] mailto:ckozler...@gmail.com
>> [8] mailto:stira...@redhat.com
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread joost
Thanks for your responses but the ui is not an option for me as i am 
dealing with loads of systems.
in 3.5 ovirt used to just accept the bridge as it was and incorporate 
it, i am just wondering if i am facing a bug or a feature at the moment.



Charles Kozler schreef op 2016-11-28 15:48:

Thats what I used to do as well then on oVirt 4 it started screwing
with the the bond as well so I ended up just dumbing it down and
figured using the UI after the fact would be OK. I cant remember
exactly what would happen but it would be stupid little things like
routing would break or something. 

On Mon, Nov 28, 2016 at 9:43 AM, Simone Tiraboschi
 wrote:


On Mon, Nov 28, 2016 at 3:42 PM, Charles Kozler
 wrote:


What Ive been doing since oVirt 4 is just configuring one NIC
manually when I provision the server (eg: eth0, em1, etc) and then
let oVirt do the bridge setup. Once the engine is up I login to
the UI and I use it to bond the NICs in whatever fashion I need
(LACP or active-backup). Any time I tried to configure ovirtmgmt
manually it seemed to "annoy" the hosted-engine --deploy script


This is fine.
Another thing you could do is manually creating the bond and then
having hosted-engine-setup creating the management bridge over your
bond.

 


On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi
 wrote:


On Mon, Nov 28, 2016 at 12:24 PM, 
wrote:


Hi All,

In our ovirt 3.5 setup. i have always setup the ovirtmgmt
bridge manually .
The bridge consisted of 2 nics

Id have /etc/vdsm/vdsm.conf list net_persist = ifcfg

When i then deployed the host from the ovirt ui or api it
would install and would display the network setup correctly in
the ui.

On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
I seem unable to follow the same approach.

In the engine logs i get among other things

If the interface ovirtmgmt is a bridge, it should be
torn-down manually.

the interface is indeed a bridge with two nics which i would
like to keep this way.

On the host vdsm.log i get limited info,

when start a python terminal to obtain netinfo i get this


from vdsm.tool import unified_persistence
unified_persistence.netswitch.netinfo()

Traceback (most recent call last):
  File "", line 1, in 
  File
"/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
line 298, in netinfo
    _netinfo = netinfo_get(compatibility=compatibility)
  File




"/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",

line 109, in get
    return _get(vdsmnets)
  File




"/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",

line 101, in _get
    report_network_qos(networking)
  File


"/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",

line 46, in report_network_qos
    iface, = host_ports
ValueError: too many values to unpack

As it appears the line in question does not like to deal with
a list of nics i think.
but either way.

Is in ovirt 4 the ability to use the ovirtmgmt bridge with
multiple nics removed?


But do you need a bridge or a bond?
 


If so what can i do to stick to what we have done in the past.

Thanks.

___
Users mailing list
Users@ovirt.org [1]
http://lists.ovirt.org/mailman/listinfo/users [2]


___
Users mailing list
Users@ovirt.org [4]
http://lists.ovirt.org/mailman/listinfo/users [5]




Links:
--
[1] mailto:Users@ovirt.org
[2] http://lists.ovirt.org/mailman/listinfo/users
[3] mailto:jo...@familiealbers.nl
[4] mailto:Users@ovirt.org
[5] http://lists.ovirt.org/mailman/listinfo/users
[6] mailto:stira...@redhat.com
[7] mailto:ckozler...@gmail.com
[8] mailto:stira...@redhat.com


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread Charles Kozler
Thats what I used to do as well then on oVirt 4 it started screwing with
the the bond as well so I ended up just dumbing it down and figured using
the UI after the fact would be OK. I cant remember exactly what would
happen but it would be stupid little things like routing would break or
something.

On Mon, Nov 28, 2016 at 9:43 AM, Simone Tiraboschi 
wrote:

>
>
> On Mon, Nov 28, 2016 at 3:42 PM, Charles Kozler 
> wrote:
>
>> What I've been doing since oVirt 4 is just configuring one NIC manually
>> when I provision the server (eg: eth0, em1, etc) and then let oVirt do the
>> bridge setup. Once the engine is up I login to the UI and I use it to bond
>> the NICs in whatever fashion I need (LACP or active-backup). Any time I
>> tried to configure ovirtmgmt manually it seemed to "annoy" the
>> hosted-engine --deploy script
>>
>
> This is fine.
> Another thing you could do is manually creating the bond and then having
> hosted-engine-setup creating the management bridge over your bond.
>
>
>>
>> On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi 
>> wrote:
>>
>>>
>>>
>>> On Mon, Nov 28, 2016 at 12:24 PM,  wrote:
>>>
 Hi All,

 In our ovirt 3.5 setup. i have always setup the ovirtmgmt bridge
 manually .
 The bridge consisted of 2 nic's

 I'd have /etc/vdsm/vdsm.conf list net_persist = ifcfg

 When i then deployed the host from the ovirt ui or api it would install
 and would display the network setup correctly in the ui.

 On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
 I seem unable to follow the same approach.

 In the engine logs i get among other things

 'If the interface ovirtmgmt is a bridge, it should be torn-down
 manually. '

 the interface is indeed a bridge with two nics which i would like to
 keep this way.

 On the host vdsm.log i get limited info,



 when start a python terminal to obtain netinfo i get this

 from vdsm.tool import unified_persistence
>>> unified_persistence.netswitch.netinfo()
>>>
>> Traceback (most recent call last):
   File "", line 1, in 
   File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
 line 298, in netinfo
 _netinfo = netinfo_get(compatibility=compatibility)
   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
 line 109, in get
 return _get(vdsmnets)
   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
 line 101, in _get
 report_network_qos(networking)
   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
 line 46, in report_network_qos
 iface, = host_ports
 ValueError: too many values to unpack


 As it appears the line in question does not like to deal with a list of
 nics i think.
 but either way.

 Is in ovirt 4 the ability to use the ovirtmgmt bridge with multiple
 nics removed?

>>>
>>> But do you need a bridge or a bond?
>>>
>>>
 If so what can i do to stick to what we have done in the past.


 Thanks.

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread Simone Tiraboschi
On Mon, Nov 28, 2016 at 3:42 PM, Charles Kozler 
wrote:

> What I've been doing since oVirt 4 is just configuring one NIC manually
> when I provision the server (eg: eth0, em1, etc) and then let oVirt do the
> bridge setup. Once the engine is up I login to the UI and I use it to bond
> the NICs in whatever fashion I need (LACP or active-backup). Any time I
> tried to configure ovirtmgmt manually it seemed to "annoy" the
> hosted-engine --deploy script
>

This is fine.
Another thing you could do is manually creating the bond and then having
hosted-engine-setup creating the management bridge over your bond.


>
> On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi 
> wrote:
>
>>
>>
>> On Mon, Nov 28, 2016 at 12:24 PM,  wrote:
>>
>>> Hi All,
>>>
>>> In our ovirt 3.5 setup. i have always setup the ovirtmgmt bridge
>>> manually .
>>> The bridge consisted of 2 nic's
>>>
>>> I'd have /etc/vdsm/vdsm.conf list net_persist = ifcfg
>>>
>>> When i then deployed the host from the ovirt ui or api it would install
>>> and would display the network setup correctly in the ui.
>>>
>>> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
>>> I seem unable to follow the same approach.
>>>
>>> In the engine logs i get among other things
>>>
>>> 'If the interface ovirtmgmt is a bridge, it should be torn-down
>>> manually. '
>>>
>>> the interface is indeed a bridge with two nics which i would like to
>>> keep this way.
>>>
>>> On the host vdsm.log i get limited info,
>>>
>>>
>>>
>>> when start a python terminal to obtain netinfo i get this
>>>
>>> from vdsm.tool import unified_persistence
>> unified_persistence.netswitch.netinfo()
>>
> Traceback (most recent call last):
>>>   File "", line 1, in 
>>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
>>> line 298, in netinfo
>>> _netinfo = netinfo_get(compatibility=compatibility)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>>> line 109, in get
>>> return _get(vdsmnets)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>>> line 101, in _get
>>> report_network_qos(networking)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
>>> line 46, in report_network_qos
>>> iface, = host_ports
>>> ValueError: too many values to unpack
>>>
>>>
>>> As it appears the line in question does not like to deal with a list of
>>> nics i think.
>>> but either way.
>>>
>>> Is in ovirt 4 the ability to use the ovirtmgmt bridge with multiple nics
>>> removed?
>>>
>>
>> But do you need a bridge or a bond?
>>
>>
>>> If so what can i do to stick to what we have done in the past.
>>>
>>>
>>> Thanks.
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread Charles Kozler
What I've been doing since oVirt 4 is just configuring one NIC manually
when I provision the server (eg: eth0, em1, etc) and then let oVirt do the
bridge setup. Once the engine is up I login to the UI and I use it to bond
the NICs in whatever fashion I need (LACP or active-backup). Any time I
tried to configure ovirtmgmt manually it seemed to "annoy" the
hosted-engine --deploy script

On Mon, Nov 28, 2016 at 9:33 AM, Simone Tiraboschi 
wrote:

>
>
> On Mon, Nov 28, 2016 at 12:24 PM,  wrote:
>
>> Hi All,
>>
>> In our ovirt 3.5 setup. i have always setup the ovirtmgmt bridge manually
>> .
>> The bridge consisted of 2 nic's
>>
>> I'd have /etc/vdsm/vdsm.conf list net_persist = ifcfg
>>
>> When i then deployed the host from the ovirt ui or api it would install
>> and would display the network setup correctly in the ui.
>>
>> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
>> I seem unable to follow the same approach.
>>
>> In the engine logs i get among other things
>>
>> 'If the interface ovirtmgmt is a bridge, it should be torn-down manually.
>> '
>>
>> the interface is indeed a bridge with two nics which i would like to keep
>> this way.
>>
>> On the host vdsm.log i get limited info,
>>
>>
>>
>> when start a python terminal to obtain netinfo i get this
>>
>> from vdsm.tool import unified_persistence
> unified_persistence.netswitch.netinfo()
>
 Traceback (most recent call last):
>>   File "", line 1, in 
>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py",
>> line 298, in netinfo
>> _netinfo = netinfo_get(compatibility=compatibility)
>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>> line 109, in get
>> return _get(vdsmnets)
>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
>> line 101, in _get
>> report_network_qos(networking)
>>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
>> line 46, in report_network_qos
>> iface, = host_ports
>> ValueError: too many values to unpack
>>
>>
>> As it appears the line in question does not like to deal with a list of
>> nics i think.
>> but either way.
>>
>> Is in ovirt 4 the ability to use the ovirtmgmt bridge with multiple nics
>> removed?
>>
>
> But do you need a bridge or a bond?
>
>
>> If so what can i do to stick to what we have done in the past.
>>
>>
>> Thanks.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread Simone Tiraboschi
On Mon, Nov 28, 2016 at 12:24 PM,  wrote:

> Hi All,
>
> In our ovirt 3.5 setup. i have always setup the ovirtmgmt bridge manually .
> The bridge consisted of 2 nic's
>
> I'd have /etc/vdsm/vdsm.conf list net_persist = ifcfg
>
> When i then deployed the host from the ovirt ui or api it would install
> and would display the network setup correctly in the ui.
>
> On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
> I seem unable to follow the same approach.
>
> In the engine logs i get among other things
>
> 'If the interface ovirtmgmt is a bridge, it should be torn-down manually. '
>
> the interface is indeed a bridge with two nics which i would like to keep
> this way.
>
> On the host vdsm.log i get limited info,
>
>
>
> when start a python terminal to obtain netinfo i get this
>
> from vdsm.tool import unified_persistence
 unified_persistence.netswitch.netinfo()

>>> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py", line
> 298, in netinfo
> _netinfo = netinfo_get(compatibility=compatibility)
>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
> line 109, in get
> return _get(vdsmnets)
>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py",
> line 101, in _get
> report_network_qos(networking)
>   File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py",
> line 46, in report_network_qos
> iface, = host_ports
> ValueError: too many values to unpack
>
>
> As it appears the line in question does not like to deal with a list of
> nics i think.
> but either way.
>
> Is in ovirt 4 the ability to use the ovirtmgmt bridge with multiple nics
> removed?
>

But do you need a bridge or a bond?


> If so what can i do to stick to what we have done in the past.
>
>
> Thanks.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirtmgmt manual bridge cannot be used in ovirt 4.0

2016-11-28 Thread joost

Hi All,

In our ovirt 3.5 setup. i have always setup the ovirtmgmt bridge 
manually .

The bridge consisted of 2 nic's

I'd have /etc/vdsm/vdsm.conf list net_persist = ifcfg

When i then deployed the host from the ovirt ui or api it would install 
and would display the network setup correctly in the ui.


On ovirt 4. (vdsm-4.18.15.3-1.el7.centos.x86_64)
I seem unable to follow the same approach.

In the engine logs i get among other things

'If the interface ovirtmgmt is a bridge, it should be torn-down 
manually. '


the interface is indeed a bridge with two nics which i would like to 
keep this way.


On the host vdsm.log i get limited info,



when start a python terminal to obtain netinfo i get this


from vdsm.tool import unified_persistence
unified_persistence.netswitch.netinfo()

Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch.py", 
line 298, in netinfo

_netinfo = netinfo_get(compatibility=compatibility)
  File 
"/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py", line 
109, in get

return _get(vdsmnets)
  File 
"/usr/lib/python2.7/site-packages/vdsm/network/netinfo/cache.py", line 
101, in _get

report_network_qos(networking)
  File "/usr/lib/python2.7/site-packages/vdsm/network/netinfo/qos.py", 
line 46, in report_network_qos

iface, = host_ports
ValueError: too many values to unpack


As it appears the line in question does not like to deal with a list of 
nics i think.

but either way.

Is in ovirt 4 the ability to use the ovirtmgmt bridge with multiple 
nics removed?

If so what can i do to stick to what we have done in the past.


Thanks.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Nathanaël Blanchet



Le 26/11/2016 à 22:40, Chris Cowley a écrit :

A few reasons really. I fancied playing around with Click, so I made
this as I was also digging around the oVirt API. My workstation at work
is running Ubuntu, and I do not believe that ovirt-shell is packaged for it.

sudo apt-get install -y python-pip
sudo pip install kitchen
sudo pip install ply
sudo pip install ovirt-shell


Also, choice is good.

Finally: because I didn't think of it.

On 26/11/16 22:24, Derek Atkins wrote:

Hi Chris,

Just a quick question, but, why not just use ovirt-shell?
Or make this a wrapper around ovirt-shell?

-derek

On Sat, November 26, 2016 4:10 pm, Chris Cowley wrote:

Hi all

I started hacking together something last night to use as a CLI to
manage my oVirt clusters.

https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage

Currently it can create/delete a VM, list the VMS, and I started a
function to show the details, but all that does for now is return the ID.

The plan is for it to evolve with my own needs, but I am open to
ideas/PRs from the community.

Disclaimer #1: I am a SysAdmin, not a developer. If you a proper
developer, what you see may cause you physical pain.

Disclaimer #2: My Gogs repo is behind my ADSL in rural France, be
patient and I withold the right to not respect any sort of SLA :-)


--
Regards

Chris Cowley
http://about.me/chriscowley

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users







___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] integrating a new host into a gluster cluster

2016-11-28 Thread Sahina Bose
On Fri, Nov 25, 2016 at 10:11 PM, Nathanaël Blanchet 
wrote:

> Hello,
>
> After registering a new host in an existing gluster cluster, it can't
> activate because it has no other gluster peer registered, so no existing
> declared gluster domain storage. It has no more /gluster-bricks directory.
>
> It's like this new host has nothing to do with gluster, except installing
> the relevant rpm.
>
> I could manually declare other peer but I suppose it is not the good way.
> I already reinstalled it after deleting it, but it is always the same. In
> memory, precedent host didn't behaved in this way when installing.
>

When you are adding a new host to an existing gluster cluster, atleast one
of the other hosts should be online (UP status). The newly added host does
not need to have gluster-bricks or be part of gluster storage domain. - it
needs to however be peer probed into cluster.

Are the other hosts in the gluster not online, or have vdsm-gluster
installed? What's the error in the logs?


>
>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> Pôle Infrastrutures Informatiques
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5
> Tél. 33 (0)4 67 54 84 55
> Fax  33 (0)4 67 54 84 14
> blanc...@abes.fr
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Chris Cowley
While I really like both ideas it is not a route I would PERSONALLY 
take.


To me it seems logical that there should be parallels between oVirt and 
Openstack. After all, oVirt already integrates with Glance, Cinder and 
Neutron. Thus it is not unreasonable to suggest that any sort of CLI 
should take its inspiration from the Openstack CLI tools.


Also, I am not sure that would scratch my personal itch - which even in 
its unbelievably primitive state, my tool does.


Of course, this is FLOSS, so knock yourself out - the more the merrier.

On 2016-11-27 15:00, Nir Soffer wrote:

On Sun, Nov 27, 2016 at 12:54 PM, Fabrice Bacchella
 wrote:

Looks like close to my own try :

https://github.com/fbacchella/ovirtcmd


Looks cool.

But I think what we need is something like targetcli for ovirt.
http://linux-iscsi.org/wiki/Targetcli#Display_the_object_tree

With such tool we can see the ovirt setup as a file system tree:

/ovirt/vms/vm-id
/ovirt/storage/domain-id
...

And be able to query and operate on the entities.

Another crazy direction I discussed with Roy, is a fuse files system 
mapping

ovirt setup to a file system - imagine:

$ mount -t ovirtfs /ovirt

$ ls /ovirt/vms
vm-id-1
vm-id-2
...

$ cat /ovirt/vms/vm-ids/running
1

$ echo 0 > /ovirt/vms/vm-id/running




Le 26 nov. 2016 à 22:10, Chris Cowley  a 
écrit :


Hi all

I started hacking together something last night to use as a CLI to
manage my oVirt clusters.

https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage

Currently it can create/delete a VM, list the VMS, and I started a
function to show the details, but all that does for now is return 
the ID.


The plan is for it to evolve with my own needs, but I am open to
ideas/PRs from the community.

Disclaimer #1: I am a SysAdmin, not a developer. If you a proper
developer, what you see may cause you physical pain.

Disclaimer #2: My Gogs repo is behind my ADSL in rural France, be
patient and I withold the right to not respect any sort of SLA :-)


--
Regards

Chris Cowley
http://about.me/chriscowley

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
Regards

Chris Cowley
http://about.me/chriscowley
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users