[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-25 Thread Idan Shaby
Actually, it was added back in oVirt 4.0.
What happens when you try to GET from /ovirt-engine/api/templates/<
template_id>/diskattachments?
Do you get an empty list of attachments or an error (404 not found)?



Regards,
Idan

On Thu, Jul 26, 2018 at 4:10 AM, like...@cs2c.com.cn 
wrote:

> Thank you for your reply.
> I'm using ovirt 4.1.9, in this version there is no diskattachments under
> /ovirt-engine/api/templates/, is it added in oVirt4.2?
>
> --
> like...@cs2c.com.cn
>
>
> *From:* Idan Shaby 
> *Date:* 2018-07-25 19:30
> *To:* like...@cs2c.com.cn
> *CC:* users 
> *Subject:* Re: [ovirt-users] template disk attribute in version 4 restapi
> Hi,
>
> The bootable attribute was moved, along with a few more attributes, to be
> under a specific diskattachment, as it is an attribute of the relationship
> between a disk and the specific VM it is attached to, rather than a disk
> (which can be floating, or attached to more than one VM).
> I am not sure that I understand the question. A template does have
> diskattachments under /ovirt-engine/api/templates/<
> template_id>/diskattachments.
> Which engine's version are you using?
>
>
> Regards,
> Idan
>
> On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn 
> wrote:
>
>> Hi All,
>>
>> In the restapi of version 3, there is bootable attribute  in disk. But
>> in version 4, the bootable attribute is removed from disk. For vm i can get
>> bootable attribute from diskattachment. But there is no diskattachment in
>> template. So, is there any way in the restapi of version 4 that i can know
>> if the disk of the template is bootable or not?
>>
>> Thanks
>>
>> Regards.
>>
>> --
>> like...@cs2c.com.cn
>>
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-le...@ovirt.org
>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>> oVirt Code of Conduct: https://www.ovirt.org/communit
>> y/about/community-guidelines/
>> List Archives: https://lists.ovirt.org/archiv
>> es/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/
>>
>>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/YGI7AI7LNV6XBF54FYCY5BOP5DMLURIV/


[ovirt-users] Re: Failed to deploy ovirt engine with "hosted-engine --deploy"

2018-07-25 Thread Bong Shau Fui
I tried redeploying the ovirt-engine and started the console for the 
HostedEngineLocal vm right after the task

[ INFO  ] TASK [Create local VM]
[ INFO  ] changed: [localhost]

But my console is blank.  How did you manage to catch the kernel panic message?
But as you said, the domain is listed as 'running', with a hung console.


regards,
Bong SF
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/M76WBC3TF7MB24L433RRYUPZSFOJA4RD/


[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-25 Thread like...@cs2c.com.cn
Thank you for your reply. 
I'm using ovirt 4.1.9, in this version there is no diskattachments under 
/ovirt-engine/api/templates/, is it added in oVirt4.2?



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-25 19:30
To: like...@cs2c.com.cn
CC: users
Subject: Re: [ovirt-users] template disk attribute in version 4 restapi
Hi,

The bootable attribute was moved, along with a few more attributes, to be under 
a specific diskattachment, as it is an attribute of the relationship between a 
disk and the specific VM it is attached to, rather than a disk (which can be 
floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have 
diskattachments under /ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn  
wrote:
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SK2RD7N7A456ZRSM2B2MYYZXKTCQR47C/


[ovirt-users] Re: Self hosted to bare metal engine

2018-07-25 Thread Fabrice Bacchella
I never used self-hosted, I don't know if there is something particular about 
that.

But the idea is that ovirt can run quite a longtime without the engine.

> Le 25 juil. 2018 à 20:37, Christophe TREFOIS  a 
> écrit :
> 
> Here is from self hosted to VM non oVirt.
> 
> Do you know it’s the similar process?
> 
> Thanks
> 
> Sent from my iPhone
> 
>> On 25 Jul 2018, at 19:10, Fabrice Bacchella  
>> wrote:
>> 
>> I have done something similar once, from a non-ovirt VM to bare metal. I run 
>> it as a disaster recovery, with an ovirt backup. Everything went fine. I 
>> didn't change the hostname, to be sure ; I don't know if it provides any 
>> help.
>> 
>>> Le 25 juil. 2018 à 18:42, Christophe TREFOIS  a 
>>> écrit :
>>> 
>>> Hi,
>>> 
>>> What would be the process to go from self hosted engine to bare metal 
>>> engine?
>>> 
>>> (Actually it would move to a VM in a VMware cluster) 
>>> 
>>> All user guides I found are from bare metal to self hosted.
>>> 
>>> Thanks for any tips or pointers
>>> Christophe 
>>> 
>> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/Q5BXQ7V743IH6MHLMF3PFJT5P7J6IFOM/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/CUADAF2KCDWHHWDZ4ITM7XLONGNLEBK5/


[ovirt-users] Re: Cannot switch to maintenance, image transfer is in progress

2018-07-25 Thread Randy Bender
And just to add, per the attached output from alex, I didn't see the
image_transfer records in command_entities.

On Wed, Jul 25, 2018 at 12:57 PM, aduckers  wrote:

> Thanks, command outputs attached.
> Note that there are currently no transfers showing in the GUI.
>
>
>
>
> On Jul 25, 2018, at 7:03 AM, Daniel Erez  wrote:
>
> Hi Randi,
>
> To understand if it's indeed the same issue, can you please attach the
> output of:
> - select * from image_transfers;
> - select * from command_entities;
>
> Every image_transfer record should have a correlated command_entity.
> If it's missing from entities then you probably hit a similar issue.
> In that case, you can change the image_transfers phase value to 4
> ('Pause'),
> and for cleanup, cancel the transfer manually (e.g. from webadmin -> disks
> -> cancel).
>
> On Wed, Jul 25, 2018 at 3:54 AM Randy Bender  wrote:
>
>> We've just updated our hosted engine to 4.2.4.
>> When trying to place one of the hosts in maintenance mode, we get the
>> error in the subject line.  I've found the following that looks to be the
>> issue we are hitting:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1586126
>>
>> I've looked in the engine database with the following command and results:
>>
>> engine=# select disk_id from image_transfers ;
>>disk_id
>> --
>>  52966b71-2d01-4a16-9830-65a888717656
>>  c72d64b7-93c9-485b-b031-29c785c5bf9a
>> (2 rows)
>>
>> Full details on these records show that they are indeed old - there are
>> no transfers actually in progress.
>>
>> Can anyone confirm the correct way to remedy this?  The bug report notes
>> changing the phase on the record in question.  Before I try that, I'd like
>> confirmation if anyone else has seen this issue and resolved it.
>> And if this is the resolution, can you describe the exact psql commands
>> to achieve this?
>>
>> Thanks
>>
>>
>>
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-le...@ovirt.org
>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
>> guidelines/
>> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
>> message/IRT6E43OYO52CIKC42AWLQJTNIFMYF3C/
>>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/E3AFM4K36HLSLT3ZFNFBJLPWT2SHFT4O/
>
>
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/OFAFLZV2MOKFDDXUXGVKBOID2R2BJA24/


[ovirt-users] Re: Cannot switch to maintenance, image transfer is in progress

2018-07-25 Thread aduckers
Thanks, command outputs attached.Note that there are currently no transfers showing in the GUI.<>
On Jul 25, 2018, at 7:03 AM, Daniel Erez  wrote:Hi Randi,To understand if it's indeed the same issue, can you please attach the output of:- select * from image_transfers;- select * from command_entities;Every image_transfer record should have a correlated command_entity.If it's missing from entities then you probably hit a similar issue.In that case, you can change the image_transfers phase value to 4 ('Pause'),and for cleanup, cancel the transfer manually (e.g. from webadmin -> disks -> cancel). On Wed, Jul 25, 2018 at 3:54 AM Randy Bender  wrote:We've just updated our hosted engine to 4.2.4.When trying to place one of the hosts in maintenance mode, we get the error in the subject line.  I've found the following that looks to be the issue we are hitting: https://bugzilla.redhat.com/show_bug.cgi?id=1586126I've looked in the engine database with the following command and results:engine=# select disk_id from image_transfers ;               disk_id-- 52966b71-2d01-4a16-9830-65a888717656 c72d64b7-93c9-485b-b031-29c785c5bf9a(2 rows)Full details on these records show that they are indeed old - there are no transfers actually in progress.Can anyone confirm the correct way to remedy this?  The bug report notes changing the phase on the record in question.  Before I try that, I'd like confirmation if anyone else has seen this issue and resolved it.And if this is the resolution, can you describe the exact psql commands to achieve this?Thanks
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/IRT6E43OYO52CIKC42AWLQJTNIFMYF3C/

___Users mailing list -- users@ovirt.orgTo unsubscribe send an email to users-le...@ovirt.orgPrivacy Statement: https://www.ovirt.org/site/privacy-policy/oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/E3AFM4K36HLSLT3ZFNFBJLPWT2SHFT4O/___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/J42OABNT25OYJFS7E4JHGPEKHIJKOYWQ/


[ovirt-users] Re: Self hosted to bare metal engine

2018-07-25 Thread Christophe TREFOIS
Here is from self hosted to VM non oVirt.

Do you know it’s the similar process?

Thanks

Sent from my iPhone

> On 25 Jul 2018, at 19:10, Fabrice Bacchella  
> wrote:
> 
> I have done something similar once, from a non-ovirt VM to bare metal. I run 
> it as a disaster recovery, with an ovirt backup. Everything went fine. I 
> didn't change the hostname, to be sure ; I don't know if it provides any help.
> 
>> Le 25 juil. 2018 à 18:42, Christophe TREFOIS  a 
>> écrit :
>> 
>> Hi,
>> 
>> What would be the process to go from self hosted engine to bare metal engine?
>> 
>> (Actually it would move to a VM in a VMware cluster) 
>> 
>> All user guides I found are from bare metal to self hosted.
>> 
>> Thanks for any tips or pointers
>> Christophe 
>> 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/Q5BXQ7V743IH6MHLMF3PFJT5P7J6IFOM/


[ovirt-users] Re: Self hosted to bare metal engine

2018-07-25 Thread Fabrice Bacchella
I have done something similar once, from a non-ovirt VM to bare metal. I run it 
as a disaster recovery, with an ovirt backup. Everything went fine. I didn't 
change the hostname, to be sure ; I don't know if it provides any help.

> Le 25 juil. 2018 à 18:42, Christophe TREFOIS  a 
> écrit :
> 
> Hi,
> 
> What would be the process to go from self hosted engine to bare metal engine?
> 
> (Actually it would move to a VM in a VMware cluster) 
> 
> All user guides I found are from bare metal to self hosted.
> 
> Thanks for any tips or pointers
> Christophe 
> 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/H33KP3XRUJPWVKIHIWEMB4IXHHWQEDQE/


[ovirt-users] Self hosted to bare metal engine

2018-07-25 Thread Christophe TREFOIS
Hi,

What would be the process to go from self hosted engine to bare metal engine?

(Actually it would move to a VM in a VMware cluster) 

All user guides I found are from bare metal to self hosted.

Thanks for any tips or pointers
Christophe 

Sent from my iPhone

smime.p7s
Description: S/MIME cryptographic signature
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/Y3JMXZXQGCS6B4QYR2Q7BYFHQ2SY4WU5/


[ovirt-users] Re: interface up when not used

2018-07-25 Thread Fabrice Bacchella


> Le 25 juil. 2018 à 13:42, Edward Haas  a écrit :
> 
> 
> 
> On Tue, Jul 24, 2018 at 1:08 PM, Fabrice Bacchella 
> mailto:fabrice.bacche...@orange.fr>> wrote:
> 
> 
>> Le 24 juil. 2018 à 11:50, Dominik Holler > > a écrit :
>> 
>> On Tue, 24 Jul 2018 11:04:58 +0200
>> Fabrice Bacchella > > wrote:
>> 
>>> To monitoring the network interfaces, I have a script that check if
>>> ifAdminStatus and ifOperStatus values matches in snmp.
>>> 
>>> But with oVirt it fails on a server with 4 physical interfaces, but
>>> only two connected, and return an error:
>>> 
>> 
>> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?
> 
> Yes.
> 
>> 
>>> snmptable XXX IF-MIB::ifTable | less
>>> SNMP table: IF-MIB::ifTable
>>> 
>>> ifIndex ifDescr ifAdminStatus ifOperStatus
>>>   1  loup   up
>>>   2eth0up   up
>>>   3eth1up   up
>>>   4eth2up down
>>>   5eth3up down
>>>  24 ;vdsmdummy;  down down
>>>  25   vnet0up   up
>>> 
>>> 
>>> And indeed on the server:
>>> 
>>> ip link show eth2
>>> 4: eth2:  mtu 1500 qdisc mq state
>>> DOWN mode DEFAULT group default qlen 1000 link/ether
>>> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>>> 
>> 
>> looks like eth2 is DOWN, as expected.
> 
> It's in state DOWN, but marked UP anyway.
> 
> A really DOWN interface is shown as (on another server, not an ovirt host):
> 
> 4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT 
> group default qlen 1000
> link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff
> 
> 
>> 
>> eth2 seems to be in state DOWN, which seems to be reflected in
>> ifOperStatus.
> 
> Yes it match. The state is reflected in the ifOperStatus. The ifAdminStatus 
> match the UP in the <...>
> 
>> 
>> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
>> it to be down?
> 
> That's it. I never ask it to be in such state.
> 
> 
> If eth2 and eth3 are not defined under oVirt control, I see no reason for the 
> system to touch it.
> Perhaps, you machine has these interfaces under NetworkManager control (you 
> can do "nmcli device" to check it),
> in that case, NM will keep the admin state up and monitor it.
> If you want it down, mark the interfaces as unmanaged (by NM) and perform an 
> ifdown on them.
> 
> Let us know if it helped.
>  

I added:

diff --git a/NetworkManager/NetworkManager.conf 
b/NetworkManager/NetworkManager.conf
index 1979ea6..420aba5 100644
--- a/NetworkManager/NetworkManager.conf
+++ b/NetworkManager/NetworkManager.conf
@@ -48,3 +48,5 @@
 #
 #level=TRACE
 #domains=ALL
+[keyfile]
+unmanaged-devices=eth2;eth3


And indeed it solves my problem with no unwanted side effects.___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/47HN5WUYQ2NKNM4NHO224AKA64GPRBE5/


[ovirt-users] Re: Sync LDAP users in Ovirt

2018-07-25 Thread p . staniforth
Hi Hari,
Adding the users to the group is done by the Directory Server 
(LDAP) so it's separate from the oVirt system.
You could have it done by the same program/script your using to add 
users/groups to the oVirt system but it would be an ldap call to the Directory 
Server.

https://www.python-ldap.org/en/latest/

http://ovirt.github.io/ovirt-engine-api-model/4.2/#services/groups

https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_group.py

Regards,
   Paul S.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/LMX4W5ODJZHEA4CVJN56DAQQMO3Q54C5/


[ovirt-users] Re: interface up when not used

2018-07-25 Thread Fabrice Bacchella


> Le 25 juil. 2018 à 13:42, Edward Haas  a écrit :
> 
> 
> 
> On Tue, Jul 24, 2018 at 1:08 PM, Fabrice Bacchella 
>  wrote:
> 
> 
>> Le 24 juil. 2018 à 11:50, Dominik Holler  a écrit :
>> 
>> On Tue, 24 Jul 2018 11:04:58 +0200
>> Fabrice Bacchella  wrote:
>> 
>>> To monitoring the network interfaces, I have a script that check if
>>> ifAdminStatus and ifOperStatus values matches in snmp.
>>> 
>>> But with oVirt it fails on a server with 4 physical interfaces, but
>>> only two connected, and return an error:
>>> 
>> 
>> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?
> 
> Yes.
> 
>> 
>>> snmptable XXX IF-MIB::ifTable | less
>>> SNMP table: IF-MIB::ifTable
>>> 
>>> ifIndex ifDescr ifAdminStatus ifOperStatus
>>>   1  loup   up
>>>   2eth0up   up
>>>   3eth1up   up
>>>   4eth2up down
>>>   5eth3up down
>>>  24 ;vdsmdummy;  down down
>>>  25   vnet0up   up
>>> 
>>> 
>>> And indeed on the server:
>>> 
>>> ip link show eth2
>>> 4: eth2:  mtu 1500 qdisc mq state
>>> DOWN mode DEFAULT group default qlen 1000 link/ether
>>> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>>> 
>> 
>> looks like eth2 is DOWN, as expected.
> 
> It's in state DOWN, but marked UP anyway.
> 
> A really DOWN interface is shown as (on another server, not an ovirt host):
> 
> 4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT 
> group default qlen 1000
> link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff
> 
> 
>> 
>> eth2 seems to be in state DOWN, which seems to be reflected in
>> ifOperStatus.
> 
> Yes it match. The state is reflected in the ifOperStatus. The ifAdminStatus 
> match the UP in the <...>
> 
>> 
>> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
>> it to be down?
> 
> That's it. I never ask it to be in such state.
> 
> 
> If eth2 and eth3 are not defined under oVirt control, I see no reason for the 
> system to touch it.
> Perhaps, you machine has these interfaces under NetworkManager control (you 
> can do "nmcli device" to check it),
> in that case, NM will keep the admin state up and monitor it.
> If you want it down, mark the interfaces as unmanaged (by NM) and perform an 
> ifdown on them.
> 
> Let us know if it helped.
>  

nmcli indeed shows:
DEVICE   TYPE  STATE CONNECTION 
eth2 ethernet  disconnected  -- 
eth3 ethernet  disconnected  -- 
vnet0tun   disconnected  -- 
bond0bond  unmanaged -- 
eth0 ethernet  unmanaged -- 
eth1 ethernet  unmanaged -- 

I wonder why it wants to manage vnet0 too.

That's exactly for think kind of things that I usually uninstall any 
NetworkManager components on my servers. But oVirt wants it, it should them 
managed them:

yum erase NetworkManager
...
Removing for dependencies:
 cockpit-networkmanagernoarch   
  169-1.el7.centos   @extras
149 k
 cockpit-ovirt-dashboard   noarch   
  0.11.28-1.el7  @ovirt-4.2 
 15 M
 ovirt-hostx86_64   
  4.2.3-1.el7@ovirt-4.2 
 11 k
 ovirt-hosted-engine-setup noarch   
  2.2.22.1-1.el7 @ovirt-4.2 
2.2 M



___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EOHEDY6ANEMZRJWY7WOURBJDGGFJ7TAV/


[ovirt-users] Re: Cannot switch to maintenance, image transfer is in progress

2018-07-25 Thread Daniel Erez
Hi Randi,

To understand if it's indeed the same issue, can you please attach the
output of:
- select * from image_transfers;
- select * from command_entities;

Every image_transfer record should have a correlated command_entity.
If it's missing from entities then you probably hit a similar issue.
In that case, you can change the image_transfers phase value to 4 ('Pause'),
and for cleanup, cancel the transfer manually (e.g. from webadmin -> disks
-> cancel).

On Wed, Jul 25, 2018 at 3:54 AM Randy Bender  wrote:

> We've just updated our hosted engine to 4.2.4.
> When trying to place one of the hosts in maintenance mode, we get the
> error in the subject line.  I've found the following that looks to be the
> issue we are hitting:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1586126
>
> I've looked in the engine database with the following command and results:
>
> engine=# select disk_id from image_transfers ;
>disk_id
> --
>  52966b71-2d01-4a16-9830-65a888717656
>  c72d64b7-93c9-485b-b031-29c785c5bf9a
> (2 rows)
>
> Full details on these records show that they are indeed old - there are no
> transfers actually in progress.
>
> Can anyone confirm the correct way to remedy this?  The bug report notes
> changing the phase on the record in question.  Before I try that, I'd like
> confirmation if anyone else has seen this issue and resolved it.
> And if this is the resolution, can you describe the exact psql commands to
> achieve this?
>
> Thanks
>
>
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/IRT6E43OYO52CIKC42AWLQJTNIFMYF3C/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/E3AFM4K36HLSLT3ZFNFBJLPWT2SHFT4O/


[ovirt-users] Re: Failed to deploy ovirt engine with "hosted-engine --deploy"

2018-07-25 Thread Karli Sjöberg
On Wed, 2018-07-25 at 12:05 +, Bong Shau Fui wrote:
> Hi:
>    I'm new to ovirt. I followed the guide at the page https://www.ovi
> rt.org/documentation/self-hosted/chap-Deploying_Self-Hosted_Engine/,
> started to run  "hosted-engine --deploy".  It got stuck at the
> stage  TASK [Get local VM IP] for about 5 minutes, and failed.  Did a
> search but came out with nothing.  From the log files these 2 lines
> are shown:
> 
> 2018-07-25 19:59:11,269+0800 DEBUG
> otopi.ovirt_hosted_engine_setup.ansible_utils
> ansible_utils._process_output:94 {u'_ansible_parsed': True,
> u'stderr_lines': [], u'cmd': u"virsh -r net-dhcp-leases default |
> grep -i 00:16:3e:5e:43:32 | awk '{ print $5 }' | cut -f1 -d'/'",
> u'end': u'2018-07-25 19:59:11.081420', u'_ansible_no_log': False,
> u'stdout': u'', u'changed': True, u'invocation': {u'module_args':
> {u'warn': True, u'executable': None, u'_uses_shell': True,
> u'_raw_params': u"virsh -r net-dhcp-leases default | grep -i
> 00:16:3e:5e:43:32 | awk '{ print $5 }' | cut -f1 -d'/'", u'removes':
> None, u'argv': None, u'creates': None, u'chdir': None, u'stdin':
> None}}, u'start': u'2018-07-25 19:59:10.949464', u'attempts': 50,
> u'stderr': u'', u'rc': 0, u'delta': u'0:00:00.131956',
> u'stdout_lines': []}
> 2018-07-25 19:59:11,370+0800 ERROR
> otopi.ovirt_hosted_engine_setup.ansible_utils
> ansible_utils._process_output:98 fatal: [localhost]: FAILED! =>
> {"attempts": 50, "changed": true, "cmd": "virsh -r net-dhcp-leases
> default | grep -i 00:16:3e:5e:43:32 | awk '{ print $5 }' | cut -f1
> -d'/'", "delta": "0:00:00.131956", "end": "2018-07-25
> 19:59:11.081420", "rc": 0, "start": "2018-07-25 19:59:10.949464",
> "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
> 
> 
> Can someone please enlighten me on what has happened?  Many thanks in
> advance.

That is exactly the same thing that happened to me today! Could you try
deploying again and in another terminal run this[*] after it's printed
"Get local VM IP"?

What happened to me was that the VM never started because it had kernel
panicked on boot, rather fast too, so you'll need to be quick in order
to catch it!

[*]: virsh console HostedEngineLocal

PS. The console will then hang if we're experiencing the same issue.

/K

> 
> 
> 
> regards,
> Bong SF
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/communit
> y-guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/WRYIJNH2C6FJSEYBWUYKBZGQVTVNPNAJ/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/IE5PBLF3HFWCMZ6KEIKBLJQ7W5WFMLLS/


[ovirt-users] Failed to deploy ovirt engine with "hosted-engine --deploy"

2018-07-25 Thread Bong Shau Fui
Hi:
   I'm new to ovirt. I followed the guide at the page 
https://www.ovirt.org/documentation/self-hosted/chap-Deploying_Self-Hosted_Engine/,
 started to run  "hosted-engine --deploy".  It got stuck at the stage  TASK 
[Get local VM IP] for about 5 minutes, and failed.  Did a search but came out 
with nothing.  From the log files these 2 lines are shown:

2018-07-25 19:59:11,269+0800 DEBUG 
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 
{u'_ansible_parsed': True, u'stderr_lines': [], u'cmd': u"virsh -r 
net-dhcp-leases default | grep -i 00:16:3e:5e:43:32 | awk '{ print $5 }' | cut 
-f1 -d'/'", u'end': u'2018-07-25 19:59:11.081420', u'_ansible_no_log': False, 
u'stdout': u'', u'changed': True, u'invocation': {u'module_args': {u'warn': 
True, u'executable': None, u'_uses_shell': True, u'_raw_params': u"virsh -r 
net-dhcp-leases default | grep -i 00:16:3e:5e:43:32 | awk '{ print $5 }' | cut 
-f1 -d'/'", u'removes': None, u'argv': None, u'creates': None, u'chdir': None, 
u'stdin': None}}, u'start': u'2018-07-25 19:59:10.949464', u'attempts': 50, 
u'stderr': u'', u'rc': 0, u'delta': u'0:00:00.131956', u'stdout_lines': []}
2018-07-25 19:59:11,370+0800 ERROR 
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:98 
fatal: [localhost]: FAILED! => {"attempts": 50, "changed": true, "cmd": "virsh 
-r net-dhcp-leases default | grep -i 00:16:3e:5e:43:32 | awk '{ print $5 }' | 
cut -f1 -d'/'", "delta": "0:00:00.131956", "end": "2018-07-25 19:59:11.081420", 
"rc": 0, "start": "2018-07-25 19:59:10.949464", "stderr": "", "stderr_lines": 
[], "stdout": "", "stdout_lines": []}


Can someone please enlighten me on what has happened?  Many thanks in advance.



regards,
Bong SF
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/WRYIJNH2C6FJSEYBWUYKBZGQVTVNPNAJ/


[ovirt-users] Re: interface up when not used

2018-07-25 Thread Edward Haas
On Tue, Jul 24, 2018 at 1:08 PM, Fabrice Bacchella <
fabrice.bacche...@orange.fr> wrote:

>
>
> Le 24 juil. 2018 à 11:50, Dominik Holler  a écrit :
>
> On Tue, 24 Jul 2018 11:04:58 +0200
> Fabrice Bacchella  wrote:
>
> To monitoring the network interfaces, I have a script that check if
> ifAdminStatus and ifOperStatus values matches in snmp.
>
> But with oVirt it fails on a server with 4 physical interfaces, but
> only two connected, and return an error:
>
>
> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?
>
>
> Yes.
>
>
> snmptable XXX IF-MIB::ifTable | less
> SNMP table: IF-MIB::ifTable
>
> ifIndex ifDescr ifAdminStatus ifOperStatus
>   1  loup   up
>   2eth0up   up
>   3eth1up   up
>   4eth2up down
>   5eth3up down
>  24 ;vdsmdummy;  down down
>  25   vnet0up   up
>
>
> And indeed on the server:
>
> ip link show eth2
> 4: eth2:  mtu 1500 qdisc mq state
> DOWN mode DEFAULT group default qlen 1000 link/ether
> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>
>
> looks like eth2 is DOWN, as expected.
>
>
> It's in state DOWN, but marked UP anyway.
>
> A really DOWN interface is shown as (on another server, not an ovirt host):
>
> 4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT
> group default qlen 1000
> link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff
>
>
>
> eth2 seems to be in state DOWN, which seems to be reflected in
> ifOperStatus.
>
>
> Yes it match. The state is reflected in the ifOperStatus. The
> ifAdminStatus match the UP in the <...>
>
>
> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
> it to be down?
>
>
> That's it. I never ask it to be in such state.
>
>
If eth2 and eth3 are not defined under oVirt control, I see no reason for
the system to touch it.
Perhaps, you machine has these interfaces under NetworkManager control (you
can do "nmcli device" to check it),
in that case, NM will keep the admin state up and monitor it.
If you want it down, mark the interfaces as unmanaged (by NM) and perform
an ifdown on them.

Let us know if it helped.


>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/345OZ3DDR36GUJUU4LBIERUOFQ5PTJPX/
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/UZFXSS4EP3TSV2CAAFTV26UAX6SHGXRT/


[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-25 Thread Idan Shaby
Hi,

The bootable attribute was moved, along with a few more attributes, to be
under a specific diskattachment, as it is an attribute of the relationship
between a disk and the specific VM it is attached to, rather than a disk
(which can be floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have
diskattachments under
/ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn 
wrote:

> Hi All,
>
> In the restapi of version 3, there is bootable attribute  in disk. But in
> version 4, the bootable attribute is removed from disk. For vm i can get
> bootable attribute from diskattachment. But there is no diskattachment in
> template. So, is there any way in the restapi of version 4 that i can know
> if the disk of the template is bootable or not?
>
> Thanks
>
> Regards.
>
> --
> like...@cs2c.com.cn
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/FWBM72FRXGKBJ5WU6624IBFPAWYTVQGG/


[ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

2018-07-25 Thread Sven Achtelik
Sorry, wrong, I have the following setup packes installed 

ovirt-engine-setup.noarch   4.2.4.5-1.el7  @ovirt-4.2   
ovirt-engine-setup-base.noarch  4.2.4.5-1.el7  @ovirt-4.2


-Ursprüngliche Nachricht-
Von: Sven Achtelik [mailto:sven.achte...@eps.aero] 
Gesendet: Mittwoch, 25. Juli 2018 13:17
An: p.stanifo...@leedsbeckett.ac.uk; users@ovirt.org
Betreff: [ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

Hi Paul, 

I'm trying with the latest packages, 4.2.5. How would I manually change those 
encodings ? 

Thanks,
Sven 

-Ursprüngliche Nachricht-
Von: p.stanifo...@leedsbeckett.ac.uk [mailto:p.stanifo...@leedsbeckett.ac.uk]
Gesendet: Dienstag, 24. Juli 2018 15:54
An: users@ovirt.org
Betreff: [ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

Hi Sven,
  I had a problem with SQL_ASCII and had to change them manually on 
our test upgrade system but one of the later 4.2 versions did it as part of the 
upgrade for Postgres, which version of 4.2 are you trying to upgrade to?

Regards,
   Paul S.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: 
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/4PKKCEAV3ZRAYI5EESBD5F3HH5PKHQMZ/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: 
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SZP3II6IBWZDW27CRNHWV2YZJFPPA2XL/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/H52AECFEC253NT3VKRJPDQDGIM563U6J/


[ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

2018-07-25 Thread Sven Achtelik
Hi Paul, 

I'm trying with the latest packages, 4.2.5. How would I manually change those 
encodings ? 

Thanks, 
Sven 

-Ursprüngliche Nachricht-
Von: p.stanifo...@leedsbeckett.ac.uk [mailto:p.stanifo...@leedsbeckett.ac.uk] 
Gesendet: Dienstag, 24. Juli 2018 15:54
An: users@ovirt.org
Betreff: [ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

Hi Sven,
  I had a problem with SQL_ASCII and had to change them manually on 
our test upgrade system but one of the later 4.2 versions did it as part of the 
upgrade for Postgres, which version of 4.2 are you trying to upgrade to?

Regards,
   Paul S.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: 
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/4PKKCEAV3ZRAYI5EESBD5F3HH5PKHQMZ/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SZP3II6IBWZDW27CRNHWV2YZJFPPA2XL/


[ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

2018-07-25 Thread Sven Achtelik
Hi Simone,

if I use the same command as you did I get the following information:

[root@ovirt-engine ~]# sudo -u postgres scl enable rh-postgresql95 -- psql 
--list
could not change directory to "/root": Permission denied
  List of databases
 Name |Owner | Encoding  |   Collate   |
Ctype|   Access privileges
--+--+---+-+-+---
engine   | engine   | UTF8  | en_US.UTF-8 | 
en_US.UTF-8 |
 ovirt_engine_history | ovirt_engine_history | UTF8  | en_US.UTF-8 | 
en_US.UTF-8 |
 postgres | postgres | SQL_ASCII | C   | C  
 |
 template0| postgres | SQL_ASCII | C   | C  
 | =c/postgres  +
  |  |   | |
 | postgres=CTc/postgres
template1| postgres | UTF8  | en_US.utf8  | 
en_US.utf8  |
(5 rows)

As I’m not a DB admin, I don’t really know how go about these encodings. I 
restored the current system from a 4.1.7 Backup to a 4.1.9 image and all went 
well.

Do you need any other values ?

Thanks,
Sven


Von: Simone Tiraboschi [mailto:stira...@redhat.com]
Gesendet: Dienstag, 24. Juli 2018 15:47
An: Sven Achtelik ; Yedidyah Bar David 
Cc: users ; Gobinda Das 
Betreff: Re: [ovirt-users] Re: Upgrade from 4.1 to 4.2 failing - SQL Issues

Hi,
it seams still pretty close to 
https://bugzilla.redhat.com/show_bug.cgi?id=1528371 although that one was on 
lc_collate and this on encoding.
Adding also Didi.

I just double check on a system of mine upgrade from 4.1 to 4.2 and template1 
is still on UTF8.

[root@enginevm tmp]# sudo -u postgres scl enable rh-postgresql95 -- psql --list
 List of databases
 Name |Owner | Encoding |   Collate   |
Ctype|   Access privileges
--+--+--+-+-+---
 engine   | engine   | UTF8 | en_US.UTF-8 | 
en_US.UTF-8 |
 ovirt_engine_history | ovirt_engine_history | UTF8 | en_US.UTF-8 | 
en_US.UTF-8 |
 postgres | postgres | UTF8 | en_US.UTF-8 | 
en_US.UTF-8 |
 template0| postgres | UTF8 | en_US.UTF-8 | 
en_US.UTF-8 | =c/postgres  +
  |  |  | | 
| postgres=CTc/postgres
 template1| postgres | UTF8 | en_US.UTF-8 | 
en_US.UTF-8 | postgres=CTc/postgres+
  |  |  | | 
| =c/postgres
(5 rows)


So the point is why the upgrade process is trying to force SQL_ASCII.
Can you please share your env variable values?

On Tue, Jul 24, 2018 at 2:57 PM Gobinda Das 
mailto:go...@redhat.com>> wrote:
Hi Sven,
 I think you need to use same encoding.The error clearly says your dump 
encoding is "UTF8" and the new database encoding is "SQL_ASCII"
As per I know PostgreSQL does not convert encoding from one type to another 
during restore.
Can you please check what's the current encoding configured?

On Tue, Jul 24, 2018 at 5:00 PM, Sven Achtelik 
mailto:sven.achte...@eps.aero>> wrote:
Hi All,

I’m still struggling to upgrade from 4.1 to 4.2 and the root cause seems to be 
the SQL upgrade. I installed my 4.1.9 with the engine appliance image and 
restored a DB to it. My Upgrade to 4.2 is failing with the errors below:

Performing Consistency Checks
-
Checking cluster versions   ok
Checking database user is the install user  ok
Checking database connection settings   ok
Checking for prepared transactions  ok
Checking for reg* system OID user data typesok
Checking for contrib/isn with bigint-passing mismatch   ok
Checking for invalid "line" user columnsok
Creating dump of global objects ok
Creating dump of database schemas
  engine
  ovirt_engine_history
  postgres
  template1
ok

encodings for database "template1" do not match:  old "UTF8", new "SQL_ASCII"
Failure, exiting

I tried everything that could do and I also tried to find a solution on google 
to make this work. Could someone with DB knowhow please advise on the next 
steps to resolve this ? I really would like to upgrade somehow.

Thank you,
Sven

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 
users-le...@ovirt.org
Privacy Statement: 

[ovirt-users] Re: oVirt 4.2.5.1-1.el7 JSON-RPC statistics error

2018-07-25 Thread Andrej Krejcir
I think the upgrade may not have affected the mom package, because no new
mom rpm version was released for a few months.

I'm not sure why the import fails even if the file is there.

As a workaround, mom can be configured to use the older (deprecated) json
rpc interface to communicate with vdsm. There is no difference in
functionality.
This can be done by editing /etc/vdsm/mom.conf. Set the
'hypervisor-interface' config value to 'vdsmjsonrpcbulk' insted of
'vdsmjsonrpcclient'.

On Wed, 25 Jul 2018 at 08:56, Maton, Brett  wrote:

> I upgraded my test cluster to 4.2.5.2-1 last night (hosts rebooted after
> update) and I've started to see the error again.
>
> As before it seems to be limited to the one host,  I've checked that
>
>
> /usr/lib/python2.7/site-packages/mom/HypervisorInterfaces/vdsmjsonrpcclientInterface.py
>
> exists, which it does but there are no matching .pyc / .pyo files which
> suggests that it's not been used?
>
> File permissions and SELinux contexts are the same on all files in the
> HypervisorInterfaces directory.
>
> 0644 root root system_u:object_r:lib_t:s0
>
> vdsm / mom log from time period attached.
>
>
> On 18 July 2018 at 16:10, Maton, Brett  wrote:
>
>> Thanks,
>>
>>   Cluster is all installed from pre-release, maybe I managed to get an
>> iffy rpm
>>
>> On 18 July 2018 at 15:50, Andrej Krejcir  wrote:
>>
>>> Yes, copying it from another host with mom version 0.5.12 is enough.
>>>
>>> I'm not sure why it was not installed. The file is in the rpm.
>>>
>>> On Wed, 18 Jul 2018 at 16:38, Maton, Brett 
>>> wrote:
>>>
 Bingo

 How could that file not be installed/deployed ?


 Should I simply copy it from one of the other hosts to make the message
 go away ?

 On 18 July 2018 at 15:30, Andrej Krejcir  wrote:

> Maybe the python module is missing. Can you check if this file exists?
>
>
> /usr/lib/python2.7/site-packages/mom/HypervisorInterfaces/vdsmjsonrpcclientInterface.py
>
>
> Andrej
>
> On Wed, 18 Jul 2018 at 16:04, Maton, Brett 
> wrote:
>
>> I just checked the mom version, it's already at 0.5.12
>>
>> # rpm -qa mom
>> mom-0.5.12-1.el7.centos.noarch
>>
>> All the physical hosts are fully updated /patched.
>>
>> Regards,
>> Brett
>>
>> On 18 July 2018 at 14:08, Andrej Krejcir  wrote:
>>
>>> Hi,
>>>
>>> Looking at MOM logs, the problem seems to be that MOM is configured
>>> to use 'vdsmjsonrpcclient' module to communicate with vdsm, but it
>>> cannot find this module, probably because it is an older version.
>>>
>>> Updating MOM to version 0.5.12 should fix it.
>>>
>>>
>>> Regards,
>>> Andrej
>>>
>>> On Wed, 18 Jul 2018 at 14:41, Maton, Brett 
>>> wrote:
>>>
 FWIW:

 This test cluster is 3x HP MicroServer Gen 8 16GB RAM, Intel(R)
 Xeon(R) CPU E3-1220 V2 @ 3.10GHz

 Network is bonded fail-over.

 Regards,
 Brett

 On 18 July 2018 at 13:15, Francesco Romani 
 wrote:

> Thanks!
>
>
> On 07/18/2018 02:11 PM, Maton, Brett wrote:
>
>> Sure no problem, mom log attached.
>>
>
> It seems to me that MOM is restarting *very* often:
>
> 2018-07-18 06:07:04,909 - mom - INFO - MOM starting
> 2018-07-18 06:07:20,407 - mom - INFO - MOM starting
> 2018-07-18 06:07:30,658 - mom - INFO - MOM starting
> 2018-07-18 06:07:30,658 - mom - INFO - MOM starting
>
> And I totally not expect this. Martin, Andrej, is this the
> expected behaviour?
>
>
> Bests,
>
>
>
> --
> Francesco Romani
> Senior SW Eng., Virtualization R
> Red Hat
> IRC: fromani github: @fromanirh
>
>

>>

>>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/OJSGX7XKAKA3DVJ7VLFHS75A7XTXROYS/


[ovirt-users] template disk attribute in version 4 restapi

2018-07-25 Thread like...@cs2c.com.cn
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/


[ovirt-users] Hosted Engine Deploy kernel panics on boot

2018-07-25 Thread Karli Sjöberg
Hey all!

I'm trying to deploy Hosted Engine through the Cockpit UI and it's
going well until it's time to start the local VM and it kernel panics:

[2.032053] Call Trace:
[2.032053]  [] load_elf_binary+0x33c/0xe50
[2.032053]  [] ? ima_bprm_check+0x49/0x50
[2.032053]  [] ? load_elf_library+0x220/0x220
[2.032053]  [] search_binary_handler+0xef/0x310
[2.032053]  [] do_execve_common.isra.24+0x5db/0x6e0
[2.032053]  [] do_execve+0x18/0x20
[2.032053]  [] call_usermodehelper+0xff/0x140
[2.032053]  [] ? call_usermodehelper+0x60/0x60
[2.032053]  [] ret_from_fork_nospec_begin+0x21/0x21
[2.032053]  [] ? call_usermodehelper+0x60/0x60
[2.032053] Code: cf e9 ff 4c 89 f7 e8 7b 32 e7 ff e9 4d fa ff ff 65 8b 05 
03 a0 7e 49 a8 01 0f 84 85 fc ff ff 31 d2 b8 01 00 00 00 b9 49 00 00 00 <0f> 30 
0f 1f 44 00 00 48 c7 c0 10 00 00 00 e8 07 00 00 00 f3 90
[2.032053] RIP  [] flush_old_exec+0x725/0x980
[2.032053]  RSP 
[2.298131] ---[ end trace 354b4039b6fb0889 ]---
[2.303914] Kernel panic - not syncing: Fatal exception
[2.304835] Kernel Offset: 0x3560 from 0x8100 (relocation 
range: 0x8000-0xbfff)

I've never had this problem so I'd just want to know if it's a known
issue right now or if I've done anything special to deserve this:)

The "Hosts" I'm deploying this on are VMs with nested virt activated,
and I've done this before but this time around it's bombing, as earlier
explained.

Thanks in advance!
/K
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/UQ6NH54FRQ4BIURTSE5I5OGQZ6HHDT2B/


[ovirt-users] Re: Raid configuration for single instance

2018-07-25 Thread Sahina Bose
On Tue, Jul 24, 2018 at 5:44 PM, Leo David  wrote:

> Hi,
> I did the above changes on the server ( adding enterprise disks for
> storage domains ),  and there are improvements. But.
> I just had a vm getting into "VM paused due to I/O error"  :(  .
> This vm has both disks as "thin-provisioning", and it runs as an OpenShift
> node ( Centos 7).
> Any chance that the problem could be because the disks are not
> "pre-alocated" and the filesystem writes are to intensive ?
> Getting a bit worried since this stack it's supposed to be seen as a
> production system
> Thank you very much !
>

Are there any error in the gluster logs (mount logs at
/var/log/glusterfs/rhev-data-center...)



> On Mon, Jul 16, 2018 at 3:59 PM, Andrei Verovski 
> wrote:
>
>> Hi,
>>
>> Looks almost good, see comments below.
>>
>> On 16 Jul 2018, at 13:48, Leo David  wrote:
>>
>> Thank you very much,  really helpfull.
>> So I will have:
>> 2 x Sandisk ssd plus 240GB ( still consumer grade ) for OS
>>
>>
>> Run continues (2+ hours, random + sequential read/write) iozone tests (in
>> a loop) before launching system on these SSD RAID.
>> You may be lucky or may be not.
>>
>> 2 x Samsung sm863a ( dc grade ) 1.9TB for creating 1 x raid1 ssd volume
>> 4 x Dell 2.4TB spinning ( dc grade ) for creating 1 x raid10 spinning
>> volume
>> 1 x nvme car for quick / non critical fast volume
>> - I would go for gluster since there are chances to extend the cluster in
>> near future.
>>
>>
>> You can also set shared volume on (at least) 2 x external SAN, NAS, NFS
>> server, whatever.
>>
>> Any thoughts on this config ?
>> Any thougts on configuring the perc controller to be gluster optimized (
>> for replicated / ditributed replicated volumes ) ?
>>
>>
>> Don’t think there are gluster-optimized settings.
>> Run iozone tests to find optimal settings depending on your workload.
>>
>>
>> Again,  thank you very much !
>>
>>
>>
>> On Mon, Jul 16, 2018 at 1:11 PM, Andrei Verovski 
>> wrote:
>>
>>> Hi, Leo,
>>>
>>> I would recommend the following configuration:
>>> RAID1 120GB for the OS and oVirt software
>>> RAID10 (GB whatever you need) for VM data
>>> I tested RAID5 it appears slower then RAID10.
>>>
>>> Please note consumer SSD may appear to work with SAS RAID controller yet
>>> actually they DO NOT !
>>> Load them with IOZONE stress test, and you will see complete freeze, and
>>> in case of OS install on these SSD, unbootable dead system.
>>>
>>> I tested consumer WD and KingFast SATA SSD, with both HP and
>>> 3Ware/Broadcom SAS RAID cards, all of them failed IOZONE stress test.
>>> BTW, you can buy 120GB used SAS server disks on ebay for something close
>>> to nothing.
>>> Conventional (mechanical) SATA hard drives work fine with SAS RAID cards
>>> (at least in my case).
>>>
>>> For single server you don’t need glusterfs, nfs is enough.
>>>
>>>
>>> > On 16 Jul 2018, at 09:27, Leo David  wrote:
>>> >
>>> > Hello everyone,
>>> > Based on your experiance or well know best practices can you provide
>>> me with an advice on raid configuration ?
>>> > I have a single server, that will have a couple of brand new
>>> enterprise grade ssds, spinning and one pci nvme card.
>>> > The server ( Dell PE r630 ) comes wirt Perc h730p raid controller with
>>> 2gb cache.
>>> > I am thinking of creating a raid 1 array with the 2 of ssd's and ne
>>> raid10 array woth the rest of for spinning hdds. Then different gluster
>>> volume on each,  to provide me 2 ( ssd / sata )  storage domains.
>>> > What do you think on haveing raid1 / raid10 as underlying HA storage
>>> for gluster volumes ?
>>> > At the moment a have some consumer devices ( samsung evo & seagate
>>> spinning shingled type ) and about every day the vms get into "VM has been
>>> paused due to storage IO errors" - i am thinking because of bad type hdds.
>>> > Any thoughts on these ?
>>> > Thank you ,
>>> >
>>> > Leo
>>> > --
>>> > Best regards, Leo David
>>> > ___
>>> > Users mailing list -- users@ovirt.org
>>> > To unsubscribe send an email to users-le...@ovirt.org
>>> > Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>>> > oVirt Code of Conduct: https://www.ovirt.org/communit
>>> y/about/community-guidelines/
>>> > List Archives: https://lists.ovirt.org/archiv
>>> es/list/users@ovirt.org/message/NC2QQNT2E57DYZ3W6MZUBQO75RHSZOBY/
>>>
>>>
>>
>>
>> --
>> Best regards, Leo David
>>
>>
>>
>
>
> --
> Best regards, Leo David
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/YPGTWPRADVPSWAANECOFWR7YZH3OXWHJ/
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 

[ovirt-users] Re: Deleting master storage

2018-07-25 Thread jin
Hi
Thanks for response but I 've ran "engine-cleanup" command and trying to
build new one.

2018-07-25 9:46 GMT+03:00 Idan Shaby :

> On Tue, Jul 24, 2018 at 6:51 PM, jin  > wrote:
>
>> Hi,
>>
>> Trying to build an ovirt system and i'm stuck with storage problem. I've
>> prepared iscsi storage and seems like my storage had some troubles and now
>> i could not get it online again. That is another story. I just want to
>> delete master storage domain on ovirt manager. Looks like this is not
>> allowed since there is no storage domain candidate to take master role.
>> Also i could not add another storage domain becouse that is not allowed
>> too. It says "can not add because there is no active storage domain" or
>> something similar.
>>
>> Basically i'm stuck and don't know how to delete storage domain (master)
>> without tear down all of them.
>>
> So you have some other storage domains in the data center rather than the
> master domain?
> What is their status?
> What do the logs say about the master domain?
>
>>
>>
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-le...@ovirt.org
>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>> oVirt Code of Conduct: https://www.ovirt.org/communit
>> y/about/community-guidelines/
>> List Archives: https://lists.ovirt.org/archiv
>> es/list/users@ovirt.org/message/Y3CO3RQHOMZ2BDI7BOT7GZTR4BY4STXB/
>>
>>
>


-- 
*There is no place like "/home"*
*Tuco (Benedicto Pasifico Juan Maria) Ramirez*
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/W7W22AENRQN2NWGXMJEO2KDKMKAOU3AW/


[ovirt-users] Re: oVirt Node 4.3 Master on fc28

2018-07-25 Thread femi adegoke
Hi Gobinda,

When you say "not recommending MDADM", does that apply to just this version 4.3 
of oVirt or all versions of oVirt?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/AKEGOL3BRY3GNKOBWM4AW2KYOAJUWNJB/


[ovirt-users] Re: oVirt Node 4.3 Master on fc28

2018-07-25 Thread Gobinda Das
Hi Femi,
 So theoretically it should work.Certain things need to be taken care like
you need to provide correct  MDADM configuration and in "Device" you need
to give the correct path.
We are not recommending MDADM because of performance issue and it will eat
more CPUs.
We have not tested with MDADM, but theoretically it should work.
Let me know if any issue.I will try to help.

On Mon, Jul 23, 2018 at 10:23 PM, femi adegoke 
wrote:

> Hi Gobinda,
>
> Thanks for more detail.
>
> What if I use MDADM (instead of hardware RAID), do the settings change?
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/75OANWKGOVDZTEFW6JO7KP4WK5C55HFL/
>



-- 
Thanks,
Gobinda
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EXK6IYGCGS63SXQ6K43IV4IJ7IZP66EF/


[ovirt-users] Re: oVirt 4.2.5.1-1.el7 JSON-RPC statistics error

2018-07-25 Thread Maton, Brett
I upgraded my test cluster to 4.2.5.2-1 last night (hosts rebooted after
update) and I've started to see the error again.

As before it seems to be limited to the one host,  I've checked that

/usr/lib/python2.7/site-packages/mom/HypervisorInterfaces/vdsmjsonrpcclientInterface.py

exists, which it does but there are no matching .pyc / .pyo files which
suggests that it's not been used?

File permissions and SELinux contexts are the same on all files in the
HypervisorInterfaces directory.

0644 root root system_u:object_r:lib_t:s0

vdsm / mom log from time period attached.


On 18 July 2018 at 16:10, Maton, Brett  wrote:

> Thanks,
>
>   Cluster is all installed from pre-release, maybe I managed to get an
> iffy rpm
>
> On 18 July 2018 at 15:50, Andrej Krejcir  wrote:
>
>> Yes, copying it from another host with mom version 0.5.12 is enough.
>>
>> I'm not sure why it was not installed. The file is in the rpm.
>>
>> On Wed, 18 Jul 2018 at 16:38, Maton, Brett 
>> wrote:
>>
>>> Bingo
>>>
>>> How could that file not be installed/deployed ?
>>>
>>>
>>> Should I simply copy it from one of the other hosts to make the message
>>> go away ?
>>>
>>> On 18 July 2018 at 15:30, Andrej Krejcir  wrote:
>>>
 Maybe the python module is missing. Can you check if this file exists?

 /usr/lib/python2.7/site-packages/mom/HypervisorInterfaces/vd
 smjsonrpcclientInterface.py


 Andrej

 On Wed, 18 Jul 2018 at 16:04, Maton, Brett 
 wrote:

> I just checked the mom version, it's already at 0.5.12
>
> # rpm -qa mom
> mom-0.5.12-1.el7.centos.noarch
>
> All the physical hosts are fully updated /patched.
>
> Regards,
> Brett
>
> On 18 July 2018 at 14:08, Andrej Krejcir  wrote:
>
>> Hi,
>>
>> Looking at MOM logs, the problem seems to be that MOM is configured
>> to use 'vdsmjsonrpcclient' module to communicate with vdsm, but it
>> cannot find this module, probably because it is an older version.
>>
>> Updating MOM to version 0.5.12 should fix it.
>>
>>
>> Regards,
>> Andrej
>>
>> On Wed, 18 Jul 2018 at 14:41, Maton, Brett 
>> wrote:
>>
>>> FWIW:
>>>
>>> This test cluster is 3x HP MicroServer Gen 8 16GB RAM, Intel(R)
>>> Xeon(R) CPU E3-1220 V2 @ 3.10GHz
>>>
>>> Network is bonded fail-over.
>>>
>>> Regards,
>>> Brett
>>>
>>> On 18 July 2018 at 13:15, Francesco Romani 
>>> wrote:
>>>
 Thanks!


 On 07/18/2018 02:11 PM, Maton, Brett wrote:

> Sure no problem, mom log attached.
>

 It seems to me that MOM is restarting *very* often:

 2018-07-18 06:07:04,909 - mom - INFO - MOM starting
 2018-07-18 06:07:20,407 - mom - INFO - MOM starting
 2018-07-18 06:07:30,658 - mom - INFO - MOM starting
 2018-07-18 06:07:30,658 - mom - INFO - MOM starting

 And I totally not expect this. Martin, Andrej, is this the expected
 behaviour?


 Bests,



 --
 Francesco Romani
 Senior SW Eng., Virtualization R
 Red Hat
 IRC: fromani github: @fromanirh


>>>
>
>>>
>


logs.tgz
Description: GNU Zip compressed data
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/5FSBPGZQ6LW6GGLB7ZTCJF3E75B3OYG6/


[ovirt-users] Re: Deleting master storage

2018-07-25 Thread Idan Shaby
On Tue, Jul 24, 2018 at 6:51 PM, jin 
wrote:

> Hi,
>
> Trying to build an ovirt system and i'm stuck with storage problem. I've
> prepared iscsi storage and seems like my storage had some troubles and now
> i could not get it online again. That is another story. I just want to
> delete master storage domain on ovirt manager. Looks like this is not
> allowed since there is no storage domain candidate to take master role.
> Also i could not add another storage domain becouse that is not allowed
> too. It says "can not add because there is no active storage domain" or
> something similar.
>
> Basically i'm stuck and don't know how to delete storage domain (master)
> without tear down all of them.
>
So you have some other storage domains in the data center rather than the
master domain?
What is their status?
What do the logs say about the master domain?

>
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/Y3CO3RQHOMZ2BDI7BOT7GZTR4BY4STXB/
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EXWM5HHSL6ETPOBJX5Y5NUYOVDGHUAQD/


[ovirt-users] Backup Strategies

2018-07-25 Thread Markus Schaufler
Hi!

We use in our test infrastructure a NetApp shared fc storage and wonder how a 
backup strategie could look like.
Full backups aren't the problem - trigger HV Snapshots including guest FS 
freeze / quiece, trigger NetApp Snapshot, delete HV Snapshots.

Currently I'm struggeling on how to recover those Backups. I would provide the 
Snapshot volume to the hosts and import it as a new data domain, so the hosts 
have the snapshot disks as logical volumes. But how could I recover 
respectively move the content of the snapshot volumes onto the currently used 
vm "disk volumes"?
If I have the proof of concept then scripting it to make this process more 
comfortable wouldn't be a problem. 

How do you do your backups with shared san? How can I provide incremental 
Backups?

Thanks for any help!
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/6EKWFWOCPLR2EORP4IBI72KEKH6RXTDC/