Re: [Users] cannot add new logical network to host

2012-11-14 Thread Igor Lvovsky
  Hi Alan,

- Original Message -
 From: Alan Johnson a...@datdec.com
 To: users users@ovirt.org
 Sent: Wednesday, November 14, 2012 11:05:31 PM
 Subject: [Users] cannot add new logical network to host
 
 
 
 I am trying to add a network for a sandbox environment that only
 certain VMs will have access to and those VMs will not have access
 to the rest of our network. This is to allow new systems to be
 tested in a safe environment where they can't possibly muck with our
 live systems. I'm trying to follow the instructions of section 5.4
 Logical Network Tasks in the Admin guide but I keep getting an error
 when adding to the host. Here is what I'm doing:
 
 Under Data Centers  Default  Logical Networks  New, I create a new
 logical network called sandbox, VM network is checked, VLAN network
 is checked and VLAN ID is 2. .
 Under Clusters  Default  Logical Networks  Assign/Unassign
 Networks, I check Assign but not Required and sandbox appears in the
 list.
 Under Hosts  cloudhost01  Network Interfaces  Setup Host Networks,
 I drag sandbox to the em1 interface which is also where ovirtmgmt is
 assigned. There is am em2 interface, but that is dedicated to iSCSI
 storage and has no Logical Networks assigned to it.
 I check Save network configuration, leave Verify connectivity
 between Host and ovirt-engine checked, click OK and I get  Error:
 cloudhost01: - General command validation failure. 
 

If I understand you correctly, you try to add a new VM-VLANed network (sandbox)
to interface em1 that already has another VM network (ovirtmgmt).

If so, this operation is not permited. You can't attach VM-VLANed network and 
VM-nonVLANed network to same interface.

To be sure that this is a case, I need to know your vdsm version
and vdsm log will be good as well

Regards,
Igor


 
 This may not be relevant, but in my event log I get  cloudhost01 is
 missing vlan id: 2 that is expected by the cluster  warnings when I
 activate cloudhost01 while the sandbox network exists. I have tired
 doing things with different orders and tweaks all resulting in the
 same error. Here are my versions:
 ovirt-log-collector-3.1.0-16.el6.noarch
 ovirt-image-uploader-3.1.0-16.el6.noarch
 ovirt-engine-userportal-3.1.0-3.19.el6.noarch
 ovirt-engine-setup-3.1.0-3.19.el6.noarch
 ovirt-engine-restapi-3.1.0-3.19.el6.noarch
 ovirt-engine-config-3.1.0-3.19.el6.noarch
 ovirt-engine-notification-service-3.1.0-3.19.el6.noarch
 ovirt-engine-backend-3.1.0-3.19.el6.noarch
 ovirt-engine-sdk-3.1.0.5-1.el6.noarch
 ovirt-iso-uploader-3.1.0-16.el6.noarch
 ovirt-engine-jbossas711-1-0.x86_64
 ovirt-engine-webadmin-portal-3.1.0-3.19.el6.noarch
 ovirt-engine-dbscripts-3.1.0-3.19.el6.noarch
 ovirt-engine-genericapi-3.1.0-3.19.el6.noarch
 ovirt-engine-tools-common-3.1.0-3.19.el6.noarch
 ovirt-engine-3.1.0-3.19.el6.noarch
 
 
 
 
 The rest of this message is the accompanying stack trace that shows
 up in engine.log. Looks to my lay eye like an expected database
 column is missing or something. Any ideas?
 
 
 
 2012-11-14 15:34:17,332 ERROR
 [org.ovirt.engine.core.bll.SetupNetworksCommand]
 (ajp--0.0.0.0-8009-10) [78b1227b] Error during CanDoActionFailure.:
 javax.validation.ValidationException: Call to
 TraversableResolver.isReachable() threw an exception
 at
 org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:773)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateCascadedConstraint(ValidatorImpl.java:466)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateCascadedConstraints(ValidatorImpl.java:372)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:219)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119)
 [hibernate-validator.jar: 4.0.2.GA ]
 at
 org.ovirt.engine.core.common.utils.ValidationUtils.validateInputs(ValidationUtils.java:77)
 [engine-common.jar:]
 at
 org.ovirt.engine.core.bll.CommandBase.validateInputs(CommandBase.java:518)
 [engine-bll.jar:]
 at
 org.ovirt.engine.core.bll.CommandBase.InternalCanDoAction(CommandBase.java:486)
 [engine-bll.jar:]
 at
 org.ovirt.engine.core.bll.CommandBase.ExecuteAction(CommandBase.java:261)
 [engine-bll.jar:]
 at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:336)
 

