Re: [ovirt-users] Spam Windows agent stand alone installer

2014-06-17 Thread Sandro Bonazzola
Il 14/06/2014 17:31, Maurice James ha scritto:
 
 I created a stand alone installer for windows 2008 all is well until I try to 
 run the installer. I get the following error
 
 The application has failed to start because its side-by-side configuration 
 is incorrect. Please see the event log or use the command-line
 sxstrace.exe for more detail
 
 The vent log says the exact same thing as the error above
 

Have you tried oVirt Windows Guest Tools ISO and/or exe?
See:
http://www.ovirt.org/Features/oVirt_Windows_Guest_Tools

You can download from:
exe: 
http://resources.ovirt.org/pub/ovirt-master-snapshot-static/exe/ovirt-guest-tools/ovirt-guest-tools-3.5-2.exe
iso: 
http://resources.ovirt.org/pub/ovirt-master-snapshot-static/iso/ovirt-guest-tools/ovirt-guest-tools-3.5-2.iso

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


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] feedback-on-oVirt-engine-3.4.2-1.el6 -- Network configuration issue with oVirt all is one sol

2014-06-17 Thread Sandro Bonazzola
Il 12/06/2014 15:06, Vikrant Pawar ha scritto:
 Hi,
 
  
 
 I tried to install oVirt on RHEL 6.4 with all in one package.
 
  
 
 I found single  in summary:
 
 [ INFO  ] Still waiting for VDSM host to become operational...
 
 [ ERROR ] Timed out while waiting for host to start. Please check the logs.

Hi Vikrant,
can you upload somewhere the host-deploy, vdsm, supervdsm and libvirt logs too?
Have you opened a BZ for this?



 
 [WARNING] Local storage domain not added because the VDSM host was not up. 
 Please add it manually.
 
 [ INFO  ] Restarting nfs services
 
  
 
 Went ahead restarted vsdm, login to admin portal.
 
  
 
 First Issue I observed that Storage is not accessible over NFS.
 
  
 
 Second issue is “Host local_host installation failed. Failed to configure 
 management network on the host.”

Yaniv, this look like the issue we've seen on hosted engine deploy but need 
vdsm log to confirm.


 
  
 
 I’m attaching installation log.
 
  
 
 Let me know if there are any workaround / How to revert all changes so that I 
 could try one – by – one installation of oVirt.

To revert changes you should just run engine-cleanup.

 
  
 
 Thanks,
 
 Vikrant Pawar
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Host Installation fails - Package openstack-neutron cannot be found

2014-06-17 Thread Sandro Bonazzola
Il 12/06/2014 12:25, Moti Asayag ha scritto:
 
 
 - Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: users users@ovirt.org
 Sent: Wednesday, June 11, 2014 10:25:37 AM
 Subject: [ovirt-users] Host Installation fails - Package openstack-neutron   
 cannot be found

 Hi All,

 I am trying to add a new Host, with External Network Provider - Neutron. Host
 installation fails in oVirt Engine with below error.

 
 What is the version of the neutron server you're using ?
 
 you can find repositories here:
 http://repos.fedorapeople.org/repos/openstack/openstack-havana/

If the above repository is now required in order to deploy hosts, please send a 
patch to ovirt-release project and/or open a BZ to be sure we enable
that repository by default.
Thanks.



 
 Please help me resolve this

 2014-06-11 12:54:34 ERROR otopi.plugins.otopi.packagers.yumpackager
 yumpackager.error:97 Yum Cannot queue package openstack-neutron: Package
 openstack-neutron cannot be found
 2014-06-11 12:54:34 DEBUG otopi.context context._executeMethod:152 method
 exception
 Traceback (most recent call last):
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/context.py, line 142, in
 _executeMethod
 method['method']()
 File
 /tmp/ovirt-YnooVggSrR/otopi-plugins/ovirt-host-deploy/openstack/neutron.py,
 line 81, in _packages
 self.packager.installUpdate(('openstack-neutron',))
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/packager.py, line 139, in
 installUpdate
 ignoreErrors=ignoreErrors,
 File /tmp/ovirt-YnooVggSrR/otopi-plugins/otopi/packagers/yumpackager.py,
 line 295, in install
 ignoreErrors=ignoreErrors
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 865, in install
 **kwargs
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 514, in _queue
 package=package,
 RuntimeError: Package openstack-neutron cannot be found
 2014-06-11 12:54:34 ERROR otopi.context context._executeMethod:161 Failed to
 execute stage 'Package installation': Package openstack-neutron cannot be
 found


 Thank you,

 Regards,
 Udaya Kiran

 ___
 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
 


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] feedback-on-oVirt-engine-3.4.2-1.el6 -- Network configuration issue with oVirt all is one sol

2014-06-17 Thread ybronhei

On 06/17/2014 10:23 AM, Sandro Bonazzola wrote:

Il 12/06/2014 15:06, Vikrant Pawar ha scritto:

Hi,



I tried to install oVirt on RHEL 6.4 with all in one package.



I found single  in summary:

[ INFO  ] Still waiting for VDSM host to become operational...

[ ERROR ] Timed out while waiting for host to start. Please check the logs.


Hi Vikrant,
can you upload somewhere the host-deploy, vdsm, supervdsm and libvirt logs too?
and will be great if you also attach your syslog's output 
(/var/log/messages)

Have you opened a BZ for this?





[WARNING] Local storage domain not added because the VDSM host was not up. 
Please add it manually.

[ INFO  ] Restarting nfs services



Went ahead restarted vsdm, login to admin portal.



First Issue I observed that Storage is not accessible over NFS.



Second issue is “Host local_host installation failed. Failed to configure 
management network on the host.”


Yaniv, this look like the issue we've seen on hosted engine deploy but need 
vdsm log to confirm.






I’m attaching installation log.



Let me know if there are any workaround / How to revert all changes so that I 
could try one – by – one installation of oVirt.


To revert changes you should just run engine-cleanup.
I guess he meant to revet to the old version. but I prefer to avoid 
that, lets check the logs and see how you can proceed






Thanks,

Vikrant Pawar



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







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


Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM

