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

2012-11-18 Thread Mike Kolesnik
On Thu, Nov 15, 2012 at 9:46 AM, Alan Johnson  a...@datdec.com  wrote: 

  On Thu, Nov 15, 2012 at 5:34 AM, Roy Golan  rgo...@redhat.com 
  wrote:
 

   logic/flow aside, still the error is on engine side - validating
   the
   VdsNetworkInterface entity which seems to be missing an
   interfaces
   field or method thus throwing this runtime error.
  
 
   I wonder if GWT serialized something unexpected here.
  
 
   Alan - can you try invoking setup networks and see if any other
   action is terminated the same way?
  
 
  Yes, no matter what I do on Setup Host Networks, I get the same
  error
  when I click OK. Even if I make not changes at all, I get the same
  when I click OK. I have to Cancel to get out of that screen.
 
 I have just run though the same process on a different engine
 controlling a single node. Not changing anything on the Setup Host
 Networks screen, it closes successfully when I click OK. Trying to
 add the sandbox network to em1 gives the error Error while
 executing action Setup Networks: Internal oVirt Engine Error. This
 shows up in engine.log: SNIP

 [A side note: is it wise to keep DEBUG on VDSM logs? If not, is there
 an easy way to shut it off? That is an awful lot of traffic and
 might explain why my nodes ran so slow when I was booting off of USB
 sticks.]
Since you're running off of a USB stick, which is probably limited in write 
bandwidth (USB interface + flash performance). 
It would probably be wise to turn it to a higher level, and only turn to DEBUG 
when you encounter a problem and can reproduce it (the downside is that you of 
course will not log error that you can't reproduce). 

The upside is that you'll save your stick's life (since flash chips have a 
limited number of writes per cell) and it will work faster (less blocking on 
log IO until the log is written). 

You can change the log levels in /etc/vdsm/logger.conf 

I would also suggest to turn down libvirt's log level for the same reasons. 
It seems to me (not sure about this one) that you can do that by adding this 
line to vdsm.conf: 
libvirt_log_filters = 2 :libvirt 2:remote 

 So, all that seems to be consistent with Igor's comments and I'll
 have to do some fancy dancing to get this setup once I get past the
 other bug. It would be nice if the GUI relayed the error  Setup
 attached more than one network to nic em1, some of which aren't
 vlans  from VDSM to the user, or some clearer translation, but it
 sounds like that is on the way based on Moti's comments about the
 nightly's, so I'll let it drop.
This bug was fixed, please see 
https://bugzilla.redhat.com/show_bug.cgi?id=851134 

In oVirt 3.2 (your DC has to be 3.2 as well) you can change the management 
network to be VLANd or non-VM network, and use the Sync Network feature (part 
of the setup networks process) to apply the change on the host. Then you'll be 
able to add a VLAN'd VM network on the same NIC. 

(Remember that if the management network is VLAN'd on the host then it has to 
be handled somehow so that the engine can communicate with it otherwise you'll 
lose connectivity to the host) 

 This engine and node were built last week and the process went much
 more smoothly than this first engine having problems. For the
 problematic engine, which I setup a couple of months ago, the
 CentOS6 packages had bunch of broken symlinks to jars that were on
 the system, but not where the symlinks expected them to be. That
 appears to have been fixed as of least week when I setup this second
 engine. To fix it on the first, I manually created symlinks where
 the broken ones were pointed rather than messing with any symlinks
 created by the packages.

 I wonder now if the packages on the bad engine (which are up to date)
 would have created different symlinks where I did and mine are
 blocking them from being created. I can rebuild the engine server if
 needed, but I would appreciate if some one can confirm that this
 error is consistent with a wrong version of a jar or some similar
 potential issue. Of course, I would also appreciate if there is a
 simpler solution. =)
 ___
 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] cannot add new logical network to host

2012-11-15 Thread Roy Golan