Re: [Users] clear export domain status

2012-10-30 Thread Igor Lvovsky


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Alex Leonhardt alex.t...@gmail.com
 Cc: users@ovirt.org
 Sent: Tuesday, October 30, 2012 2:38:24 AM
 Subject: Re: [Users] clear export domain status
 
 On 10/30/2012 01:44 AM, Alex Leonhardt wrote:
  hi,
 
  I've got a export domain that i try to import into a new HV -
  however -
  it keeps saying:
  Storage domain already attached to pool: X
  And it ends up being unable to attach it to the new HV.
 
  How can i manually clear this state ? The old host is nolonger
  available, unfortunately.
 
 iirc, go to the metadata of the domain and delete the line of the
 current storage pool it is attached to (may need to delete metadata
 checksum as well, its been a while)
 
 

Actually you shouldn't delete the whole pool line, but only the pool UUID 
itself.
As I can recall the POOL keyword (POOL=) should be there.
The checksum line should be fully deleted 

 ___
 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: [Users] Question about network card order

2012-10-03 Thread Igor Lvovsky


- Original Message -
 From: Kevin Maziere Aubry kevin.mazi...@alterway.fr
 To: users@ovirt.org
 Sent: Wednesday, October 3, 2012 9:58:44 AM
 Subject: [Users] Question about network card order
 
 
 Hello
 
 
 My first email on the mailing, I hope the first one of a longue
 serie.
 

Welcome to community :)

 
 The email concerns a Network Card order issue for which I like to
 report a have your advises.
 
 
 I've made a template which contains 2 network cards, Each one bridge
 on different vlan network.
 When I create a VM from this template, the network card mac address
 assignation is random... so that by default my fedora assign eth0 to
 the smallest mac address, and so on for eth1/eth2 ...
 
 
 But no way to define network card order in template, so that sometime
 the smallest mac address is on eth0, sometime on eth1 (and in fact
 more often on eth1), sometime my VM works, sometime I have to
 destroy and recreate network interfaces.
 
 

Unfortunately it's a known issue that related mostly to guest kernel rather 
than RHEV-M.
This is not related to order of NICs during VM start, because RHEV-M keep the 
MAC assignment
and even PCI address assignment same over VM reboots.

The real reason hidden somewhere deep in kernel/udev  behaviour.
We need to understand why 2 NICs with same MAC addresses and same PCI addresses 
may get different names (eth0/eth1)
over machine reboot.

Michael, any ideas?

 Is there a workaround or anything else ?

 
No, I am not aware of any workaround


Regards,
Igor

 
 Thanks
 
 
 Kévin
 
 
 --
 
 Kevin Mazière
 Responsable Infrastructure
 Alter Way – Hosting
 1 rue Royal - 227 Bureaux de la Colline
 92213 Saint-Cloud Cedex
 Tél : +33 (0)1 41 16 38 41
 Mob : +33 (0)7 62 55 57 05
 http://www.alterway.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: [Users] Removal of hard disk doesn´t trigger removal of underlying snapshots

2012-10-02 Thread Igor Lvovsky


