[Users] FW: ovirt 3.2.1 custom bonding options

2013-06-25 Thread Sven Knohsalla
Hi,

for all oVirt users who wants to run their nodes in balance-rr mode:
Go to "Network Interfaces"
--> "Setup Host Networks"

Edit the bond interface you want to change
--> "Bonding mode"--> "Custom:"
--> "Custom mode" --> mode=0 miimon=100 (depends on your scenario)

Make sure you did activate the checkbox "Save network configuration",
press OK.

Verify on node-console via cat /proc/net/bonding/bond[n]:

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: em1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d4:ae:52:e8:26:a1
Slave queue ID: 0

Slave Interface: em2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d4:ae:52:e8:26:a2
Slave queue ID: 0

Slave Interface: em3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d4:ae:52:e8:26:a3
Slave queue ID: 0

Slave Interface: em4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d4:ae:52:e8:26:a4
Slave queue ID: 0


Very useful to power up network throughput for oVirt mgmt. network with single 
1GBit connections only.

Cheers,
Sven.

Sven Knohsalla | System Administration | Netbiscuits

Office +49 631 68036 433 | Fax +49 631 68036 111  |E-Mail 
s.knohsa...@netbiscuits.com | Skype: 
netbiscuits.admin
Netbiscuits GmbH | Europaallee 10 | 67657 | GERMANY

Von: Sven Knohsalla
Gesendet: Donnerstag, 20. Juni 2013 19:16
An: users@ovirt.org
Cc: Sven Knohsalla 
(s.knohsa...@netbiscuits.com)
Betreff: AW: ovirt 3.2.1 custom bonding options

Update:
 I meant balance-rr (mode 0), typo.

Sven Knohsalla | System Administration | Netbiscuits

Office +49 631 68036 433 | Fax +49 631 68036 111  |E-Mail 
s.knohsa...@netbiscuits.com | Skype: 
netbiscuits.admin
Netbiscuits GmbH | Europaallee 10 | 67657 | GERMANY

Von: Sven Knohsalla
Gesendet: Donnerstag, 20. Juni 2013 19:14
An: users@ovirt.org
Cc: Sven Knohsalla
Betreff: ovirt 3.2.1 custom bonding options

Hi,

just have a tiny question, regarding bonding & custom mode:
If I want to run a bond in mode 2 with miimon=100,
how needs the custom text field look like:
BONDING_OPTS="miimon=100 mode=0" ?

(would be equivalent to ifcfg config file)


Thanks in advance!

Cheers,
Sven.

Sven Knohsalla | System Administration

Office +49 631 68036 433 | Fax +49 631 68036 111  |E-Mail 
s.knohsa...@netbiscuits.com | Skype: 
netbiscuits.admin
Netbiscuits GmbH | Europaallee 10 | 67657 | GERMANY