On 11/15/2012 08:11 AM, Igor Lvovsky wrote:

   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
logic/flow aside, still the error is on engine side - validating the 
VdsNetworkInterface entity which
seems to be missing an interfaces field or method thus throwing this 
runtime error.

I wonder if GWT serialized something unexpected here.
Alan - can you try invoking setup networks and see if any other action 
is terminated the same way?



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

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

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 1:11 AM, Igor Lvovsky ilvov...@redhat.com wrote:

   Hi Alan,


 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.


Good to know.  I'll start working on another solution that might work once
I get around the blocking bug (more on this in response to Roy shortly).
 Is there a way to convert the ovirtmgmt network to VLAN'd?

Also, while I have your attention, I expect I will have to enable each VLAN
on each host's port of the connected switch, which means I have to set each
port with multiple VLANs to trunk mode.  Is that right?



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


There is nothing in the log with that time stamp (as Roy has observed, it
is not getting that far), but here are the versions just FYI:
[root@cloudhost01 ~]# rpm -qa | fgrep vdsm
vdsm-python-4.10.0-0.44.14.el6.x86_64
vdsm-xmlrpc-4.10.0-0.44.14.el6.noarch
vdsm-4.10.0-0.44.14.el6.x86_64
vdsm-cli-4.10.0-0.44.14.el6.noarch
vdsm-gluster-4.10.0-0.44.14.el6.noarch
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 9:38 AM, Alan Johnson a...@datdec.com wrote:

 On Thu, Nov 15, 2012 at 1:11 AM, Igor Lvovsky ilvov...@redhat.com wrote:

 To be sure that this is a case, I need to know your vdsm version

 and vdsm log will be good as well


 There is nothing in the log with that time stamp (as Roy has observed, it
 is not getting that far), but here are the versions just FYI:
 [root@cloudhost01 ~]# rpm -qa | fgrep vdsm
 vdsm-python-4.10.0-0.44.14.el6.x86_64
 vdsm-xmlrpc-4.10.0-0.44.14.el6.noarch
 vdsm-4.10.0-0.44.14.el6.x86_64
 vdsm-cli-4.10.0-0.44.14.el6.noarch
 vdsm-gluster-4.10.0-0.44.14.el6.noarch


On and I just noticed that my vdsm is a bit older on the other 3 nodes in
this cluster:
vdsm-xmlrpc-4.10.0-0.42.13.el6.noarch
vdsm-gluster-4.10.0-0.42.13.el6.noarch
vdsm-python-4.10.0-0.42.13.el6.x86_64
vdsm-4.10.0-0.42.13.el6.x86_64
vdsm-cli-4.10.0-0.42.13.el6.noarch

In case that matters...  I'm not trying to manipulate them just yet, but I
will be rotating each through maintenance mode to add the same network
config as soon as I get it working on cloudhost01.  I'll do updates and
rebooting before changing networking on them.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-11-15 Thread Moti Asayag
On 11/15/2012 04:46 PM, Alan Johnson wrote:
 On Thu, Nov 15, 2012 at 5:34 AM, Roy Golan rgo...@redhat.com
 mailto:rgo...@redhat.com wrote:
 
 logic/flow aside, still the error is on engine side - validating the
 VdsNetworkInterface entity which
 seems to be missing an interfaces field or method thus throwing
 this runtime error.
 I wonder if GWT serialized something unexpected here.
 Alan - can you try invoking setup networks and see if any other
 action is terminated the same way?
 
 
 Yes, no matter what I do on Setup Host Networks, I get the same error
 when I click OK.  Even if I make not changes at all, I get the same when
 I click OK.  I have to Cancel to get out of that screen.
 

I tried same scenario but haven't got any error like this. However, I'm
working on the latest version...