- Original Message -
 From: Karli Sjöberg karli.sjob...@slu.se
 To: Igor Lvovsky ilvov...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, October 2, 2012 9:49:53 AM
 Subject: Re: [Users] Removal of hard disk doesn´t trigger removal of 
 underlying snapshots
 
 
 
 
 1 okt 2012 kl. 19.06 skrev Igor Lvovsky:
 
 
 
 
 
 - Original Message -
 
 
 From: Karli Sjöberg  karli.sjob...@slu.se 
 
 
 To:  users@ovirt.org   users@ovirt.org 
 
 
 Sent: Monday, October 1, 2012 9:32:26 AM
 
 
 Subject: [Users] Removal of hard disk doesn´t trigger removal of
 underlying snapshots
 
 
 
 
 
 
 
 
 Hi,
 
 
 
 
 
 
 
 
 and if you later try to remove the snapshot, after you have removed
 
 
 the hard disk, the response given is General command validation
 
 
 failure. Bug?
 
 
 
 
 
 
 
 In general when you remove the VM's disk it should remove all disk's
 snapshots as well.
 Could you please explain what you exactly did and how?
 In additional, please share with us vdsm log from your host (SPM) and
 engine's log
 
 
 Yeaow, that was yesterday so those logs are long archived and would
 take a while to search through and find something that I´m not
 really sure what I should be looking for.

Try to look logs for proper time. It will be a bit difficult to help you 
without 
understand what exactly happened there.

 But I can tell you what I
 did:
 
 
 1. Created new Desktop VM, with thin hard drive
 2. Created a snapshot after mucking around a bit
 3. Removed hard drive (needed to start over fresh)
 4. Snapshot was still present so that´s when I tried to delete it,
 and was stopped by said error message.
 
 
 I understand that the sanity-checking fails, since the hard drive is
 no longer present, hence the validation failure. But maybe it could
 be neat if it could reply something like You know, I can´t find the
 hard drive that goes with the snapshot you want to delete. Could
 that be because you´ve already deleted it? and check Yes, I have.
 and then OK. How does that sound?
 
 

Not such easy. You never know whether the hard drive was deleted or never exists

 /Karli
 
 
 
 
 
 Regards,
 Igor
 
 
 
 
 
 
 
 
 
 
 
 
 Med Vänliga Hälsningar
 
 
 ---
 
 
 Karli Sjöberg
 
 
 Swedish University of Agricultural Sciences
 
 
 Box 7079 (Visiting Address Kronåsvägen 8)
 
 
 S-750 07 Uppsala, Sweden
 
 
 Phone: +46-(0)18-67 15 66
 
 
 karli.sjob...@slu.se
 
 
 
 
 
 ___
 
 
 Users mailing list
 
 
 Users@ovirt.org
 
 
 http://lists.ovirt.org/mailman/listinfo/users
 
 
 
 
 
 
 
 
 
 Med Vänliga Hälsningar
 ---
 Karli Sjöberg
 Swedish University of Agricultural Sciences
 Box 7079 (Visiting Address Kronåsvägen 8)
 S-750 07 Uppsala, Sweden
 Phone: +46-(0)18-67 15 66
 karli.sjob...@slu.se
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Removal of hard disk doesn´t trigger removal of underlying snapshots

2012-10-01 Thread Igor Lvovsky


- Original Message -
 From: Karli Sjöberg karli.sjob...@slu.se
 To: users@ovirt.org users@ovirt.org
 Sent: Monday, October 1, 2012 9:32:26 AM
 Subject: [Users] Removal of hard disk doesn´t trigger removal of underlying 
 snapshots
 
 
 Hi,
 
 
 and if you later try to remove the snapshot, after you have removed
 the hard disk, the response given is General command validation
 failure. Bug?
 
 

In general when you remove the VM's disk it should remove all disk's snapshots 
as well.
Could you please explain what you exactly did and how?
In additional, please share with us vdsm log from your host (SPM) and engine's 
log

Regards,
   Igor

 
 
 
 Med Vänliga Hälsningar
 ---
 Karli Sjöberg
 Swedish University of Agricultural Sciences
 Box 7079 (Visiting Address Kronåsvägen 8)
 S-750 07 Uppsala, Sweden
 Phone: +46-(0)18-67 15 66
 karli.sjob...@slu.se
 
 ___
 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: [Users] where do bond interfaces come from when adding a node that is FC17

2012-09-20 Thread Igor Lvovsky