[https://my.netbiscuits.com/image/image_gallery?uuid=3a1a9d19-c305-4032-8cef-00b03c3d4c79&groupId=10211&t=1361534926402]

 
[https://my.netbiscuits.com/image/image_gallery?uuid=9e553e7b-3e7d-4784-b274-15aa1dfb48e2&groupId=10211&t=1361533377340]
   
[https://my.netbiscuits.com/image/image_gallery?uuid=1d1a5e29-ceda-4ab1-9353-67a1e838364d&groupId=10211&t=1347281040591]
   
[https://my.netbiscuits.com/image/image_gallery?uuid=c99bf866-be25-4236-a0ee-dca68ec828a5&groupId=10211&t=1347280983848]
   
[https://my.netbiscuits.com/image/image_gallery?uuid=d62ba951-14dc-450d-b5f1-be33884225e3&groupId=10211&t=1347280983872]
   
[https://my.netbiscuits.com/image/image_gallery?uuid=7b28f500-f415-40bb-851f-0cd55beeaf45&groupId=10211&t=1347280983791]
   
[https://my.netbiscuits.com/image/image_gallery?uuid=cc8764d0-a5ac-4623-bb63-da3ca7c97f94&groupId=10211&t=1347280983836]
   
[https://my.netbiscuits.com/image/image_gallery?uuid=a15e871c-a11b-419c-acca-da5a0ebd5856&groupId=10211&t=1347281040599]
 
Register Court: Local Court Kaiserslautern | Commercial Register ID: HR B 3604
Management Board: Guido Moggert, Michael Neidhöfer, Christian Reitz, Martin Süß

This message and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. It 
may also be privileged or otherwise protected by work product immunity or other 
legal rules. Please notify the sender immediately by e-mail if you have 
received this e-mail by mistake and delete this e-mail from your system. If you 
are not the intended recipient you are notified that disclosing, copying, 
distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.
Warning: Although Netbiscuits has taken reasonable precautions to ensure no 
viruses are present in this email, the company cannot accept responsibility for 
any loss 

Re: [Users] ids sanlock error

2013-06-25 Thread Tony Feldmann
I was messing around with some things and force removed my DC.  My cluster
is still there with the 2 gluster volumes, however I cannot move that
cluster into a new dc, I just get the following error in engine.log:

2013-06-25 20:26:15,218 ERROR
[org.ovirt.engine.core.bll.AddVdsSpmIdCommand] (ajp--127.0.0.1-8702-2)
[7d1289a6] Command org.ovirt.engine.core.bll.AddVdsSpmIdCommand throw
exception: org.springframework.dao.DuplicateKeyException:
CallableStatementCallback; SQL [{call insertvds_spm_id_map(?, ?, ?)}];
ERROR: duplicate key value violates unique constraint "pk_vds_spm_id_map"
  Detail: Key (storage_pool_id,
vds_spm_id)=(084def30-1e19-4777-9251-8eb1f7569b53, 1) already exists.
  Where: SQL statement "INSERT INTO vds_spm_id_map(storage_pool_id, vds_id,
vds_spm_id)
VALUES(v_storage_pool_id, v_vds_id, v_vds_spm_id)"


I would really like to get this back into a dc without destroying my
gluster volumes and losing my data.  Can anyone please point me in the
right direction?


On Tue, Jun 25, 2013 at 8:19 AM, Tony Feldmann  wrote:

> I have a 2 node cluster with engine running on one of the nodes.  It has 2
> gluster volumes that replicate between the hosts as its shared storage.
> Last night one of my systems crashed.  It looks like all of my data is
> present, however the ids file seems to be corrupt on my master domain.  I
> tried to do a hexdump -c on the ids file, but it just gave an input/output
> error.  Sanlock.log shows error -5.  Is there a way to rebuild the ids
> file, or can I tell ovirt to use the other domain as the master so I can
> get back up and running?
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Matthew Curry
Has anyone tried 3.1 to 3.2 in CentOS? or even 3.1 to 3.3rc/beta/etc?? I 
am going to be forced down that path soon; so I am wondering what kind 
of hurt I am in for...

Lol...

Thanks,
Matthew Curry

On 6/25/13 8:40 AM, Alex Lourie wrote:

Hi Eli

The following is the error we're getting when upgrading upstream 3.1 
to 3.2:


2013-06-25 14:52:11::DEBUG::common_utils::434::root:: Executing 
command --> '/usr/share/ovirt-engine/dbscripts/upgrade.sh -s localhost 
-p 5432 -u engine -d engine_2013_06_25_14_49_31'
2013-06-25 14:52:16::DEBUG::common_utils::472::root:: output = 
/usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts

upgrade script detected a change in Config, View or Stored Procedure...

2013-06-25 14:52:16::DEBUG::common_utils::473::root:: stderr = 
psql:drop_old_uuid_functions.sql:25: ERROR:  cannot drop function 
uuid_nil() because extension uuid-ossp requires it

HINT:  You can drop extension uuid-ossp instead.
CONTEXT:  SQL statement "drop function if exists  uuid_nil()"
PL/pgSQL function __temp_drop_old_uuid_functions() line 10 at SQL 
statement
psql:create_functions.sql:671: ERROR:  must be owner of function 
uuid_generate_v1



Any idea how can we fix it manually?

Thanks,
Alex.

On Tue, Jun 25, 2013 at 3:58 PM, Karli Sjöberg  
wrote:
tis 2013-06-25 klockan 14:59 +0300 skrev Moran Goldboim: On 
06/25/2013 02:52 PM, Alex Lourie wrote:

>
> On Tue, Jun 25, 2013 at 1:31 PM, Karli Sjöberg 
 > wrote:

>> mån 2013-06-24 klockan 12:35 +0003 skrev Alex Lourie: 
>>> On Mon, Jun 24, 2013 at 2:09 PM, Karli Sjöberg >>> 
 wrote:

>>> > mån 2013-06-24 klockan 10:54 +0003 skrev Alex Lourie: 
>>> >> On Mon, Jun 24, 2013 at 1:26 PM, Karli Sjöberg >> >>> 
 >> wrote:
>>> >> > sön 2013-06-23 klockan 09:38 +0003 skrev Alex Lourie: Hi 
Karli
>>> >> >> >> >> I've written up all we know at [1], please try to 
follow >>> it (if >> you >> >> haven't yet) and let us know how it 
goes. If >>> anything goes wrong, >> we >> >> will look for the ways 
to resolve it.

>>> >> >> >> >  >> > Hi Alex!
>>> >> > >> > Awesome job, I´m going to test this right away and let 
you >>> know >> how >> > it goes. Wish me luck;)

>>> >> > >> >> Good luck! May the force be with you.
>>> >> >  > No no, the source Alex, the source:)
>>> > > /K
>>> >
>>> Sure, that one too.
>>>
>>>
>
> Hi Karli
>
>>
>> Well, it wasn´t with me for long, I have hit BZ 911939 and 
901786, >> where fedup fails to find my LVM volumes. In the dracut 
shell (to >> where it gets dropped), I have good output from blkid 
and lvm >> pvs|vgs|lvs but no nodes created in /dev/mapper and so 
the system >> cannot boot and upgrade fails. Do you have any 
suggestions there that >> might help? In the mean time, I´ll try 
upgrading using >> 
http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum instead, 
see >> if that gives better success.

>>
>
> Sorry to hear that. Different people have experienced multiple > 
problems upgrading lvm-based F17 systems to F18. I don't think that 
> there's a magic solution that would just work, each case is 
usually > solved on its own.

>
> Let us know how you progress with upgrading with yum.
>
> Alex.

i used same article [1] and had a successful go with it - good luck...

[1] 
https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_17_-.3E_Fedora_18 



>
>>
>> -- >>
>> Med Vänliga Hälsningar
>> 
--- 
>>

>> Karli Sjöberg
>> Swedish University of Agricultural Sciences
>> Box 7079 (Visiting Address Kronåsvägen 8)
>> S-750 07 Uppsala, Sweden
>> Phone:  +46-(0)18-67 15 66
>> karli.sjob...@slu.se
>




Yes, I had much better success following that article, and managed to 
upgrade fedora to 18, had to tune my kernel parameters a little for 
the postgres upgrade to work, but then engine-upgrade fails just as 
it did the last time we tried. The log is attached. Hoping to hear 
back from you soon with ideas on what to try next.


--

Med Vänliga Hälsningar
--- 


Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se


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


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


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Alex Lourie



On Tue, Jun 25, 2013 at 5:03 PM, Karli Sjöberg  
wrote:
tis 2013-06-25 klockan 15:35 +0200 skrev Gianluca Cecchi: On Tue, 
Jun 25, 2013 at 2:58 PM, Karli Sjöberg wrote:

 



 Yes, I had much better success following that article, and managed 
to upgrade fedora to 18, had to tune my kernel parameters a little 
for the postgres upgrade to work, but then engine-upgrade fails just 
as it did the last time we tried. The log is attached. Hoping to hear 
back from you soon with ideas on what to try next.

 





 



 But now the error seems different from the original one in March 
(if I remember correctly the original post).


 
They are quite the same:


Then
psql:drop_old_uuid_functions.sql:25: ERROR:  cannot drop function 
uuid_nil() because extension uuid-ossp requires it


Now
2013-06-25 14:52:16::DEBUG::common_utils::473::root:: stderr = 
psql:drop_old_uuid_functions.sql:25: ERROR:  cannot drop function 
uuid_nil() because extension uuid-ossp requires it



Could it be somehow related with this rhev one bug:

 https://bugzilla.redhat.com/show_bug.cgi?id=923614



 and that changing permissions for the impacted objects in db before 
running upgrade could help?


 
Very interesting, thanks for the hint! That is definitely worth 
trying out. Will try that first thing tomorrow:)


Hi Karli

If it helps, let me know - I will add a troubleshooting section to the 
wiki.









 BTW: is your environment directly created in 3.1 or did it come 
from a further upgrade? 


 
Started with a minimal Fedora 17 install, added the oVirt-3.1 repo, 
ran yum upgrade -y first, then yum install -y ovirt-engine and lastly 
engine-setup. Nothing more. So it´s just an empty engine that I´m 
trying to upgrade at this point. When that works, I´ll add hosts, 
VMs, Templates, etc.







 HIH,
 Gianluca
 
--


Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se


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


[Users] ovirt-engine-sdk-java 1.0.0.8-1 released

2013-06-25 Thread Michael Pasternak

* Thu  Jun 25 2013 Michael Pasternak  - 1.0.0.8-1
- implement support for the /capabilities resource
- implement basic debugging capabilities
- added VMApplications sub-collection
- to datacenter added new field [comment]
- to disk added [sgio] field to enable|disable filtering for the ScsiGenericIo
- to StorageDomain.delete() added storagedomain.host.id|name
- to VmPool added MaxUserVMs property
- to cluster.update() added [cluster.data_center.id]
- to host.fence() added action.fence_type
- to storagedomain.delete() added [storagedomain.format]
- to nic added [nic.custom_properties.custom_property]
- to vm.add(), vm.update() added [vm.memory_policy.guaranteed]



More details can be found at [1].

[1] http://www.ovirt.org/Java-sdk-changelog

-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D


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


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Karli Sjöberg
tis 2013-06-25 klockan 15:35 +0200 skrev Gianluca Cecchi:
On Tue, Jun 25, 2013 at 2:58 PM, Karli Sjöberg wrote:


Yes, I had much better success following that article, and managed to upgrade 
fedora to 18, had to tune my kernel parameters a little for the postgres 
upgrade to work, but then engine-upgrade fails just as it did the last time we 
tried. The log is attached. Hoping to hear back from you soon with ideas on 
what to try next.





But now the error seems different from the original one in March (if I remember 
correctly the original post).

They are quite the same:

Then
psql:drop_old_uuid_functions.sql:25: ERROR:  cannot drop function uuid_nil() 
because extension uuid-ossp requires it

Now
2013-06-25 14:52:16::DEBUG::common_utils::473::root:: stderr = 
psql:drop_old_uuid_functions.sql:25: ERROR:  cannot drop function uuid_nil() 
because extension uuid-ossp requires it

Could it be somehow related with this rhev one bug:
https://bugzilla.redhat.com/show_bug.cgi?id=923614

and that changing permissions for the impacted objects in db before running 
upgrade could help?

Very interesting, thanks for the hint! That is definitely worth trying out. 
Will try that first thing tomorrow:)



BTW: is your environment directly created in 3.1 or did it come from a further 
upgrade?

Started with a minimal Fedora 17 install, added the oVirt-3.1 repo, ran yum 
upgrade -y first, then yum install -y ovirt-engine and lastly engine-setup. 
Nothing more. So it´s just an empty engine that I´m trying to upgrade at this 
point. When that works, I´ll add hosts, VMs, Templates, etc.



HIH,
Gianluca

--

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


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Alex Lourie

Hi Eli

The following is the error we're getting when upgrading upstream 3.1 to 
3.2:


2013-06-25 14:52:11::DEBUG::common_utils::434::root:: Executing command 
--> '/usr/share/ovirt-engine/dbscripts/upgrade.sh -s localhost -p 5432 
-u engine -d engine_2013_06_25_14_49_31'
2013-06-25 14:52:16::DEBUG::common_utils::472::root:: output = 
/usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts

upgrade script detected a change in Config, View or Stored Procedure...

2013-06-25 14:52:16::DEBUG::common_utils::473::root:: stderr = 
psql:drop_old_uuid_functions.sql:25: ERROR:  cannot drop function 
uuid_nil() because extension uuid-ossp requires it

HINT:  You can drop extension uuid-ossp instead.
CONTEXT:  SQL statement "drop function if exists  uuid_nil()"
PL/pgSQL function __temp_drop_old_uuid_functions() line 10 at SQL 
statement
psql:create_functions.sql:671: ERROR:  must be owner of function 
uuid_generate_v1



Any idea how can we fix it manually?

Thanks,
Alex.

On Tue, Jun 25, 2013 at 3:58 PM, Karli Sjöberg  
wrote:
tis 2013-06-25 klockan 14:59 +0300 skrev Moran Goldboim: On 
06/25/2013 02:52 PM, Alex Lourie wrote:

>
> On Tue, Jun 25, 2013 at 1:31 PM, Karli Sjöberg 
 
> wrote:

>> mån 2013-06-24 klockan 12:35 +0003 skrev Alex Lourie: 
>>> On Mon, Jun 24, 2013 at 2:09 PM, Karli Sjöberg 
>>>  wrote:

>>> > mån 2013-06-24 klockan 10:54 +0003 skrev Alex Lourie: 
>>> >> On Mon, Jun 24, 2013 at 1:26 PM, Karli Sjöberg >> 
>>>  >> wrote:
>>> >> > sön 2013-06-23 klockan 09:38 +0003 skrev Alex Lourie: Hi 
Karli
>>> >> >> >> >> I've written up all we know at [1], please try to 
follow 
>>> it (if >> you >> >> haven't yet) and let us know how it goes. If 
>>> anything goes wrong, >> we >> >> will look for the ways to 
resolve it.

>>> >> >> >> >  >> > Hi Alex!
>>> >> > >> > Awesome job, I´m going to test this right away and 
let you 
>>> know >> how >> > it goes. Wish me luck;)

>>> >> > >> >> Good luck! May the force be with you.
>>> >> >  > No no, the source Alex, the source:)
>>> > > /K
>>> >
>>> Sure, that one too.
>>>
>>>
>
> Hi Karli
>
>>
>> Well, it wasn´t with me for long, I have hit BZ 911939 and 
901786, 
>> where fedup fails to find my LVM volumes. In the dracut shell (to 
>> where it gets dropped), I have good output from blkid and lvm 
>> pvs|vgs|lvs but no nodes created in /dev/mapper and so the system 
>> cannot boot and upgrade fails. Do you have any suggestions there 
that 
>> might help? In the mean time, I´ll try upgrading using 
>> http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum instead, 
see 
>> if that gives better success.

>>
>
> Sorry to hear that. Different people have experienced multiple 
> problems upgrading lvm-based F17 systems to F18. I don't think 
that 
> there's a magic solution that would just work, each case is 
usually 
> solved on its own.

>
> Let us know how you progress with upgrading with yum.
>
> Alex.

i used same article [1] and had a successful go with it - good 
luck...


[1] 
https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_17_-.3E_Fedora_18 



>
>>
>> -- 
>>

>> Med Vänliga Hälsningar
>> 
--- 
>>

>> Karli Sjöberg
>> Swedish University of Agricultural Sciences
>> Box 7079 (Visiting Address Kronåsvägen 8)
>> S-750 07 Uppsala, Sweden
>> Phone:  +46-(0)18-67 15 66
>> karli.sjob...@slu.se
>


 
Yes, I had much better success following that article, and managed to 
upgrade fedora to 18, had to tune my kernel parameters a little for 
the postgres upgrade to work, but then engine-upgrade fails just as 
it did the last time we tried. The log is attached. Hoping to hear 
back from you soon with ideas on what to try next.


--

Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se


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


[Users] VM Pausing with Storage IO errors

2013-06-25 Thread Jason Lawer

Hi,

I have a ovirt 3.2.1 system that has a single VM which pauses soon after 
launch with the message "VM has been paused due to storage IO error". 
When it first occured it mentioned an issue with no storage. This is 
weird as it says I have over half of my 4TB iscsi pool free. I have 
checked the SAN, hosts and engine logs. I haven't been able to find 
anything that indicates the cause.


Is anyone able to at least point me in the direction I should look further?

Details :

3x Dell R720 VM Nodes (Dual Proc Sandy bridge Xeon, 96gb ram, boot from 
SAN)


Dell MD 3220i iSCSI storage array

Hosts are runing
  CentOS 6.4
   VDSM : vdsm-4.10.3-0.36.23.el6
   libvirt : libvirt-0.10.2-18.el6_4.8
   kernel : 2.6.32 - 358.11.1.el6.x86_64
   kvm : 0.12.1.2 - 2.355.el6.5

Engine is :  oVirt Engine Version: 3.2.2-1.1.43.el6
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Gianluca Cecchi
On Tue, Jun 25, 2013 at 2:58 PM, Karli Sjöberg wrote:

> **
>
>
> Yes, I had much better success following that article, and managed to
> upgrade fedora to 18, had to tune my kernel parameters a little for the
> postgres upgrade to work, but then engine-upgrade fails just as it did the
> last time we tried. The log is attached. Hoping to hear back from you soon
> with ideas on what to try next.
>
>
>
But now the error seems different from the original one in March (if I
remember correctly the original post).
Could it be somehow related with this rhev one bug:
https://bugzilla.redhat.com/show_bug.cgi?id=923614
and that changing permissions for the impacted objects in db before running
upgrade could help?

BTW: is your environment directly created in 3.1 or did it come from a
further upgrade?

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


[Users] ids sanlock error

2013-06-25 Thread Tony Feldmann
I have a 2 node cluster with engine running on one of the nodes.  It has 2
gluster volumes that replicate between the hosts as its shared storage.
Last night one of my systems crashed.  It looks like all of my data is
present, however the ids file seems to be corrupt on my master domain.  I
tried to do a hexdump -c on the ids file, but it just gave an input/output
error.  Sanlock.log shows error -5.  Is there a way to rebuild the ids
file, or can I tell ovirt to use the other domain as the master so I can
get back up and running?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Moran Goldboim

On 06/25/2013 02:52 PM, Alex Lourie wrote:


On Tue, Jun 25, 2013 at 1:31 PM, Karli Sjöberg  
wrote:

mån 2013-06-24 klockan 12:35 +0003 skrev Alex Lourie: 
On Mon, Jun 24, 2013 at 2:09 PM, Karli Sjöberg 
 wrote:

> mån 2013-06-24 klockan 10:54 +0003 skrev Alex Lourie: 
>> On Mon, Jun 24, 2013 at 1:26 PM, Karli Sjöberg >> 
 >> wrote:

>> > sön 2013-06-23 klockan 09:38 +0003 skrev Alex Lourie: Hi Karli
>> >> >> >> I've written up all we know at [1], please try to follow 
it (if >> you >> >> haven't yet) and let us know how it goes. If 
anything goes wrong, >> we >> >> will look for the ways to resolve it.

>> >> >> >  >> > Hi Alex!
>> > >> > Awesome job, I´m going to test this right away and let you 
know >> how >> > it goes. Wish me luck;)

>> > >> >> Good luck! May the force be with you.
>> >  > No no, the source Alex, the source:)
> > /K
>
Sure, that one too.




Hi Karli



Well, it wasn´t with me for long, I have hit BZ 911939 and 901786, 
where fedup fails to find my LVM volumes. In the dracut shell (to 
where it gets dropped), I have good output from blkid and lvm 
pvs|vgs|lvs but no nodes created in /dev/mapper and so the system 
cannot boot and upgrade fails. Do you have any suggestions there that 
might help? In the mean time, I´ll try upgrading using 
http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum instead, see 
if that gives better success.




Sorry to hear that. Different people have experienced multiple 
problems upgrading lvm-based F17 systems to F18. I don't think that 
there's a magic solution that would just work, each case is usually 
solved on its own.


Let us know how you progress with upgrading with yum.

Alex.


i used same article [1] and had a successful go with it - good luck...

[1] 
https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_17_-.3E_Fedora_18 







--

Med Vänliga Hälsningar
--- 


Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se




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


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Alex Lourie


On Tue, Jun 25, 2013 at 1:31 PM, Karli Sjöberg  
wrote:

mån 2013-06-24 klockan 12:35 +0003 skrev Alex Lourie: 
On Mon, Jun 24, 2013 at 2:09 PM, Karli Sjöberg 
 
wrote:

> mån 2013-06-24 klockan 10:54 +0003 skrev Alex Lourie: 
>> On Mon, Jun 24, 2013 at 1:26 PM, Karli Sjöberg 
>>  
>> wrote:

>> > sön 2013-06-23 klockan 09:38 +0003 skrev Alex Lourie: Hi Karli
>> >> 
>> >> I've written up all we know at [1], please try to follow it 
(if 
>> you 
>> >> haven't yet) and let us know how it goes. If anything goes 
wrong, 
>> we 
>> >> will look for the ways to resolve it.
>> >> 
>> >  
>> > Hi Alex!
>> > 
>> > Awesome job, I´m going to test this right away and let you 
know 
>> how 
>> > it goes. Wish me luck;)
>> > 
>> 
>> Good luck! May the force be with you.
>> 
>  
> No no, the source Alex, the source:)
> 
> /K
> 


Sure, that one too.




Hi Karli



Well, it wasn´t with me for long, I have hit BZ 911939 and 901786, 
where fedup fails to find my LVM volumes. In the dracut shell (to 
where it gets dropped), I have good output from blkid and lvm 
pvs|vgs|lvs but no nodes created in /dev/mapper and so the system 
cannot boot and upgrade fails. Do you have any suggestions there that 
might help? In the mean time, I´ll try upgrading using 
http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum instead, see 
if that gives better success.




Sorry to hear that. Different people have experienced multiple problems 
upgrading lvm-based F17 systems to F18. I don't think that there's a 
magic solution that would just work, each case is usually solved on its 
own.


Let us know how you progress with upgrading with yum.

Alex.



--

Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se


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


Re: [Users] Using python sdk to find the VMs running on a host.

2013-06-25 Thread Itamar Heim

On 06/25/2013 01:34 PM, Michael Pasternak wrote:

On 06/25/2013 09:28 AM, Itamar Heim wrote:

On 06/25/2013 07:54 AM, Deepthi Dharwar wrote:

Hi,

I am using the ovirt-python-sdk to figure out if the host is idle or
not. The way to determine if the host is idle at a given instant is
finding out the number of VMs running on it. If the number of VMs = 0
implies host is idle.


adding michael for the rest of the question, but please note to check for SPM 
role of a host before assuming it is idle.

also, may i ask what you are trying to accomplish (it sounds like a power 
saving policy)?



I was exploring the python sdk to figure out Host-VMs mapping i.e What
are the VMs running on the different host.

Looks like the only way to find this, is to query each VM in /api/vms
list to get the host on which it is running.

Is this the right way ? Is there no direct query or REST API to list
the VMs running on a given host at that instant.


you can run query="host = X" for that.



I was looking to get the data center hierarchy structure.
Number_of_datacenters
|
V
clusters in each data center
|
V
Hosts in each cluster
|
V
   VMs on each host.

This kind of mapping as seen on the GUI. Is there any way to obtain
the same from the ovirt-python-sdk ?


you can combine query to fetch vms by dc+cluster+host,

query = "datacenter = x and cluster = y and host = z"


this is redundnat, since host is in one cluster which is in one 
datacenter, so just querying on host would give the same result.




also you can fetch hosts from the given cluster

cluster=x

same for cluster

"Datacenter.name = x"



With this information, this would help me write scripts to turn-off my
hosts if idle automatically and power them on as required.

Regards,
Deepthi



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








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


Re: [Users] Using python sdk to find the VMs running on a host.

2013-06-25 Thread Michael Pasternak
On 06/25/2013 09:28 AM, Itamar Heim wrote:
> On 06/25/2013 07:54 AM, Deepthi Dharwar wrote:
>> Hi,
>>
>> I am using the ovirt-python-sdk to figure out if the host is idle or
>> not. The way to determine if the host is idle at a given instant is
>> finding out the number of VMs running on it. If the number of VMs = 0
>> implies host is idle.
> 
> adding michael for the rest of the question, but please note to check for SPM 
> role of a host before assuming it is idle.
> 
> also, may i ask what you are trying to accomplish (it sounds like a power 
> saving policy)?
> 
>>
>> I was exploring the python sdk to figure out Host-VMs mapping i.e What
>> are the VMs running on the different host.
>>
>> Looks like the only way to find this, is to query each VM in /api/vms
>> list to get the host on which it is running.
>>
>> Is this the right way ? Is there no direct query or REST API to list
>> the VMs running on a given host at that instant.

you can run query="host = X" for that.

>>
>> I was looking to get the data center hierarchy structure.
>> Number_of_datacenters
>>|
>>V
>> clusters in each data center
>>|
>>V
>> Hosts in each cluster
>>|
>>V
>>   VMs on each host.
>>
>> This kind of mapping as seen on the GUI. Is there any way to obtain
>> the same from the ovirt-python-sdk ?

you can combine query to fetch vms by dc+cluster+host,

query = "datacenter = x and cluster = y and host = z"

also you can fetch hosts from the given cluster

cluster=x

same for cluster

"Datacenter.name = x"

>>
>> With this information, this would help me write scripts to turn-off my
>> hosts if idle automatically and power them on as required.
>>
>> Regards,
>> Deepthi
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
> 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Fedora upgrading from 3.1 to 3.2

2013-06-25 Thread Karli Sjöberg
mån 2013-06-24 klockan 12:35 +0003 skrev Alex Lourie:



On Mon, Jun 24, 2013 at 2:09 PM, Karli Sjöberg 
mailto:karli.sjob...@slu.se>>
wrote:
> mån 2013-06-24 klockan 10:54 +0003 skrev Alex Lourie: 
>> On Mon, Jun 24, 2013 at 1:26 PM, Karli Sjöberg
>> mailto:karli.sjob...@slu.se>>
>> wrote:
>> > sön 2013-06-23 klockan 09:38 +0003 skrev Alex Lourie: Hi Karli
>> >>
>> >> I've written up all we know at [1], please try to follow it (if
>> you
>> >> haven't yet) and let us know how it goes. If anything goes wrong,
>> we
>> >> will look for the ways to resolve it.
>> >>
>> >
>> > Hi Alex!
>> >
>> > Awesome job, I´m going to test this right away and let you know
>> how
>> > it goes. Wish me luck;)
>> >
>>
>> Good luck! May the force be with you.
>>
>
> No no, the source Alex, the source:)
>
> /K
>