Could you send the content of the vds_interface table ? even off-list so
I can try to debug it on my system ?

 
 ___
 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] cannot add new logical network to host

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 9:46 AM, Alan Johnson a...@datdec.com wrote:

 On Thu, Nov 15, 2012 at 5:34 AM, Roy Golan rgo...@redhat.com wrote:

 logic/flow aside, still the error is on engine side - validating the
 VdsNetworkInterface entity which
 seems to be missing an interfaces field or method thus throwing this
 runtime error.
 I wonder if GWT serialized something unexpected here.
 Alan - can you try invoking setup networks and see if any other action is
 terminated the same way?


 Yes, no matter what I do on Setup Host Networks, I get the same error when
 I click OK.  Even if I make not changes at all, I get the same when I click
 OK.  I have to Cancel to get out of that screen.


I have just run though the same process on a different engine controlling a
single node.  Not changing anything on the Setup Host Networks screen, it
closes successfully when I click OK.  Trying to add the sandbox network to
em1 gives the error Error while executing action Setup Networks: Internal
oVirt Engine Error.  This shows up in engine.log:
2012-11-15 12:04:41,497 INFO
 [org.ovirt.engine.core.bll.SetupNetworksCommand] (ajp--0.0.0.0-8009-2)
[51a6bccb] Running command: SetupNetworksCommand internal: false. Entities
affected :  ID: 65f7ba84-2aa5-11e2-a193-001a4aa8770c Type: VDS
2012-11-15 12:04:41,500 INFO
 [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand]
(ajp--0.0.0.0-8009-2) [51a6bccb] START, SetupNetworksVDSCommand(vdsId =
65f7ba84-2aa5-11e2-a193-001a4aa8770c), log id: 1e23f24a
2012-11-15 12:04:41,501 INFO
 [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand]
(ajp--0.0.0.0-8009-2) [51a6bccb] FINISH, SetupNetworksVDSCommand, log id:
1e23f24a
2012-11-15 12:04:42,017 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(ajp--0.0.0.0-8009-2) [51a6bccb] Failed in SetupNetworksVDS method
2012-11-15 12:04:42,017 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(ajp--0.0.0.0-8009-2) [51a6bccb] Error code ERR_USED_NIC and error message
VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error =
Setup attached more than one network to nic em1, some of which aren't vlans
2012-11-15 12:04:42,018 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(ajp--0.0.0.0-8009-2) [51a6bccb]
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error =
Setup attached more than one network to nic em1, some of which aren't vlans
2012-11-15 12:04:42,018 ERROR
[org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp--0.0.0.0-8009-2)
[51a6bccb] Command SetupNetworksVDS execution failed. Exception:
RuntimeException:
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error =
Setup attached more than one network to nic em1, some of which aren't vlans
2012-11-15 12:04:42,021 INFO
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(ajp--0.0.0.0-8009-2) [51a6bccb] No string for UNASSIGNED type. Use default
Log

