Re: [Users] Vdsm/libvir error during deploy

2013-03-21 Thread Alon Bar-Lev
You should not install vdsm on loopback device (localhost, 127.0.0.1) but on 
real interface's address.

- Original Message -
 From: Dennis Böck den...@webdienstleistungen.com
 To: Alon Bar-Lev alo...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, March 21, 2013 10:11:19 AM
 Subject: AW: [Users] Vdsm/libvir error during deploy
 
 Hi,
 
 I have also have problems with /usr/share/vdsm/addNetwork :
 
 2013-03-21 09:00:22 ERROR otopi.context context._executeMethod:139
 Failed to execute stage 'Misc configuration': Command
 '/usr/share/vdsm/addNetwork' failed to execute
 
 2013-03-21 09:00:21 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.executeRaw:347 execute: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'], executable='None',
 cwd='None', env=None
 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.executeRaw:364 execute-result: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'], rc=23
 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.execute:411 execute-output: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'] stdout:
 unknown nic: 'lo'
 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.execute:416 execute-output: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'] stderr:
 WARNING:root:options IPADDR is deprecated. Use ipaddr instead
 WARNING:root:options NETMASK is deprecated. Use netmask instead
 WARNING:root:options ONBOOT is deprecated. Use onboot instead
 Traceback (most recent call last):
   File /usr/share/vdsm/configNetwork.py, line 1454, in module
 main()
   File /usr/share/vdsm/configNetwork.py, line 1423, in main
 addNetwork(bridge, **kwargs)
   File /usr/share/vdsm/configNetwork.py, line 886, in addNetwork
 bridged=bridged, **options)
   File /usr/share/vdsm/configNetwork.py, line 834, in
   _addNetworkValidation
 raise ConfigNetworkError(ne.ERR_BAD_NIC, unknown nic: %r % nic)
 ConfigNetworkError: (23, unknown nic: 'lo')
 
 I already tried a new installation of vdsm and libvirt and executed
 $ find /etc/libvirt -name '*vdsm*' -exec rm {} \;
 $ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \;
 ( /var/lib/vdsm/netbackup did not exist)
 
 But I still get the same error message.
 Does anyone have an idea?
 
 Best regards and thanks in advance
 Dennis
 
 - Original Message -
 Von: users-boun...@ovirt.org [users-boun...@ovirt.org] im Auftrag
 von Kevin Maziere Aubry [kevin.mazi...@alterway.fr]
 Gesendet: Freitag, 21. Dezember 2012 13:52
 An: Alon Bar-Lev
 Cc: users@ovirt.org
 Betreff: Re: [Users] Vdsm/libvir error during deploy
 
 
 Hi
 
 
 I suggest also to remove /var/lib/vdsm/netbackup directory.
 Kevin
 
 
 
 2012/12/21 Alon Bar-Lev alo...@redhat.com
 
 
 
 - Original Message -
  From: Joop jvdw...@xs4all.nl
  To: users@ovirt.org
  Sent: Friday, December 21, 2012 12:30:17 PM
  Subject: [Users] Vdsm/libvir error during deploy
 
  While using the latest nightly I can't deploy new hosts using
  oVirt.
  rpm -aq | grep ovirt
  ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-iso-uploader-3.1.0-1.fc17.noarch
  ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
  ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch
  ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
  ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-release-fedora-5-2.noarch
  ovirt-image-uploader-3.1.0-1.fc17.noarch
  ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch
  ovirt-log-collector-3.1.0-1.fc17.noarch
  ovirt-engine-setup-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 
  I did an engine-cleanup/engine-setup to start with a clean slate,
  further
  I have a host that is used before and keeps loosing
  networkconnectivity
  when the vdsmd service is started so I did several yum

Re: [Users] Vdsm/libvir error during deploy

2013-03-21 Thread Dennis Böck
Dear Alon,

sorry, that was not my intention. How can I uninstall vdsm from loopback device 
and install it correctly?


Von: Alon Bar-Lev [alo...@redhat.com]
Gesendet: Donnerstag, 21. März 2013 09:22
An: Dennis Böck
Cc: users@ovirt.org
Betreff: Re: AW: [Users] Vdsm/libvir error during deploy

You should not install vdsm on loopback device (localhost, 127.0.0.1) but on 
real interface's address.