Sure, that one too.



Well, it wasn´t with me for long, I have hit BZ 911939 and 901786, where fedup 
fails to find my LVM volumes. In the dracut shell (to where it gets dropped), I 
have good output from blkid and lvm pvs|vgs|lvs but no nodes created in 
/dev/mapper and so the system cannot boot and upgrade fails. Do you have any 
suggestions there that might help? In the mean time, I´ll try upgrading using 
http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum instead, see if that 
gives better success.

--

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


Re: [Users] Using python sdk to find the VMs running on a host.

2013-06-25 Thread Itamar Heim

On 06/25/2013 12:30 PM, Deepthi Dharwar wrote:

On 06/25/2013 11:58 AM, Itamar Heim wrote:

On 06/25/2013 07:54 AM, Deepthi Dharwar wrote:

Hi,

I am using the ovirt-python-sdk to figure out if the host is idle or
not. The way to determine if the host is idle at a given instant is
finding out the number of VMs running on it. If the number of VMs = 0
implies host is idle.


adding michael for the rest of the question, but please note to check
for SPM role of a host before assuming it is idle.


Yes, that is essential. Thanks for pointing it out.



also, may i ask what you are trying to accomplish (it sounds like a
power saving policy)?


Yes, I was looking to tweak the power saving policy to switch off
hosts that have no VMs running on them. Looks like doing it within the
ovirt-engine is better option than through scripts and SDK.