2014-06-17 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, June 17, 2014 8:46:19 AM
 Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
 
 Hi Moti,
 
 Sorry for the delayed response.
 
 The command neutron agent-list on the neutron server gives the alive status
 as xxx, for the neutron-ovs-agent that is installed on the oVirt Host.
  However, I am able to import the network from OpenStack into oVirt.
 
 The port for the mac_address assigned is already created in the neutron
 server. Therefore, when I try to add it again, it gives error, port already
 exists.
 
 How do I attach this port to the VM in oVirt.

In the ovirt-neutron integration the ports are allocated for the vm by ovirt.
The ovirt-engine creates the port on the neutron server and bind it to the
vm nic:
1. Click on the specific vm
2. Select the 'Vm Interfaces' sub tab
3. Add a vm interface, and select the profile/network of Net1 (the imported 
neutron
network).

At this point, you should see on your neutron server the created port (by 
'neutron port-list').
The mac address for that port will be the one selected by the engine.
You can provide your own custom mac address (as long it is unique).

Once the vm is started or if the nic was added while the vm is running 
(hotplug),
the vdsm-hook-openstacknet will wire the port to the integration bridge and
the neutron-ovs-agent will become aware of it.

Could you elaborate about your use-cases and what would you like to achieve
with ovirt-neutron ? 

You can also ping me (masayag) on #ovirt (oftc.net)

Regards,
Moti

 
 How do I interact with the neutron-ovs-agent to get the port and assign to
 oVirt VM.
 
 Please suggest your inputs.
 
 Thank You.
 
 Regards,
 Udaya Kiran
 
 
 On Wednesday, 28 May 2014 5:54 PM, Moti Asayag masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: users users@ovirt.org
  Sent: Wednesday, May 28, 2014 2:46:00 PM
  Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
  
  Hi All,
  
  I am working on Nova - oVirt driver. I was able to test the VM life cycle
  successfully - spawn, suspend, resume, shuttof, start and terminate.
  
  I am now exploring the Neutron integration in oVirt. I have imported the
  Network (Net1) form Openstack to oVirt.
  
  I get the below error when I try to add a NIC (for imported Net1) to the VM
  (created by Nova-oVirt driver), having the same MAC address which is
  assigned in Openstack (Port Details page).
  
  Error while executing action Add NIC to VM: Failed to communicate with the
  external provider.
  
  However, I am able to add a NIC with different MAC address.
  
  What changes needs to be done to add a NIC with MAC address as assigned by
  Neutron? Please suggest.
  
 
 Could you attach the neutron server log (/etc/neutron/server.log) from the
 external network provider ?
 
 
  I am using oVirt 3.4.0-1.fc19.
  
  Thank you.
  
  Regards,
  Udaya Kiran
  
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM

2014-06-17 Thread Udaya Kiran P
Hi Moti,

ThankYou for your inputs.

I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch new 
instance in OpenStack, internally VM should get created in oVirt Host, with the 
same mac address as assigned by OpenStack, get added to the same Network as 
selected in OpenStack. 

I am able to spawn a VM  and run through the complete the full lifecycle 
(spawn, pause, reboot, terminate etc). 

Now, I am looking at how can I add NIC with the same mac address. I see port is 
already been created at the OpenStack end.

Should I Hot plug it?

or

Prevent Neutron from creating port initially and later use the port created by 
the oVirt to Neutron? 

Please suggest your thoughts on this.


Regards,
Udaya Kiran


On Tuesday, 17 June 2014 2:33 PM, Moti Asayag masa...@redhat.com wrote:
 




- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, June 17, 2014 8:46:19 AM
 Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
 
 Hi Moti,
 
 Sorry for the delayed response.
 
 The command neutron agent-list on the neutron server gives the alive status
 as xxx, for the neutron-ovs-agent that is installed on the oVirt Host.
  However, I am able to import the network from OpenStack into oVirt.
 
 The port for the mac_address assigned is already created in the neutron
 server. Therefore, when I try to add it again, it gives error, port already
 exists.
 
 How do I attach this port to the VM in oVirt.

In the ovirt-neutron integration the ports are allocated for the vm by ovirt.
The ovirt-engine creates the port on the neutron server and bind it to the
vm nic:
1. Click on the specific vm
2. Select the 'Vm Interfaces' sub tab
3. Add a vm interface, and select the profile/network of Net1 (the imported 
neutron
network).

At this point, you should see on your neutron server the created port (by 
'neutron port-list').
The mac address for that port will be the one selected by the engine.
You can provide your own custom mac address (as long it is unique).

Once the vm is started or if the nic was added while the vm is running 
(hotplug),
the vdsm-hook-openstacknet will wire the port to the integration bridge and
the neutron-ovs-agent will become aware of it.

Could you elaborate about your use-cases and what would you like to achieve
with ovirt-neutron ? 

You can also ping me (masayag) on #ovirt (oftc.net)

Regards,

Moti

 
 How do I interact with the neutron-ovs-agent to get the port and assign to
 oVirt VM.
 
 Please suggest your inputs.
 
 Thank You.
 
 Regards,
 Udaya Kiran
 
 
 On Wednesday, 28 May 2014 5:54 PM, Moti Asayag masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: users users@ovirt.org
  Sent: Wednesday, May 28, 2014 2:46:00 PM
  Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
  
  Hi All,
  
  I am working on Nova - oVirt driver. I was able to test the VM life cycle
  successfully - spawn, suspend, resume, shuttof, start and terminate.
  
  I am now exploring the Neutron integration in oVirt. I have imported the
  Network (Net1) form Openstack to oVirt.
  
  I get the below error when I try to add a NIC (for imported Net1) to the VM
  (created by Nova-oVirt driver), having the same MAC address which is
  assigned in Openstack (Port Details page).
  
  Error while executing action Add NIC to VM: Failed to communicate with the
  external provider.
  
  However, I am able to add a NIC with different MAC address.
  
  What changes needs to be done to add a NIC with MAC address as assigned by
  Neutron? Please suggest.
  
 
 Could you attach the neutron server log (/etc/neutron/server.log) from the
 external network provider ?
 
 
  I am using oVirt 3.4.0-1.fc19.
  
  Thank you.
  
  Regards,
  Udaya Kiran
  
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Lowering cluster CPU level : safe?

2014-06-17 Thread Nicolas Ecarnot

Hi,