- Original Message -
 From: Mark Wu wu...@linux.vnet.ibm.com
 To: Christopher Maestas cdmaes...@gmail.com
 Cc: users@ovirt.org
 Sent: Thursday, September 20, 2012 9:10:56 AM
 Subject: Re: [Users] where do bond interfaces come from when adding a node 
 that   is FC17
 
 
 On 09/19/2012 11:25 PM, Christopher Maestas wrote:
 
 
 
 When you add a fc17 node and look at it, it seems to add:
 * ovirtmgmt bridge
 * p2p1 interface
 * and bond0-bond3.
 
 
 Where does the bonding information get stored? It doesn't seem to be
 in /etc/sysconfig/network-scripts?
 
 The bonding devices are created dynamically when vdsmd starts.
 
  
Correct, vdsm creates 'empty' bond0-4 by default for future use

 
 
 The reason I ask, is I have two nodes one of which has the bonding
 interfaces up and the other which doesn't. The one that doesn't have
 the bonding interfaces up is failing to be added to the ovirt node
 list.
 

Sorry, but I am not really understand what is a configuration on your hosts.
Could you please send output of ifconfig from both hosts and output of
'vdsClient 0 getVdsCaps' ?
 
 I am not sure how the failure of adding host is related to bonding
 interfaces. You could check the log
 /tmp/vds_bootstrap.xx.log and /tmp/vds_installer.xx.log
 during node installation.
 
 
 
 Thanks,
 
 -cdm
 
 
 ___
 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: [Users] Nested kvms

2012-08-16 Thread Igor Lvovsky


- Original Message -
 From: Antoni Segura Puimedon asegu...@redhat.com
 To: users@ovirt.org
 Sent: Thursday, August 16, 2012 10:04:40 AM
 Subject: [Users] Nested kvms
 
 Hi list!
 
 I've been playing lately with nested VMs in a configuration where I
 have
 a VM for the ovirt-engine and another to be used as a host (both
 created
 with virt-manager).
 
 After adding the virtualized host to the engine, I could start VMs
 but
 their boot process was always hanging/kernel panicking. The cpu type
 I
 had set for the virtualized host was Sandy bridge.
 
 After some trial and error, I changed the cpu type of the virtualized
 host to Conroe (as well as the cluster cpu type) and suddenly I can
 run
 VMs well through installation and usage without any kind of trouble.
 
 My question is... Any similar experiences? Or is it possible that in
 the
 meantime some yum update to qemu-kvm fooled me?
 

 Gal,
Is it an bug that you already solved (vendor parsing issue) ?
I just can't find it in gerrit.

 Best,
 
 Toni
 
 ___
 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: [Users] Nested kvms

2012-08-16 Thread Igor Lvovsky


- Original Message -
 From: Gal Hammer gham...@redhat.com
 To: Igor Lvovsky ilvov...@redhat.com
 Cc: apuim...@redhat.com, users@ovirt.org
 Sent: Thursday, August 16, 2012 11:02:27 AM
 Subject: Re: [Users] Nested kvms
 
 On 16/08/2012 10:12, Igor Lvovsky wrote:
 
 
  - Original Message -
  From: Antoni Segura Puimedon asegu...@redhat.com
  To: users@ovirt.org
  Sent: Thursday, August 16, 2012 10:04:40 AM
  Subject: [Users] Nested kvms
 
  Hi list!
 
  I've been playing lately with nested VMs in a configuration where
  I
  have
  a VM for the ovirt-engine and another to be used as a host (both
  created
  with virt-manager).
 
  After adding the virtualized host to the engine, I could start VMs
  but
  their boot process was always hanging/kernel panicking. The cpu
  type
  I
  had set for the virtualized host was Sandy bridge.
 
  After some trial and error, I changed the cpu type of the
  virtualized
  host to Conroe (as well as the cluster cpu type) and suddenly I
  can
  run
  VMs well through installation and usage without any kind of
  trouble.
 
  My question is... Any similar experiences? Or is it possible that
  in
  the
  meantime some yum update to qemu-kvm fooled me?
 
 
Gal,
  Is it an bug that you already solved (vendor parsing issue) ?
  I just can't find it in gerrit.
 
 Do you mean this one? http://gerrit.ovirt.org/5035 (can't verify it
 at
 the moment as gerrit.ovirt is not responsive at the moment).
 
  Gal.
 