- Original Message -
 From: Dennis Böck den...@webdienstleistungen.com
 To: Alon Bar-Lev alo...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, March 21, 2013 10:11:19 AM
 Subject: AW: [Users] Vdsm/libvir error during deploy

 Hi,

 I have also have problems with /usr/share/vdsm/addNetwork :

 2013-03-21 09:00:22 ERROR otopi.context context._executeMethod:139
 Failed to execute stage 'Misc configuration': Command
 '/usr/share/vdsm/addNetwork' failed to execute

 2013-03-21 09:00:21 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.executeRaw:347 execute: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'], executable='None',
 cwd='None', env=None
 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.executeRaw:364 execute-result: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'], rc=23
 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.execute:411 execute-output: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'] stdout:
 unknown nic: 'lo'
 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.execute:416 execute-output: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
 'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
 'NAME=loopback', 'blockingdhcp=true'] stderr:
 WARNING:root:options IPADDR is deprecated. Use ipaddr instead
 WARNING:root:options NETMASK is deprecated. Use netmask instead
 WARNING:root:options ONBOOT is deprecated. Use onboot instead
 Traceback (most recent call last):
   File /usr/share/vdsm/configNetwork.py, line 1454, in module
 main()
   File /usr/share/vdsm/configNetwork.py, line 1423, in main
 addNetwork(bridge, **kwargs)
   File /usr/share/vdsm/configNetwork.py, line 886, in addNetwork
 bridged=bridged, **options)
   File /usr/share/vdsm/configNetwork.py, line 834, in
   _addNetworkValidation
 raise ConfigNetworkError(ne.ERR_BAD_NIC, unknown nic: %r % nic)
 ConfigNetworkError: (23, unknown nic: 'lo')

 I already tried a new installation of vdsm and libvirt and executed
 $ find /etc/libvirt -name '*vdsm*' -exec rm {} \;
 $ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \;
 ( /var/lib/vdsm/netbackup did not exist)

 But I still get the same error message.
 Does anyone have an idea?

 Best regards and thanks in advance
 Dennis

 - Original Message -
 Von: users-boun...@ovirt.org [users-boun...@ovirt.org] im Auftrag
 von Kevin Maziere Aubry [kevin.mazi...@alterway.fr]
 Gesendet: Freitag, 21. Dezember 2012 13:52
 An: Alon Bar-Lev
 Cc: users@ovirt.org
 Betreff: Re: [Users] Vdsm/libvir error during deploy


 Hi


 I suggest also to remove /var/lib/vdsm/netbackup directory.
 Kevin



 2012/12/21 Alon Bar-Lev alo...@redhat.com



 - Original Message -
  From: Joop jvdw...@xs4all.nl
  To: users@ovirt.org
  Sent: Friday, December 21, 2012 12:30:17 PM
  Subject: [Users] Vdsm/libvir error during deploy
 
  While using the latest nightly I can't deploy new hosts using
  oVirt.
  rpm -aq | grep ovirt
  ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-iso-uploader-3.1.0-1.fc17.noarch
  ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
  ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch
  ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
  ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-release-fedora-5-2.noarch
  ovirt-image-uploader-3.1.0-1.fc17.noarch
  ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch

Re: [Users] Vdsm/libvir error during deploy

2013-03-21 Thread Alon Bar-Lev
Just redeploy the host from the ovirt-engine console using proper address.
Or I do not understand the sequence you used to install vdsm in the first 
place...

- Original Message -
 From: Dennis Böck den...@webdienstleistungen.com
 To: Alon Bar-Lev alo...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, March 21, 2013 10:32:45 AM
 Subject: AW: AW: [Users] Vdsm/libvir error during deploy
 
 Dear Alon,
 
 sorry, that was not my intention. How can I uninstall vdsm from
 loopback device and install it correctly?
 
 
 Von: Alon Bar-Lev [alo...@redhat.com]
 Gesendet: Donnerstag, 21. März 2013 09:22
 An: Dennis Böck
 Cc: users@ovirt.org
 Betreff: Re: AW: [Users] Vdsm/libvir error during deploy
 
 You should not install vdsm on loopback device (localhost, 127.0.0.1)
 but on real interface's address.
 
 - Original Message -
  From: Dennis Böck den...@webdienstleistungen.com
  To: Alon Bar-Lev alo...@redhat.com
  Cc: users@ovirt.org
  Sent: Thursday, March 21, 2013 10:11:19 AM
  Subject: AW: [Users] Vdsm/libvir error during deploy
 
  Hi,
 
  I have also have problems with /usr/share/vdsm/addNetwork :
 
  2013-03-21 09:00:22 ERROR otopi.context context._executeMethod:139
  Failed to execute stage 'Misc configuration': Command
  '/usr/share/vdsm/addNetwork' failed to execute
 
  2013-03-21 09:00:21 DEBUG
  otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.executeRaw:347 execute: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
  'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
  'NAME=loopback', 'blockingdhcp=true'], executable='None',
  cwd='None', env=None
  2013-03-21 09:00:22 DEBUG
  otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.executeRaw:364 execute-result:
  ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
  'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
  'NAME=loopback', 'blockingdhcp=true'], rc=23
  2013-03-21 09:00:22 DEBUG
  otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.execute:411 execute-output: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
  'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
  'NAME=loopback', 'blockingdhcp=true'] stdout:
  unknown nic: 'lo'
  2013-03-21 09:00:22 DEBUG
  otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.execute:416 execute-output: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', 'lo', 'IPADDR=127.0.0.1', 'NETMASK=255.0.0.0',
  'NETWORK=127.0.0.0', 'BROADCAST=127.255.255.255', 'ONBOOT=yes',
  'NAME=loopback', 'blockingdhcp=true'] stderr:
  WARNING:root:options IPADDR is deprecated. Use ipaddr instead
  WARNING:root:options NETMASK is deprecated. Use netmask instead
  WARNING:root:options ONBOOT is deprecated. Use onboot instead
  Traceback (most recent call last):