you should soon be able to write it via python sdk/scripts integrated 
with the engine via:

http://www.ovirt.org/Features/oVirtSchedulerAPI





I was exploring the python sdk to figure out Host-VMs mapping i.e What
are the VMs running on the different host.

Looks like the only way to find this, is to query each VM in /api/vms
list to get the host on which it is running.

Is this the right way ? Is there no direct query or REST API to list
the VMs running on a given host at that instant.

I was looking to get the data center hierarchy structure.
Number_of_datacenters
|
V
clusters in each data center
|
V
Hosts in each cluster
|
V
   VMs on each host.

This kind of mapping as seen on the GUI. Is there any way to obtain
the same from the ovirt-python-sdk ?

With this information, this would help me write scripts to turn-off my
hosts if idle automatically and power them on as required.

Regards,
Deepthi



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









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


Re: [Users] Using python sdk to find the VMs running on a host.

2013-06-25 Thread Deepthi Dharwar
On 06/25/2013 11:58 AM, Itamar Heim wrote:
> On 06/25/2013 07:54 AM, Deepthi Dharwar wrote:
>> Hi,
>>
>> I am using the ovirt-python-sdk to figure out if the host is idle or
>> not. The way to determine if the host is idle at a given instant is
>> finding out the number of VMs running on it. If the number of VMs = 0
>> implies host is idle.
> 
> adding michael for the rest of the question, but please note to check
> for SPM role of a host before assuming it is idle.

Yes, that is essential. Thanks for pointing it out.


> also, may i ask what you are trying to accomplish (it sounds like a
> power saving policy)?

Yes, I was looking to tweak the power saving policy to switch off
hosts that have no VMs running on them. Looks like doing it within the
ovirt-engine is better option than through scripts and SDK.

>>
>> I was exploring the python sdk to figure out Host-VMs mapping i.e What
>> are the VMs running on the different host.
>>
>> Looks like the only way to find this, is to query each VM in /api/vms
>> list to get the host on which it is running.
>>
>> Is this the right way ? Is there no direct query or REST API to list
>> the VMs running on a given host at that instant.
>>
>> I was looking to get the data center hierarchy structure.
>> Number_of_datacenters
>>|
>>V
>> clusters in each data center
>>|
>>V
>> Hosts in each cluster
>>|
>>V
>>   VMs on each host.
>>
>> This kind of mapping as seen on the GUI. Is there any way to obtain
>> the same from the ovirt-python-sdk ?
>>
>> With this information, this would help me write scripts to turn-off my
>> hosts if idle automatically and power them on as required.
>>
>> Regards,
>> Deepthi
>>
>>
>>
>> ___
>> 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