I'm trying to add some Westmere hosts into a Sandybridge cluster, and of 
course, they get refused :


Host x moved to Non-Operational state as host does not meet the 
cluster's minimum CPU level. Missing CPU features : model_SandyBridge


I tried to lower the cluster level but I get this warning :
Change Cluster CPU level
There are running VMs. Lowering the Cluster CPU level might prevent 
migration of these VMs to some of the Hosts in the Cluster. Are you sure 
you want to continue?


As a frightened chicken, I clicked Cancel and turned to you : how safe 
is it to lower the CPU level?
I understand some instructions will be missing, and maybe performance 
will change, but we don't have heavy CPU usage yet, so this may not be a 
big issue.

I was wondering what will happen to my existing VMs?
Will I have to modify some setup?
What may prevent migration between westmere and sandybridge hosts?

Regards,

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


Re: [ovirt-users] fail to shutdown ubuntu guest

2014-06-17 Thread Vinzenz Feenstra

On 06/17/2014 11:59 AM, Dan Kenigsberg wrote:

On Tue, Jun 17, 2014 at 09:40:08AM +0800, John Xue wrote:

Yes, it is possible an agent bug.
#cat /etc/sudoers.d/50_ovirt-guest-agent
Cmnd_Alias OVIRTAGENT_SCRIPTS =\
 /usr/share/ovirt-guest-agent/ovirt-hibernate-wrapper.sh *,\
 /usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.h *,\
 /usr/share/ovirt-guest-agent/ovirt-locksession-wrapper.sh

ovirtagent ALL= NOPASSWD: OVIRTAGENT_SCRIPTS
Defaults:ovirtagent !requiretty
Defaults:ovirtagent !syslog

Wrong file name in
/usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.h, should be
sh.

Thanks, seems like an easy fix. Could you verify that
http://gerrit.ovirt.org/28842 solves the issue?

Thanks, I did not realize that. Thanks for the commit.

--
Regards,

Vinzenz Feenstra | Senior Software Engineer
RedHat Engineering Virtualization R  D
Phone: +420 532 294 625
IRC: vfeenstr or evilissimo

Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com

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


[ovirt-users] VM deletion issue

2014-06-17 Thread Pat Pierson
I am running ovirt 3.3.2 and gluster 3.4 and recently had a pretty
catastrophic failure of my small 3 node cluster.  Long story short I lost
the disk to a VM and decided to delete (start over with) now magically
re-appears as external-vmname.  When I attempt to delete it again, it
deletes, but then shows up some time later.  If I try to run the vm I get
the following popup error in the ovirt admin ui:


Error while executing action:

external-vmname:

Cannot run VM. This VM is not managed by the engine.



Has anyone seen this before? Any pointers on where to look for more
information?


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


Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM

2014-06-17 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, June 17, 2014 12:37:23 PM
 Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
 
 Hi Moti,
 
 ThankYou for your inputs.
 
 I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch
 new instance in OpenStack, internally VM should get created in oVirt Host,
 with the same mac address as assigned by OpenStack, get added to the same
 Network as selected in OpenStack.
 
 I am able to spawn a VM  and run through the complete the full lifecycle
 (spawn, pause, reboot, terminate etc).
 
 Now, I am looking at how can I add NIC with the same mac address. I see port
 is already been created at the OpenStack end.
 
 Should I Hot plug it?
 
 or
 
 Prevent Neutron from creating port initially and later use the port created
 by the oVirt to Neutron?

This seems like the right approach.

 
 Please suggest your thoughts on this.
 
 
 Regards,
 Udaya Kiran
 
 
 On Tuesday, 17 June 2014 2:33 PM, Moti Asayag masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: Moti Asayag masa...@redhat.com
  Cc: users users@ovirt.org
  Sent: Tuesday, June 17, 2014 8:46:19 AM
  Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
  
  Hi Moti,
  
  Sorry for the delayed response.
  
  The command neutron agent-list on the neutron server gives the alive status
  as xxx, for the neutron-ovs-agent that is installed on the oVirt Host.
   However, I am able to import the network from OpenStack into oVirt.
  
  The port for the mac_address assigned is already created in the neutron
  server. Therefore, when I try to add it again, it gives error, port already
  exists.
  
  How do I attach this port to the VM in oVirt.
 
 In the ovirt-neutron integration the ports are allocated for the vm by ovirt.
 The ovirt-engine creates the port on the neutron server and bind it to the
 vm nic:
 1. Click on the specific vm
 2. Select the 'Vm Interfaces' sub tab
 3. Add a vm interface, and select the profile/network of Net1 (the imported
 neutron
 network).
 
 At this point, you should see on your neutron server the created port (by
 'neutron port-list').
 The mac address for that port will be the one selected by the engine.
 You can provide your own custom mac address (as long it is unique).
 
 Once the vm is started or if the nic was added while the vm is running
 (hotplug),
 the vdsm-hook-openstacknet will wire the port to the integration bridge and
 the neutron-ovs-agent will become aware of it.
 
 Could you elaborate about your use-cases and what would you like to achieve
 with ovirt-neutron ?
 
 You can also ping me (masayag) on #ovirt (oftc.net)
 
 Regards,
 
 Moti
 
  
  How do I interact with the neutron-ovs-agent to get the port and assign to
  oVirt VM.
  
  Please suggest your inputs.
  
  Thank You.
  
  Regards,
  Udaya Kiran
  
  
  On Wednesday, 28 May 2014 5:54 PM, Moti Asayag masa...@redhat.com wrote:
   
  
  
  
  
  - Original Message -
   From: Udaya Kiran P ukiran...@yahoo.in
   To: users users@ovirt.org
   Sent: Wednesday, May 28, 2014 2:46:00 PM
   Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
   
   Hi All,
   
   I am working on Nova - oVirt driver. I was able to test the VM life cycle
   successfully - spawn, suspend, resume, shuttof, start and terminate.
   
   I am now exploring the Neutron integration in oVirt. I have imported the
   Network (Net1) form Openstack to oVirt.
   
   I get the below error when I try to add a NIC (for imported Net1) to the
   VM
   (created by Nova-oVirt driver), having the same MAC address which is
   assigned in Openstack (Port Details page).
   
   Error while executing action Add NIC to VM: Failed to communicate with
   the
   external provider.
   
   However, I am able to add a NIC with different MAC address.
   
   What changes needs to be done to add a NIC with MAC address as assigned
   by
   Neutron? Please suggest.
   
  
  Could you attach the neutron server log (/etc/neutron/server.log) from the
  external network provider ?
  
  
   I am using oVirt 3.4.0-1.fc19.
   
   Thank you.
   
   Regards,
   Udaya Kiran
   
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
  
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] fail to shutdown ubuntu guest