Yes, I think it is.
Toni, did you had this patch on you vdsm when you tried nested hosts?

  Best,
 
  Toni
 
  ___
  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: [Users] Issue setting IP information for Non-VM networks

2012-08-09 Thread Igor Lvovsky


- Original Message -
 From: Mark Wu wu...@linux.vnet.ibm.com
 To: Trey Dockendorf treyd...@gmail.com
 Cc: users users@ovirt.org, ilvov...@redhat.com
 Sent: Thursday, August 9, 2012 10:44:42 AM
 Subject: Re: [Users] Issue setting IP information for Non-VM networks
 
 On 08/09/2012 01:25 AM, Trey Dockendorf wrote:
 
 A few weeks back I started a discussion about my issues with
 IP/Netmask not being set on networks that weren't enabled for VM use.
 The bug is here, https://bugzilla.redhat.com/show_bug.cgi?id=834205 .
 
 I've since upgrade to latest ovirt / vdsm and while the issue seems
 to
 be resolved it's now failing in a different way.  Looking at the logs
 , it looks like the correct parameters are being passed to vdsm but
 the ifcfg-eth* is still left with no IPADDR or NETMASK values.
 
 Attached are logs from when Assigning a Static IP to both eth0 /
 ovirtmgmt and eth1/stor0.
 
 CentOS 6.3 on the Engine host with the following versions
 ovirt-engine-cli-3.1.0.2-1alpha.el6.noarch
 ovirt-engine-webadmin-portal-3.1.0-3.16.el6.noarch
 ovirt-engine-notification-service-3.1.0-3.16.el6.noarch
 ovirt-iso-uploader-3.1.0-16.el6.noarch
 ovirt-engine-sdk-3.1.0.1-1alpha.el6.noarch
 ovirt-engine-restapi-3.1.0-3.16.el6.noarch
 ovirt-engine-backend-3.1.0-3.16.el6.noarch
 ovirt-engine-userportal-3.1.0-3.16.el6.noarch
 ovirt-engine-tools-common-3.1.0-3.16.el6.noarch
 ovirt-engine-dbscripts-3.1.0-3.16.el6.noarch
 ovirt-engine-3.1.0-3.16.el6.noarch
 ovirt-log-collector-3.1.0-16.el6.noarch
 ovirt-engine-jbossas711-1-0.x86_64
 ovirt-engine-setup-3.1.0-3.16.el6.noarch
 ovirt-engine-config-3.1.0-3.16.el6.noarch
 ovirt-engine-genericapi-3.1.0-3.16.el6.noarch
 ovirt-image-uploader-3.1.0-16.el6.noarch
 
 CentOS 6.3 on the Node with the following versions
 vdsm-xmlrpc-4.10.0-0.42.12.el6.noarch
 vdsm-python-4.10.0-0.42.12.el6.x86_64
 vdsm-cli-4.10.0-0.42.12.el6.noarch
 vdsm-hook-simpleqemu-0.1-1.el6.noarch
 vdsm-4.10.0-0.42.12.el6.x86_64
 
 After performing the change in the web interface, this is ifcfg-eth1
 (missing IPADDR and NETMASK)
 # cat ifcfg-eth1
 DEVICE=eth1
 ONBOOT=yes
 BOOTPROTO=none
 HWADDR=00:25:90:4c:91:bf
 NM_CONTROLLED=no
 MTU=9000 I can reproduce this problem with vdsm-4.10.0-6.fc17.x86_64.
 It turns out the fix for bz834205 is not backported to oVirt 3.1
 branch.
 Igor, do you think it should be backported?

Unfortunately, we are not support non-VM networks for oVirt 3.1 release
This is exactly a reason why we didn't backport it yet.

 
 
 I've also run into an issue where in the web interface, the ovirtmgmt
 network always reverts back to DHCP as the boot protocol.  The ifcfg
 on node will reflect the correct setting after I change to static,
 but
 if I go to re-edit the entry, it's back on DHCP. I hit this problem
 before, and filed a bug for it:
 https://bugzilla.redhat.com/show_bug.cgi?id=838816
 
 Thanks
 - Trey
 
 ___
 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