File /usr/share/vdsm/configNetwork.py, line 1454, in module
  main()
File /usr/share/vdsm/configNetwork.py, line 1423, in main
  addNetwork(bridge, **kwargs)
File /usr/share/vdsm/configNetwork.py, line 886, in addNetwork
  bridged=bridged, **options)
File /usr/share/vdsm/configNetwork.py, line 834, in
_addNetworkValidation
  raise ConfigNetworkError(ne.ERR_BAD_NIC, unknown nic: %r %
  nic)
  ConfigNetworkError: (23, unknown nic: 'lo')
 
  I already tried a new installation of vdsm and libvirt and executed
  $ find /etc/libvirt -name '*vdsm*' -exec rm {} \;
  $ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \;
  ( /var/lib/vdsm/netbackup did not exist)
 
  But I still get the same error message.
  Does anyone have an idea?
 
  Best regards and thanks in advance
  Dennis
 
  - Original Message -
  Von: users-boun...@ovirt.org [users-boun...@ovirt.org] im Auftrag
  von Kevin Maziere Aubry [kevin.mazi...@alterway.fr]
  Gesendet: Freitag, 21. Dezember 2012 13:52
  An: Alon Bar-Lev
  Cc: users@ovirt.org
  Betreff: Re: [Users] Vdsm/libvir error during deploy
 
 
  Hi
 
 
  I suggest also to remove /var/lib/vdsm/netbackup directory.
  Kevin
 
 
 
  2012/12/21 Alon Bar-Lev alo...@redhat.com
 
 
 
  - Original Message -
   From: Joop jvdw...@xs4all.nl
   To: users@ovirt.org
   Sent: Friday, December 21, 2012 12:30:17 PM
   Subject: [Users] Vdsm/libvir error during deploy
  
   While using the latest nightly I can't deploy new hosts using
   oVirt.
   rpm -aq | grep ovirt
   ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
   ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
   ovirt-iso-uploader-3.1.0-1.fc17.noarch
   ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
   ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
   ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
   ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
   ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch
   ovirt-engine

Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Alon Bar-Lev
!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit vdsm-ovirtmgmt
or other application using the libvirt API.
--

network
  namevdsm-ovirtmgmt/name
  uuidae3e270e-ba2d-2231-7621-49bde999ea79/uuid
  forward mode='bridge'/
  bridge name='ovirtmgmt' /