2014-06-17 Thread Sven Kieske
When will a rebuilt deb be available for ubuntu 12.04 ?
when was this defect introduced?
should I patch my ubuntu vms?

Am 17.06.2014 12:18, schrieb Vinzenz Feenstra:
 On 06/17/2014 11:59 AM, Dan Kenigsberg wrote:
 On Tue, Jun 17, 2014 at 09:40:08AM +0800, John Xue wrote:
 Yes, it is possible an agent bug.
 #cat /etc/sudoers.d/50_ovirt-guest-agent
 Cmnd_Alias OVIRTAGENT_SCRIPTS =\
  /usr/share/ovirt-guest-agent/ovirt-hibernate-wrapper.sh *,\
  /usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.h *,\
  /usr/share/ovirt-guest-agent/ovirt-locksession-wrapper.sh

 ovirtagent ALL= NOPASSWD: OVIRTAGENT_SCRIPTS
 Defaults:ovirtagent !requiretty
 Defaults:ovirtagent !syslog

 Wrong file name in
 /usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.h, should be
 sh.
 Thanks, seems like an easy fix. Could you verify that
 http://gerrit.ovirt.org/28842 solves the issue?
 Thanks, I did not realize that. Thanks for the commit.
 

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM

2014-06-17 Thread Udaya Kiran P
Hi Moti,

Few more thoughts..

1) Can I bypass the ovirt-neutron driver,  to make ovirt to add NIC only within 
it and not going to OpenStack - as to avoid port already exists error?

2) Delete the port created  by OpenStack, in my driver code and recreate same 
via oVirt by allow it to be created through oVirt?


Please suggest your inputs.


Thanks much.

Regards,
Udaya Kiran


On Tuesday, 17 June 2014 4:55 PM, Moti Asayag masa...@redhat.com wrote:
 




- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, June 17, 2014 12:37:23 PM
 Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
 
 Hi Moti,
 
 ThankYou for your inputs.
 
 I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch
 new instance in OpenStack, internally VM should get created in oVirt Host,
 with the same mac address as assigned by OpenStack, get added to the same
 Network as selected in OpenStack.
 
 I am able to spawn a VM  and run through the complete the full lifecycle
 (spawn, pause, reboot, terminate etc).
 
 Now, I am looking at how can I add NIC with the same mac address. I see port
 is already been created at the OpenStack end.
 
 Should I Hot plug it?
 
 or
 
 Prevent Neutron from creating port initially and later use the port created
 by the oVirt to Neutron?

This seems like the right approach.


 
 Please suggest your thoughts on this.
 
 
 Regards,
 Udaya Kiran
 
 
 On Tuesday, 17 June 2014 2:33 PM, Moti Asayag masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: Moti Asayag masa...@redhat.com
  Cc: users users@ovirt.org
  Sent: Tuesday, June 17, 2014 8:46:19 AM
  Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
  
  Hi Moti,
  
  Sorry for the delayed response.
  
  The command neutron agent-list on the neutron server gives the alive status
  as xxx, for the neutron-ovs-agent that is installed on the oVirt Host.
   However, I am able to import the network from OpenStack into oVirt.
  
  The port for the mac_address assigned is already created in the neutron
  server. Therefore, when I try to add it again, it gives error, port already
  exists.
  
  How do I attach this port to the VM in oVirt.
 
 In the ovirt-neutron integration the ports are allocated for the vm by ovirt.
 The ovirt-engine creates the port on the neutron server and bind it to the
 vm nic:
 1. Click on the specific vm
 2. Select the 'Vm Interfaces' sub tab
 3. Add a vm interface, and select the profile/network of Net1 (the imported
 neutron
 network).
 
 At this point, you should see on your neutron server the created port (by
 'neutron port-list').
 The mac address for that port will be the one selected by the engine.
 You can provide your own custom mac address (as long it is unique).
 
 Once the vm is started or if the nic was added while the vm is running
 (hotplug),
 the vdsm-hook-openstacknet will wire the port to the integration bridge and
 the neutron-ovs-agent will become aware of it.
 
 Could you elaborate about your use-cases and what would you like to achieve
 with ovirt-neutron ?
 
 You can also ping me (masayag) on #ovirt (oftc.net)
 
 Regards,
 
 Moti
 
  
  How do I interact with the neutron-ovs-agent to get the port and assign to
  oVirt VM.
  
  Please suggest your inputs.
  
  Thank You.
  
  Regards,
  Udaya Kiran
  
  
  On Wednesday, 28 May 2014 5:54 PM, Moti Asayag masa...@redhat.com wrote:
   
  
  
  
  
  - Original Message -
   From: Udaya Kiran P ukiran...@yahoo.in
   To: users users@ovirt.org
   Sent: Wednesday, May 28, 2014 2:46:00 PM
   Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
   
   Hi All,
   
   I am working on Nova - oVirt driver. I was able to test the VM life cycle
   successfully - spawn, suspend, resume, shuttof, start and terminate.
   
   I am now exploring the Neutron integration in oVirt. I have imported the
   Network (Net1) form Openstack to oVirt.
   
   I get the below error when I try to add a NIC (for imported Net1) to the
   VM
   (created by Nova-oVirt driver), having the same MAC address which is
   assigned in Openstack (Port Details page).
   
   Error while executing action Add NIC to VM: Failed to communicate with
   the
   external provider.
   
   However, I am able to add a NIC with different MAC address.
   
   What changes needs to be done to add a NIC with MAC address as assigned
   by
   Neutron? Please suggest.
   
  
  Could you attach the neutron server log (/etc/neutron/server.log) from the
  external network provider ?
  
  
   I am using oVirt 3.4.0-1.fc19.
   
   Thank you.
   
   Regards,
   Udaya Kiran
   
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
  ___
