[ovirt-users] virtual machine actual size is not right

2018-03-21 Thread Terry hey
Dear all,

I would like to know the actual size that the virtual machine is used.
I found that there is a field to show "actual size". But the number is not
right.

I entered the server and type df -h.
The storage size of the server is about 30GB but the actual size field
shows 60 GB.

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


[ovirt-users] Any monitoring tool provided?

2018-03-21 Thread Terry hey
Dear all,

Now, we can just read how many storage used, cpu usage on ovirt dashboard.
But is there any monitoring tool for monitoring virtual machine time to
time?
If yes, could you guys give me the procedure?


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


[ovirt-users] How to generate Swagger specification of the oVirt API?

2018-03-21 Thread Shao-Da Huang
Hi Juan,

I saw the discussion in users-list:
http://lists.ovirt.org/pipermail/users/2017-April/081618.html
and I'm curious about how to generate the Swagger specfication of existing
oVirt API (or maybe can generate by ovirt-engine-api-model?).
Could you give me some advices on the generating tools or maybe some points
to change during the procedure of building ovirt-engine?

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


[ovirt-users] Host down/activation loop

2018-03-21 Thread Jamie Lawrence
Hello,

Have an issue that feels sanlock related, but I can't get sorted with our 
installation. This is 4.2.1, hosted engine. One of our hosts is stuck in a 
loop. It:

- gets a VDSM GetStatsVDS timeout, is marked as down, 
- throws a warning about not being fenced (because that's not enabled yet, 
because of this problem).
- and is set up Up about a minute later.

This repeats every 4 minutes and 20 seconds.

The hosted engine is running on the host that is stuck like this, and it 
doesn't appear to get in the way of creating new VMs or other operations, but 
obviously I can't use fencing, which is a big part of the point of running 
Ovirt in the first place.

I tried setting global maintenance and running hosted-engine 
--reinitialize-lockspace, which (a) took nearly exactly 2 minutes to run, 
making me think something timed out, (b) exited with rc 0, and (c) didn't fix 
the problem.

Anyone have an idea of how to fix this?

-j



- - details - -

I still can't quite figure out how to interpret what sanlock says, but  the -1s 
look like wrongness.

[sc5-ovirt-1]# sanlock client status
daemon bedae69e-03cc-49f8-88f4-9674a85a3185.sc5-ovirt-
p -1 helper
p -1 listener
p 122268 HostedEngine
p -1 status
s 
1aabcd3a-3fd3-4902-b92e-17beaf8fe3fd:1:/rhev/data-center/mnt/glusterSD/172.16.0.151\:_sc5-images/1aabcd3a-3fd3-4902-b92e-17beaf8fe3fd/dom_md/ids:0
s 
b41eb20a-eafb-481b-9a50-a135cf42b15e:1:/rhev/data-center/mnt/glusterSD/sc5-gluster-10g-1\:_sc5-ovirt__engine/b41eb20a-eafb-481b-9a50-a135cf42b15e/dom_md/ids:0
r 
b41eb20a-eafb-481b-9a50-a135cf42b15e:8f0c9f7a-ae6a-476e-b6f3-a830dcb79e87:/rhev/data-center/mnt/glusterSD/172.16.0.153\:_sc5-ovirt__engine/b41eb20a-eafb-481b-9a50-a135cf42b15e/images/a9d01d59-f146-47e5-b514-d10f8867678e/8f0c9f7a-ae6a-476e-b6f3-a830dcb79e87.lease:0:5
 p 122268


engine.log:

2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] EVENT_ID: 
VDS_BROKER_COMMAND_FAILURE(10,802), VDSM sc5-ovirt-1 command GetStatsVDS 
failed: Message timeout which can be caused by communication issues
2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetStatsVDSCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Command 
'GetStatsVDSCommand(HostName = sc5-ovirt-1, 
VdsIdAndVdsVDSCommandParametersBase:{hostId='be3517e0-f79d-464c-8169-f786d13ac287',
 vds='Host[sc5-ovirt-1,be3517e0-f79d-464c-8169-f786d13ac287]'})' execution 
failed: VDSGenericException: VDSNetworkException: Message timeout which can be 
caused by communication issues
2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Failed getting vds 
stats, host='sc5-ovirt-1'(be3517e0-f79d-464c-8169-f786d13ac287): 
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: 
VDSGenericException: VDSNetworkException: Message timeout which can be caused 
by communication issues
2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Failure to refresh host 
'sc5-ovirt-1' runtime info: VDSGenericException: VDSNetworkException: Message 
timeout which can be caused by communication issues
2018-03-21 16:09:26,081-07 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Failed to refresh VDS, 
network error, continuing, 
vds='sc5-ovirt-1'(be3517e0-f79d-464c-8169-f786d13ac287): VDSGenericException: 
VDSNetworkException: Message timeout which can be caused by communication issues
2018-03-21 16:09:26,081-07 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager] 
(EE-ManagedThreadFactory-engine-Thread-102682) [] Host 'sc5-ovirt-1' is not 
responding.
2018-03-21 16:09:26,088-07 WARN  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engine-Thread-102682) [] EVENT_ID: 
VDS_HOST_NOT_RESPONDING(9,027), Host sc5-ovirt-1 is not responding. Host cannot 
be fenced automatically because power management for the host is disabled.
2018-03-21 16:09:27,070-07 INFO  
[org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
Connecting to sc5-ovirt-1/10.181.26.129
2018-03-21 16:09:27,918-07 INFO  
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(DefaultQuartzScheduler4) [493fb316] START, 
GlusterServersListVDSCommand(HostName = sc5-gluster-2, 
VdsIdVDSCommandParametersBase:{hostId='797cbf42-6553-4a75-b8b1-93b2adbbc0db'}), 
log id: 6afccc01
2018-03-21 16:09:28,579-07 INFO  
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(DefaultQuartzScheduler4) [493fb316] FINISH, GlusterServersListVDSCommand, 
return: [192.168.122.1/24:CONNECTED, sc5-gluster-3:CONNECTED, 
sc5-gluster-10g-1:CONNECTED], log id: 6afccc01
2018-03-21 16:09:28,606-07 INFO  

[ovirt-users] Host down/activation loop

2018-03-21 Thread Jamie Lawrence
Hello,

Have an issue that feels sanlock related, but I can't get sorted with our 
installation. This is 4.2.1, hosted engine. One of our hosts is stuck in a 
loop. It:

 - gets a VDSM GetStatsVDS timeout, is marked as down, 
 - throws a warning about not being fenced (because that's not enabled yet, 
because of this problem).
 - and is set up Up about a minute later.

This repeats every 4 minutes and 20 seconds.

The hosted engine is running on the host that is stuck like this, and it 
doesn't appear to get in the way of creating new VMs or other operations, but 
obviously I can't use fencing, which is a big part of the point of running 
Ovirt in the first place.

I tried setting global maintenance and running hosted-engine 
--reinitialize-lockspace, which (a) took nearly exactly 2 minutes to run, 
making me think something timed out, (b) exited with rc 0, and (c) didn't fix 
the problem.

Anyone have an idea of how to fix this?

-j



- - details - -

I still can't quite figure out how to interpret what sanlock says, but  the -1s 
look like wrongness.

[sc5-ovirt-1]# sanlock client status
daemon bedae69e-03cc-49f8-88f4-9674a85a3185.sc5-ovirt-
p -1 helper
p -1 listener
p 122268 HostedEngine
p -1 status
s 
1aabcd3a-3fd3-4902-b92e-17beaf8fe3fd:1:/rhev/data-center/mnt/glusterSD/172.16.0.151\:_sc5-images/1aabcd3a-3fd3-4902-b92e-17beaf8fe3fd/dom_md/ids:0
s 
b41eb20a-eafb-481b-9a50-a135cf42b15e:1:/rhev/data-center/mnt/glusterSD/sc5-gluster-10g-1\:_sc5-ovirt__engine/b41eb20a-eafb-481b-9a50-a135cf42b15e/dom_md/ids:0
r 
b41eb20a-eafb-481b-9a50-a135cf42b15e:8f0c9f7a-ae6a-476e-b6f3-a830dcb79e87:/rhev/data-center/mnt/glusterSD/172.16.0.153\:_sc5-ovirt__engine/b41eb20a-eafb-481b-9a50-a135cf42b15e/images/a9d01d59-f146-47e5-b514-d10f8867678e/8f0c9f7a-ae6a-476e-b6f3-a830dcb79e87.lease:0:5
 p 122268


engine.log:

2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] EVENT_ID: 
VDS_BROKER_COMMAND_FAILURE(10,802), VDSM sc5-ovirt-1 command GetStatsVDS 
failed: Message timeout which can be caused by communication issues
2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetStatsVDSCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Command 
'GetStatsVDSCommand(HostName = sc5-ovirt-1, 
VdsIdAndVdsVDSCommandParametersBase:{hostId='be3517e0-f79d-464c-8169-f786d13ac287',
 vds='Host[sc5-ovirt-1,be3517e0-f79d-464c-8169-f786d13ac287]'})' execution 