/network
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Dan Kenigsberg
On Mon, Dec 24, 2012 at 10:08:23AM +0100, Joop wrote:
 OK, I still have that error after starting from a clean slate. Steps
 that I have done:
 Clean install of Fed17 from bfo.iso, minimal installation. Changed
 DHCP configured em1 to static, added repos needed, yum update,
 restarted and added st02 using webadmin. Same error.
 Relevant configs before adding as host:
 ifcfg-em1:
 UUID=fa495259-571d-4ab8-aac2-cbabd3a2c8bd
 NM_CONTROLLED=yes
 NETBOOT=yes
 HWADDR=f4:ce:46:0f:47:f0
 BOOTPROTO=none
 IPADDR=192.168.216.152
 NETMASK=255.255.255.0
 GATEWAY=192.168.216.254
 DNS1=172.19.1.12
 DNS2=172.19.1.18
 DEVICE=em1
 TYPE=Ethernet
 ONBOOT=yes
 NAME=Boot Disk
 
 Repos that are active:
 fedora-glusterfs.repo  fedora.repo  fedora-updates.repo
 fedora-updates-testing.repo  fedora-virt-preview.repo  ovirt.repo
 
 Installation of packages is OK but same error concerning adding network:
 
 2012-12-24 09:45:53 DEBUG
 otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:393
 execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '',
 u'em1', 'UUID=fa495259-571d-4ab8-aac2-cbabd3a2c8bd', 'NETBOOT=yes',
 'BOOTPROTO=none', 'IPADDR=192.168.216.152', 'NETMASK=255.255.255.0',
 'GATEWAY=192.168.216.254', 'DNS1=172.19.1.12', 'DNS2=172.19.1.18',
 'ONBOOT=yes', 'NAME=Boot Disk', 'blockingdhcp=true'] stderr:
 WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or
 directory: '/var/run/vdsm/lvm.env'
 WARNING:root:options IPADDR is deprecated. Use ipaddr instead
 WARNING:root:options NETMASK is deprecated. Use netmask instead
 WARNING:root:options ONBOOT is deprecated. Use onboot instead
 WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
 WARNING:root:options GATEWAY is deprecated. Use gateway instead
 INFO:root:Adding network ovirtmgmt with vlan=, bonding=,
 nics=['em1'], bondingOptions=None, mtu=None, bridged=True,
 options={'blockingdhcp': 'true', 'UUID':
 'fa495259-571d-4ab8-aac2-cbabd3a2c8bd', 'DNS2': '172.19.1.18',
 'NETBOOT': 'yes', 'bootproto': 'none', 'DNS1': '172.19.1.12',
 'onboot': 'yes', 'NAME': 'Boot Disk'}
 libvir: Network Driver error : Network not found: no network with
 matching name 'vdsm-ovirtmgmt'
 libvir: Network Driver error : Network not found: no network with
 matching name 'vdsm-ovirtmgmt'
 libvir: Network Driver error : Requested operation is not valid:
 cannot set autostart for transient network
 Traceback (most recent call last):
  File /usr/lib64/python2.7/runpy.py, line 162, in _run_module_as_main
__main__, fname, loader, pkg_name)
  File /usr/lib64/python2.7/runpy.py, line 72, in _run_code
exec code in run_globals
  File /usr/share/vdsm/configNetwork.py, line 1500, in module
main()
  File /usr/share/vdsm/configNetwork.py, line 1469, in main
addNetwork(bridge, **kwargs)
  File /usr/share/vdsm/configNetwork.py, line 1028, in addNetwork
configWriter.createLibvirtNetwork(network, bridged, iface)
  File /usr/share/vdsm/configNetwork.py, line 207, in createLibvirtNetwork
self._createNetwork(netXml)
  File /usr/share/vdsm/configNetwork.py, line 191, in _createNetwork
net.setAutostart(1)
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 2148, in
 setAutostart