Users mailing list
Users@ovirt.org

Re: [ovirt-users] fail to shutdown ubuntu guest

2014-06-17 Thread Vinzenz Feenstra

On 06/17/2014 01:52 PM, Sven Kieske wrote:

When will a rebuilt deb be available for ubuntu 12.04 ?
when was this defect introduced?
should I patch my ubuntu vms?

With the switch to sudo. So basically it'd be a good idea to patch them.
As soon we have have the linked patch verified I can go and merge it and 
submit it for ovirt-3.4 and apply the patch on all builds using sudo.


Am 17.06.2014 12:18, schrieb Vinzenz Feenstra:

On 06/17/2014 11:59 AM, Dan Kenigsberg wrote:

On Tue, Jun 17, 2014 at 09:40:08AM +0800, John Xue wrote:

Yes, it is possible an agent bug.
#cat /etc/sudoers.d/50_ovirt-guest-agent
Cmnd_Alias OVIRTAGENT_SCRIPTS =\
  /usr/share/ovirt-guest-agent/ovirt-hibernate-wrapper.sh *,\
  /usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.h *,\
  /usr/share/ovirt-guest-agent/ovirt-locksession-wrapper.sh

ovirtagent ALL= NOPASSWD: OVIRTAGENT_SCRIPTS
Defaults:ovirtagent !requiretty
Defaults:ovirtagent !syslog

Wrong file name in
/usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.h, should be
sh.

Thanks, seems like an easy fix. Could you verify that
http://gerrit.ovirt.org/28842 solves the issue?

Thanks, I did not realize that. Thanks for the commit.




--
Regards,

Vinzenz Feenstra | Senior Software Engineer
RedHat Engineering Virtualization R  D
Phone: +420 532 294 625
IRC: vfeenstr or evilissimo

Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com

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


[ovirt-users] Upgrade to 3.4.2 failed

2014-06-17 Thread Demeter Tibor
Hi, 

I just did an upgrade to my 3.4.0 box. 
I did a yum update and an engine-setup 
After the package downloading process got this: 


[ INFO ] Yum Verify: 14/14: ovirt-engine.noarch 0:3.4.0-1.el6 - ud 
[ INFO ] Stage: Misc configuration 
[ INFO ] Backing up database localhost:engine_20140130075536 to 
'/var/lib/ovirt-engine/backups/engine-20140617140129.QZGO9x.dump'. 
[ INFO ] Updating Engine database schema 
[ ERROR ] Failed to execute stage 'Misc configuration': Command 
'/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute 
[ INFO ] Yum Performing yum transaction rollback 
[ INFO ] Yum Status: Downloading Packages 
[ INFO ] Yum Download/Verify: ovirt-engine-3.4.0-1.el6.noarch 

A cut from the log file: 

running upgrade sql script 
upgrade/03_04_0720_add_host_interface_high_network_use_event.sql ...
Running upgrade sql script upgrade/03_04_0730_change_group_ids.sql ...
Running upgrade sql script upgrade/03_04_0740_update_user_ids.sql ...

2014-06-17 14:01:41 DEBUG 
otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema plugin.execute:866 
execute-output: ['/usr/share/ovirt-engine/dbscripts/upgrade.sh', '-s', 
'localhost',
'-p', '5432', '-u', 'engine_20140130075536', '-d', 'engine_20140130075536', 
'-l', 
'/var/log/ovirt-engine/setup/ovirt-engine-setup-20140617135909-a7zbn6.log', 
'-g'] stderr:
psql:upgrade/03_04_0740_update_user_ids.sql:41: ERROR:  duplicate key value 
violates unique constraint pk_users
CONTEXT:  SQL statement UPDATE users SET user_id = temp_id
PL/pgSQL function __temp_update_user_ids_03_04_0740 line 30 at SQL statement

2014-06-17 14:01:41 DEBUG otopi.context context._executeMethod:152 method 
exception
Traceback (most recent call last):
  File /usr/lib/python2.6/site-packages/otopi/context.py, line 142, in 
_executeMethod
method['method']()
  File 
/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/db/schema.py,
 line 345, in _miscUpgrade
osetupcons.DBEnv.PGPASS_FILE
  File /usr/lib/python2.6/site-packages/otopi/plugin.py, line 871, in execute
command=args[0],
RuntimeError: Command '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to 
execute
2014-06-17 14:01:41 ERROR otopi.context context._executeMethod:161 Failed to 
execute stage 'Misc configuration': Command 
'/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute
2014-06-17 14:01:41 DEBUG otopi.transaction transaction.abort:131 aborting 'Yum 
Transaction'
2014-06-17 14:01:41 INFO otopi.plugins.otopi.packagers.yumpackager 
yumpackager.info:92 Yum Performing yum transaction rollback
2014-06-17 14:01:41 DEBUG otopi.plugins.otopi.packagers.yumpackager 
yumpackager.verbose:88 Yum Building transaction
2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager 
yumpackager.verbose:88 Yum Transaction built
2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager 
yumpackager.verbose:88 Yum Transaction Summary:
2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager 
yumpackager.verbose:88 Yum install- ovirt-engine-3.4.0-1.el6.noarch


Anybody help me?

Thanks in advance

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


Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM

2014-06-17 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, June 17, 2014 2:51:26 PM
 Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
 
 Hi Moti,
 
 Few more thoughts..
 
 1) Can I bypass the ovirt-neutron driver,  to make ovirt to add NIC only
 within it and not going to OpenStack - as to avoid port already exists
 error?
 

This isn't supported by ovirt. In order to ovirt to handle the nic properly
it should be created by it.

I'm not familiar with Nova-ovirt integration - noticed there is an unimplemented
blueprint [1] and a PoC [2].

Which Nova-ovirt driver are you using ? 

[1] 
https://blueprints.launchpad.net/nova/+spec/rhev-m-ovirt-clusters-as-compute-resources
[2] https://github.com/oourfali/openstack-ovirt-driver

 2) Delete the port created  by OpenStack, in my driver code and recreate same
 via oVirt by allow it to be created through oVirt?
 

Ignoring the driver for a second: Creating the vnic from within oVirt will 
create it
on neutron.