And vdsm.log show this:
Dummy-3930::DEBUG::2012-11-15
12:04:41,618::__init__::1164::Storage.Misc.excCmd::(_log) 'dd
if=/rhev/data-center/88c14568-2860-11e2-8ecf-001a4aa8770c/mastersd/dom_md/inbox
iflag=direct,
fullblock count=1 bs=1024000' (cwd None)
Dummy-3930::DEBUG::2012-11-15
12:04:41,721::__init__::1164::Storage.Misc.excCmd::(_log) SUCCESS: err =
'1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) copied, 0.0531377
s, 19
.3 MB/s\n'; rc = 0
Thread-397033::DEBUG::2012-11-15
12:04:43,084::BindingXMLRPC::859::vds::(wrapper) client
[192.168.119.232]::call setupNetworks with ({'ovirtmgmt': {'nic': 'em1',
'bridged': 'true'}, 'sa
ndbox': {'nic': 'em1', 'vlan': '2', 'bridged': 'true'}}, {},
{'connectivityCheck': 'true', 'connectivityTimeout': 6}) {} flowID
[51a6bccb]
Thread-397034::DEBUG::2012-11-15
12:04:43,085::BindingXMLRPC::859::vds::(wrapper) client
[192.168.119.232]::call ping with () {} flowID [51a6bccb]
Thread-397034::DEBUG::2012-11-15
12:04:43,086::BindingXMLRPC::865::vds::(wrapper) return ping with
{'status': {'message': 'Done', 'code': 0}}
MainProcess|Thread-397033::DEBUG::2012-11-15
12:04:43,099::configNetwork::1083::setupNetworks::(setupNetworks) Setting
up network according to configuration: networks:{'ovirtmgmt': {'ni
c': 'em1', 'bridged': 'true'}, 'sandbox': {'nic': 'em1', 'vlan': '2',
'bridged': 'true'}}, bondings:{}, options:{'connectivityCheck': 'true',
'connectivityTimeout': 6}
MainProcess|Thread-397033::DEBUG::2012-11-15
12:04:43,099::configNetwork::1087::root::(setupNetworks) Validating
configuration
MainProcess|Thread-397033::ERROR::2012-11-15
12:04:43,110::configNetwork::1155::setupNetworks::(setupNetworks) (24,
Setup attached more than one network to nic em1, some of which aren'
t vlans)
Traceback (most recent call last):
  File /usr/share/vdsm/configNetwork.py, line 1088, in setupNetworks
_validateNetworkSetup(dict(networks), dict(bondings))
  

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

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 12:59 PM, Alan Johnson a...@datdec.com wrote:

 Be sure to read my other post before running with this as it may be a dead
 end, but here is the dump from last night's backup (just the one row):

 INSERT INTO vds_interface(addr, bond_name, bond_type, gateway, id,
 is_bond, bond_opts, mac_addr, name, network_name, speed, subnet,
 boot_protocol, type, VDS_ID, vlan_id, mtu, bridged)
  VALUES(v_addr, v_bond_name, v_bond_type, v_gateway, v_id,
 v_is_bond, v_bond_opts, v_mac_addr, v_name, v_network_name, v_speed,
 v_subnet, v_boot_protocol, v_type, v_vds_id, v_vlan_id, v_mtu, v_bridged);
 END; $$;


Whoops!  I didn't actually read the SQL before sending, just skimmed
looking for anything sensitive   I see now that this is not at all useful.
 Here is a CSV output of that table:

id,name,network_name,vds_id,mac_addr,is_bond,bond_name,bond_type,bond_opts,vlan_id,speed,addr,subnet,gateway,boot_protocol,type,_create_date,_update_date,mtu,bridged
d9843c29-ff18-4f26-ba9c-19c24a3dc65d,bond0,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.441602-04,2012-11-14 15:11:13.867575-05,1500,0
41e44be1-1e6a-4468-b613-0defc957e57a,bond1,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.444754-04,2012-11-14 15:11:13.871171-05,1500,0
4aac622e-942b-424d-b37c-c9cac9c3eaa9,bond2,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.447615-04,2012-11-14 15:11:13.874052-05,1500,0
2f3edf8c-60e6-4b0e-9a77-fd15f395ad2c,em1,ovirtmgmt,88089a7c-124e-11e2-877b-52540021f621,84:8f:69:75:50:e9,,1000,192.168.119.158,255.255.255.0,192.168.119.110,1,2,2012-10-09
16:25:13.421371-04,2012-11-14 15:11:13.876869-05,1500,1
59c2ce88-2f1e-4342-98f6-6e4c0fdcc60a,bond0,,acb1a7d6-122d-11e2-9f25-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
12:36:20.430133-04,2012-11-14 15:11:18.753809-05,1500,0
8f185782-29c7-4bea-95ef-ab02306bb7a1,bond1,,acb1a7d6-122d-11e2-9f25-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
12:36:20.43354-04,2012-11-14 15:11:18.75761-05,1500,0
3eaa26a9-10d0-4e8f-aab8-a02b7e5cb33b,bond2,,acb1a7d6-122d-11e2-9f25-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
12:36:20.43681-04,2012-11-14 15:11:18.761024-05,1500,0
2d931dfa-9b57-4342-8c1d-feb122bb908f,em2,,88089a7c-124e-11e2-877b-52540021f621,84:8f:69:75:50:eb,,1000,10.10.5.102,255.255.255.0,,,0,2012-10-09
16:25:13.429715-04,2012-11-14 15:11:13.879592-05,9000,0
53dcddb6-4494-4f8e-8b5c-ad139ceb551b,em1,ovirtmgmt,acb1a7d6-122d-11e2-9f25-52540021f621,84:8f:69:75:50:8e,,1000,192.168.119.186,255.255.255.0,192.168.119.110,1,2,2012-10-09
12:36:20.414512-04,2012-11-14 15:11:18.764122-05,1500,1
37d0d8d7-d512-4a74-99c2-e61fe82b893e,em2,,acb1a7d6-122d-11e2-9f25-52540021f621,84:8f:69:75:50:90,,1000,10.10.5.103,255.255.255.0,,,0,2012-10-09
12:36:20.419835-04,2012-11-14 15:11:18.770674-05,9000,0
a31eb4bc-dc2c-4697-8d72-e61e41fc2bdb,bond2,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.669305-05,2012-11-14 16:01:05.967822-05,1500,0
c8d832d2-e789-46de-a5b5-9d4bbbdada72,em1,ovirtmgmt,ec7b4186-2e95-11e2-abe4-52540021f621,84:8f:69:75:50:81,,1000,192.168.119.156,255.255.255.0,192.168.119.110,1,2,2012-11-14
15:06:01.648564-05,2012-11-14 16:01:05.969595-05,1500,1
bc5892b9-6b96-4034-b828-9d46b1c38060,em2,,ec7b4186-2e95-11e2-abe4-52540021f621,84:8f:69:75:50:83,,1000,10.10.5.101,255.255.255.0,,,0,2012-11-14
15:06:01.654161-05,2012-11-14 16:01:05.971152-05,9000,0
bfe14fb3-2040-4ece-bd99-51fe31eabfc4,bond4,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.657521-05,2012-11-14 16:01:05.972706-05,1500,0
7d544efc-9942-4596-990a-9e6841d592d1,bond3,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.660389-05,2012-11-14 16:01:05.974151-05,1500,0
238cbbc3-b1e0-404e-bf1d-e1ab95eed352,bond0,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.663768-05,2012-11-14 16:01:05.975702-05,1500,0
8c081d29-86a0-46e7-8bf9-89c7c17bf24b,bond1,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.666703-05,2012-11-14 16:01:05.977166-05,1500,0
f88cfbee-1468-4e53-8fd8-7285ff46dede,bond4,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.434369-04,2012-11-14 15:11:13.885784-05,1500,0
369b0757-078a-4b18-b0de-d42cca1bcbad,bond3,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.438335-04,2012-11-14 15:11:13.888115-05,1500,0
42825d0d-acb0-46e0-b84d-aee4cdee3f55,em1,ovirtmgmt,e5a52b3c-0f10-11e2-94c2-52540021f621,84:8f:69:75:50:f6,,1000,192.168.119.188,255.255.255.0,192.168.119.110,1,2,2012-10-05
13:25:47.081134-04,2012-11-14 15:11:15.811989-05,1500,1

[Users] cannot add new logical network to host

2012-11-14 Thread Alan Johnson
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
Taskshttps://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.1-Beta/html-single/Administration_Guide/index.html#sect-Logical_Network_Tasksin
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.

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)
[engine-bll.jar:]
at org.ovirt.engine.core.bll.Backend.RunAction(Backend.java:294)
[engine-bll.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_09-icedtea]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_09-icedtea]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_09-icedtea]
at 

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)
 [engine