if ret == -1: raise libvirtError ('virNetworkSetAutostart()
 failed', net=self)
 libvirt.libvirtError: Requested operation is not valid: cannot set
 autostart for transient network

Which version of libvirt is installed on your host?

What is the output of the following python script on your machine? Mine
says 1. Could it be that your libvirt says 0?

=

from vdsm import libvirtconnection

conn = libvirtconnection.get()
netXml = network
  nametest/name
  forward mode='passthrough'
interface dev='em1'/
  /forward
/network


net = conn.networkDefineXML(netXml)
net.create()
print net.isPersistent()
net.destroy()
net.undefine()

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


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Alon Bar-Lev


- Original Message -
 From: Alon Bar-Lev alo...@redhat.com
 To: Joop jvdw...@xs4all.nl, Dan Kenigsberg dan...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, December 24, 2012 11:24:42 AM
 Subject: Re: [Users] Vdsm/libvir error during deploy
 
 Regarding the uuid issue, the behavior is the same as the legacy.
 
 While I am thinking about this, it is now possible to set up
 generated uuid automatically pushed from the engine side in case
 engine detects duplicate. It won't work correctly with ovirt-node
 initial registration, as vdsm-reg is not aware of the duplication.
 But it will be nice for common usage.

This can be discussed here[1], I am not sure this change is doing more good 
than harm.

Regards,
Alon

[1] https://bugzilla.redhat.com/show_bug.cgi?id=890022

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


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Joop

Dan Kenigsberg wrote:

On Mon, Dec 24, 2012 at 10:08:23AM +0100, Joop wrote:
  

OK, I still have that error after starting from a clean slate. Steps
that I have done:
Clean install of Fed17 from bfo.iso, minimal installation. Changed
DHCP configured em1 to static, added repos needed, yum update,
restarted and added st02 using webadmin. Same error.
Relevant configs before adding as host:
ifcfg-em1:
UUID=fa495259-571d-4ab8-aac2-cbabd3a2c8bd
NM_CONTROLLED=yes
NETBOOT=yes
HWADDR=f4:ce:46:0f:47:f0
BOOTPROTO=none
IPADDR=192.168.216.152
NETMASK=255.255.255.0
GATEWAY=192.168.216.254
DNS1=172.19.1.12
DNS2=172.19.1.18
DEVICE=em1
TYPE=Ethernet
ONBOOT=yes
NAME=Boot Disk

Repos that are active:
fedora-glusterfs.repo  fedora.repo  fedora-updates.repo
fedora-updates-testing.repo  fedora-virt-preview.repo  ovirt.repo

Installation of packages is OK but same error concerning adding network:

2012-12-24 09:45:53 DEBUG
otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:393
execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '',
u'em1', 'UUID=fa495259-571d-4ab8-aac2-cbabd3a2c8bd', 'NETBOOT=yes',
'BOOTPROTO=none', 'IPADDR=192.168.216.152', 'NETMASK=255.255.255.0',
'GATEWAY=192.168.216.254', 'DNS1=172.19.1.12', 'DNS2=172.19.1.18',
'ONBOOT=yes', 'NAME=Boot Disk', 'blockingdhcp=true'] stderr:
WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or
directory: '/var/run/vdsm/lvm.env'
WARNING:root:options IPADDR is deprecated. Use ipaddr instead
WARNING:root:options NETMASK is deprecated. Use netmask instead
WARNING:root:options ONBOOT is deprecated. Use onboot instead
WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
WARNING:root:options GATEWAY is deprecated. Use gateway instead
INFO:root:Adding network ovirtmgmt with vlan=, bonding=,
nics=['em1'], bondingOptions=None, mtu=None, bridged=True,
options={'blockingdhcp': 'true', 'UUID':
'fa495259-571d-4ab8-aac2-cbabd3a2c8bd', 'DNS2': '172.19.1.18',
'NETBOOT': 'yes', 'bootproto': 'none', 'DNS1': '172.19.1.12',
'onboot': 'yes', 'NAME': 'Boot Disk'}
libvir: Network Driver error : Network not found: no network with
matching name 'vdsm-ovirtmgmt'
libvir: Network Driver error : Network not found: no network with
matching name 'vdsm-ovirtmgmt'
libvir: Network Driver error : Requested operation is not valid:
cannot set autostart for transient network
Traceback (most recent call last):
 File /usr/lib64/python2.7/runpy.py, line 162, in _run_module_as_main
   __main__, fname, loader, pkg_name)
 File /usr/lib64/python2.7/runpy.py, line 72, in _run_code
   exec code in run_globals
 File /usr/share/vdsm/configNetwork.py, line 1500, in module
   main()
 File /usr/share/vdsm/configNetwork.py, line 1469, in main
   addNetwork(bridge, **kwargs)
 File /usr/share/vdsm/configNetwork.py, line 1028, in addNetwork
   configWriter.createLibvirtNetwork(network, bridged, iface)
 File /usr/share/vdsm/configNetwork.py, line 207, in createLibvirtNetwork
   self._createNetwork(netXml)
 File /usr/share/vdsm/configNetwork.py, line 191, in _createNetwork
   net.setAutostart(1)
 File /usr/lib64/python2.7/site-packages/libvirt.py, line 2148, in