So if the issue is a taken mac address on neutron, removing the port from 
neutron and
recreating it by ovirt should work.

 
 Please suggest your inputs.
 
 
 Thanks much.
 
 Regards,
 Udaya Kiran
 
 
 On Tuesday, 17 June 2014 4:55 PM, Moti Asayag masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: Moti Asayag masa...@redhat.com
  Cc: users users@ovirt.org
  Sent: Tuesday, June 17, 2014 12:37:23 PM
  Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
  
  Hi Moti,
  
  ThankYou for your inputs.
  
  I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch
  new instance in OpenStack, internally VM should get created in oVirt Host,
  with the same mac address as assigned by OpenStack, get added to the same
  Network as selected in OpenStack.
  
  I am able to spawn a VM  and run through the complete the full lifecycle
  (spawn, pause, reboot, terminate etc).
  
  Now, I am looking at how can I add NIC with the same mac address. I see
  port
  is already been created at the OpenStack end.
  
  Should I Hot plug it?
  
  or
  
  Prevent Neutron from creating port initially and later use the port created
  by the oVirt to Neutron?
 
 This seems like the right approach.
 
 
  
  Please suggest your thoughts on this.
  
  
  Regards,
  Udaya Kiran
  
  
  On Tuesday, 17 June 2014 2:33 PM, Moti Asayag masa...@redhat.com wrote:
   
  
  
  
  
  - Original Message -
   From: Udaya Kiran P ukiran...@yahoo.in
   To: Moti Asayag masa...@redhat.com
   Cc: users users@ovirt.org
   Sent: Tuesday, June 17, 2014 8:46:19 AM
   Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
   
   Hi Moti,
   
   Sorry for the delayed response.
   
   The command neutron agent-list on the neutron server gives the alive
   status
   as xxx, for the neutron-ovs-agent that is installed on the oVirt Host.
    However, I am able to import the network from OpenStack into oVirt.
   
   The port for the mac_address assigned is already created in the neutron
   server. Therefore, when I try to add it again, it gives error, port
   already
   exists.
   
   How do I attach this port to the VM in oVirt.
  
  In the ovirt-neutron integration the ports are allocated for the vm by
  ovirt.
  The ovirt-engine creates the port on the neutron server and bind it to the
  vm nic:
  1. Click on the specific vm
  2. Select the 'Vm Interfaces' sub tab
  3. Add a vm interface, and select the profile/network of Net1 (the imported
  neutron
  network).
  
  At this point, you should see on your neutron server the created port (by
  'neutron port-list').
  The mac address for that port will be the one selected by the engine.
  You can provide your own custom mac address (as long it is unique).
  
  Once the vm is started or if the nic was added while the vm is running
  (hotplug),
  the vdsm-hook-openstacknet will wire the port to the integration bridge and
  the neutron-ovs-agent will become aware of it.
  
  Could you elaborate about your use-cases and what would you like to achieve
  with ovirt-neutron ?
  
  You can also ping me (masayag) on #ovirt (oftc.net)
  
  Regards,
  
  Moti
  
   
   How do I interact with the neutron-ovs-agent to get the port and assign
   to
   oVirt VM.
   
   Please suggest your inputs.
   
   Thank You.
   
   Regards,
   Udaya Kiran
   
   
   On Wednesday, 28 May 2014 5:54 PM, Moti Asayag masa...@redhat.com
   wrote:
    
   
   
   
   
   - Original Message -
From: Udaya Kiran P ukiran...@yahoo.in
To: users users@ovirt.org
Sent: Wednesday, May 28, 2014 2:46:00 PM
Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM

Hi All,

I am working on Nova - oVirt driver. I was able to test the VM life
cycle
successfully - spawn, suspend, resume, shuttof, start and terminate.

I am now exploring the 

Re: [ovirt-users] Upgrade to 3.4.2 failed

2014-06-17 Thread Yedidyah Bar David
- Original Message -
 From: Demeter Tibor tdeme...@itsmart.hu
 To: users@ovirt.org
 Sent: Tuesday, June 17, 2014 3:11:54 PM
 Subject: [ovirt-users] Upgrade to 3.4.2 failed
 
 Hi,
 
 I just did an upgrade to my 3.4.0 box.
 I did a yum update and an engine-setup
 After the package downloading process got this:
 
 
 [ INFO ] Yum Verify: 14/14: ovirt-engine.noarch 0:3.4.0-1.el6 - ud
 [ INFO ] Stage: Misc configuration
 [ INFO ] Backing up database localhost:engine_20140130075536 to
 '/var/lib/ovirt-engine/backups/engine-20140617140129.QZGO9x.dump'.
 [ INFO ] Updating Engine database schema
 [ ERROR ] Failed to execute stage 'Misc configuration': Command
 '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute
 [ INFO ] Yum Performing yum transaction rollback
 [ INFO ] Yum Status: Downloading Packages
 [ INFO ] Yum Download/Verify: ovirt-engine-3.4.0-1.el6.noarch
 
 A cut from the log file:
 
 running upgrade sql script
 upgrade/03_04_0720_add_host_interface_high_network_use_event.sql ...
 Running upgrade sql script upgrade/03_04_0730_change_group_ids.sql ...
 Running upgrade sql script upgrade/03_04_0740_update_user_ids.sql ...
 
 2014-06-17 14:01:41 DEBUG
 otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema plugin.execute:866
 execute-output: ['/usr/share/ovirt-engine/dbscripts/upgrade.sh', '-s',
 'localhost',
 '-p', '5432', '-u', 'engine_20140130075536', '-d', 'engine_20140130075536',
 '-l',
 '/var/log/ovirt-engine/setup/ovirt-engine-setup-20140617135909-a7zbn6.log',
 '-g'] stderr:
 psql:upgrade/03_04_0740_update_user_ids.sql:41: ERROR:  duplicate key value
 violates unique constraint pk_users
 CONTEXT:  SQL statement UPDATE users SET user_id = temp_id
 PL/pgSQL function __temp_update_user_ids_03_04_0740 line 30 at SQL
 statement
 
 2014-06-17 14:01:41 DEBUG otopi.context context._executeMethod:152 method
 exception
 Traceback (most recent call last):
   File /usr/lib/python2.6/site-packages/otopi/context.py, line 142, in
   _executeMethod
 method['method']()
   File
   
 /usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/db/schema.py,
   line 345, in _miscUpgrade
 osetupcons.DBEnv.PGPASS_FILE
   File /usr/lib/python2.6/site-packages/otopi/plugin.py, line 871, in
   execute
 command=args[0],
 RuntimeError: Command '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed
 to execute
 2014-06-17 14:01:41 ERROR otopi.context context._executeMethod:161 Failed to
 execute stage 'Misc configuration': Command
 '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute
 2014-06-17 14:01:41 DEBUG otopi.transaction transaction.abort:131 aborting
 'Yum Transaction'
 2014-06-17 14:01:41 INFO otopi.plugins.otopi.packagers.yumpackager
 yumpackager.info:92 Yum Performing yum transaction rollback
 2014-06-17 14:01:41 DEBUG otopi.plugins.otopi.packagers.yumpackager
 yumpackager.verbose:88 Yum Building transaction
 2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager
 yumpackager.verbose:88 Yum Transaction built
 2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager
 yumpackager.verbose:88 Yum Transaction Summary:
 2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager
 yumpackager.verbose:88 Yum install- ovirt-engine-3.4.0-1.el6.noarch
 
 
 Anybody help me?
 