failed: VDSGenericException: VDSNetworkException: Message timeout which can be 
caused by communication issues
2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Failed getting vds 
stats, host='sc5-ovirt-1'(be3517e0-f79d-464c-8169-f786d13ac287): 
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: 
VDSGenericException: VDSNetworkException: Message timeout which can be caused 
by communication issues
2018-03-21 16:09:26,081-07 ERROR 
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Failure to refresh host 
'sc5-ovirt-1' runtime info: VDSGenericException: VDSNetworkException: Message 
timeout which can be caused by communication issues
2018-03-21 16:09:26,081-07 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager] 
(EE-ManagedThreadFactory-engineScheduled-Thread-67) [] Failed to refresh VDS, 
network error, continuing, 
vds='sc5-ovirt-1'(be3517e0-f79d-464c-8169-f786d13ac287): VDSGenericException: 
VDSNetworkException: Message timeout which can be caused by communication issues
2018-03-21 16:09:26,081-07 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager] 
(EE-ManagedThreadFactory-engine-Thread-102682) [] Host 'sc5-ovirt-1' is not 
responding.
2018-03-21 16:09:26,088-07 WARN  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engine-Thread-102682) [] EVENT_ID: 
VDS_HOST_NOT_RESPONDING(9,027), Host sc5-ovirt-1 is not responding. Host cannot 
be fenced automatically because power management for the host is disabled.
2018-03-21 16:09:27,070-07 INFO  
[org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
Connecting to sc5-ovirt-1/10.181.26.129
2018-03-21 16:09:27,918-07 INFO  
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(DefaultQuartzScheduler4) [493fb316] START, 
GlusterServersListVDSCommand(HostName = sc5-gluster-2, 
VdsIdVDSCommandParametersBase:{hostId='797cbf42-6553-4a75-b8b1-93b2adbbc0db'}), 
log id: 6afccc01
2018-03-21 16:09:28,579-07 INFO  
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(DefaultQuartzScheduler4) [493fb316] FINISH, GlusterServersListVDSCommand, 
return: [192.168.122.1/24:CONNECTED, sc5-gluster-3:CONNECTED, 
sc5-gluster-10g-1:CONNECTED], log id: 6afccc01
2018-03-21 16:09:28,606-07 INFO  

Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Douglas Landgraf
Hi Marcos,

On Wed, Mar 21, 2018 at 2:29 PM, Marcos Michel Martinez Perez
 wrote:
> # action=setup
> [environment:default]
> OVESETUP_DIALOG/confirmSettings=bool:True
> OVESETUP_CONFIG/applicationMode=str:both
> OVESETUP_CONFIG/remoteEngineSetupStyle=none:None
> OVESETUP_CONFIG/sanWipeAfterDelete=bool:False
> OVESETUP_CONFIG/storageIsLocal=bool:False
> OVESETUP_CONFIG/firewallManager=none:None
> OVESETUP_CONFIG/remoteEngineHostRootPassword=none:None
> OVESETUP_CONFIG/firewallChangesReview=none:None
> OVESETUP_CONFIG/updateFirewall=bool:False
> OVESETUP_CONFIG/remoteEngineHostSshPort=none:None
> OVESETUP_CONFIG/fqdn=str:ovirt.sige.uci.cu
> OVESETUP_CONFIG/storageType=none:None
> OSETUP_RPMDISTRO/requireRollback=none:None
> OSETUP_RPMDISTRO/enableUpgrade=none:None
> OVESETUP_PROVISIONING/postgresProvisioningEnabled=bool:True
> OVESETUP_APACHE/configureRootRedirection=bool:True
> OVESETUP_APACHE/configureSsl=bool:True
> OVESETUP_DB/secured=bool:False
> OVESETUP_DB/fixDbConfiguration=none:None
> OVESETUP_DB/user=str:engine_20180321121404
> OVESETUP_DB/dumper=str:pg_custom
> OVESETUP_DB/database=str:engine_20180321121404
> OVESETUP_DB/fixDbViolations=none:None
> OVESETUP_DB/engineVacuumFull=none:None
> OVESETUP_DB/host=str:localhost
> OVESETUP_DB/port=int:5432
> OVESETUP_DB/filter=none:None
> OVESETUP_DB/restoreJobs=int:2
> OVESETUP_DB/securedHostValidation=bool:False
> OVESETUP_ENGINE_CORE/enable=bool:True
> OVESETUP_CORE/engineStop=none:None
> OVESETUP_SYSTEM/memCheckEnabled=bool:True
> OVESETUP_SYSTEM/nfsConfigEnabled=none:None
> OVESETUP_PKI/organization=str:sige.uci.cu
> OVESETUP_PKI/renew=none:None
> OVESETUP_CONFIG/isoDomainName=none:None
> OVESETUP_CONFIG/engineHeapMax=str:1024M
> OVESETUP_CONFIG/ignoreVdsgroupInNotifier=none:None
> OVESETUP_CONFIG/adminPassword=str:Ins03dmesa
> OVESETUP_CONFIG/isoDomainACL=none:None
> OVESETUP_CONFIG/isoDomainMountPoint=none:None
> OVESETUP_ENGINE_CONFIG/fqdn=str:ovirt.sige.uci.cu
> OVESETUP_CONFIG/engineDbBackupDir=str:/var/lib/ovirt-engine/backups
> OVESETUP_CONFIG/engineHeapMin=str:1024M
> OVESETUP_OVN/ovirtProviderOvn=bool:True
> OVESETUP_OVN/ovirtProviderOvnUser=str:admin@internal
> OVESETUP_OVN/ovirtProviderOvnPassword=str:Ins03dmesa
> OVESETUP_CONFIG/websocketProxyConfig=bool:True
> OVESETUP_DWH_CORE/enable=bool:True
> OVESETUP_DWH_CONFIG/scale=str:1
> OVESETUP_DWH_CONFIG/dwhDbBackupDir=str:/var/lib/ovirt-engine-dwh/backups
> OVESETUP_DWH_DB/secured=bool:False
> OVESETUP_DWH_DB/restoreBackupLate=bool:True
> OVESETUP_DWH_DB/disconnectExistingDwh=none:None
> OVESETUP_DWH_DB/host=str:localhost
> OVESETUP_DWH_DB/user=str:ovirt_engine_history_20180321121409
> OVESETUP_DWH_DB/dumper=str:pg_custom
> OVESETUP_DWH_DB/database=str:ovirt_engine_history_20180321121409
> OVESETUP_DWH_DB/performBackup=none:None
> OVESETUP_DWH_DB/port=int:5432
> OVESETUP_DWH_DB/filter=none:None
> OVESETUP_DWH_DB/restoreJobs=int:2
> OVESETUP_DWH_DB/securedHostValidation=bool:False
> OVESETUP_DB/dwhVacuumFull=none:None
> OVESETUP_DWH_PROVISIONING/postgresProvisioningEnabled=bool:True
> OVESETUP_CONFIG/imageioProxyConfig=bool:True
> OVESETUP_VMCONSOLE_PROXY_CONFIG/vmconsoleProxyConfig=bool:True
>
> UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de
> las Ciencias Informáticas. Del 24-26 de septiembre, 2018
> http://uciencia.uci.cu http://eventos.uci.cu
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

As Didi mentioned, we are looking for errors in the below files/dir.
Do you mind to take a look and share the error message?

/var/log/ovirt-engine/setup/*
/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_log
/var/log/messages



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


Re: [ovirt-users] VM guest agent

2018-03-21 Thread Nicolas Vaye
Hi Tomas,

for my RHEL 6.5, i have installed ovirt-guest-agent 1.0.12-2.el6.noarch.

Thanks.


 Message initial 

Date: Wed, 21 Mar 2018 11:34:08 +0100
Objet: Re: [ovirt-users] VM guest agent
Cc: users@ovirt.org 
>
À: Nicolas Vaye 
>
De: Tomáš Golembiovský 
>

Hi,

On Sun, 11 Mar 2018 22:56:32 +
Nicolas Vaye 
> wrote:



Hello,

i have installed one oVirt platform with 2 node and 1 HE version 4.2.1.7-1

It seem to work fine, but i would like more information on the guest agent.
For the HE, the guest agent seem to be OK, on this vm i 've spotted that the 
ovirt-guest-agent and qemu-guest-agent are installed.

I have 2 VM, 1 debian 9 and 1 RHEL 6.5. I've tried to install the same service 
on each VM, but the result is the same :
no info about IP, fqdn, or app installed for these vm, and there is a orange ! 
for each vm on the web ui (indicate that i need to install latest guest agent) .



What version of the guest agent do you have installed on RHEL 6.5?

Tomas




I have tried different test with spice-vdagent, or ovirt-guest-agent or 
qemu-guest-agent but no way.

ovirt-guest-agent doesn't start on debian 9 and RHEL 6.5 :
MainThread::INFO::2018-03-11 
22:46:02,984::ovirt-guest-agent::59::root::Starting oVirt guest 
agentMainThread::ERROR::2018-03-11 
22:46:02,986::ovirt-guest-agent::141::root::Unhandled exception in oVirt guest 
agent!Traceback (most recent call last):  File 
"/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 135, in 
agent.run(daemon, pidfile)  File 
"/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 65, in run
self.agent = LinuxVdsAgent(config)  File 
"/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 472, in __init__
AgentLogicBase.__init__(self, config)  File 
"/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 188, in __init__
self.vio = VirtIoChannel(config.get("virtio", "device"))  File 
"/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 153, in __init__
self._stream = VirtIoStream(vport_name)  File 
"/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 134, in __init__
self._vport = os.open(vport_name, os.O_RDWR)OSError: [Errno 2] No such file or 
directory: '/dev/virtio-ports/com.redhat.rhevm.vdsm'


Can i have help for this problem ?

Thanks.

Nicolas VAYE
DSI - Nouméa
NEW CALEDONIA
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users





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


Re: [ovirt-users] how update the network name of a vmnic with API SDK python ?

2018-03-21 Thread Nicolas Vaye
Thank you Dominik, it works.

 Message initial 

Date: Wed, 21 Mar 2018 08:19:38 +0100
Objet: Re: [ovirt-users] how update the network name of a vmnic with API SDK 
python ?
Cc: users@ovirt.org 
>
À: Nicolas Vaye 
>
De: Dominik Holler 
>

On Wed, 21 Mar 2018 05:30:25 +
Nicolas Vaye 
> wrote:



Hi,

i want to change the network name of the existing nic for a VM with
python SDK API ? Can i have some help please ?

the VM name is testnico
the nic name is nic1
the new network name is vlan_NEW

and here is the source file written by me (which doesn't work) :


#!/usr/bin/env python
# -*- coding: utf-8 -*-


import logging
import time

import ovirtsdk4 as sdk
import ovirtsdk4.types as types

logging.basicConfig(level=logging.DEBUG, filename='example.log')

# This example will connect to the server and start a virtual machine
# with cloud-init, in order to automatically configure the network and
# the password of the `root` user.

# Create the connection to the server:
connection = sdk.Connection(
url='https://ocenter.province-sud.prod/ovirt-engine/api',
username='admin@internal',
password='',
ca_file='CA_ocenter.pem',
debug=True,
log=logging.getLogger(),
)

# Find the virtual machine:
vms_service = connection.system_service().vms_service()
vm = vms_service.list(search = 'name=testnico')[0]

# Find the service that manages the virtual machine:
vm_service = vms_service.vm_service(vm.id)




# In order to specify the network that the new interface will be
# connected to we need to specify the identifier of the virtual
network # interface profile, so we need to find it:
profiles_service = connection.system_service().vnic_profiles_service()
profile_id = None
for profile in profiles_service.list():
print "profile "+profile.name+","+profile.id
if profile.name == 'vlan_NEW':
profile_id = profile.id
break

# Locate the service that manages the network interface cards of the
# virtual machine:
nics_service = vm_service.nics_service()

#print nics_service

# Find the nic1 of the VM
for nic in nics_service.list():
print "nic "+nic.name+","+nic.id+','+nic.vnic_profile.id
if nic.name == 'nic1':
nic_service = nics_service.nic_service(nic.id)
break


print "nic_service nic1 ==>"+str(nic_service)
#pprint(vars(nic_service.network_filter_parameters_service().parameter_service()))


#nic_service.vnic_profile.id=profile_id
#nic_service.update()

nic_service.update(
vnic_profile=types.VnicProfile(
id=profile_id,
)
)




nic_service.update(
types.Nic(
vnic_profile=types.VnicProfile(
id=profile_id,
)
)
)





# Close the connection to the server:
connection.close()


The result is :

Traceback (most recent call last):
  File "start_vm_with_cloud_init.py", line 85, in 
id=profile_id,
TypeError: update() got an unexpected keyword argument 'vnic_profile'


How can i do ?




update() expects a parameter of type types.Nic, which has the parameter
vnic_profile.



Thanks.

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




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


[ovirt-users] Juniper vSRX Cluster on oVirt/RHEV

2018-03-21 Thread Charles Kozler
Hi All -

Recently did this and thought it would be worth documenting. I couldnt find
any solid information on vsrx with kvm outside of flat KVM. This outlines
some of the things I hit along the way and how to fix. This is my one small
way of giving back to such an incredible open source tool

https://ckozler.net/vsrx-cluster-on-ovirtrhev/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ovirt nodes NFS connection

2018-03-21 Thread Yaniv Kaul
On Wed, Mar 21, 2018 at 12:41 PM, Tal Bar-Or  wrote:

> Hello All,
>
> I am about to deploy a new Ovirt platform, the platform  will consist 4
> Ovirt nodes including management, all servers nodes and storage will have
> the following config:
>
> *nodes server*
> 4x10G ports network cards
> 2x10G will be used for VM network.
> 2x10G will be used for storage connection
> 2x1Ge 1xGe for nodes management
>
>
> *Storage *4x10G ports network cards
> 3 x10G for NFS storage mount Ovirt nodes
>
> Now given above network configuration layout, what is best practices in
> terms of nodes for storage NFS connection, throughput and path resilience
> suggested to use
> First option each node 2x 10G lacp and on storage side 3x10G lacp?
>

I'm not sure how you'd get more throughout than you can get in a single
physical link. You will get redundancy.

Of course, on the storage side you might benefit from multiple bonded
interfaces.


> The second option creates 3 VLAN's assign each node on that 3 VLAN's
> across 2 nic, and on storage, side assigns 3 nice across 3 VLANs?
>

Interesting - but I assume it'll still stick to a single physical link.
Y.

Thanks
>
>
>
>
>
> --
> Tal Bar-or
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

2018-03-21 Thread zois roupas
Is this a safe procedure? I mean i only have this host in my cluster, what will 
happen at the vm's that are assigned to the host?


Thanks again


From: Michael Burman 
Sent: Tuesday, March 20, 2018 4:10 PM
To: zois roupas
Cc: Ales Musil; users
Subject: Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

Then you need to remove the host from engine, change the IP manually on the 
host, via ifcfg-file, restart network service and install the host again via 
the new IP address.

On Tue, Mar 20, 2018 at 2:50 PM, zois roupas 
> wrote:

Hi again all,


 "Unless i miss understood you here, do you use a different IP address when 
switching to static or the same IP that you got from dhcp? if yes, then this is 
another flow.."


To answer your question Michael , i'm trying to configure a different ip 
outside of my dhcp pool. The dhcp ip is 10.0.0.245 from the range 
10.0.0.245-10.0.0.250 and i want to configure the ip 10.0.0.9 as the hosts ip

"One thing to note if you are changing the IP to different one that was 
assigned by DHCP you should uncheck "Verify connectivity between Host and 
Engine""

Ales, i also tried to follow your advise and uncheck the "Verify connectivity 
between Host and Engine" as proposed. Again the same results, it keeps 
reverting to previous dhcp ip
I will extract the vdsm log and i'll get back to you, in the meanwhile this is 
the error that i see after the assignment of the static ip in the log

2018-03-20 14:16:57,576+0200 ERROR (monitor/38f4464) [storage.Monitor] Error 
checking domain 38f4464b-74b9-4468-891b-03cd65d72fec (monitor:424)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/storage/monitor.py", line 405, in 
_checkDomainStatus
self.domain.selftest()
  File "/usr/lib/python2.7/site-packages/vdsm/storage/fileSD.py", line 688, in 
selftest
self.oop.os.statvfs(self.domaindir)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/outOfProcess.py", line 
243, in statvfs
return self._iop.statvfs(path)
  File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line 488, in 
statvfs
resdict = self._sendCommand("statvfs", {"path": path}, self.timeout)
  File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line 455, in 
_sendCommand
raise Timeout(os.strerror(errno.ETIMEDOUT))
Timeout: Connection timed out

Best Regards
Zois





From: Ales Musil >
Sent: Tuesday, March 20, 2018 11:28 AM
To: Michael Burman
Cc: zois roupas; users

Subject: Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

One thing to note if you are changing the IP to different one that was assigned 
by DHCP you should uncheck "Verify connectivity between Host and Engine". This 
makes sure that the engine won't lost connectivity and in case of switching IP 
it happens.

On Tue, Mar 20, 2018 at 10:15 AM, Michael Burman 
> wrote:
Indeed very odd, this shouldn't  behave this way, just tested it my self and it 
is working as expected. Unless i miss understood you here, do you use a 
different IP address when switching to static or the same IP that you got from 
dhcp? if yes, then this is another flow..

Can you please share the vdsm version and vdsm log with us?

Edy, any idea what can cause this?

On Tue, Mar 20, 2018 at 11:10 AM, zois roupas 
> wrote:

Hi Michael and thanks a lot for the time


Great step by step instructions but something strange is happening while trying 
to change to static ip. I tried to do the change while the host was in 
maintenance mode and in activate mode but again after some minutes the system 
reverts to the ip that dhcp is serving!

What am i missing here? Do you have any ideas?


Best Regards
Zois

From: Michael Burman >
Sent: Tuesday, March 20, 2018 8:46 AM
To: zois roupas
Cc: users@ovirt.org
Subject: Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

Hello Zois,

It pretty easy to do, via the webadmin UI , go to Hosts main tab > Choose host 
> go to 'Network Interfaces' sub tab > Press the 'Setup Host Networks' button > 
press the pencil icon on your management network > and  choose Static IP > 
press OK and OK to approve the operation.

- Note that in some cases, specially if this is a SPM host you will loose 
connectivity to host for few seconds and host may go to non-responsive state, 
on a non-SPM host usually this woks without any specific issues.

- If the spoken host is a SPM host, I recommend to set it first to maintenance 
mode, do the switch and then activate. For non-SPM host this will work fine as 
well when the host is UP.

Cheers)

On Mon, Mar 19, 2018 at 12:15 PM, zois roupas 

Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Marcos Michel Martinez Perez

# action=setup
[environment:default]
OVESETUP_DIALOG/confirmSettings=bool:True
OVESETUP_CONFIG/applicationMode=str:both
OVESETUP_CONFIG/remoteEngineSetupStyle=none:None
OVESETUP_CONFIG/sanWipeAfterDelete=bool:False
OVESETUP_CONFIG/storageIsLocal=bool:False
OVESETUP_CONFIG/firewallManager=none:None
OVESETUP_CONFIG/remoteEngineHostRootPassword=none:None
OVESETUP_CONFIG/firewallChangesReview=none:None
OVESETUP_CONFIG/updateFirewall=bool:False
OVESETUP_CONFIG/remoteEngineHostSshPort=none:None
OVESETUP_CONFIG/fqdn=str:ovirt.sige.uci.cu
OVESETUP_CONFIG/storageType=none:None
OSETUP_RPMDISTRO/requireRollback=none:None
OSETUP_RPMDISTRO/enableUpgrade=none:None
OVESETUP_PROVISIONING/postgresProvisioningEnabled=bool:True
OVESETUP_APACHE/configureRootRedirection=bool:True
OVESETUP_APACHE/configureSsl=bool:True
OVESETUP_DB/secured=bool:False
OVESETUP_DB/fixDbConfiguration=none:None
OVESETUP_DB/user=str:engine_20180321121404
OVESETUP_DB/dumper=str:pg_custom
OVESETUP_DB/database=str:engine_20180321121404
OVESETUP_DB/fixDbViolations=none:None
OVESETUP_DB/engineVacuumFull=none:None
OVESETUP_DB/host=str:localhost
OVESETUP_DB/port=int:5432
OVESETUP_DB/filter=none:None
OVESETUP_DB/restoreJobs=int:2
OVESETUP_DB/securedHostValidation=bool:False
OVESETUP_ENGINE_CORE/enable=bool:True
OVESETUP_CORE/engineStop=none:None
OVESETUP_SYSTEM/memCheckEnabled=bool:True
OVESETUP_SYSTEM/nfsConfigEnabled=none:None
OVESETUP_PKI/organization=str:sige.uci.cu
OVESETUP_PKI/renew=none:None
OVESETUP_CONFIG/isoDomainName=none:None
OVESETUP_CONFIG/engineHeapMax=str:1024M
OVESETUP_CONFIG/ignoreVdsgroupInNotifier=none:None
OVESETUP_CONFIG/adminPassword=str:Ins03dmesa
OVESETUP_CONFIG/isoDomainACL=none:None
OVESETUP_CONFIG/isoDomainMountPoint=none:None
OVESETUP_ENGINE_CONFIG/fqdn=str:ovirt.sige.uci.cu
OVESETUP_CONFIG/engineDbBackupDir=str:/var/lib/ovirt-engine/backups
OVESETUP_CONFIG/engineHeapMin=str:1024M
OVESETUP_OVN/ovirtProviderOvn=bool:True
OVESETUP_OVN/ovirtProviderOvnUser=str:admin@internal
OVESETUP_OVN/ovirtProviderOvnPassword=str:Ins03dmesa
OVESETUP_CONFIG/websocketProxyConfig=bool:True
OVESETUP_DWH_CORE/enable=bool:True
OVESETUP_DWH_CONFIG/scale=str:1
OVESETUP_DWH_CONFIG/dwhDbBackupDir=str:/var/lib/ovirt-engine-dwh/backups
OVESETUP_DWH_DB/secured=bool:False
OVESETUP_DWH_DB/restoreBackupLate=bool:True
OVESETUP_DWH_DB/disconnectExistingDwh=none:None
OVESETUP_DWH_DB/host=str:localhost
OVESETUP_DWH_DB/user=str:ovirt_engine_history_20180321121409
OVESETUP_DWH_DB/dumper=str:pg_custom
OVESETUP_DWH_DB/database=str:ovirt_engine_history_20180321121409
OVESETUP_DWH_DB/performBackup=none:None
OVESETUP_DWH_DB/port=int:5432
OVESETUP_DWH_DB/filter=none:None
OVESETUP_DWH_DB/restoreJobs=int:2
OVESETUP_DWH_DB/securedHostValidation=bool:False
OVESETUP_DB/dwhVacuumFull=none:None
OVESETUP_DWH_PROVISIONING/postgresProvisioningEnabled=bool:True
OVESETUP_CONFIG/imageioProxyConfig=bool:True
OVESETUP_VMCONSOLE_PROXY_CONFIG/vmconsoleProxyConfig=bool:True

UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de las Ciencias Informáticas. 
Del 24-26 de septiembre, 2018 http://uciencia.uci.cu http://eventos.uci.cu

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


Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Sandro Bonazzola
Il mer 21 mar 2018, 18:25 Marcos Michel Martinez Perez 
ha scritto:

> After performing the configuration of ovirt, that is, executing the
> engine-config, and accepting or not the parameters that it asks for, the
> wizard starts to make a series of configurations and then it throws me this
> error.
>
> [ INFO  ] Stage: Transaction setup
> [ INFO  ] Stopping engine service
> [ INFO  ] Stopping ovirt-fence-kdump-listener service
> [ INFO  ] Stopping dwh service
> [ INFO  ] Stopping Image I/O Proxy service
> [ INFO  ] Stopping vmconsole-proxy service
> [ INFO  ] Stopping websocket-proxy service
> [ INFO  ] Stage: Misc configuration
> [ INFO  ] Stage: Package installation
> [ INFO  ] Stage: Misc configuration
> [ INFO  ] Upgrading CA
> [ INFO  ] Creating PostgreSQL 'engine' database
> [ INFO  ] Configuring PostgreSQL
> [ INFO  ] Creating PostgreSQL 'ovirt_engine_history' database
> [ INFO  ] Configuring PostgreSQL
> [ INFO  ] Creating CA
> [ INFO  ] Creating/refreshing DWH database schema
> [ INFO  ] Configuring Image I/O Proxy
> [ INFO  ] Setting up ovirt-vmconsole proxy helper PKI artifacts
> [ INFO  ] Setting up ovirt-vmconsole SSH PKI artifacts
> [ INFO  ] Configuring WebSocket Proxy
> [ INFO  ] Creating/refreshing Engine database schema
> [ ERROR ] schema.sh: FATAL: Cannot execute sql command:
> --file=/usr/share/ovirt-engine/dbscripts/create_functions.sql
> [ ERROR ] Failed to execute stage 'Misc configuration': Engine schema
> refresh failed
> [ INFO  ] Rolling back DWH database schema
> [ INFO  ] Clearing DWH database ovirt_engine_history_20180321121409
> [ INFO  ] Rolling back database schema
> [ INFO  ] Clearing Engine database engine_20180321121404
> [ INFO  ] Stage: Clean up
>   Log file is located at
> /var/log/ovirt-engine/setup/ovirt-engine-setup-20180321121319-mvrexc.log
>

Can you please share this log?



[ INFO  ] Generating answer file
> '/var/lib/ovirt-engine/setup/answers/20180321121431-setup.conf'
> [ INFO  ] Stage: Pre-termination
> [ INFO  ] Stage: Termination
> [ ERROR ] Execution of setup failed
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Marcos Michel Martinez Perez
After performing the configuration of ovirt, that is, executing the 
engine-config, and accepting or not the parameters that it asks for, the 
wizard starts to make a series of configurations and then it throws me 
this error.


[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping dwh service
[ INFO  ] Stopping Image I/O Proxy service
[ INFO  ] Stopping vmconsole-proxy service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration
[ INFO  ] Stage: Package installation
[ INFO  ] Stage: Misc configuration
[ INFO  ] Upgrading CA
[ INFO  ] Creating PostgreSQL 'engine' database
[ INFO  ] Configuring PostgreSQL
[ INFO  ] Creating PostgreSQL 'ovirt_engine_history' database
[ INFO  ] Configuring PostgreSQL
[ INFO  ] Creating CA
[ INFO  ] Creating/refreshing DWH database schema
[ INFO  ] Configuring Image I/O Proxy
[ INFO  ] Setting up ovirt-vmconsole proxy helper PKI artifacts
[ INFO  ] Setting up ovirt-vmconsole SSH PKI artifacts
[ INFO  ] Configuring WebSocket Proxy
[ INFO  ] Creating/refreshing Engine database schema
[ ERROR ] schema.sh: FATAL: Cannot execute sql command: 
--file=/usr/share/ovirt-engine/dbscripts/create_functions.sql
[ ERROR ] Failed to execute stage 'Misc configuration': Engine schema 
refresh failed

[ INFO  ] Rolling back DWH database schema
[ INFO  ] Clearing DWH database ovirt_engine_history_20180321121409
[ INFO  ] Rolling back database schema
[ INFO  ] Clearing Engine database engine_20180321121404
[ INFO  ] Stage: Clean up
  Log file is located at 
/var/log/ovirt-engine/setup/ovirt-engine-setup-20180321121319-mvrexc.log
[ INFO  ] Generating answer file 
'/var/lib/ovirt-engine/setup/answers/20180321121431-setup.conf'

[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed


UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de las Ciencias Informáticas. 
Del 24-26 de septiembre, 2018 http://uciencia.uci.cu http://eventos.uci.cu


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


Re: [ovirt-users] Hosted engine deployment error

2018-03-21 Thread spfma . tech
Hi,
   I made some progress : by allowing my NAS to map any user to admin (not the 
best for security, but it is a dedicated infrastructure), this weird 
permissions problem disappeared. Maybe a NFS bug somewhere ? I don't know.   I 
was able to redeploy a new hosted engine, and after a cleanup and some other 
manual cleaning tasks, restore my latest backup.   So the new engine vm is able 
to startup, but it seems there is a problem for communicating with hosts.   I 
get a lot of errors like this one :   vdsm[3008]: ERROR ssl handshake: 
SSLError, address: :::10.100.1.100 

10.100.1.100 is the IP of the engine vm. 

vdsm.log is not more helpful : 

2018-03-21 17:10:10,769+0100 ERROR (Reactor thread) 
[ProtocolDetector.SSLHandshakeDispatcher] ssl handshake: SSLError, address: 
:::10.100.1.100 (sslutils:258) 

Is there something to update or generate after a restore ? I don't know whether 
keys and certificates were kept or if new ones are now used. 

I also tried to add the SSH public key showed in the GUI to the authorized_keys 
on a node, even reboot, but no change. 

Regards 

 Le 20-Mar-2018 16:12:40 +0100, spfma.t...@e.mail.fr a crit:   
 I tried to make a cleaner install : after cleanup, I recreated 
"/rhev/data-center/mnt/" and ran the installer again.
   As you can see, it crashed again with the same access denied error on this 
file :[ INFO ] TASK [Copy configuration archive to storage]
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["dd", 
"bs=20480", "count=1", "oflag=direct", 
"if=/var/tmp/localvmVBRLpL/b1884198-69e6-4096-939d-03c87112de10", 
"of=/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10"],
 "delta": "0:00:00.004468", "end": "2018-03-20 15:57:34.199405", "msg": 
"non-zero return code", "rc": 1, "start": "2018-03-20 15:57:34.194937", 
"stderr": "dd: impossible d'ouvrir 
/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10
 : Permission non accorde", "stderr_lines": ["dd: impossible d'ouvrir 
/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10
 : Permission non accorde"], "stdout": "", "stdout_lines": []}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing 
ansible-playbook
   But the file permissions look ok to me :-rw-rw. 1 vdsm kvm 1,0G 20 
mars 2018 
/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10

 So I decided to test something : I set a shell for "vdsm", so I could login :  
  su - vdsm -c "touch 
/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10"
 && echo "OK"
OK   As far as I can see,still no permission problem 

But if I try the same as "root" : 

touch 
/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10
 && echo "OK"
touch: impossible de faire un touch 
/rhev/data-center/mnt/10.100.2.132:_volume3_ovirt__engine__self__hosted/015d9546-af01-4fb2-891e-e28683db3387/images/589d0768-c935-4495-aa57-45b9b2a18526/b1884198-69e6-4096-939d-03c87112de10
 : Permission non accorde 

Of course, "root" and "vdsm" can create, touch and delete other files 
flawlessly in this share. 

It looks like some kind of immutable file, but is is not suppose to exist on 
NFS, does it ? 

Regards 

 Le 20-Mar-2018 12:22:50 +0100, stira...@redhat.com a crit:   

 On Tue, Mar 20, 2018 at 11:44 AM,  wrote:

   Hi,
   In fact it is a workaround coming from you I found in the bugtrack that 
helped me : 

chmod 644 /var/cache/vdsm/schema/*

As the only thing looking like a weird error I have found was : 

ERROR Exception raised#012Traceback (most recent call last):#012 File 
"/usr/lib/python2.7/site-packages/vdsm/vdsmd.py", line 156, in run#012 
serve_clients(log)#012 File "/usr/lib/python2.7/site-packages/vdsm/vdsmd.py", 
line 103, in serve_clients#012 cif = clientIF.getInstance(irs, log, 
scheduler)#012 File "/usr/lib/python2.7/site-packages/vdsm/clientIF.py", line 
250, in getInstance#012 cls._instance = clientIF(irs, log, scheduler)#012 File 
"/usr/lib/python2.7/site-packages/vdsm/clientIF.py", line 144, in __init__#012 
self._prepareJSONRPCServer()#012 File 
"/usr/lib/python2.7/site-packages/vdsm/clientIF.py", line 307, in 
_prepareJSONRPCServer#012 bridge = Bridge.DynamicBridge()#012 File 

Re: [ovirt-users] Memory hot plug

2018-03-21 Thread Eduardo Mayoral
Thanks for your reply!

You are right. I tried with a CentOS 6 and a CentOS 7 guest and both
picked the extra memory with no problem.

Seems it was a particular issue with the guest that I tried first.
Kernel version was older and I had to activate the memory bank as
described in https://kb.vmware.com/s/article/1012764 (different
hypervisor, but the principle is the same).

Best regards,

Eduardo Mayoral Jimeno (emayo...@arsys.es)
Administrador de sistemas. Departamento de Plataformas. Arsys internet.
+34 941 620 145 ext. 5153

On 21/03/18 15:45, Luca 'remix_tj' Lorenzetto wrote:
> Hello Eduardo,
>
> On Wed, Mar 21, 2018 at 3:17 PM, Eduardo Mayoral  wrote:
>> Hi,
>>
>> I recently tried to hot plug some memory on a VM running CentOS 6.9 with
>> ovirt-guest-tools installed.
>>
>> oVirt version is 4.2.1.6-1.el7.centos
>>
>> I was careful to increment a multiple of 256 MB as specified in
>> https://www.ovirt.org/develop/release-management/features/virt/hot-plug-memory/
>> (4 GB -> 6 GB , maximum memory configured for the VM was 8 GB)
>>
>> However the VM was marked as with a pending change for next reboot. Am I
>> missing some non-default configuration requiered for memory hot-plug to
>> work?
>
> No, you're not. Now the vm is seeing the base memory (4GB) you were
> seeing at boot, plus additional memory (2GB added). Next time you'll
> boot the vm, the system will see a single block of 6 GB.
>
> That's the difference.
>
> Luca
>

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


Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Yedidyah Bar David
On Wed, Mar 21, 2018 at 5:12 PM, Marcos Michel Martinez Perez
 wrote:
> previous error
>
> [ ERROR ] schema.sh: FATAL: Cannot execute sql command:
> --file=/usr/share/ovirt-engine/dbscripts/create_functions.sql

Thanks.

Please share the entire logs. You can use some file sharing service
and add a a link to it.

Best regards,

>
> UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de
> las Ciencias Informáticas. Del 24-26 de septiembre, 2018
> http://uciencia.uci.cu http://eventos.uci.cu



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


Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Marcos Michel Martinez Perez

previous error

[ ERROR ] schema.sh: FATAL: Cannot execute sql command: 
--file=/usr/share/ovirt-engine/dbscripts/create_functions.sql


UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de las Ciencias Informáticas. 
Del 24-26 de septiembre, 2018 http://uciencia.uci.cu http://eventos.uci.cu

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


Re: [ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Yedidyah Bar David
On Wed, Mar 21, 2018 at 4:32 PM, Marcos Michel Martinez Perez <
mmartin...@uci.cu> wrote:

> good morning list, can someone tell me how I can solve this error?
>
> [ ERROR ] Failed to execute stage 'Misc configuration': Failed to start
> service 'rh-postgresql95-postgresql'
>

Please check/share relevant logs, including probably:

/var/log/ovirt-engine/setup/*
/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_log
/var/log/messages

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


Re: [ovirt-users] Memory hot plug

2018-03-21 Thread Luca 'remix_tj' Lorenzetto
Hello Eduardo,

On Wed, Mar 21, 2018 at 3:17 PM, Eduardo Mayoral  wrote:
> Hi,
>
> I recently tried to hot plug some memory on a VM running CentOS 6.9 with
> ovirt-guest-tools installed.
>
> oVirt version is 4.2.1.6-1.el7.centos
>
> I was careful to increment a multiple of 256 MB as specified in
> https://www.ovirt.org/develop/release-management/features/virt/hot-plug-memory/
> (4 GB -> 6 GB , maximum memory configured for the VM was 8 GB)
>
> However the VM was marked as with a pending change for next reboot. Am I
> missing some non-default configuration requiered for memory hot-plug to
> work?


No, you're not. Now the vm is seeing the base memory (4GB) you were
seeing at boot, plus additional memory (2GB added). Next time you'll
boot the vm, the system will see a single block of 6 GB.

That's the difference.

Luca

-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Memory hot plug

2018-03-21 Thread Eduardo Mayoral
Hi,

    I recently tried to hot plug some memory on a VM running CentOS 6.9
with ovirt-guest-tools installed.

    oVirt version is 4.2.1.6-1.el7.centos

    I was careful to increment a multiple of 256 MB as specified in
https://www.ovirt.org/develop/release-management/features/virt/hot-plug-memory/ 
(4 GB -> 6 GB , maximum memory configured for the VM was 8 GB)

    However the VM was marked as with a pending change for next reboot.
Am I missing some non-default configuration requiered for memory
hot-plug to work?

    Thanks in advance!

-- 
Eduardo Mayoral Jimeno (emayo...@arsys.es)
Administrador de sistemas. Departamento de Plataformas. Arsys internet.
+34 941 620 145 ext. 5153

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


[ovirt-users] ovirt do not start postgresql

2018-03-21 Thread Marcos Michel Martinez Perez

good morning list, can someone tell me how I can solve this error?

[ ERROR ] Failed to execute stage 'Misc configuration': Failed to start 
service 'rh-postgresql95-postgresql'

[ INFO  ] Stage: Clean up
  Log file is located at 
/var/log/ovirt-engine/setup/ovirt-engine-setup-20180321103734-b7svhc.log
[ INFO  ] Generating answer file 
'/var/lib/ovirt-engine/setup/answers/20180321103949-setup.conf'

[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed


UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de las Ciencias Informáticas. 
Del 24-26 de septiembre, 2018 http://uciencia.uci.cu http://eventos.uci.cu


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


[ovirt-users] Fw: Change ovirtmgmt ip from dhcp to static in a

2018-03-21 Thread zois roupas
I'm sorry for not explaining correctly my question, i understand that i will 
have to power them off and  even if i tried with powered on vm's probably ovirt 
whouldn't let me remove a host. What i couldn't understand was what happens 
actually to the vm's that don't "reside" on a host but again if they are 
powered down there is not really a problem if the host is added successfully 
after the static ip configuration


Thanks for everyone's help , i will try to follow your suggestion and there is 
no need to keep this case open

Best Regards

Zois


From: Michael Burman 
Sent: Wednesday, March 21, 2018 8:07 AM
To: zois roupas
Cc: Ales Musil; users
Subject: Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

If you changing the host's management IP address then this is the only way to 
do it. If you have only one host in the cluster, then you will need to shut 
them down :(



On Wed, Mar 21, 2018 at 12:08 AM, zois roupas 
> wrote:

Is this a safe procedure? I mean i only have this host in my cluster, what will 
happen at the vm's that are assigned to the host?


Thanks again


From: Michael Burman >
Sent: Tuesday, March 20, 2018 4:10 PM
To: zois roupas
Cc: Ales Musil; users

Subject: Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

Then you need to remove the host from engine, change the IP manually on the 
host, via ifcfg-file, restart network service and install the host again via 
the new IP address.

On Tue, Mar 20, 2018 at 2:50 PM, zois roupas 
> wrote:

Hi again all,


 "Unless i miss understood you here, do you use a different IP address when 
switching to static or the same IP that you got from dhcp? if yes, then this is 
another flow.."


To answer your question Michael , i'm trying to configure a different ip 
outside of my dhcp pool. The dhcp ip is 10.0.0.245 from the range 
10.0.0.245-10.0.0.250 and i want to configure the ip 10.0.0.9 as the hosts ip

"One thing to note if you are changing the IP to different one that was 
assigned by DHCP you should uncheck "Verify connectivity between Host and 
Engine""

Ales, i also tried to follow your advise and uncheck the "Verify connectivity 
between Host and Engine" as proposed. Again the same results, it keeps 
reverting to previous dhcp ip
I will extract the vdsm log and i'll get back to you, in the meanwhile this is 
the error that i see after the assignment of the static ip in the log

2018-03-20 14:16:57,576+0200 ERROR (monitor/38f4464) [storage.Monitor] Error 
checking domain 38f4464b-74b9-4468-891b-03cd65d72fec (monitor:424)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/storage/monitor.py", line 405, in 
_checkDomainStatus
self.domain.selftest()
  File "/usr/lib/python2.7/site-packages/vdsm/storage/fileSD.py", line 688, in 
selftest
self.oop.os.statvfs(self.domaindir)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/outOfProcess.py", line 
243, in statvfs
return self._iop.statvfs(path)
  File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line 488, in 
statvfs
resdict = self._sendCommand("statvfs", {"path": path}, self.timeout)
  File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line 455, in 
_sendCommand
raise Timeout(os.strerror(errno.ETIMEDOUT))
Timeout: Connection timed out

Best Regards
Zois





From: Ales Musil >
Sent: Tuesday, March 20, 2018 11:28 AM
To: Michael Burman
Cc: zois roupas; users

Subject: Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

One thing to note if you are changing the IP to different one that was assigned 
by DHCP you should uncheck "Verify connectivity between Host and Engine". This 
makes sure that the engine won't lost connectivity and in case of switching IP 
it happens.

On Tue, Mar 20, 2018 at 10:15 AM, Michael Burman 
> wrote:
Indeed very odd, this shouldn't  behave this way, just tested it my self and it 
is working as expected. Unless i miss understood you here, do you use a 
different IP address when switching to static or the same IP that you got from 
dhcp? if yes, then this is another flow..

Can you please share the vdsm version and vdsm log with us?

Edy, any idea what can cause this?

On Tue, Mar 20, 2018 at 11:10 AM, zois roupas 
> wrote:

Hi Michael and thanks a lot for the time


Great step by step instructions but something strange is happening while trying 
to change to static ip. I tried to do the change while the host was in 
maintenance mode and in activate mode but again after some minutes the system 
reverts to the ip that dhcp is serving!

What am i 

Re: [ovirt-users] Adding host to hosted-engine /w gluster cluster. (On ovirt Node 4.2.1.1)

2018-03-21 Thread Hanson Turner

Hi Sahina,

On the fourth node, I've found 
/var/log/glusterfs/rhev-data-center-mnt-glusterSD-ovirtnode1.core\:_engine.log 
... is this the engine.log you're referring to or do you want one from 
the hosted engine?


I actually do want to go replica 5. Most VM's it runs are small(1 
Core,1gb Ram,8gb HDD) and HA is needed. I'd like a bigger critical 
margin than one node failing.


As far as the repos, it's a straight the ovirtnode iso install, I think 
it's Node 4.2.0... which is yum updated to 4.2.1.1
When I installed 4.0 I'd installed on top of centos. This round I went 
straight with the node os because of simplicity in updating.


I can manually restart gluster from cli, the peer and volume status show 
no peers or volumes.


One thing of note, the networking is still as setup from the node 
install. I cannot change the networking info from the ovirt 
gui/dashboard. The host goes unresponsive and then another host power 
cycles it.


Thanks,
Hanson

On 03/21/2018 06:12 AM, Sahina Bose wrote:



On Tue, Mar 20, 2018 at 9:41 PM, Hanson Turner 
> wrote:


Hi Guys,

I've a 3 machine pool running gluster with replica 3 and want to
add two more machines.

This would change to a replica 5...


Adding 2 more nodes to cluster will not change it to a replica 5. 
replica 3 is a configuration on the gluster volume. I assume you don't 
need a replica 5, but just to add more nodes (and possibly new gluster 
volumes) to the cluster?



In ovirt 4.0, I'd done everything manually. No problem there.

In ovirt 4.2, I'd used the wizard for the hosted-engine. It looks
like the fourth node has been added to the pool but will not go
active. It complains gluster isn't running (which I've not
manually configured /dev/sdb for gluster). Host install+deploy
fails. Host can go into maintenance w/o issue. (Meaning the host
has been added to the cluster, but isn't operational)


Are the repos configured correctly on the new nodes? Does the oVirt 
cluster where the nodes are being added have "Enable Gluster Service" 
enabled?



What do I need to do to get the node up and running proper with
gluster syncing properly? Manually restarting gluster, tells me
there's no peers and no volumes.

Do we have a wizard for this too? Or do I need to go find the
setup scripts and configure hosts 4 + 5 manually and run the
deploy again?


The host addition flow should take care of installing gluster.
Can you share the engine log from when the host was added to when it's 
reported non-operational?




Thanks,

Hanson

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






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


Re: [ovirt-users] GPG Key of evilissimo repo for ovirt-guest-agent is expired

2018-03-21 Thread Vinzenz Feenstra


> On 21 Mar 2018, at 10:59, Tomáš Golembiovský  wrote:
> 
> Hi,
> 
> On Tue, 20 Mar 2018 16:42:39 + (UTC)
> Florian Schmid  wrote:
> 
>> Hi,
>> 
>> it looks like for this repo, the GPG key is expired.
>> http://download.opensuse.org/repositories/home:/evilissimo:/ubuntu:/16.04/xUbuntu_16.04/
>> 
>> Does someone know, whom I should contact, that this key will be renewed?
> 
> The repository belongs to Vinzenz Feenstra as you can see in package
> metadata.
> 
>> Or does someone know another repo, where I can download the latest 
>> ovirt-guest-agent for Ubuntu 16.04
> 
> You can get ovirt-guest-agent packages from Debian repository:
> 
> https://packages.debian.org/search?suite=all=names=ovirt-guest-agent
>  
> 

And they are now in xenial and newer on Ubuntu as well 

> 
>Tomas
> 


I did rebuild the packages with the updated keys - You might have to reimport 
them from there - Not sure
https://download.opensuse.org/repositories/home:/evilissimo:/ubuntu:/16.04/xUbuntu_16.04/
 



>> 
>> BR Florian
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> -- 
> Tomáš Golembiovský 

--
Vinzenz Feenstra
Senior Software Developer
Red Hat Czech




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


[ovirt-users] Ovirt nodes NFS connection

2018-03-21 Thread Tal Bar-Or
Hello All,

I am about to deploy a new Ovirt platform, the platform  will consist 4
Ovirt nodes including management, all servers nodes and storage will have
the following config:

*nodes server*
4x10G ports network cards
2x10G will be used for VM network.
2x10G will be used for storage connection
2x1Ge 1xGe for nodes management


*Storage *4x10G ports network cards
3 x10G for NFS storage mount Ovirt nodes

Now given above network configuration layout, what is best practices in
terms of nodes for storage NFS connection, throughput and path resilience
suggested to use
First option each node 2x 10G lacp and on storage side 3x10G lacp?

The second option creates 3 VLAN's assign each node on that 3 VLAN's across
2 nic, and on storage, side assigns 3 nice across 3 VLANs?
Thanks





-- 
Tal Bar-or
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Bad volume specification

2018-03-21 Thread nicolas

Hi,

We're running oVirt 4.1.9, today I put a host on maintenance, I saw one 
of the VMs was taking too long to migrate so I shut it down. It seems 
that just in that moment the machine ended migrating, but the shutdown 
did happen as well.


Now, when I try to start the VM I'm getting the following error:

2018-03-21 12:31:02,309Z ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler3) [7985a4e2] EVENT_ID: VM_DOWN_ERROR(119), 
Correlation ID: null, Call Stack: null, Custom ID: null, Custom Event 
ID: -1, Message: VM openmaint.iaas.domain.com is down with error. Exit 
message: Bad volume specification {'index': '0', u'domainID': 
u'04cb5bd0-d94e-4d14-a71a-e63a669e11b9', 'reqsize': '0', u'format': 
u'cow', u'optional': u'false', u'address': {u'function': u'0x0', u'bus': 
u'0x00', u'domain': u'0x', u'type': u'pci', u'slot': u'0x06'}, 
u'volumeID': u'68ee7a04-ceff-49f0-bf91-256870543921', 'apparentsize': 
'3221225472', u'imageID': u'9d087e6b-0832-46db-acb0-16d5131afa0c', 
u'discard': False, u'specParams': {}, u'readonly': u'false', u'iface': 
u'virtio', u'deviceId': u'9d087e6b-0832-46db-acb0-16d5131afa0c', 
'truesize': '3221225472', u'poolID': 
u'75bf8f48-970f-42bc-8596-f8ab6efb2b63', u'device': u'disk', u'shared': 
u'false', u'propagateErrors': u'off', u'type': u'disk'}.


It looks quite bad... I'm attaching the engine.log since the moment I 
start the VM.


Is there anything I can do to recover the VM? oVirt says the disk is OK 
in the 'Disks' tab.


Thanks.2018-03-21 12:30:39,539Z INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
(default task-151) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] Lock Acquired to 
object 'EngineLock:{exclusiveLocks='[f503b710-7165-415b-a567-16251da7212d=VM]', 
sharedLocks=''}'
2018-03-21 12:30:39,645Z INFO  
[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default 
task-151) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] START, 
IsVmDuringInitiatingVDSCommand( 
IsVmDuringInitiatingVDSCommandParameters:{runAsync='true', 
vmId='f503b710-7165-415b-a567-16251da7212d'}), log id: 15ef3c8a
2018-03-21 12:30:39,645Z INFO  
[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default 
task-151) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] FINISH, 
IsVmDuringInitiatingVDSCommand, return: false, log id: 15ef3c8a
2018-03-21 12:30:39,792Z INFO  
[org.ovirt.engine.core.bll.scheduling.SchedulingManager] (default task-151) 
[429d4c9e-f77d-4fad-951c-08a6b7751bd6] Candidate host 'kvmr05.domain.com' 
('f7ab19fe-5192-4a22-88cf-c8d019fa0372') was filtered out by 
'VAR__FILTERTYPE__INTERNAL' filter 'Memory' (correlation id: null)
2018-03-21 12:30:39,863Z INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
Running command: RunVmCommand internal: false. Entities affected :  ID: 
f503b710-7165-415b-a567-16251da7212d Type: VMAction group RUN_VM with role type 
USER
2018-03-21 12:30:39,870Z INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
Emulated machine 'pc-i440fx-rhel7.3.0' selected since Custom Compatibility 
Version is set for 'VM [openmaint.iaas.domain.com]'
2018-03-21 12:30:39,979Z INFO  
[org.ovirt.engine.core.bll.scheduling.SchedulingManager] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
Candidate host 'kvmr05.domain.com' ('f7ab19fe-5192-4a22-88cf-c8d019fa0372') was 
filtered out by 'VAR__FILTERTYPE__INTERNAL' filter 'Memory' (correlation id: 
429d4c9e-f77d-4fad-951c-08a6b7751bd6)
2018-03-21 12:30:40,032Z INFO  
[org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
START, UpdateVmDynamicDataVDSCommand( 
UpdateVmDynamicDataVDSCommandParameters:{runAsync='true', hostId='null', 
vmId='f503b710-7165-415b-a567-16251da7212d', 
vmDynamic='org.ovirt.engine.core.common.businessentities.VmDynamic@db93365b'}), 
log id: 141aa350
2018-03-21 12:30:40,037Z INFO  
[org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
FINISH, UpdateVmDynamicDataVDSCommand, log id: 141aa350
2018-03-21 12:30:40,040Z INFO  
[org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
START, CreateVmVDSCommand( CreateVmVDSCommandParameters:{runAsync='true', 
hostId='b2dfb945-d767-44aa-a547-2d1a4381f8e3', 
vmId='f503b710-7165-415b-a567-16251da7212d', vm='VM 
[openmaint.iaas.domain.com]'}), log id: 3435053c
2018-03-21 12:30:40,046Z INFO  
[org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] 
(org.ovirt.thread.pool-6-thread-46) [429d4c9e-f77d-4fad-951c-08a6b7751bd6] 
START, CreateVDSCommand(HostName = kvmr04.domain.com, 
CreateVmVDSCommandParameters:{runAsync='true', 
hostId='b2dfb945-d767-44aa-a547-2d1a4381f8e3', 

Re: [ovirt-users] VM guest agent

2018-03-21 Thread Tomáš Golembiovský
Hi,

On Sun, 11 Mar 2018 22:56:32 +
Nicolas Vaye  wrote:

> Hello,
> 
> i have installed one oVirt platform with 2 node and 1 HE version 4.2.1.7-1
> 
> It seem to work fine, but i would like more information on the guest agent.
> For the HE, the guest agent seem to be OK, on this vm i 've spotted that the 
> ovirt-guest-agent and qemu-guest-agent are installed.
> 
> I have 2 VM, 1 debian 9 and 1 RHEL 6.5. I've tried to install the same 
> service on each VM, but the result is the same :
> no info about IP, fqdn, or app installed for these vm, and there is a orange 
> ! for each vm on the web ui (indicate that i need to install latest guest 
> agent) .

What version of the guest agent do you have installed on RHEL 6.5?

Tomas

> 
> I have tried different test with spice-vdagent, or ovirt-guest-agent or 
> qemu-guest-agent but no way.
> 
> ovirt-guest-agent doesn't start on debian 9 and RHEL 6.5 :
> MainThread::INFO::2018-03-11 
> 22:46:02,984::ovirt-guest-agent::59::root::Starting oVirt guest 
> agentMainThread::ERROR::2018-03-11 
> 22:46:02,986::ovirt-guest-agent::141::root::Unhandled exception in oVirt 
> guest agent!Traceback (most recent call last):  File 
> "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 135, in 
> agent.run(daemon, pidfile)  File 
> "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 65, in run
> self.agent = LinuxVdsAgent(config)  File 
> "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 472, in __init__
> AgentLogicBase.__init__(self, config)  File 
> "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 188, in __init__
> self.vio = VirtIoChannel(config.get("virtio", "device"))  File 
> "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 153, in __init__
> self._stream = VirtIoStream(vport_name)  File 
> "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 134, in __init__
> self._vport = os.open(vport_name, os.O_RDWR)OSError: [Errno 2] No such file 
> or directory: '/dev/virtio-ports/com.redhat.rhevm.vdsm'
> 
> 
> Can i have help for this problem ?
> 
> Thanks.
> 
> Nicolas VAYE
> DSI - Nouméa
> NEW CALEDONIA
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users


-- 
Tomáš Golembiovský 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM guest agent

2018-03-21 Thread Tomáš Golembiovský
Hi,

On Mon, 12 Mar 2018 10:48:48 +0100
Oliver Riesener  wrote:

> Hi,
> on Debian stretch the problem is the old version of agent from stretch 
> repository.
> I downloaded 1.0.13 from Debian testing repo as *.deb file.
> With these new versions of guest-agent then is also a udev rules issue.
> The serial channels have been renamed and the rules didn`t match for ovirt.

thanks for noticing. I opened a bug on Debian here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893698

Tomas

> See my install script, as attachement.
> Cheers.
> 
> On 11.03.2018 23:56, Nicolas Vaye wrote:
> > Hello,
> >
> > i have installed one oVirt platform with 2 node and 1 HE version 4.2.1.7-1
> >
> > It seem to work fine, but i would like more information on the guest agent.
> > For the HE, the guest agent seem to be OK, on this vm i 've spotted that 
> > the ovirt-guest-agent and qemu-guest-agent are installed.
> >
> > I have 2 VM, 1 debian 9 and 1 RHEL 6.5. I've tried to install the same 
> > service on each VM, but the result is the same :
> > no info about IP, fqdn, or app installed for these vm, and there is a 
> > orange ! for each vm on the web ui (indicate that i need to install latest 
> > guest agent) .
> >
> > I have tried different test with spice-vdagent, or ovirt-guest-agent or 
> > qemu-guest-agent but no way.
> >
> > ovirt-guest-agent doesn't start on debian 9 and RHEL 6.5 :
> > MainThread::INFO::2018-03-11 
> > 22:46:02,984::ovirt-guest-agent::59::root::Starting oVirt guest 
> > agentMainThread::ERROR::2018-03-11 
> > 22:46:02,986::ovirt-guest-agent::141::root::Unhandled exception in oVirt 
> > guest agent!Traceback (most recent call last):  File 
> > "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 135, in   
> >   agent.run(daemon, pidfile)  File 
> > "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 65, in run
> > self.agent = LinuxVdsAgent(config)  File 
> > "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 472, in __init__   
> >  AgentLogicBase.__init__(self, config)  File 
> > "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 188, in __init__
> > self.vio = VirtIoChannel(config.get("virtio", "device"))  File 
> > "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 153, in __init__
> > self._stream = VirtIoStream(vport_name)  File 
> > "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 134, in __init__
> > self._vport = os.open(vport_name, os.O_RDWR)OSError: [Errno 2] No such file 
> > or directory: '/dev/virtio-ports/com.redhat.rhevm.vdsm'
> >
> >
> > Can i have help for this problem ?
> >
> > Thanks.
> >
> > Nicolas VAYE
> > DSI - Nouméa
> > NEW CALEDONIA
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users  
> 
> -- 
> Mit freundlichem Gruß
> 
> 
> Oliver Riesener
> 
> --
> Hochschule Bremen
> Elektrotechnik und Informatik
> Oliver Riesener
> Neustadtswall 30
> D-28199 Bremen
> 
> Tel: 0421 5905-2405, Fax: -2400
> e-mail:oliver.riese...@hs-bremen.de
> 


-- 
Tomáš Golembiovský 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] GPG Key of evilissimo repo for ovirt-guest-agent is expired

2018-03-21 Thread Florian Schmid
Hi,

thank you very much for the answers.

I also wrote Mr Feenstra.

BR Florian


 
UBIMET GmbH - weather matters 
Ing. Florian Schmid • IT Infrastruktur Austria 


A-1220 Wien • Donau-City-Straße 11 • Tel +43 1 263 11 22 DW 469 • Fax +43 1 263 
11 22 219 
fsch...@ubimet.com • www.ubimet.com • Mobile: +43 664 8323379 


Sitz: Wien • Firmenbuchgericht: Handelsgericht Wien • FN 248415 t 


 



The information contained in this message (including any attachments) is 
confidential and may be legally privileged or otherwise protected from 
disclosure. This message is intended solely for the addressee(s). If you are 
not the intended recipient, please notify the sender by return e-mail and 
delete this message from your system. Any unauthorized use, reproduction, or 
dissemination of this message is strictly prohibited. Please note that e-mails 
are susceptible to change. UBIMET GmbH shall not be liable for the improper or 
incomplete transmission of the information contained in this communication, nor 
shall it be liable for any delay in its receipt. UBIMET GmbH accepts no 
liability for loss or damage caused by software viruses and you are advised to 
carry out a virus check on any attachments contained in this message.

- Ursprüngliche Mail -
Von: "Tomáš Golembiovský" 
An: "Florian Schmid" 
CC: "users" , "Vinzenz Feenstra" 
Gesendet: Mittwoch, 21. März 2018 10:59:32
Betreff: Re: [ovirt-users] GPG Key of evilissimo repo for ovirt-guest-agent is 
expired

Hi,

On Tue, 20 Mar 2018 16:42:39 + (UTC)
Florian Schmid  wrote:

> Hi,
> 
> it looks like for this repo, the GPG key is expired.
> http://download.opensuse.org/repositories/home:/evilissimo:/ubuntu:/16.04/xUbuntu_16.04/
> 
> Does someone know, whom I should contact, that this key will be renewed?

The repository belongs to Vinzenz Feenstra as you can see in package
metadata.

> Or does someone know another repo, where I can download the latest 
> ovirt-guest-agent for Ubuntu 16.04

You can get ovirt-guest-agent packages from Debian repository:

https://packages.debian.org/search?suite=all=names=ovirt-guest-agent

Tomas

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


-- 
Tomáš Golembiovský 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Adding host to hosted-engine /w gluster cluster. (On ovirt Node 4.2.1.1)

2018-03-21 Thread Sahina Bose
On Tue, Mar 20, 2018 at 9:41 PM, Hanson Turner 
wrote:

> Hi Guys,
>
> I've a 3 machine pool running gluster with replica 3 and want to add two
> more machines.
>
> This would change to a replica 5...
>

Adding 2 more nodes to cluster will not change it to a replica 5. replica 3
is a configuration on the gluster volume. I assume you don't need a replica
5, but just to add more nodes (and possibly new gluster volumes) to the
cluster?


> In ovirt 4.0, I'd done everything manually. No problem there.
>
> In ovirt 4.2, I'd used the wizard for the hosted-engine. It looks like the
> fourth node has been added to the pool but will not go active. It complains
> gluster isn't running (which I've not manually configured /dev/sdb for
> gluster). Host install+deploy fails. Host can go into maintenance w/o
> issue. (Meaning the host has been added to the cluster, but isn't
> operational)
>

Are the repos configured correctly on the new nodes? Does the oVirt cluster
where the nodes are being added have "Enable Gluster Service" enabled?


> What do I need to do to get the node up and running proper with gluster
> syncing properly? Manually restarting gluster, tells me there's no peers
> and no volumes.
>
> Do we have a wizard for this too? Or do I need to go find the setup
> scripts and configure hosts 4 + 5 manually and run the deploy again?
>

The host addition flow should take care of installing gluster.
Can you share the engine log from when the host was added to when it's
reported non-operational?


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


[ovirt-users] Cannot remove VM

2018-03-21 Thread Angel R. Gonzalez

Hi,

I can't edit/remove/modify a VM. Always show a message:
    "Cannot remove VM. Related operation is currently in progress. 
Please try again later"


I also used REST API
curl -k -u admin@internal:passwd -X DELETE 
https://engine/ovirt-engine/api/vms/

and the output message is the same.

How to can execute actions over the VM, or how to remove it from Cluster?

Thanks in advance.

Ángel González.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] GPG Key of evilissimo repo for ovirt-guest-agent is expired

2018-03-21 Thread Tomáš Golembiovský
Hi,

On Tue, 20 Mar 2018 16:42:39 + (UTC)
Florian Schmid  wrote:

> Hi,
> 
> it looks like for this repo, the GPG key is expired.
> http://download.opensuse.org/repositories/home:/evilissimo:/ubuntu:/16.04/xUbuntu_16.04/
> 
> Does someone know, whom I should contact, that this key will be renewed?

The repository belongs to Vinzenz Feenstra as you can see in package
metadata.

> Or does someone know another repo, where I can download the latest 
> ovirt-guest-agent for Ubuntu 16.04

You can get ovirt-guest-agent packages from Debian repository:

https://packages.debian.org/search?suite=all=names=ovirt-guest-agent

Tomas

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


-- 
Tomáš Golembiovský 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Fiber Channel Storage not coming up

2018-03-21 Thread Fred Rolland
Can you see the LUNs on the host?
To check the status, run: multipath -ll

Try also to execute the following command  /usr/libexec/vdsm/fc-scan -v



On Tue, Mar 20, 2018 at 10:03 PM, Jean Pickard  wrote:

> Hello,
> Today I noticed that most of my VMs weren't accessible.
> Once i checked the system, I noticed my FC channel SAN data domain is
> inactive.
>
>
> 2018-03-19 16:01:05,308-0700 ERROR (periodic/32) [virt.vm]
> (vmId='43700e39-8812-41c6-9cd6-e555a2f19e35') Unable to get watermarks
> for drive vda: failed to open block device '/rhev/data-center/0001-
> 0001-0001-0001-0311/cecbec42-bff1-4e8d-9c37-
> c260b7305af7/images/05563eaf-ea90-4364-b92e-4b53173a3a5f/
> 242a97ec-9459-4ce1-b61a-3331a7617f2d': No such file or directory (vm:814)
> 2018-03-19 16:01:06,018-0700 ERROR (monitor/cecbec4) [storage.Monitor]
> Error checking domain cecbec42-bff1-4e8d-9c37-c260b7305af7 (monitor:426)
> Traceback (most recent call last):
>   File "/usr/share/vdsm/storage/monitor.py", line 407, in
> _checkDomainStatus
> self.domain.selftest()
>   File "/usr/share/vdsm/storage/sdc.py", line 50, in __getattr__
> return getattr(self.getRealDomain(), attrName)
>   File "/usr/share/vdsm/storage/sdc.py", line 53, in getRealDomain
> return self._cache._realProduce(self._sdUUID)
>   File "/usr/share/vdsm/storage/sdc.py", line 136, in _realProduce
> domain = self._findDomain(sdUUID)
>   File "/usr/share/vdsm/storage/sdc.py", line 153, in _findDomain
> return findMethod(sdUUID)
>   File "/usr/share/vdsm/storage/blockSD.py", line 1610, in findDomain
> return BlockStorageDomain(BlockStorageDomain.findDomainPath(sdUUID))
>   File "/usr/share/vdsm/storage/blockSD.py", line 1550, in findDomainPath
> raise se.StorageDomainDoesNotExist(sdUUID)
> StorageDomainDoesNotExist: Storage domain does not exist:
> (u'cecbec42-bff1-4e8d-9c37-c260b7305af7',)
> 2018-03-19 16:01:07,331-0700 ERROR (periodic/32) [virt.vm]
> (vmId='235702f2-286e-403b-b395-db9c1d603d99') Unable to get watermarks
> for drive vda: failed to open block device '/rhev/data-center/0001-
> 0001-0001-0001-0311/cecbec42-bff1-4e8d-9c37-
> c260b7305af7/images/8eb9847f-4e4e-4bda-b4fa-a44119137ee2/
> ddf7c854-fa95-4c3f-b76a-4a90c8067c7e': No such file or directory (vm:814)
>
> My attempts to activate my data center storage is failing as well.
> I don't see any errors in my engine log under /var/log/ovirt-engine.
>
> Any idea why my storage is not coming up?
>
> Thank you,
>
> Jean
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Attach Export Domain to another Data Center - Failure

2018-03-21 Thread Fred Rolland
Can you provide the vdsm logs from the host.
It looks the vdsm failed to connect to the server.

On Wed, Mar 21, 2018 at 11:21 AM, Andrei Verovski 
wrote:

> Hi,
>
> I have 2-host oVirt setup with 2 Data Centers, one with local storage
> domain (DC #1) for VMs + Export domain on NFS, another with all NFS shared
> (DC #2).
> Trying to export VMs from DC #1 to DC #2.
> VMs are exported to DC #1 export domain (NFS), then domain put into
> maintenance mode and detached from DC #1.
>
> Unfortunately, attaching it to DC #2 failed. Logs attached. Tried to run
> this command twice.
> Workaround are possible in order to accomplish this task, yet it would be
> better to do in a way as it was designed.
> Thanks.
>
>
> 2018-03-21 10:43:24,024+02 ERROR [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] 
> (EE-ManagedThreadFactory-engine-Thread-128904)
> [570ec5d9-fff5-4656-afbd-90b3207a616e] EVENT_ID:
> USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage
> Domain node10-NFS-EXPORTS to Data Center StrDataCenter11. (User:
> admin@internal-authz)
> 2018-03-21 10:46:16,512+02 ERROR [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] 
> (EE-ManagedThreadFactory-engine-Thread-128956)
> [1435fc81] EVENT_ID: VDS_STORAGES_CONNECTION_FAILED(188), Failed to
> connect Host node11 to the Storage Domains node10-NFS-EXPORTS.
> 2018-03-21 10:46:16,651+02 ERROR [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] 
> (EE-ManagedThreadFactory-engine-Thread-128955)
> [a81ffa4a-5a58-41a0-888a-f0edc321609b] EVENT_ID:
> USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage
> Domain node10-NFS-EXPORTS to Data Center StrDataCenter11. (User:
> admin@internal-authz)
>
>
> *tail -n 1000 engine.log | grep 570ec5d9-fff5-4656-afbd-90b3207a616e*
> 2018-03-21 10:41:14,643+02 INFO  [org.ovirt.engine.core.bll.
> storage.domain.AttachStorageDomainToPoolCommand] (default task-2)
> [570ec5d9-fff5-4656-afbd-90b3207a616e] Lock Acquired to object
> 'EngineLock:{exclusiveLocks='[1d7208ce-d3a1-4406-9638-fe7051562994=STORAGE]',
> sharedLocks=''}'
> 2018-03-21 10:41:16,129+02 INFO  [org.ovirt.engine.core.bll.
> storage.domain.AttachStorageDomainToPoolCommand] 
> (EE-ManagedThreadFactory-engine-Thread-128904)
> [570ec5d9-fff5-4656-afbd-90b3207a616e] Running command:
> AttachStorageDomainToPoolCommand internal: false. Entities affected :
> ID: 1d7208ce-d3a1-4406-9638-fe7051562994 Type: StorageAction group
> MANIPULATE_STORAGE_DOMAIN with role type ADMIN,  ID:
> 80cc922f-8dea-4fed-b951-1060ba116ad5 Type: StoragePoolAction group
> MANIPULATE_STORAGE_DOMAIN with role type ADMIN
> 2018-03-21 10:43:23,564+02 ERROR [org.ovirt.engine.core.bll.
> storage.domain.AttachStorageDomainToPoolCommand] 
> (EE-ManagedThreadFactory-engine-Thread-128904)
> [570ec5d9-fff5-4656-afbd-90b3207a616e] Cannot connect storage connection
> server, aborting attach storage domain operation.
> 2018-03-21 10:43:23,567+02 INFO  
> [org.ovirt.engine.core.bll.CommandCompensator]
> (EE-ManagedThreadFactory-engine-Thread-128904) 
> [570ec5d9-fff5-4656-afbd-90b3207a616e]
> Command [id=921ca7cd-4f93-46aa-8de2-91b13b8f96cb]: Compensating
> NEW_ENTITY_ID of 
> org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap;
> snapshot: 
> StoragePoolIsoMapId:{storagePoolId='80cc922f-8dea-4fed-b951-1060ba116ad5',
> storageId='1d7208ce-d3a1-4406-9638-fe7051562994'}.
> 2018-03-21 10:43:24,024+02 ERROR [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] 
> (EE-ManagedThreadFactory-engine-Thread-128904)
> [570ec5d9-fff5-4656-afbd-90b3207a616e] EVENT_ID:
> USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage
> Domain node10-NFS-EXPORTS to Data Center StrDataCenter11. (User:
> admin@internal-authz)
> 2018-03-21 10:43:24,114+02 INFO  [org.ovirt.engine.core.bll.
> storage.domain.AttachStorageDomainToPoolCommand] 
> (EE-ManagedThreadFactory-engine-Thread-128904)
> [570ec5d9-fff5-4656-afbd-90b3207a616e] Lock freed to object
> 'EngineLock:{exclusiveLocks='[1d7208ce-d3a1-4406-9638-fe7051562994=STORAGE]',
> sharedLocks=''}'
>
>
>
> *[root@node00 ovirt-engine]# tail -n 1000 engine.log | grep
> a81ffa4a-5a58-41a0-888a-f0edc321609b*
> 2018-03-21 10:44:11,025+02 INFO  [org.ovirt.engine.core.bll.
> storage.domain.AttachStorageDomainToPoolCommand] (default task-16)
> [a81ffa4a-5a58-41a0-888a-f0edc321609b] Lock Acquired to object
> 'EngineLock:{exclusiveLocks='[1d7208ce-d3a1-4406-9638-fe7051562994=STORAGE]',
> sharedLocks=''}'
> 2018-03-21 10:44:11,236+02 INFO  [org.ovirt.engine.core.bll.
> storage.domain.AttachStorageDomainToPoolCommand] 
> (EE-ManagedThreadFactory-engine-Thread-128955)
> [a81ffa4a-5a58-41a0-888a-f0edc321609b] Running command:
> AttachStorageDomainToPoolCommand internal: false. Entities affected :
> ID: 1d7208ce-d3a1-4406-9638-fe7051562994 Type: StorageAction group
> MANIPULATE_STORAGE_DOMAIN with role type ADMIN,  ID:
> 

[ovirt-users] Attach Export Domain to another Data Center - Failure

2018-03-21 Thread Andrei Verovski
Hi,

I have 2-host oVirt setup with 2 Data Centers, one with local storage domain 
(DC #1) for VMs + Export domain on NFS, another with all NFS shared (DC #2).
Trying to export VMs from DC #1 to DC #2.
VMs are exported to DC #1 export domain (NFS), then domain put into maintenance 
mode and detached from DC #1.

Unfortunately, attaching it to DC #2 failed. Logs attached. Tried to run this 
command twice.
Workaround are possible in order to accomplish this task, yet it would be 
better to do in a way as it was designed.
Thanks.


2018-03-21 10:43:24,024+02 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engine-Thread-128904) 
[570ec5d9-fff5-4656-afbd-90b3207a616e] EVENT_ID: 
USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage Domain 
node10-NFS-EXPORTS to Data Center StrDataCenter11. (User: admin@internal-authz)
2018-03-21 10:46:16,512+02 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engine-Thread-128956) [1435fc81] EVENT_ID: 
VDS_STORAGES_CONNECTION_FAILED(188), Failed to connect Host node11 to the 
Storage Domains node10-NFS-EXPORTS.
2018-03-21 10:46:16,651+02 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engine-Thread-128955) 
[a81ffa4a-5a58-41a0-888a-f0edc321609b] EVENT_ID: 
USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage Domain 
node10-NFS-EXPORTS to Data Center StrDataCenter11. (User: admin@internal-authz)


tail -n 1000 engine.log | grep 570ec5d9-fff5-4656-afbd-90b3207a616e
2018-03-21 10:41:14,643+02 INFO  
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(default task-2) [570ec5d9-fff5-4656-afbd-90b3207a616e] Lock Acquired to object 
'EngineLock:{exclusiveLocks='[1d7208ce-d3a1-4406-9638-fe7051562994=STORAGE]', 
sharedLocks=''}'
2018-03-21 10:41:16,129+02 INFO  
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(EE-ManagedThreadFactory-engine-Thread-128904) 
[570ec5d9-fff5-4656-afbd-90b3207a616e] Running command: 
AttachStorageDomainToPoolCommand internal: false. Entities affected :  ID: 
1d7208ce-d3a1-4406-9638-fe7051562994 Type: StorageAction group 
MANIPULATE_STORAGE_DOMAIN with role type ADMIN,  ID: 
80cc922f-8dea-4fed-b951-1060ba116ad5 Type: StoragePoolAction group 
MANIPULATE_STORAGE_DOMAIN with role type ADMIN
2018-03-21 10:43:23,564+02 ERROR 
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(EE-ManagedThreadFactory-engine-Thread-128904) 
[570ec5d9-fff5-4656-afbd-90b3207a616e] Cannot connect storage connection 
server, aborting attach storage domain operation.
2018-03-21 10:43:23,567+02 INFO  [org.ovirt.engine.core.bll.CommandCompensator] 
(EE-ManagedThreadFactory-engine-Thread-128904) 
[570ec5d9-fff5-4656-afbd-90b3207a616e] Command 
[id=921ca7cd-4f93-46aa-8de2-91b13b8f96cb]: Compensating NEW_ENTITY_ID of 
org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap; snapshot: 
StoragePoolIsoMapId:{storagePoolId='80cc922f-8dea-4fed-b951-1060ba116ad5', 
storageId='1d7208ce-d3a1-4406-9638-fe7051562994'}.
2018-03-21 10:43:24,024+02 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engine-Thread-128904) 
[570ec5d9-fff5-4656-afbd-90b3207a616e] EVENT_ID: 
USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage Domain 
node10-NFS-EXPORTS to Data Center StrDataCenter11. (User: admin@internal-authz)
2018-03-21 10:43:24,114+02 INFO  
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(EE-ManagedThreadFactory-engine-Thread-128904) 
[570ec5d9-fff5-4656-afbd-90b3207a616e] Lock freed to object 
'EngineLock:{exclusiveLocks='[1d7208ce-d3a1-4406-9638-fe7051562994=STORAGE]', 
sharedLocks=''}'



[root@node00 ovirt-engine]# tail -n 1000 engine.log | grep 
a81ffa4a-5a58-41a0-888a-f0edc321609b
2018-03-21 10:44:11,025+02 INFO  
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(default task-16) [a81ffa4a-5a58-41a0-888a-f0edc321609b] Lock Acquired to 
object 
'EngineLock:{exclusiveLocks='[1d7208ce-d3a1-4406-9638-fe7051562994=STORAGE]', 
sharedLocks=''}'
2018-03-21 10:44:11,236+02 INFO  
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(EE-ManagedThreadFactory-engine-Thread-128955) 
[a81ffa4a-5a58-41a0-888a-f0edc321609b] Running command: 
AttachStorageDomainToPoolCommand internal: false. Entities affected :  ID: 
1d7208ce-d3a1-4406-9638-fe7051562994 Type: StorageAction group 
MANIPULATE_STORAGE_DOMAIN with role type ADMIN,  ID: 
80cc922f-8dea-4fed-b951-1060ba116ad5 Type: StoragePoolAction group 
MANIPULATE_STORAGE_DOMAIN with role type ADMIN
2018-03-21 10:46:16,567+02 ERROR 
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(EE-ManagedThreadFactory-engine-Thread-128955) 
[a81ffa4a-5a58-41a0-888a-f0edc321609b] Cannot connect storage connection 

Re: [ovirt-users] GPG Key of evilissimo repo for ovirt-guest-agent is expired

2018-03-21 Thread nicolas

Also noticed this.

As per the CHANGELOG of the package, the maintainer is a member of 
RedHat at least until Aug 2014. Not sure if he's subscribed to this 
list, though. Maybe sending him an e-mail directly? You can find it in 
the /usr/share/doc/ovirt-guest-agent/changelog.Debian.gz file.


Regards.

El 2018-03-20 16:42, Florian Schmid escribió:

Hi,

it looks like for this repo, the GPG key is expired.
http://download.opensuse.org/repositories/home:/evilissimo:/ubuntu:/16.04/xUbuntu_16.04/

Does someone know, whom I should contact, that this key will be 
renewed?


Or does someone know another repo, where I can download the latest
ovirt-guest-agent for Ubuntu 16.04

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

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


Re: [ovirt-users] Sizing hardware for hyperconverged with Gluster?

2018-03-21 Thread Sahina Bose
On Mon, Mar 19, 2018 at 8:34 PM, Chris Adams  wrote:

> I have a reasonable feel for how to size hardware for an oVirt cluster
> with external storage (our current setups all use iSCSI to talk to a
> SAN).  I'm looking at a hyperconverged oVirt+Gluster setup; are there
> guides for figuring out the additional Gluster resource requirements?  I
> assume I need to allow for additional CPU and RAM, I just don't know how
> to size it (based on I/O I guess?).
>

Sizing for hyperconverged is very similar - ensure there is enough
resources for gluster to run.
Gluster would need atleast 2 cores, there's also a systemd slice
configuration on HC setups for gluster, that limits CPU allocation to 1/3
of available cores in case of contention. RAM requirements would be
workload specific. In general 16GB RAM is sufficient for gluster.



> --
> Chris Adams 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Disk upload cancel/remove

2018-03-21 Thread Alex K
Even after rebooting the engine the disks are still there with same status
"Transferring via API"

Alex

On Tue, Mar 20, 2018 at 11:49 AM, Eyal Shenitzky 
wrote:

> Idan/Daniel,
>
> Can you please take a look?
>
> Thanks,
>
> On Tue, Mar 20, 2018 at 11:44 AM, Alex K  wrote:
>
>> Hi All,
>>
>> I was trying to upload a VM disk at data storage domain using a python
>> script.
>> I did cancel the upload twice and at the third time the upload was
>> successful, but I see two disks from the previous attempts with status
>> "transferring via API" (see attached). This status of for more then 8 hours
>> and I cannot remove them.
>>
>> Is there any way to clean them from the disks inventory?
>>
>>
>>
>> I am using ovirt 4.1.9.1-1.el7.centos with self hosted engine on 3 nodes.
>>
>> Thanx,
>> Alex
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
>
> --
> Regards,
> Eyal Shenitzky
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How to deal with "Used memory of host ... exceeded defined threshold [95%]" messages

2018-03-21 Thread Klaas Demter
Hi,
I'm trying to figure out how I could stop the manager with spamming
used memory exceeded threshold messages. I have a hypervisor that has
1,5TB memory and it's using about 98% of that with hugepages for sap
hana vms (configured like https://access.redhat.com/articles/3347431).
It still has like 40-50GB memory left for the hypervisor which should
be plenty.

So the option I could figure out on my own: I can adjust the global
limit of LogMaxPhysicalMemoryUsedThresholdInPercentage but I'm not
sure if that is a good idea for my "normal" hypervisors that often
have way less memory.

My questions are:
- can I adjust the limit on a per hypervisor basis?
- can I skip the memory check for certain hypervisors or skip all
checks for certain hypervisors?
- would a check for free memory in gb make more sense than a percentage check?

Setup is still on 4.1.9.

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


Re: [ovirt-users] how update the network name of a vmnic with API SDK python ?

2018-03-21 Thread Dominik Holler
On Wed, 21 Mar 2018 05:30:25 +
Nicolas Vaye  wrote:

> Hi,
> 
> i want to change the network name of the existing nic for a VM with
> python SDK API ? Can i have some help please ?
> 
> the VM name is testnico
> the nic name is nic1
> the new network name is vlan_NEW
> 
> and here is the source file written by me (which doesn't work) :
> 
> 
> #!/usr/bin/env python
> # -*- coding: utf-8 -*-
> 
> 
> import logging
> import time
> 
> import ovirtsdk4 as sdk
> import ovirtsdk4.types as types
> 
> logging.basicConfig(level=logging.DEBUG, filename='example.log')
> 
> # This example will connect to the server and start a virtual machine
> # with cloud-init, in order to automatically configure the network and
> # the password of the `root` user.
> 
> # Create the connection to the server:
> connection = sdk.Connection(
> url='https://ocenter.province-sud.prod/ovirt-engine/api',
> username='admin@internal',
> password='',
> ca_file='CA_ocenter.pem',
> debug=True,
> log=logging.getLogger(),
> )
> 
> # Find the virtual machine:
> vms_service = connection.system_service().vms_service()
> vm = vms_service.list(search = 'name=testnico')[0]
> 
> # Find the service that manages the virtual machine:
> vm_service = vms_service.vm_service(vm.id)
> 
> 
> 
> 
> # In order to specify the network that the new interface will be
> # connected to we need to specify the identifier of the virtual
> network # interface profile, so we need to find it:
> profiles_service = connection.system_service().vnic_profiles_service()
> profile_id = None
> for profile in profiles_service.list():
> print "profile "+profile.name+","+profile.id
> if profile.name == 'vlan_NEW':
> profile_id = profile.id
> break
> 
> # Locate the service that manages the network interface cards of the
> # virtual machine:
> nics_service = vm_service.nics_service()
> 
> #print nics_service
> 
> # Find the nic1 of the VM
> for nic in nics_service.list():
> print "nic "+nic.name+","+nic.id+','+nic.vnic_profile.id
> if nic.name == 'nic1':
> nic_service = nics_service.nic_service(nic.id)
> break
> 
> 
> print "nic_service nic1 ==>"+str(nic_service)
> #pprint(vars(nic_service.network_filter_parameters_service().parameter_service()))
> 
> 
> #nic_service.vnic_profile.id=profile_id
> #nic_service.update()
> 
> nic_service.update(
> vnic_profile=types.VnicProfile(
> id=profile_id,
> )
> )
> 

nic_service.update(
types.Nic(
vnic_profile=types.VnicProfile(
id=profile_id,
)
)
)


> 
> # Close the connection to the server:
> connection.close()
> 
> 
> The result is :
> 
> Traceback (most recent call last):
>   File "start_vm_with_cloud_init.py", line 85, in 
> id=profile_id,
> TypeError: update() got an unexpected keyword argument 'vnic_profile'
> 
> 
> How can i do ?
> 

update() expects a parameter of type types.Nic, which has the parameter
vnic_profile.

> Thanks.
> 
> Nicolas VAYE
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

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


Re: [ovirt-users] Can't Add Host To New Hosted Engine - "Server is already part of another cluster"

2018-03-21 Thread Yedidyah Bar David
On Wed, Mar 21, 2018 at 8:17 AM, Adam Chesterton
 wrote:
> Hi Everyone,
>
> I'm running a 3-host hyperconverged Gluster setup for testing (on some old
> desktops), and recently the hosted engine died on me, so I have attempted to
> just clean up my existing hosts, leaving Gluster configured, and re-deploy a
> fresh hosted engine setup on them.
>
> I have successfully got the first host setup and the hosted engine is
> running on that host. However, when I try to add the other two hosts via the
> web GUI (as I can no longer add them via CLI) I get this error: "Error while
> executing action: Server X is already part of another cluster."

This message might be a result of the host's participation in a gluster cluster,
not hosted-engine cluster. Please share engine.log from the engine.

Adding Sahina.

>
> I've tried to find where this would still be configured on the two other
> hosts, but I cannot find anywhere.

If it's only about hosted-engine, you can check /etc/ovirt-hosted-engine .

You might try using ovirt-hosted-engine-cleanup, although it was not designed
for such cases.

>
> Does anyone know how I can stop these two hosts from thinking they are still
> in a cluster? Or, does anyone have some information that might help, or am I
> going to just have to start a fresh CentOS install?

If you do not need the data, a reinstall might be simplest.
If you do, not sure what's your exact plan.
You intend to rely on the replication? So that you reinstall one host, add it,
wait until syncing finished, then reinstall the other? Might work, no idea.

Best regards,
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Can't Add Host To New Hosted Engine - "Server is already part of another cluster"

2018-03-21 Thread Adam Chesterton
Hi Everyone,

I'm running a 3-host hyperconverged Gluster setup for testing (on some old
desktops), and recently the hosted engine died on me, so I have attempted
to just clean up my existing hosts, leaving Gluster configured, and
re-deploy a fresh hosted engine setup on them.

I have successfully got the first host setup and the hosted engine is
running on that host. However, when I try to add the other two hosts via
the web GUI (as I can no longer add them via CLI) I get this error: "Error
while executing action: Server X is already part of another cluster."

I've tried to find where this would still be configured on the two other
hosts, but I cannot find anywhere.

Does anyone know how I can stop these two hosts from thinking they are
still in a cluster? Or, does anyone have some information that might help,
or am I going to just have to start a fresh CentOS install?

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


Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a

2018-03-21 Thread Michael Burman
If you changing the host's management IP address then this is the only way
to do it. If you have only one host in the cluster, then you will need to
shut them down :(



On Wed, Mar 21, 2018 at 12:08 AM, zois roupas 
wrote:

> Is this a safe procedure? I mean i only have this host in my cluster, what
> will happen at the vm's that are assigned to the host?
>
>
> Thanks again
> --
> *From:* Michael Burman 
> *Sent:* Tuesday, March 20, 2018 4:10 PM
> *To:* zois roupas
> *Cc:* Ales Musil; users
>
> *Subject:* Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a
>
> Then you need to remove the host from engine, change the IP manually on
> the host, via ifcfg-file, restart network service and install the host
> again via the new IP address.
>
> On Tue, Mar 20, 2018 at 2:50 PM, zois roupas 
> wrote:
>
> Hi again all,
>
>
>  "Unless i miss understood you here, do you use a different IP address
> when switching to static or the same IP that you got from dhcp? if yes,
> then this is another flow.."
>
>
> To answer your question Michael , i'm trying to configure a different ip
> outside of my dhcp pool. The dhcp ip is 10.0.0.245 from the range
> 10.0.0.245-10.0.0.250 and i want to configure the ip 10.0.0.9 as the hosts
> ip
>
> "One thing to note if you are changing the IP to different one that was
> assigned by DHCP you should uncheck "Verify connectivity between Host and
> Engine""
>
> Ales, i also tried to follow your advise and uncheck the "Verify
> connectivity between Host and Engine" as proposed. Again the same results,
> it keeps reverting to previous dhcp ip
> I will extract the vdsm log and i'll get back to you, in the meanwhile
> this is the error that i see after the assignment of the static ip in the
> log
>
> 2018-03-20 14:16:57,576+0200 ERROR (monitor/38f4464) [storage.Monitor]
> Error checking domain 38f4464b-74b9-4468-891b-03cd65d72fec (monitor:424)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/storage/monitor.py", line
> 405, in _checkDomainStatus
> self.domain.selftest()
>   File "/usr/lib/python2.7/site-packages/vdsm/storage/fileSD.py", line
> 688, in selftest
> self.oop.os.statvfs(self.domaindir)
>   File "/usr/lib/python2.7/site-packages/vdsm/storage/outOfProcess.py",
> line 243, in statvfs
> return self._iop.statvfs(path)
>   File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line
> 488, in statvfs
> resdict = self._sendCommand("statvfs", {"path": path}, self.timeout)
>   File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line
> 455, in _sendCommand
> raise Timeout(os.strerror(errno.ETIMEDOUT))
> Timeout: Connection timed out
>
> Best Regards
> Zois
>
>
>
>
> --
> *From:* Ales Musil 
> *Sent:* Tuesday, March 20, 2018 11:28 AM
> *To:* Michael Burman
> *Cc:* zois roupas; users
>
> *Subject:* Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a
>
> One thing to note if you are changing the IP to different one that was
> assigned by DHCP you should uncheck "Verify connectivity between Host and
> Engine". This makes sure that the engine won't lost connectivity and in
> case of switching IP it happens.
>
> On Tue, Mar 20, 2018 at 10:15 AM, Michael Burman 
> wrote:
>
> Indeed very odd, this shouldn't  behave this way, just tested it my self
> and it is working as expected. Unless i miss understood you here, do you
> use a different IP address when switching to static or the same IP that you
> got from dhcp? if yes, then this is another flow..
>
> Can you please share the vdsm version and vdsm log with us?
>
> Edy, any idea what can cause this?
>
>
> On Tue, Mar 20, 2018 at 11:10 AM, zois roupas 
> wrote:
>
> Hi Michael and thanks a lot for the time
>
>
> Great step by step instructions but something strange is happening while
> trying to change to static ip. I tried to do the change while the host
> was in maintenance mode and in activate mode but again after some minutes
> the system reverts to the ip that dhcp is serving!
>
> What am i missing here? Do you have any ideas?
>
>
> Best Regards
> Zois
> --
> *From:* Michael Burman 
> *Sent:* Tuesday, March 20, 2018 8:46 AM
> *To:* zois roupas
> *Cc:* users@ovirt.org
> *Subject:* Re: [ovirt-users] Change ovirtmgmt ip from dhcp to static in a
>
> Hello Zois,
>
> It pretty easy to do, via the webadmin UI , go to Hosts main tab > Choose
> host > go to 'Network Interfaces' sub tab > Press the 'Setup Host Networks'
> button > press the pencil icon on your management network > and  choose
> Static IP > press OK and OK to approve the operation.
>
> - Note that in some cases, specially if this is a SPM host you will loose
> connectivity to host for few seconds and host may go to non-responsive
> state, on a non-SPM host