setAutostart
   if ret == -1: raise libvirtError ('virNetworkSetAutostart()
failed', net=self)
libvirt.libvirtError: Requested operation is not valid: cannot set
autostart for transient network



Which version of libvirt is installed on your host?

What is the output of the following python script on your machine? Mine
says 1. Could it be that your libvirt says 0?

=

from vdsm import libvirtconnection

conn = libvirtconnection.get()
netXml = network
  nametest/name
  forward mode='passthrough'
interface dev='em1'/
  /forward
/network


net = conn.networkDefineXML(netXml)
net.create()
print net.isPersistent()
net.destroy()
net.undefine()


  
Since this is a minimal install it doesn't have anything related to 
vdsm/libvirt/qemu installed and everything is pulled from repos during 
the deployment BUT because of the error it is also all rolled back.
Will have a look at the log and install main packages by hand and run 
the script.


Let you know soon,

Joop

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


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Joop

Dan Kenigsberg wrote:

Which version of libvirt is installed on your host?

  

libvirt-1.0.1-2.fc17.x86_64
libvirt-client-1.0.1-2.fc17.x86_64
libvirt-daemon-1.0.1-2.fc17.x86_64
libvirt-daemon-config-network-1.0.1-2.fc17.x86_64
libvirt-daemon-config-nwfilter-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-interface-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-lxc-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-network-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-nodedev-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-nwfilter-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-qemu-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-secret-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-storage-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-uml-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-xen-1.0.1-2.fc17.x86_64
libvirt-lock-sanlock-1.0.1-2.fc17.x86_64
libvirt-python-1.0.1-2.fc17.x86_64

From virt-preview repo
[fedora-virt-preview]
name=Virtualization packages from Rawhide built for latest Fedora
baseurl=http://fedorapeople.org/groups/virt/virt-preview/fedora-$releasever/$basearch
enabled=1
skip_if_unavailable=1
gpgcheck=0


What is the output of the following python script on your machine? Mine
says 1. Could it be that your libvirt says 0?

=

from vdsm import libvirtconnection

conn = libvirtconnection.get()
netXml = network
  nametest/name
  forward mode='passthrough'
interface dev='em1'/
  /forward
/network


net = conn.networkDefineXML(netXml)
net.create()
print net.isPersistent()
net.destroy()
net.undefine()


  

0
libvir: Network Driver error : Network not found: no network with 
matching uuid

Traceback (most recent call last):
 File test.py, line 16, in module
   net.undefine()
 File /usr/lib64/python2.7/site-packages/libvirt.py, line 2154, in 
undefine
   if ret == -1: raise libvirtError ('virNetworkUndefine() failed', 
net=self)

libvirt.libvirtError: Network not found: no network with matching uuid

So '0' :-((
Suppose that error isn't good either.
Should I downgrade to an earlier version of libvirt?

Joop


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


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Dan Kenigsberg
On Mon, Dec 24, 2012 at 02:18:48PM +0100, Joop wrote:
 Dan Kenigsberg wrote:
 Which version of libvirt is installed on your host?
 
 libvirt-1.0.1-2.fc17.x86_64
 libvirt-client-1.0.1-2.fc17.x86_64
 libvirt-daemon-1.0.1-2.fc17.x86_64
 libvirt-daemon-config-network-1.0.1-2.fc17.x86_64
 libvirt-daemon-config-nwfilter-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-interface-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-lxc-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-network-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-nodedev-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-nwfilter-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-qemu-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-secret-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-storage-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-uml-1.0.1-2.fc17.x86_64
 libvirt-daemon-driver-xen-1.0.1-2.fc17.x86_64
 libvirt-lock-sanlock-1.0.1-2.fc17.x86_64
 libvirt-python-1.0.1-2.fc17.x86_64
 
 From virt-preview repo
 [fedora-virt-preview]
 name=Virtualization packages from Rawhide built for latest Fedora
 baseurl=http://fedorapeople.org/groups/virt/virt-preview/fedora-$releasever/$basearch
 enabled=1
 skip_if_unavailable=1
 gpgcheck=0
 
 What is the output of the following python script on your machine? Mine
 says 1. Could it be that your libvirt says 0?
 
 =
 
 from vdsm import libvirtconnection
 
 conn = libvirtconnection.get()
 netXml = network
   nametest/name
   forward mode='passthrough'
 interface dev='em1'/
   /forward
 /network
 
 
 net = conn.networkDefineXML(netXml)
 net.create()
 print net.isPersistent()
 net.destroy()
 net.undefine()
 
 
 0
 libvir: Network Driver error : Network not found: no network with
 matching uuid
 Traceback (most recent call last):
  File test.py, line 16, in module
net.undefine()
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 2154, in
 undefine
if ret == -1: raise libvirtError ('virNetworkUndefine() failed',
 net=self)
 libvirt.libvirtError: Network not found: no network with matching uuid
 
 So '0' :-((
 Suppose that error isn't good either.
 Should I downgrade to an earlier version of libvirt?

Please try. My guess is that this is a libvirt bug added by
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=0211fd6e04cdc402da20818df54299c6ded3d3cb
in libvirt 1.0.1. More authoritative answer is expected by those added
to the CC line.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Joop

Dan Kenigsberg wrote:

On Mon, Dec 24, 2012 at 02:18:48PM +0100, Joop wrote:
  

Dan Kenigsberg wrote:


Which version of libvirt is installed on your host?

  

libvirt-1.0.1-2.fc17.x86_64
libvirt-client-1.0.1-2.fc17.x86_64
libvirt-daemon-1.0.1-2.fc17.x86_64
libvirt-daemon-config-network-1.0.1-2.fc17.x86_64
libvirt-daemon-config-nwfilter-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-interface-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-lxc-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-network-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-nodedev-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-nwfilter-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-qemu-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-secret-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-storage-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-uml-1.0.1-2.fc17.x86_64
libvirt-daemon-driver-xen-1.0.1-2.fc17.x86_64
libvirt-lock-sanlock-1.0.1-2.fc17.x86_64
libvirt-python-1.0.1-2.fc17.x86_64

From virt-preview repo
[fedora-virt-preview]
name=Virtualization packages from Rawhide built for latest Fedora
baseurl=http://fedorapeople.org/groups/virt/virt-preview/fedora-$releasever/$basearch
enabled=1
skip_if_unavailable=1
gpgcheck=0



What is the output of the following python script on your machine? Mine
says 1. Could it be that your libvirt says 0?

=

  

from vdsm import libvirtconnection


conn = libvirtconnection.get()
netXml = network
 nametest/name
 forward mode='passthrough'
   interface dev='em1'/
 /forward
/network


net = conn.networkDefineXML(netXml)
net.create()
print net.isPersistent()
net.destroy()
net.undefine()


  

0
libvir: Network Driver error : Network not found: no network with
matching uuid
Traceback (most recent call last):
 File test.py, line 16, in module
   net.undefine()
 File /usr/lib64/python2.7/site-packages/libvirt.py, line 2154, in
undefine
   if ret == -1: raise libvirtError ('virNetworkUndefine() failed',
net=self)
libvirt.libvirtError: Network not found: no network with matching uuid

So '0' :-((
Suppose that error isn't good either.
Should I downgrade to an earlier version of libvirt?



Please try. My guess is that this is a libvirt bug added by
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=0211fd6e04cdc402da20818df54299c6ded3d3cb
in libvirt 1.0.1. More authoritative answer is expected by those added
to the CC line.

  
Went back to libvirt-0.10. from the danken repo and now it works. Will 
reinstall st01 in the same way as a test.


Thanks for the help and have a nice X-mas.

Joop

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


Re: [Users] Vdsm/libvir error during deploy

2012-12-24 Thread Joop
Sorry I forgot to edit the libvirt version, this is what is installed 
now and atleast works on on host, going to test the next host and then 
add a gluster cluster.


libvirt-0.10.1-2.fc17.x86_64
libvirt-client-0.10.1-2.fc17.x86_64
libvirt-daemon-0.10.1-2.fc17.x86_64
libvirt-daemon-config-network-0.10.1-2.fc17.x86_64
libvirt-daemon-config-nwfilter-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-interface-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-libxl-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-lxc-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-network-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-nodedev-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-nwfilter-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-qemu-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-secret-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-storage-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-uml-0.10.1-2.fc17.x86_64
libvirt-daemon-driver-xen-0.10.1-2.fc17.x86_64
libvirt-lock-sanlock-0.10.1-2.fc17.x86_64
libvirt-python-0.10.1-2.fc17.x86_64

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


Re: [Users] Vdsm/libvir error during deploy

2012-12-21 Thread Alon Bar-Lev


- Original Message -
 From: Joop jvdw...@xs4all.nl
 To: users@ovirt.org
 Sent: Friday, December 21, 2012 12:30:17 PM
 Subject: [Users] Vdsm/libvir error during deploy
 
 While using the latest nightly I can't deploy new hosts using oVirt.
 rpm -aq | grep ovirt
 ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-iso-uploader-3.1.0-1.fc17.noarch
 ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
 ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch
 ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
 ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 ovirt-release-fedora-5-2.noarch
 ovirt-image-uploader-3.1.0-1.fc17.noarch
 ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch
 ovirt-log-collector-3.1.0-1.fc17.noarch
 ovirt-engine-setup-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 
 I did an engine-cleanup/engine-setup to start with a clean slate,
 further
 I have a host that is used before and keeps loosing
 networkconnectivity
 when the vdsmd service is started so I did several yum removes of
 packages
 (libvirt related and qemu related and vdsm*) and removed the /etc/
 and
 /var entries where needed. Then I ran add host and end up with the
 same
 error I had before, full deploy log is attached but this is the real
 and
 only set of errors:
 
 2012-12-21 11:00:26 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.executeRaw:324 execute: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt',
 '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
 'USERCTL=no',
 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
 'blockingdhcp=true'],
 env=None
 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.executeRaw:341 execute-result: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
 'USERCTL=no',
 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
 'blockingdhcp=true'],
 rc=255
 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.execute:388 execute-output: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
 'USERCTL=no',
 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
 'blockingdhcp=true']
 stdout:
 
 
 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
 plugin.execute:393 execute-output: ['/usr/share/vdsm/addNetwork',
 'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
 'USERCTL=no',
 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
 'blockingdhcp=true']
 stderr:
 WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or
 directory: '/var/run/vdsm/lvm.env'
 WARNING:root:options IPADDR is deprecated. Use ipaddr instead
 WARNING:root:options NETMASK is deprecated. Use netmask instead
 WARNING:root:options GATEWAY is deprecated. Use gateway instead
 WARNING:root:options ONBOOT is deprecated. Use onboot instead
 INFO:root:Adding network ovirtmgmt with vlan=, bonding=,
 nics=['em1'],
 bondingOptions=None, mtu=None, bridged=True, options={'blockingdhcp':
 'true', 'UUID': 'e121a99a-994e-479d-8de1-a56c14315545', 'USERCTL':
 'no',
 'DNS2': '172.19.1.18', 'DNS1': '172.19.1.12', 'onboot': 'yes',
 'IPV6INIT':
 'no'}
 libvir: Network Driver error : Network not found: no network with
 matching
 name 'vdsm-ovirtmgmt'
 libvir: Network Driver error : Network not found: no network with
 matching
 name 'vdsm-ovirtmgmt'
 libvir: Network Driver error : Requested operation is not valid:
 cannot
 set autostart for transient network
 Traceback (most recent call last):
   File /usr/lib64/python2.7/runpy.py, line 162, in
   _run_module_as_main
 __main__, fname, loader, pkg_name)
   File /usr/lib64/python2.7/runpy.py, line 72, in _run_code
 exec code in run_globals
   File /usr/share/vdsm/configNetwork.py, line 1489, in module
 main()
   File /usr/share/vdsm/configNetwork.py, line 1458, in main
 addNetwork(bridge, **kwargs)
   File /usr/share/vdsm/configNetwork.py, line 1017, in addNetwork
 

Re: [Users] Vdsm/libvir error during deploy

2012-12-21 Thread Kevin Maziere Aubry
Hi

I suggest also to remove /var/lib/vdsm/netbackup directory.
Kevin


2012/12/21 Alon Bar-Lev alo...@redhat.com



 - Original Message -
  From: Joop jvdw...@xs4all.nl
  To: users@ovirt.org
  Sent: Friday, December 21, 2012 12:30:17 PM
  Subject: [Users] Vdsm/libvir error during deploy
 
  While using the latest nightly I can't deploy new hosts using oVirt.
  rpm -aq | grep ovirt
  ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-iso-uploader-3.1.0-1.fc17.noarch
  ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
  ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch
  ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
  ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
  ovirt-release-fedora-5-2.noarch
  ovirt-image-uploader-3.1.0-1.fc17.noarch
  ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch
  ovirt-log-collector-3.1.0-1.fc17.noarch
  ovirt-engine-setup-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
 
  I did an engine-cleanup/engine-setup to start with a clean slate,
  further
  I have a host that is used before and keeps loosing
  networkconnectivity
  when the vdsmd service is started so I did several yum removes of
  packages
  (libvirt related and qemu related and vdsm*) and removed the /etc/
  and
  /var entries where needed. Then I ran add host and end up with the
  same
  error I had before, full deploy log is attached but this is the real
  and
  only set of errors:
 
  2012-12-21 11:00:26 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.executeRaw:324 execute: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt',
  '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
  'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
  'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
  'USERCTL=no',
  'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
  'blockingdhcp=true'],
  env=None
  2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.executeRaw:341 execute-result: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
  'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
  'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
  'USERCTL=no',
  'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
  'blockingdhcp=true'],
  rc=255
  2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.execute:388 execute-output: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
  'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
  'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
  'USERCTL=no',
  'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
  'blockingdhcp=true']
  stdout:
 
 
  2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
  plugin.execute:393 execute-output: ['/usr/share/vdsm/addNetwork',
  'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',
  'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
  'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
  'USERCTL=no',
  'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
  'blockingdhcp=true']
  stderr:
  WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or
  directory: '/var/run/vdsm/lvm.env'
  WARNING:root:options IPADDR is deprecated. Use ipaddr instead
  WARNING:root:options NETMASK is deprecated. Use netmask instead
  WARNING:root:options GATEWAY is deprecated. Use gateway instead
  WARNING:root:options ONBOOT is deprecated. Use onboot instead
  INFO:root:Adding network ovirtmgmt with vlan=, bonding=,
  nics=['em1'],
  bondingOptions=None, mtu=None, bridged=True, options={'blockingdhcp':
  'true', 'UUID': 'e121a99a-994e-479d-8de1-a56c14315545', 'USERCTL':
  'no',
  'DNS2': '172.19.1.18', 'DNS1': '172.19.1.12', 'onboot': 'yes',
  'IPV6INIT':
  'no'}
  libvir: Network Driver error : Network not found: no network with
  matching
  name 'vdsm-ovirtmgmt'
  libvir: Network Driver error : Network not found: no network with
  matching
  name 'vdsm-ovirtmgmt'
  libvir: Network Driver error : Requested operation is not valid:
  cannot
  set autostart for transient network
  Traceback (most recent call last):
File /usr/lib64/python2.7/runpy.py, line 162, in
_run_module_as_main
  __main__, fname, loader, pkg_name)
File /usr/lib64/python2.7/runpy.py, line 72, in _run_code
  exec code in run_globals
File /usr/share/vdsm/configNetwork.py, line