[Users] Vdsm/libvir error during deploy
by Joop
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
configWriter.createLibvirtNetwork(network, bridged, iface)
File "/usr/share/vdsm/configNetwork.py", line 200, in createLibvirtNetwork
self._createNetwork(netXml)
File "/usr/share/vdsm/configNetwork.py", line 184, 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
2012-12-21 11:00:30 DEBUG otopi.context context._executeMethod:127 method
exception
Traceback (most recent call last):
File "/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/context.py", line 117, in
_executeMethod
method['method']()
File
"/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py",
line 736, in _misc
parameters=parameters,
File
"/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py",
line 492, in _createBridge
parameters
File "/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/plugin.py", line 398, in
execute
command=args[0],
RuntimeError: Command '/usr/share/vdsm/addNetwork' failed to execute
2012-12-21 11:00:30 ERROR otopi.context context._executeMethod:136 Failed
to execute stage 'Misc configuration': Command
'/usr/share/vdsm/addNetwork' failed to execute
2012-12-21 11:00:30 DEBUG otopi.transaction transaction.abort:131 aborting
'Yum Transaction'
This is a host that started life as a standard Fed17 install from LiveCD
and it worked with ovirt-3.1 but now I can't get it to work with
oVirt-nightlies. I have two other hosts which started from the same
install and they work, atleast everything gets installed and the hosts are
visisble and up in oVirt. Did a diff of rpm -aq | sort of a working and
nonworking host but the diff is minimal, some extra packages (mc/..) some
very small version diffs (1.2.3-x instead of y)
Any help appreciated,
Joop
11 years, 9 months
[Users] host power managment failures
by Dead Horse
Current running engine build --> commit:
61c11aecc40e755d08b6c34c6fe1c0a07fa94de8
Host power management is having some issues:
2013-01-28 13:15:49,320 ERROR [org.ovirt.engine.core.bll.FenceExecutor]
(ajp--127.0.0.1-8702-11) Illegal value in PM Proxy Preferences string ,
skipped.
2013-01-28 13:15:49,321 ERROR [org.ovirt.engine.core.bll.FenceExecutor]
(ajp--127.0.0.1-8702-11) Failed to run Power Management command on Host ,
no running proxy Host was found.
- DHC
11 years, 9 months
[Users] HowTo: Spice ActiveX Plugin/Virt Viewer Console on oVirt 3.1
by Dead Horse
I have seen this question asked many times on this list and the spice-devel
list. Now having figured out how to make it work I will provide the answer
to the rest of the community.
*NOTE* this only applies to Windows/Internet Explorer users. There exists
no other option other than the html5 spice console (still beta/in
development) for windows users ATM. This will also only work with Internet
Explorer.
Basic Steps:
- Install an oVirt server.
- Add at least one node
- Setup storage/iso/export domains
Advanced steps
- Start by downloading: http://elmarco.fedorapeople.org/spice.cab
- Create a directory for it oVirt looks by default in /usr/share/spice
- Rename spice.cab to SpiceX.cab and copy it into /usr/share/spice
- Now edit /usr/share/ovirt-engine/engine.ear/root.war/WEB-INF and add the
following:
<!-- SpiceX.cab -->
<servlet>
<servlet-name>SpiceX.cab</servlet-name>
<servlet-class>org.ovirt.engine.core.FileServlet</servlet-class>
<init-param>
<param-name>type</param-name>
<param-value>application/octet-stream</param-value>
</init-param>
<init-param>
<param-name>file</param-name>
<param-value>/usr/share/spice/SpiceX.cab</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>SpiceX.cab</servlet-name>
<url-pattern>/spice/SpiceX.cab</url-pattern>
</servlet-mapping>
- Next create an html file within
/usr/share/ovirt-engine/engine.ear/root.war
- In the example below an html file called "spice.html"
- Copy/Paste the below into spice.html:
<!DOCTYPE html>
<html>
<head>
<title>SPICE Plugin Installer</title>
<script type="text/javascript">
function installSpice()
{
try {
document.getElementById('SpiceX').innerHTML = '<OBJECT id="SpiceX"
codebase="/spice/SpiceX.cab"
classid="clsid:ACD6D89C-938D-49B4-8E81-DDBD13F4B48A" width="0"
height="0"></OBJECT>';
} catch (ex) {
alert("Epic Fail!: " + ex.Description);
}
}
</script>
</head>
<body>
<p>
<p><b id='SpiceX'>Spice ActiveX Plugin</b> </p>
<button onclick='installSpice()'>Install Spice Plugin</button>
</p>
</body>
</html>
- Save the file
- You will now need to restart the ovirt-engine service EG: systemctl
restart ovirt-engine.service OR service ovirt-engine restart
- The installer page will now be available at http://<url to ovirt
server>/spice.html EX: http://ovirt.azeroth.net/spice.html
- Navigate to that page and click the install button
- IE will prompt you to deploy/install the SpiceX cabinet file
- It may gripe about an unsigned or untrusted source, acknowledge this an
proceed anyways
- If the install succeeds the text "Spice ActiveX Plugin" on the page will
change to blank (it's actually the plugin with null values)
- The console button in the user and webadmin portals will now launch the
new virt-viwer spice based console!
Happy Spice Consoling to your VM's from Windows!
*NOTE*
To uninstall the plugin:
- The below removes the add-on from IE (EG: removes knowledge of
"application/x-spice")
- pop a command terminal and type:
On Windows XP: regsvr32 /u "C:\Documents and Settings\Administrator\Local
Settings\Application Data\virt-viewer\bin\SpiceX.dll"
On Windows 7 regsvr32 /u C:\Documents and Settings\Administrator\Local
Settings\AppData\virt-viewer\bin\SpiceX.dll"
- Next we need to remove the rest of virt-viewer
- Go to add/remove programs and uninstall virt-viewer, this removes the
rest of virt-viewer from the system
11 years, 9 months
[Users] OpenLDAP Simple Authentication in Ovirt Engine
by Thierry Kauffmann
>> Hi,
>>
>> I am currently testing Ovirt 3.1 standalone on Fedora 17.
>>
>> Until now, I could only use the default user admin@internal.
>>
>> Our Directory at the University is OpenLDAP. We use it for authentication
>> WITHOUT Kerberos : Simple authentication.
>>
>> I wonder how to use this backend to authenticate users and manage groups
>> in Ovirt.
>>
>> Has anyone already set this up ?
>> How to configure Ovirt to use Simple Authentication (No Kerberos).
>>
>> Cheers,
>>
>> --
>> Thierry Kauffmann
>> Chef du Service Informatique // Facult? des Sciences // Universit? de
>> Montpellier 2
>>
>> [image: SIF - Service Informatique de la Facult? des Sciences]<http://sif.info-ufr.univ-montp2.fr/> [image:
>> UM2 - Universit? de Montpellier 2] <http://www.univ-montp2.fr/> Service
>> informatique de la Facult? des Sciences (SIF)
>> Universit? de Montpellier 2
>> CC437 // Place Eug?ne Bataillon // 34095 Montpellier Cedex 5
>>
>> T?l : 04 67 14 31 58
>> email : thierry.kauffmann(a)univ-montp2.fr
>> web : http://sif.info-ufr.univ-montp2.fr/
>> http://www.fdsweb.univ-montp2.fr/
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
> Hi,
>
> This is a response from an older thread from Yair Zaslavsky:
>
> " there is no code allowing to add simple-authentication domains to
> Manage-Domains.
> In the past we did have the ability to do that, but there are several
> problematic issues."
>
> Best regards,
Hi,
correct-me if I am wrong but this wiki page
(http://www.ovirt.org/DomainInfrastructure) states clearly :
> 1. Authenticating Active Directory, IPA and RHDS using either simple
> or gssapi authentication
> 2. Querying the directory using the LDAP protocol
> 3. Auto deducing the LDAP provider type
> 4. Easily adding new LDAP provider types
> 5. Easily adding new query types
>
So what ?
--
signature-TK Thierry Kauffmann
Chef du Service Informatique // Faculté des Sciences // Université de
Montpellier 2
SIF - Service Informatique de la Faculté des Sciences
<http://sif.info-ufr.univ-montp2.fr/> UM2 - Université de Montpellier 2
<http://www.univ-montp2.fr/> Service informatique de la Faculté des
Sciences (SIF)
Université de Montpellier 2
CC437 // Place Eugène Bataillon // 34095 Montpellier Cedex 5
Tél : 04 67 14 31 58
email : thierry.kauffmann(a)univ-montp2.fr
<mailto:thierry.kauffmann@univ-montp2.fr>
web : http://sif.info-ufr.univ-montp2.fr/
http://www.fdsweb.univ-montp2.fr/
11 years, 9 months
[Users] UI Plugin iframe dialogs
by René Koch (ovido)
Hi,
I'm still working on my Nagios integration plugin and came across a
limitation of the UI plugin framework caused by iframes.
UI framework creates an iframe for each plugin, so the plugin code is
separated from the main oVirt webadmin code (and other plugins). When
creating a new (big) jQuery dialog in an sub tab-iframe (sub tab of
selected vm or host) it can't be displayed without scrolling in the sub
tab or resizing the sub tab (that's clear as it's displayed in an too
small iframe).
So it would be great if it would be possible to display dialogs in the
middle of the main windows and overlap the iframe (don't know if this is
possible). In short terms I want to create a dialog which behaves like
e.g. the "Setup Host Networks" or "Add Permission to User" dialogs ->
click on a link in the plugin iframe and dialog opens in the middle of
the website not the middle of the iframe.
What I found out so far is that:
1. I must be aware of the same origin policy (that's no problem)
2. I need to put my jQuery-dialog-code in the main oVirt windows and
then I can call it from within the iframe (that's my problem)
So my questions are:
Is it possible to place code outside of the iframe?
If not - are there plans to allow this in future releases?
Or maybe is there a workaround?
Thanks a lot,
René
11 years, 9 months
[Users] OS-independent ovirt-engine distribution archive
by Jiri Belka
Hello,
I'm very slowly working to make ovirt-engine running on a BSD system.
My problem is that I do it for fun and as my time resources are not big
I could not choose building ovirt-engine from sources as it would push
me to "port" (make packages) for all java dependencies. Yes, during
build maven cannot download Internet and build dependencies (for
security reasons).
Would be possible to have (another) distribution archive of
ovirt-engine which would be OS/distro-independent, so I could just
extract and copy it to filesystem for local jboss? (RPM packages can be
extracted with 'rpm2cpio' but their owners decided to make life very
complicated [many symlinks etc.]).
OS/distro-independent distribution archive (.zip, .tgz) would make life
much easiers for people wanting to have ovirt-engine running on a
non-RPM based Linux distro or on a BSD/Solaris system.
jbelka
11 years, 10 months
[Users] Flush old logs
by Nicolas Ecarnot
Hi,
I'd like first to thank people of this mailing list for there help and
advices - I learned a lot by reading your archive.
Here's a simple question : In the "Alerts" message queue at the bottom
of the screen, I see an error message dating from two weeks (about the
failure to verify to restart status of a host).
I'm pretty sure this shouldn't be there anymore, as the power management
of this host has already been tested and approved many times since.
I haven't find any trivial way to flush this message queue, and I was
wondering whether it was stored in a database?
Is there a way to clear these error messages?
(Am I right with the db location?)
Regards,
--
Nicolas Ecarnot
11 years, 10 months
[Users] VM migrations failing
by Dead Horse
Engine Build --> Commit: 82bdc46dfdb46b000f67f0cd4e51fc39665bf13b
VDSM Build: --> Commit: da89a27492cc7d5a84e4bb87652569ca8e0fb20e + patch
--> http://gerrit.ovirt.org/#/c/11492/
Engine Side:
2013-01-30 10:56:38,439 ERROR
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
(QuartzScheduler_Worker-70) Rerun vm 887d764a-f835-4112-9eda-836a772ea5eb.
Called from vds lostisles
2013-01-30 10:56:38,506 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusVDSCommand]
(pool-3-thread-49) START, MigrateStatusVDSCommand(HostName = lostisles,
HostId = e042b03b-dd4e-414c-be1a-b2c65ac000f5,
vmId=887d764a-f835-4112-9eda-836a772ea5eb), log id: 6556e75b
2013-01-30 10:56:38,510 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusVDSCommand]
(pool-3-thread-49) Failed in MigrateStatusVDS method
2013-01-30 10:56:38,510 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusVDSCommand]
(pool-3-thread-49) Error code migrateErr and error message
VDSGenericException: VDSErrorException: Failed to MigrateStatusVDS, error =
Fatal error during migration
2013-01-30 10:56:38,511 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusVDSCommand]
(pool-3-thread-49) Command
org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusVDSCommand return
value
StatusOnlyReturnForXmlRpc [mStatus=StatusForXmlRpc [mCode=12,
mMessage=Fatal error during migration]]
VDSM Side:
Thread-43670::ERROR::2013-01-30 10:56:37,052::vm::200::vm.Vm::(_recover)
vmId=`887d764a-f835-4112-9eda-836a772ea5eb`::this function is not supported
by the connection driver: virDomainMigrateToURI2
Thread-43670::ERROR::2013-01-30 10:56:37,513::vm::288::vm.Vm::(run)
vmId=`887d764a-f835-4112-9eda-836a772ea5eb`::Failed to migrate
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 273, in run
self._startUnderlyingMigration()
File "/usr/share/vdsm/libvirtvm.py", line 504, in
_startUnderlyingMigration
None, maxBandwidth)
File "/usr/share/vdsm/libvirtvm.py", line 540, in f
ret = attr(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line
111, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1103, in
migrateToURI2
if ret == -1: raise libvirtError ('virDomainMigrateToURI2() failed',
dom=self)
libvirtError: this function is not supported by the connection driver:
virDomainMigrateToURI2
GuestMonitor-sl63::DEBUG::2013-01-30
10:56:38,235::libvirtvm::307::vm.Vm::(_getDiskLatency)
vmId=`887d764a-f835-4112-9eda-836a772ea5eb`::Disk vda latency not available
- DHC
11 years, 10 months