Is it possible that you use an external directory and have two users
pointing at the same directory user?

Does the following query return anything?

select count(*), external_id from users group by external_id having count(*)1;
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM deletion issue

2014-06-17 Thread Pat Pierson
Maor,
Thanks for the response.  I only have 14 qemu processes and all are
properly named to VMs I am tracking in the ovirt admin ui.  Is there a
posibility that the ovirt admin ui is still tracking it somehow?


On Tue, Jun 17, 2014 at 7:53 AM, Maor Lipchuk mlipc...@redhat.com wrote:

 It looks like the qemu process is still running on your host.
 can you see which host the VM is running on? can you try to log in the
 host and check if there are any qemu processes running there.

 regards,
 Maor


 On 06/17/2014 01:32 PM, Pat Pierson wrote:
  I am running ovirt 3.3.2 and gluster 3.4 and recently had a pretty
  catastrophic failure of my small 3 node cluster.  Long story short I
  lost the disk to a VM and decided to delete (start over with) now
  magically re-appears as external-vmname.  When I attempt to delete it
  again, it deletes, but then shows up some time later.  If I try to run
  the vm I get the following popup error in the ovirt admin ui:
 
  
  Error while executing action:
 
  external-vmname:
 
  Cannot run VM. This VM is not managed by the engine.
  
 
 
  Has anyone seen this before? Any pointers on where to look for more
  information?
 
 
  --
  Patrick Pierson
 
 
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 




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


Re: [ovirt-users] Spam Connect Automatically

2014-06-17 Thread Alexander Wels
On Tuesday, June 17, 2014 10:44:48 AM Maurice James wrote:
 What does the connect automatically on the user portal login page actually
 used for?

IIRC, If you have *ONE* VM running for the user you log in as, it will 
automatically launch the console connection for you, so the user won't have to 
manually connect. This only works if the user has ONE running VM.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Spam Connect Automatically

2014-06-17 Thread Maurice James

What does the connect automatically on the user portal login page actually 
used for? 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Script to determine which Hypervisor a VM is running on

2014-06-17 Thread Citros Airv
Hi,

I'm checking to see if someone has a script to determine where a VM is
running preferably with the shell?

Thanks,

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


[ovirt-users] Spam Re: Spam Connect Automatically

2014-06-17 Thread Maurice James
Thanks. It would be useful if you could select which VM automatically connects 

- Original Message -
From: Alexander Wels aw...@redhat.com
To: users@ovirt.org
Cc: Maurice James mja...@media-node.com
Sent: Tuesday, June 17, 2014 10:48:11 AM
Subject: Re: [ovirt-users] Spam  Connect Automatically

On Tuesday, June 17, 2014 10:44:48 AM Maurice James wrote:
 What does the connect automatically on the user portal login page actually
 used for?

IIRC, If you have *ONE* VM running for the user you log in as, it will 
automatically launch the console connection for you, so the user won't have to 
manually connect. This only works if the user has ONE running VM.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Script to determine which Hypervisor a VM is running on

2014-06-17 Thread John Gardeniers
Hi Citros,

I have this Python script I wrote to get VM information from Red Hat
Virtualization which I believe should work for Ovirt as well. I should
point out that I'm not a Python user normally and actually hate the
language. If the formatting gets screwed I can email you a copy.

To use it either run it without parameters to get a list of all VMs or
run it with -n vm_name (case sensitive) to list just a single VM.

[code]
#! /usr/bin/python

from __future__ import division
from ovirtsdk.api import API
from ovirtsdk.xml import params
from optparse import OptionParser
import os
import sys
import urllib

## Edit the following three items as necesary
rhevman = 'https://your_rhev_manager'
user = 'admin@internal'
password = 'user_password'

cert = '/tmp/rhevm.cer'

## Format numbers
def factor(value):
str = 'Bytes'
if (value = 1024):
value /= 1024
str = 'KB'
if (value = 1024):
value /= 1024
str = 'MB'
if (value = 1024):
value /= 1024
str = 'GB'
return '%s %s' % (('%f' % value).rstrip('0').rstrip('.'), str)

## Ensure we have the server ca certificate
if (not os.path.isfile(cert)):
print Certificate file not found. Trying to download it.
urllib.urlretrieve (rhevman + '/ca.crt', cert)

## Find out what is being asked for
vmname = ''
parser = OptionParser()
parser.add_option('-n', '--name', dest='vmname', default='',
action='store', help='Specify the name of a single VM (case sensitive)')
(options, args) = parser.parse_args()
vmname = options.vmname
hostnames = {}

try:
## Connect to the API
api = API (url=rhevman, username=user, password=password, ca_file=cert)

try:
## Get the list of hypervisors for use later on
for host in api.hosts.list():
hostnames[host.id] = host.name

## Are we after a single VM or the entire list?
if (len(vmname)  0):
print 'Retrieving information for %s' % vmname
vmsList = api.vms.list(query = 'name=%s' % vmname)
else:
print 'Retrieving information for all VMs'
vmsList = api.vms.list(max = -1)
print 'Found %d VMs' % len(vmsList)

# Get the VM details
for instance in vmsList:
address=[]
print '\nVM: %s' % instance.name
host = instance.get_host()
print '\tState: %s\n\tDescription: %s\n\tComment: %s' %
(instance.status.state, instance.description, instance.comment)

if (host):
print '\tHost: %s' % hostnames[host.id]

createtime = instance.get_creation_time()
print '\tCreated: %s' % createtime
starttime = instance.get_start_time()
print '\tStarted: %s' % starttime
cpu = instance.get_cpu()
print '\tCPU: %s (%s sockets, %s cores)' %
(cpu.topology.sockets*cpu.topology.cores, cpu.topology.sockets,
cpu.topology.cores)
ram = instance.get_memory()
print '\tRAM: %s' % factor(ram)
disks = instance.get_disks().list()

for disk in disks:
print '\tDisk: %s %s' % (disk.name, factor(disk.size))

if ((instance.status.state == 'up') and
instance.get_guest_info()):
vmnics= instance.get_nics().list()
ips = instance.get_guest_info().get_ips().get_ip()

for card in vmnics:
print '\tInterface: %s, MAC address: %s' %
(card.name, card.mac.address)

for ip in ips:
address.append(ip.get_address())
print '\tIP: %s' % ( ip.get_address())

except Exception as e:
print ' Exception:\n%s' % str(e)

api.disconnect()

except Exception as ex:
print 'Unexpected error: %s' % ex
[/code]

regards,
John


On 18/06/14 00:59, Citros Airv wrote:
 Hi,

 I'm checking to see if someone has a script to determine where a VM is
 running preferably with the shell?

 Thanks,

 VS

 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __


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

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


[ovirt-users] Help....

2014-06-17 Thread Koen Vanoppen
This happend after the update to 3.4.2 when I start the engine. I can't
login anymore... This is the error. Any Idea's? PLease

2014-06-18 06:51:45,728 ERROR
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
(DefaultQuartzScheduler_Worker-79) ResourceManager::refreshVdsRunTimeInfo:
Error: IllegalStateException: JBAS011049: Component is stopped, vds =
b34902ea-ad11-45d3-96ee-47de1864e4e0 : mercury1
2014-06-18 06:51:45,736 ERROR
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
(DefaultQuartzScheduler_Worker-79) IllegalStateException: JBAS011049:
Component is stopped: java.lang.IllegalStateException: JBAS011049:
Component is stopped
at
org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:104)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:127)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.component.stateless.StatelessSessionComponent$1.create(StatelessSessionComponent.java:66)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.component.stateless.StatelessSessionComponent$1.create(StatelessSessionComponent.java:63)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.pool.AbstractPool.create(AbstractPool.java:60)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.pool.strictmax.StrictMaxPool.get(StrictMaxPool.java:123)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:47)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:211)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:363)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:194)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.ovirt.engine.core.common.businessentities.IVdsEventListener$$$view6.addExternallyManagedVms(Unknown
Source)
at
org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.saveDataToDb(VdsUpdateRunTimeInfo.java:175)
[vdsbroker.jar:]
at
org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.refresh(VdsUpdateRunTimeInfo.java:359)
[vdsbroker.jar:]
at
org.ovirt.engine.core.vdsbroker.VdsManager.onTimer(VdsManager.java:231)
[vdsbroker.jar:]
at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
[:1.7.0_51]
at

Re: [ovirt-users] [solved] Problems after changing Compatibillity Version

2014-06-17 Thread Michael Wagenknecht
Hi,
I solved the problem.
the kvm packages were too old. They didn't support rhel6.5.0.

Regards,
Michael



Am 17.06.2014 11:00, schrieb Michael Wagenknecht:
 Hi,
 after upgrading oVirt engine and nodes to 3.4.2, I changed the
 compatibillity version of my Cluster to 3.4. Everything was working
 fine. Then I change the compatibillity version of the Data Center to
 3.4. the guests are running but the nodes goes to status None Operational.
 
 In the Events I get the following message:
 Host ovirt01 does not comply with the cluster FUH emulated machines. The
 Hosts emulated machines are
 rhel6.4.0,pc,rhel6.3.0,rhel6.2.0,rhel6.1.0,rhel6.0.0,rhel5.5.0,rhel5.4.4,rhel5.4.0
 and the cluster is rhel6.4.0}
 
 Attached are the logfiles vdsm.log, supervdsm.log, messages from one node.
 
 What can I do?
 
 Best regards,
 Michael
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Help....

2014-06-17 Thread Yair Zaslavsky
Please provide full engine.log and full server.log

Thanks!

In addition, what version did you upgrade from?


- Original Message -
 From: Koen Vanoppen vanoppen.k...@gmail.com
 To: users@ovirt.org
 Sent: Wednesday, June 18, 2014 7:55:15 AM
 Subject: [ovirt-users] Help
 
 This happend after the update to 3.4.2 when I start the engine. I can't
 login anymore... This is the error. Any Idea's? PLease
 
 2014-06-18 06:51:45,728 ERROR
 [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
 (DefaultQuartzScheduler_Worker-79) ResourceManager::refreshVdsRunTimeInfo:
 Error: IllegalStateException: JBAS011049: Component is stopped, vds =
 b34902ea-ad11-45d3-96ee-47de1864e4e0 : mercury1
 2014-06-18 06:51:45,736 ERROR
 [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
 (DefaultQuartzScheduler_Worker-79) IllegalStateException: JBAS011049:
 Component is stopped: java.lang.IllegalStateException: JBAS011049:
 Component is stopped
 at
 org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:104)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:127)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ejb3.component.stateless.StatelessSessionComponent$1.create(StatelessSessionComponent.java:66)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ejb3.component.stateless.StatelessSessionComponent$1.create(StatelessSessionComponent.java:63)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at org.jboss.as.ejb3.pool.AbstractPool.create(AbstractPool.java:60)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ejb3.pool.strictmax.StrictMaxPool.get(StrictMaxPool.java:123)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:47)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:211)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:363)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:194)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
 [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
 [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
 at
 org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
 [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
 at
 org.ovirt.engine.core.common.businessentities.IVdsEventListener$$$view6.addExternallyManagedVms(Unknown
 Source)
 at