Re: [ovirt-users] storage domain ovirt-image-repository doesn't work

2018-03-12 Thread Idan Shaby
Hi Nicolas,

Let me make sure that I understand what's the issue here - you click on the
domain and on the Images sub tab nothing is displayed?
Can you please clear your engine log, click on the ovirt-image-repository
domain and attach the log to the mail?
When I do it, I get the following audit log:

2018-03-13 07:19:25,983+02 INFO
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(default task-86) [6af6ee81-ce9a-46b7-a371-c5c3b0c6bf2a] EVENT_ID:
REFRESH_REPOSITORY_IMAGE_LIST_SUCCEEDED(998), Refresh image list succeeded
for domain(s): ovirt-image-repository (All file type)

Maybe you get an error there that can help us understand the problem.


Regards,
Idan

On Mon, Mar 12, 2018 at 12:27 AM, 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 have issue with the ovirt-image-repository.
>
> Impossible to get the list of available images for this domain :
> [cid:1520807274.29800.1.camel@province-sud.nc]
>
> My cluster is on a private network, so there is a proxy to get internet
> access.
> I have tried with a specific proxy configuration on each node (
> https://www.server-world.info/en/note?os=CentOS_7=squid=2)
> so it's a success with yum update, wget or curl with
> http://glance.ovirt.org:9292/, but nothing in the webui for the
> ovirt-image-repository domain.
>
> I have tried another test with a transparent proxy and the result is the
> same :
> success with yum update, wget or curl with http://glance.ovirt.org:9292/,
> but nothing in the webui for the ovirt-image-repository domain.
>
>
> I don't know where is the specific log for this technical part.
>
> Can i have help for this issue.
>
> 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


[ovirt-users] Self Hosted Engine installation - does the OVEHOSTED_NETWORK/gateway parameter have an "overloaded" meaning?

2018-03-12 Thread Giuseppe Ragusa
Hi all,

I have a question about the best interpretation/choice for the installation 
parameter OVEHOSTED_NETWORK/gateway

It is my understanding that the IP specified as OVEHOSTED_NETWORK/gateway will 
be used (by means of ping) to verify the ongoing network-wise status of oVirt 
cluster nodes, with any problems leading to classifications/actions which could 
even bring to fencing of the "faulty" node.

If this is the case, I find it debatable that such a role should be referred to 
as "gateway", since (particularly in small setups) it should be delegated to an 
always reachable IP, not connected to mundane tasks such as routers/gateways: 
Internet (or wider network) reachability (think of an old, cheap router whose 
power supply starts to misbehave/fail...) should not determine the status of 
the local oVirt cluster, whose nodes tipically could be directly connected 
(especially wrt the management ovirtmgmt network) on the same network segment 
without any need for routing.
I suggest that in such a small setup, the console IP of something like the 
central (managed and stackable) switch could be used: if the central switch (ie 
all the stacked parts of it) goes down, then really there will be no 
communication betweeen nodes anyway.

It is also my understanding that the above mentioned OVEHOSTED_NETWORK/gateway 
parameter is automatically passed to cloud-init to configure the actual default 
gateway of the Self Hosted Engine appliance, without any means to override this 
choice with an ad-hoc specialized parameter.

If this is the case, I think that, in light of the above mentioned scenario, a 
specific override could be provided, without requirying the admin to 
reconfigure the appliance after it is deployed (by the way: the appliance, at 
least in version 4.1.9, does not contain the NetworkManager-glib package, so 
Ansible playbooks trying to configure the default gateway by means of the nmcli 
module always fail, and without working default gateway it is not so easy to 
add packages... think chicken and egg... :-) ).

Any thoughts/suggestions?

Many thanks in advance.

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


Re: [ovirt-users] Assistance needed...

2018-03-12 Thread Dan Yasny
Have you tried installing the guest agent?

On Mon, Mar 12, 2018 at 6:39 AM, Nasrum Minallah Manzoor <
nasrumminall...@hotmail.com> wrote:

> Hi,
>
>
>
> I need assistance regarding encircled in red in the attached! How can I
> remove the error “The latest guest agent needs to be installed and running
> on the guest”.
>
>
>
> Else everything is working fine!
>
>
>
>
>
> Kindly response as soon as possible!
>
>
>
>
>
>
>
> Regards,
>
> ___
> 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] Ovirt VMS backup

2018-03-12 Thread Victor José Acosta Domínguez
http://blog.infratic.com/blog/2017/07/07/create-ovirtrhevs-vm-backup/

Victor Acosta

RHCE - RHCSA - RHCVA - VCA-DCV
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Simone Tiraboschi
On Mon, Mar 12, 2018 at 6:44 PM, Kristian Petersen 
wrote:

> I think I accidentally sent that reply before I was really finished with
> it.  The error said the the VM mentioned in the conf file didn't exist.  I
> included the log file as requested.
>

As far as I can see from the logs, the engine VM went up as expected now:
2018-03-12 11:15:00,183-0600 INFO  (jsonrpc/5) [api.virt] FINISH getStats
return={'status': {'message': 'Done', 'code': 0}, 'statsList':
[{'displayInfo': [{'tlsPort': '-1', 'ipAddress': '0', 'type': u'vnc',
'port': '5900'}], 'memUsage': '17', 'acpiEnable': 'true', 'guestFQDN': u'
rhv-engine.cpms.byu.edu', 'vmId': 'cbe9b80f-9c18-409c-b7b1-54d95f4734ca',
'session': 'Unknown', 'displaySecurePort': '-1', 'timeOffset': '0',
'balloonInfo': {'balloon_max': '16777216', 'balloon_min': '0',
'balloon_target': '16777216', 'balloon_cur': '16777216'}, 'pauseCode':
'NOERR', 'disksUsage': [{u'path': u'/', u'total': '6565134336', u'fs':
u'xfs', u'used': '1950617600'}, {u'path': u'/boot', u'total': '1063256064',
u'fs': u'xfs', u'used': '170590208'}, {u'path': u'/home', u'total':
'1063256064', u'fs': u'xfs', u'used': '33792000'}, {u'path': u'/var',
u'total': '21464350720', u'fs': u'xfs', u'used': '396513280'}, {u'path':
u'/var/log', u'total': '10726932480', u'fs': u'xfs', u'used': '42823680'},
{u'path': u'/tmp', u'total': '2136997888', u'fs': u'xfs', u'used':
'34058240'}, {u'path': u'/var/log/audit', u'total': '1063256064', u'fs':
u'xfs', u'used': '34586624'}], 'network': {'vnet0': {'macAddr':
u'00:16:3e:54:f3:8e', 'rxDropped': '0', 'tx': '30742', 'rxErrors': '0',
'txDropped': '0', 'rx': '167904', 'txErrors': '0', 'state': 'unknown',
'sampleTime': 9385842.59, 'speed': '1000', 'name': 'vnet0'}}, 'vmJobs': {},
'cpuUser': '7.43', 'elapsedTime': '81', 'memoryStats': {'swap_out': '0',
'majflt': '0', 'mem_cached': '452216', 'mem_free': '13404476',
'mem_buffers': '2104', 'swap_in': '0', 'pageflt': '418', 'mem_total':
'16263704', 'mem_unused': '13404476'}, 'cpuSys': '1.67', 'appsList':
(u'ovirt-guest-agent-common-1.0.14-1.el7', u'kernel-3.10.0-693.17.1.el7',
u'cloud-init-0.7.9-9.el7.centos.2'), 'guestOs':
u'3.10.0-693.17.1.el7.x86_64', 'vmName': 'HostedEngine', 'displayType':
'vnc', 'vcpuCount': '4', 'clientIp': '', 'hash': '-7630705381253994604',
'guestCPUCount': 4, 'vmType': 'kvm', 'displayIp': '0', 'cpuUsage':
'911000', 'vcpuPeriod': 10L, 'displayPort': '5900',
'guestTimezone': {u'zone': u'America/Denver', u'offset': -420},
'vcpuQuota': '-1', 'statusTime': '9385842590', 'kvmEnable': 'true',
'disks': {'vda': {'readLatency': '387098', 'writtenBytes': '36851200',
'writeOps': '465', 'apparentsize': '125627793408', 'readOps': '15711',
'writeLatency': '1931806', 'imageID':
u'ec964354-ac01-4799-9c20-4bc923d285d4', 'readBytes': '480176128',
'flushLatency': '237153', 'readRate': '545.769487017', 'truesize':
'2503184384', 'writeRate': '76646.5023329'}, 'hdc': {'readLatency': '0',
'writtenBytes': '0', 'writeOps': '0', 'apparentsize': '0', 'readOps': '4',
'writeLatency': '0', 'readBytes': '152', 'flushLatency': '0', 'readRate':
'0.0', 'truesize': '0', 'writeRate': '0.0'}}, 'monitorResponse': '0',
'guestOsInfo': {u'kernel': u'3.10.0-693.17.1.el7.x86_64', u'arch':
u'x86_64', u'version': u'7.4.1708', u'distribution': u'CentOS Linux',
u'type': u'linux', u'codename': u'Core'}, 'username': u'None', 'guestName':
u'rhv-engine.cpms.byu.edu', 'status': 'Up', 'lastLogin': 1520874832.982759,
'guestIPs': u'192.168.1.22', 'guestContainers': [], 'netIfaces':
[{u'inet6': [u'fe80::216:3eff:fe54:f38e'], u'hw': u'00:16:3e:54:f3:8e',
u'inet': [u'192.168.1.22'], u'name': u'eth0'}]}]} from=::1,52334 (api:52)


>
>
> On Mon, Mar 12, 2018 at 11:36 AM, Simone Tiraboschi 
> wrote:
>
>>
>>
>> On Mon, Mar 12, 2018 at 6:27 PM, Kristian Petersen > > wrote:
>>
>>> I tried using my customized vm.conf with the fix in the CPU name as you
>>> suggested.  When I ran hosted-engine --vm-start --vm-conf=/root/myvm.conf
>>> and that failed.
>>>
>>
>> This is fine if the VM doesn't exist.
>> Can you please share your vdsm.log?
>>
>>
>>>   It said the vm didn't exist.  It sounds like I might need to get the
>>> updated package from the ovirt-4.2-pre repo and try deploying again.
>>>
>>> On Mon, Mar 12, 2018 at 10:31 AM, Simone Tiraboschi >> > wrote:
>>>


 On Mon, Mar 12, 2018 at 5:25 PM, Kristian Petersen <
 nesre...@chem.byu.edu> wrote:

> I'm guessing that v2.2.10 is not in the oVirt repo yet.  When I looked
> at vm.conf, the CPU name has a space in it like the one mentioned in the
> link you included.  So replacing that space with an underscore should do
> the trick prehaps?
>

 v2.2.12 is in -pre repo.

 You should replace the space with a dash: Broadwell-IBRS


>
> On Mon, Mar 12, 2018 at 10:00 AM, Kristian Petersen <
> nesre...@chem.byu.edu> wrote:
>
>> I have v2.2.9 of 

Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Simone Tiraboschi
On Mon, Mar 12, 2018 at 6:27 PM, Kristian Petersen 
wrote:

> I tried using my customized vm.conf with the fix in the CPU name as you
> suggested.  When I ran hosted-engine --vm-start --vm-conf=/root/myvm.conf
> and that failed.
>

This is fine if the VM doesn't exist.
Can you please share your vdsm.log?


>   It said the vm didn't exist.  It sounds like I might need to get the
> updated package from the ovirt-4.2-pre repo and try deploying again.
>
> On Mon, Mar 12, 2018 at 10:31 AM, Simone Tiraboschi 
> wrote:
>
>>
>>
>> On Mon, Mar 12, 2018 at 5:25 PM, Kristian Petersen > > wrote:
>>
>>> I'm guessing that v2.2.10 is not in the oVirt repo yet.  When I looked
>>> at vm.conf, the CPU name has a space in it like the one mentioned in the
>>> link you included.  So replacing that space with an underscore should do
>>> the trick prehaps?
>>>
>>
>> v2.2.12 is in -pre repo.
>>
>> You should replace the space with a dash: Broadwell-IBRS
>>
>>
>>>
>>> On Mon, Mar 12, 2018 at 10:00 AM, Kristian Petersen <
>>> nesre...@chem.byu.edu> wrote:
>>>
 I have v2.2.9 of ovirt-hosted-engine-setup currently installed.  I'll
 try out the other suggestion you made also.  Thanks for the help.

 On Fri, Mar 9, 2018 at 4:26 PM, Simone Tiraboschi 
 wrote:

>
>
> On Fri, Mar 9, 2018 at 8:33 PM, Kristian Petersen <
> nesre...@chem.byu.edu> wrote:
>
>> I have attached the relevant log files as requested.​
>>  vdsm.log.1
>> 
>> ​
>>
>
>
> The real issue is here:
>
> 
> BroadwellIBRS
> 
> destroydestroy oot>destroy (vm:2751)
> 2018-03-08 08:04:13,757-0700 ERROR (vm/9a1e133d) [virt.vm]
> (vmId='9a1e133d-13d8-4613-b1a5-fd3ca81ffcc3') The vm start process
> failed (vm:927)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 856,
> in _startUnderlyingVm
> self._run()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2756,
> in _run
> dom.createWithFlags(flags)
>   File 
> "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py",
> line 130, in wrapper
> ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py",
> line 92, in wrapper
> return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in
> createWithFlags
> if ret == -1: raise libvirtError ('virDomainCreateWithFlags()
> failed', dom=self)
> libvirtError: internal error: Unknown CPU model BroadwellIBRS
>
> Indeed it should be Broadwell-IBRS
>
> Can you please report which rpm version of ovirt-hosted-engine-setup
> did you used?
>
> You can fix it in this way:
> copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it and
> update the cpuType field.
>
> Then start the engine VM with your custom vm.conf with something like:
> hosted-engine --vm-start --vm-conf=/root/my_vm.conf
> keep the engine up for at least one hour and it will generate the
> OVF_STORE disks with the right configuration for the hosted-engine VM.
>
> It failed really at the end of the setup so anything else should be
> fine.
>
>
>
>>
>> On Fri, Mar 9, 2018 at 1:21 AM, Simone Tiraboschi <
>> stira...@redhat.com> wrote:
>>
>>>
>>>
>>> On Thu, Mar 8, 2018 at 7:28 PM, Kristian Petersen <
>>> nesre...@chem.byu.edu> wrote:
>>>
 I am trying to deploy oVirt with a self-hosted engine and the setup
 seems to go well until near the very end when the status message says:
 [ INFO ] TASK [Wait for the engine to come up on the target VM]

 [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120,
 "changed": true, "cmd": ["hosted-engine", "--vm-status", "--json"],
 "delta": "0:0
 0:00.216412", "end": "2018-03-07 16:02:02.677478", "rc": 0,
 "start": "2018-03-07 16:02:02.461066", "stderr": "", "stderr_lines": 
 [],
 "stdout
 ": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true,
 \"extra\": \"metadata_parse_version=1\\nm
 etadata_feature_version=1\\ntim
 estamp=4679955 (Wed Mar  7 16:01:50 2018)\\nhost-id=1\\nscore=3400
 \\nvm_conf_refresh_time=4679956 (Wed Mar  7 16:01:51
 2018)\\nconf_on_share
 d_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
 \"hostname\": \"rhv1.cpms.byu.edu\", \"host-id\": 1, \"engin
 e-status\": {\"reason\": \"vm not running on this host\",
 \"health\": \"bad\", \"vm\": \"down\", \"detail\": \"unknown\"}, 
 

Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Kristian Petersen
I tried using my customized vm.conf with the fix in the CPU name as you
suggested.  When I ran hosted-engine --vm-start --vm-conf=/root/myvm.conf
and that failed.  It said the vm didn't exist.  It sounds like I might need
to get the updated package from the ovirt-4.2-pre repo and try deploying
again.

On Mon, Mar 12, 2018 at 10:31 AM, Simone Tiraboschi 
wrote:

>
>
> On Mon, Mar 12, 2018 at 5:25 PM, Kristian Petersen 
> wrote:
>
>> I'm guessing that v2.2.10 is not in the oVirt repo yet.  When I looked at
>> vm.conf, the CPU name has a space in it like the one mentioned in the link
>> you included.  So replacing that space with an underscore should do the
>> trick prehaps?
>>
>
> v2.2.12 is in -pre repo.
>
> You should replace the space with a dash: Broadwell-IBRS
>
>
>>
>> On Mon, Mar 12, 2018 at 10:00 AM, Kristian Petersen <
>> nesre...@chem.byu.edu> wrote:
>>
>>> I have v2.2.9 of ovirt-hosted-engine-setup currently installed.  I'll
>>> try out the other suggestion you made also.  Thanks for the help.
>>>
>>> On Fri, Mar 9, 2018 at 4:26 PM, Simone Tiraboschi 
>>> wrote:
>>>


 On Fri, Mar 9, 2018 at 8:33 PM, Kristian Petersen <
 nesre...@chem.byu.edu> wrote:

> I have attached the relevant log files as requested.​
>  vdsm.log.1
> 
> ​
>


 The real issue is here:

 
 BroadwellIBRS
 
 destroydestroy>>> oot>destroy (vm:2751)
 2018-03-08 08:04:13,757-0700 ERROR (vm/9a1e133d) [virt.vm]
 (vmId='9a1e133d-13d8-4613-b1a5-fd3ca81ffcc3') The vm start process
 failed (vm:927)
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 856,
 in _startUnderlyingVm
 self._run()
   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2756,
 in _run
 dom.createWithFlags(flags)
   File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py",
 line 130, in wrapper
 ret = f(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py",
 line 92, in wrapper
 return func(inst, *args, **kwargs)
   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in
 createWithFlags
 if ret == -1: raise libvirtError ('virDomainCreateWithFlags()
 failed', dom=self)
 libvirtError: internal error: Unknown CPU model BroadwellIBRS

 Indeed it should be Broadwell-IBRS

 Can you please report which rpm version of ovirt-hosted-engine-setup
 did you used?

 You can fix it in this way:
 copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it and
 update the cpuType field.

 Then start the engine VM with your custom vm.conf with something like:
 hosted-engine --vm-start --vm-conf=/root/my_vm.conf
 keep the engine up for at least one hour and it will generate the
 OVF_STORE disks with the right configuration for the hosted-engine VM.

 It failed really at the end of the setup so anything else should be
 fine.



>
> On Fri, Mar 9, 2018 at 1:21 AM, Simone Tiraboschi  > wrote:
>
>>
>>
>> On Thu, Mar 8, 2018 at 7:28 PM, Kristian Petersen <
>> nesre...@chem.byu.edu> wrote:
>>
>>> I am trying to deploy oVirt with a self-hosted engine and the setup
>>> seems to go well until near the very end when the status message says:
>>> [ INFO ] TASK [Wait for the engine to come up on the target VM]
>>>
>>> [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120,
>>> "changed": true, "cmd": ["hosted-engine", "--vm-status", "--json"],
>>> "delta": "0:0
>>> 0:00.216412", "end": "2018-03-07 16:02:02.677478", "rc": 0, "start":
>>> "2018-03-07 16:02:02.461066", "stderr": "", "stderr_lines": [], "stdout
>>> ": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true,
>>> \"extra\": \"metadata_parse_version=1\\nm
>>> etadata_feature_version=1\\ntim
>>> estamp=4679955 (Wed Mar  7 16:01:50 2018)\\nhost-id=1\\nscore=3400
>>> \\nvm_conf_refresh_time=4679956 (Wed Mar  7 16:01:51
>>> 2018)\\nconf_on_share
>>> d_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
>>> \"hostname\": \"rhv1.cpms.byu.edu\", \"host-id\": 1, \"engin
>>> e-status\": {\"reason\": \"vm not running on this host\",
>>> \"health\": \"bad\", \"vm\": \"down\", \"detail\": \"unknown\"}, 
>>> \"score\":
>>> 3400,
>>> \"stopped\": false, \"maintenance\": false, \"crc32\": \"d3a67cf7\",
>>> \"local_conf_timestamp\": 4679956, \"host-ts\": 4679955}, \"global_main
>>> tenance\": false}", "stdout_lines": ["{\"1\":
>>> {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\":
>>> 

Re: [ovirt-users] Auto-restart VM from Linux Shell

2018-03-12 Thread Luca 'remix_tj' Lorenzetto
Hello Andrei,

i'll do simply in this way with ansible:

- name: Start oVirt VMs
  hosts: localhost
  connection: local
  gather_facts: False

  tasks:

- name: Obtain SSO token
  ovirt_auth:
  url: https://engine/ovirt-engine/api
  username: admin@internal
  password: password
  insecure: True
  ignore_errors: False

- name: Stop VM
  ovirt_vms:
  state: stopped
  name: "server1"
  auth: "{{ ovirt_auth }}"

- name: Start VM
  ovirt_vms:
  state: running
  name: "server1"
  auth: "{{ ovirt_auth }}"


- always:
  - name: Revoke the SSO token
ovirt_auth:
   state: absent
   ovirt_auth: "{{ ovirt_auth }}"

On Mon, Mar 12, 2018 at 11:04 AM,   wrote:
> You meant this:
> https://github.com/machacekondra/ovirt-ansible-example/wiki
> https://github.com/machacekondra/ovirt-ansible-example
>
> Seems like overkill for so simple task. If bash scripts works, its OK for now.
>
>
>> On 12 Mar 2018, at 11:31, Yedidyah Bar David  wrote:
>>
>> On Mon, Mar 12, 2018 at 1:45 AM, Andrei Verovski  
>> wrote:
>>> Hi !
>>>
>>> I have stubborn VM which time to time freezes, and watchdog for whatever
>>> reason don't restart it.
>>>
>>> Basically I would like to combine these 3 command into one script.
>>>
>>> ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
>>> --ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal" --password
>>> "secret"
>>>
>>> action vm MyVM stop
>>> action vm MyVM start
>>>
>>> Now I have problems.
>>> 1) Option --password "secret" is not recognized anymore in oVirt Shell 4.2.
>>> 2) What is the proper syntax to connect & run certain command in oVirt
>>> Shell 4.2? Something like:
>>>
>>> ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
>>> --ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal" --password
>>> "secret" && action vm MyVM stop
>>
>> ovirt-shell is considered deprecated. Did you consider using ansible?
>>
>> Best regards,
>> --
>> Didi
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



-- 
"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


Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Simone Tiraboschi
On Mon, Mar 12, 2018 at 5:25 PM, Kristian Petersen 
wrote:

> I'm guessing that v2.2.10 is not in the oVirt repo yet.  When I looked at
> vm.conf, the CPU name has a space in it like the one mentioned in the link
> you included.  So replacing that space with an underscore should do the
> trick prehaps?
>

v2.2.12 is in -pre repo.

You should replace the space with a dash: Broadwell-IBRS


>
> On Mon, Mar 12, 2018 at 10:00 AM, Kristian Petersen  > wrote:
>
>> I have v2.2.9 of ovirt-hosted-engine-setup currently installed.  I'll try
>> out the other suggestion you made also.  Thanks for the help.
>>
>> On Fri, Mar 9, 2018 at 4:26 PM, Simone Tiraboschi 
>> wrote:
>>
>>>
>>>
>>> On Fri, Mar 9, 2018 at 8:33 PM, Kristian Petersen >> > wrote:
>>>
 I have attached the relevant log files as requested.​
  vdsm.log.1
 
 ​

>>>
>>>
>>> The real issue is here:
>>>
>>> 
>>> BroadwellIBRS
>>> 
>>> destroydestroy>> oot>destroy (vm:2751)
>>> 2018-03-08 08:04:13,757-0700 ERROR (vm/9a1e133d) [virt.vm]
>>> (vmId='9a1e133d-13d8-4613-b1a5-fd3ca81ffcc3') The vm start process
>>> failed (vm:927)
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 856, in
>>> _startUnderlyingVm
>>> self._run()
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2756,
>>> in _run
>>> dom.createWithFlags(flags)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py",
>>> line 130, in wrapper
>>> ret = f(*args, **kwargs)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line
>>> 92, in wrapper
>>> return func(inst, *args, **kwargs)
>>>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in
>>> createWithFlags
>>> if ret == -1: raise libvirtError ('virDomainCreateWithFlags()
>>> failed', dom=self)
>>> libvirtError: internal error: Unknown CPU model BroadwellIBRS
>>>
>>> Indeed it should be Broadwell-IBRS
>>>
>>> Can you please report which rpm version of ovirt-hosted-engine-setup did
>>> you used?
>>>
>>> You can fix it in this way:
>>> copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it and
>>> update the cpuType field.
>>>
>>> Then start the engine VM with your custom vm.conf with something like:
>>> hosted-engine --vm-start --vm-conf=/root/my_vm.conf
>>> keep the engine up for at least one hour and it will generate the
>>> OVF_STORE disks with the right configuration for the hosted-engine VM.
>>>
>>> It failed really at the end of the setup so anything else should be fine.
>>>
>>>
>>>

 On Fri, Mar 9, 2018 at 1:21 AM, Simone Tiraboschi 
 wrote:

>
>
> On Thu, Mar 8, 2018 at 7:28 PM, Kristian Petersen <
> nesre...@chem.byu.edu> wrote:
>
>> I am trying to deploy oVirt with a self-hosted engine and the setup
>> seems to go well until near the very end when the status message says:
>> [ INFO ] TASK [Wait for the engine to come up on the target VM]
>>
>> [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120, "changed":
>> true, "cmd": ["hosted-engine", "--vm-status", "--json"], "delta": "0:0
>> 0:00.216412", "end": "2018-03-07 16:02:02.677478", "rc": 0, "start":
>> "2018-03-07 16:02:02.461066", "stderr": "", "stderr_lines": [], "stdout
>> ": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true,
>> \"extra\": \"metadata_parse_version=1\\nm
>> etadata_feature_version=1\\ntim
>> estamp=4679955 (Wed Mar  7 16:01:50 2018)\\nhost-id=1\\nscore=3400
>> \\nvm_conf_refresh_time=4679956 (Wed Mar  7 16:01:51
>> 2018)\\nconf_on_share
>> d_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
>> \"hostname\": \"rhv1.cpms.byu.edu\", \"host-id\": 1, \"engin
>> e-status\": {\"reason\": \"vm not running on this host\", \"health\":
>> \"bad\", \"vm\": \"down\", \"detail\": \"unknown\"}, \"score\": 3400,
>> \"stopped\": false, \"maintenance\": false, \"crc32\": \"d3a67cf7\",
>> \"local_conf_timestamp\": 4679956, \"host-ts\": 4679955}, \"global_main
>> tenance\": false}", "stdout_lines": ["{\"1\":
>> {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\":
>> \"metadata_parse_version=1\
>> \nmetadata_feature_version=1\\ntimestamp=4679955 (Wed Mar  7
>> 16:01:50 2018)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=4679956
>> (Wed Mar
>>   7 16:01:51 2018)\\nconf_on_shared_storage
>> =True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
>> \"hostname\": \"rhv1.cpms.
>> byu.edu\", \"host-id\": 1, \"engine-status\": {\"reason\": \"vm not
>> running on this host\", \"health\": \"bad\", \"vm\": \"down\", \"detail\
>> ": \"unknown\"}, \"score\": 

Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Kristian Petersen
I'm guessing that v2.2.10 is not in the oVirt repo yet.  When I looked at
vm.conf, the CPU name has a space in it like the one mentioned in the link
you included.  So replacing that space with an underscore should do the
trick prehaps?

On Mon, Mar 12, 2018 at 10:00 AM, Kristian Petersen 
wrote:

> I have v2.2.9 of ovirt-hosted-engine-setup currently installed.  I'll try
> out the other suggestion you made also.  Thanks for the help.
>
> On Fri, Mar 9, 2018 at 4:26 PM, Simone Tiraboschi 
> wrote:
>
>>
>>
>> On Fri, Mar 9, 2018 at 8:33 PM, Kristian Petersen 
>> wrote:
>>
>>> I have attached the relevant log files as requested.​
>>>  vdsm.log.1
>>> 
>>> ​
>>>
>>
>>
>> The real issue is here:
>>
>> 
>> BroadwellIBRS
>> 
>> destroydestroy> reboot>destroy (vm:2751)
>> 2018-03-08 08:04:13,757-0700 ERROR (vm/9a1e133d) [virt.vm]
>> (vmId='9a1e133d-13d8-4613-b1a5-fd3ca81ffcc3') The vm start process
>> failed (vm:927)
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 856, in
>> _startUnderlyingVm
>> self._run()
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2756, in
>> _run
>> dom.createWithFlags(flags)
>>   File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py",
>> line 130, in wrapper
>> ret = f(*args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line
>> 92, in wrapper
>> return func(inst, *args, **kwargs)
>>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in
>> createWithFlags
>> if ret == -1: raise libvirtError ('virDomainCreateWithFlags()
>> failed', dom=self)
>> libvirtError: internal error: Unknown CPU model BroadwellIBRS
>>
>> Indeed it should be Broadwell-IBRS
>>
>> Can you please report which rpm version of ovirt-hosted-engine-setup did
>> you used?
>>
>> You can fix it in this way:
>> copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it and
>> update the cpuType field.
>>
>> Then start the engine VM with your custom vm.conf with something like:
>> hosted-engine --vm-start --vm-conf=/root/my_vm.conf
>> keep the engine up for at least one hour and it will generate the
>> OVF_STORE disks with the right configuration for the hosted-engine VM.
>>
>> It failed really at the end of the setup so anything else should be fine.
>>
>>
>>
>>>
>>> On Fri, Mar 9, 2018 at 1:21 AM, Simone Tiraboschi 
>>> wrote:
>>>


 On Thu, Mar 8, 2018 at 7:28 PM, Kristian Petersen <
 nesre...@chem.byu.edu> wrote:

> I am trying to deploy oVirt with a self-hosted engine and the setup
> seems to go well until near the very end when the status message says:
> [ INFO ] TASK [Wait for the engine to come up on the target VM]
>
> [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120, "changed":
> true, "cmd": ["hosted-engine", "--vm-status", "--json"], "delta": "0:0
> 0:00.216412", "end": "2018-03-07 16:02:02.677478", "rc": 0, "start":
> "2018-03-07 16:02:02.461066", "stderr": "", "stderr_lines": [], "stdout
> ": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true,
> \"extra\": \"metadata_parse_version=1\\nm
> etadata_feature_version=1\\ntim
> estamp=4679955 (Wed Mar  7 16:01:50 2018)\\nhost-id=1\\nscore=3400
> \\nvm_conf_refresh_time=4679956 (Wed Mar  7 16:01:51
> 2018)\\nconf_on_share
> d_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
> \"hostname\": \"rhv1.cpms.byu.edu\", \"host-id\": 1, \"engin
> e-status\": {\"reason\": \"vm not running on this host\", \"health\":
> \"bad\", \"vm\": \"down\", \"detail\": \"unknown\"}, \"score\": 3400,
> \"stopped\": false, \"maintenance\": false, \"crc32\": \"d3a67cf7\",
> \"local_conf_timestamp\": 4679956, \"host-ts\": 4679955}, \"global_main
> tenance\": false}", "stdout_lines": ["{\"1\":
> {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\":
> \"metadata_parse_version=1\
> \nmetadata_feature_version=1\\ntimestamp=4679955 (Wed Mar  7 16:01:50
> 2018)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=4679956 (Wed Mar
>   7 16:01:51 2018)\\nconf_on_shared_storage
> =True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
> \"hostname\": \"rhv1.cpms.
> byu.edu\", \"host-id\": 1, \"engine-status\": {\"reason\": \"vm not
> running on this host\", \"health\": \"bad\", \"vm\": \"down\", \"detail\
> ": \"unknown\"}, \"score\": 3400, \"stopped\": false, \"maintenance\":
> false, \"crc32\": \"d3a67cf7\", \"local_conf_timestamp\": 4679956, \"
> host-ts\": 4679955}, \"global_maintenance\": false}"]}
> [ ERROR ] Failed to execute stage 'Closing up': Failed executing
> ansible-playbook
>
> Any ideas 

Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Simone Tiraboschi
On Mon, Mar 12, 2018 at 5:00 PM, Kristian Petersen 
wrote:

> I have v2.2.9 of ovirt-hosted-engine-setup currently installed.
>

OK, makes sense: https://gerrit.ovirt.org/#/c/87060/ fixes it but it comes
only with v2.2.10


> I'll try out the other suggestion you made also.  Thanks for the help.
>
> On Fri, Mar 9, 2018 at 4:26 PM, Simone Tiraboschi 
> wrote:
>
>>
>>
>> On Fri, Mar 9, 2018 at 8:33 PM, Kristian Petersen 
>> wrote:
>>
>>> I have attached the relevant log files as requested.​
>>>  vdsm.log.1
>>> 
>>> ​
>>>
>>
>>
>> The real issue is here:
>>
>> 
>> BroadwellIBRS
>> 
>> destroydestroy> reboot>destroy (vm:2751)
>> 2018-03-08 08:04:13,757-0700 ERROR (vm/9a1e133d) [virt.vm]
>> (vmId='9a1e133d-13d8-4613-b1a5-fd3ca81ffcc3') The vm start process
>> failed (vm:927)
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 856, in
>> _startUnderlyingVm
>> self._run()
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2756, in
>> _run
>> dom.createWithFlags(flags)
>>   File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py",
>> line 130, in wrapper
>> ret = f(*args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line
>> 92, in wrapper
>> return func(inst, *args, **kwargs)
>>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in
>> createWithFlags
>> if ret == -1: raise libvirtError ('virDomainCreateWithFlags()
>> failed', dom=self)
>> libvirtError: internal error: Unknown CPU model BroadwellIBRS
>>
>> Indeed it should be Broadwell-IBRS
>>
>> Can you please report which rpm version of ovirt-hosted-engine-setup did
>> you used?
>>
>> You can fix it in this way:
>> copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it and
>> update the cpuType field.
>>
>> Then start the engine VM with your custom vm.conf with something like:
>> hosted-engine --vm-start --vm-conf=/root/my_vm.conf
>> keep the engine up for at least one hour and it will generate the
>> OVF_STORE disks with the right configuration for the hosted-engine VM.
>>
>> It failed really at the end of the setup so anything else should be fine.
>>
>>
>>
>>>
>>> On Fri, Mar 9, 2018 at 1:21 AM, Simone Tiraboschi 
>>> wrote:
>>>


 On Thu, Mar 8, 2018 at 7:28 PM, Kristian Petersen <
 nesre...@chem.byu.edu> wrote:

> I am trying to deploy oVirt with a self-hosted engine and the setup
> seems to go well until near the very end when the status message says:
> [ INFO ] TASK [Wait for the engine to come up on the target VM]
>
> [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120, "changed":
> true, "cmd": ["hosted-engine", "--vm-status", "--json"], "delta": "0:0
> 0:00.216412", "end": "2018-03-07 16:02:02.677478", "rc": 0, "start":
> "2018-03-07 16:02:02.461066", "stderr": "", "stderr_lines": [], "stdout
> ": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true,
> \"extra\": \"metadata_parse_version=1\\nm
> etadata_feature_version=1\\ntim
> estamp=4679955 (Wed Mar  7 16:01:50 2018)\\nhost-id=1\\nscore=3400
> \\nvm_conf_refresh_time=4679956 (Wed Mar  7 16:01:51
> 2018)\\nconf_on_share
> d_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
> \"hostname\": \"rhv1.cpms.byu.edu\", \"host-id\": 1, \"engin
> e-status\": {\"reason\": \"vm not running on this host\", \"health\":
> \"bad\", \"vm\": \"down\", \"detail\": \"unknown\"}, \"score\": 3400,
> \"stopped\": false, \"maintenance\": false, \"crc32\": \"d3a67cf7\",
> \"local_conf_timestamp\": 4679956, \"host-ts\": 4679955}, \"global_main
> tenance\": false}", "stdout_lines": ["{\"1\":
> {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\":
> \"metadata_parse_version=1\
> \nmetadata_feature_version=1\\ntimestamp=4679955 (Wed Mar  7 16:01:50
> 2018)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=4679956 (Wed Mar
>   7 16:01:51 2018)\\nconf_on_shared_storage
> =True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
> \"hostname\": \"rhv1.cpms.
> byu.edu\", \"host-id\": 1, \"engine-status\": {\"reason\": \"vm not
> running on this host\", \"health\": \"bad\", \"vm\": \"down\", \"detail\
> ": \"unknown\"}, \"score\": 3400, \"stopped\": false, \"maintenance\":
> false, \"crc32\": \"d3a67cf7\", \"local_conf_timestamp\": 4679956, \"
> host-ts\": 4679955}, \"global_maintenance\": false}"]}
> [ ERROR ] Failed to execute stage 'Closing up': Failed executing
> ansible-playbook
>
> Any ideas that might help?
>


 Hi Kristian,
 {\"reason\": \"vm not running on this host\" sonds really bad.
 I means that 

Re: [ovirt-users] Having trouble setting up Ovirt

2018-03-12 Thread Kristian Petersen
The problem changed a little since I initially posted this to the list.  It
is getting past the lockspace task now.  I posted again with the new
situation but did it separate from this.  Simone has responded to that one
and if you want I can add you to that loop.

Using the --noansible flag seems to cause it to fail even sooner.  It fails
almost right off the bat, which is interesting to say the least.

On Mon, Mar 12, 2018 at 6:39 AM, Yedidyah Bar David  wrote:

> On Tue, Mar 6, 2018 at 6:42 PM, Kristian Petersen 
> wrote:
> > I am trying to setup Ovirt with a self hosted engine and NFS storage for
> > said engine.  The storage appears to mounting OK, but when it gets to the
> > point that it is initializing the lockspace it fails spectacularly and
> shows
> > a Python traceback which I cleaned up and have included below:
> >
> > Traceback (most recent call last):
> >   File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
> > "__main__", fname, loader, pkg_name)
> >   File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
> > exec code in run_globals
> >   File
> > "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_
> setup/reinitialize_lockspace.py",
> > line 30, in 
> > ha_cli.reset_lockspace(force)
> >   File
> > "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_
> ha/client/client.py",
> > line 270, in reset_lockspace
> > stats = broker.get_stats_from_storage()
> >   File
> > "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_
> ha/lib/brokerlink.py",
> > line 135, in get_stats_from_storage
> > result = self._proxy.get_stats()
> >   File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
> > return self.__send(self.__name, args)
> >   File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
> > verbose=self.__verbose
> >   File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
> > return self.single_request(host, handler, request_body, verbose)
> >   File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
> > self.send_content(h, request_body)
> >   File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
> > connection.endheaders(request_body)
> >   File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
> > self._send_output(message_body)
> >   File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
> > self.send(msg)
> >   File "/usr/lib64/python2.7/httplib.py", line 826, in send
> > self.connect()
> >   File
> > "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_
> ha/lib/unixrpc.py",
> > line 52, in connect
> > self.sock.connect(base64.b16decode(self.host))
> >   File "/usr/lib64/python2.7/socket.py", line 224, in meth
> > return getattr(self._sock,name)(*args)
> > socket.error: [Errno 2] No such file or directory
> >
> > The messier ansible output is below:
> > [ INFO  ] TASK [Initialize lockspace volume]
> > [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true,
> > "cmd": ["hosted-engine", "--reinitialize-lockspace", "--force"], "
> > delta": "0:00:01.007879", "end": "2018-03-05 14:03:00.474295", "msg":
> > "non-zero return code", "rc": 1, "start": "2018-03-05 14:02:59.466416"
> > , "stderr": "Traceback (most recent call last):\n  File
> > \"/usr/lib64/python2.7/runpy.py\", line 162, in _run_module_as_main\n
> > \"__main__\
> > ", fname, loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\",
> line
> > 72, in _run_code\nexec code in run_globals\n  File \"/usr/li
> > b/python2.7/site-packages/ovirt_hosted_engine_setup/
> reinitialize_lockspace.py\",
> > line 30, in \nha_cli.reset_lockspace(force)\n
> > File
> > \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_
> ha/client/client.py\",
> > line 270, in reset_lockspace\nstats = broker.get_stat
> > s_from_storage()\n  File
> > \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_
> ha/lib/brokerlink.py\",
> > line 135, in get_stats_from_storage\
> > nresult = self._proxy.get_stats()\n  File
> > \"/usr/lib64/python2.7/xmlrpclib.py\", line 1233, in __call__\n
> return
> > self.__send(self.__n
> > ame, args)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 1587, in
> > __request\nverbose=self.__verbose\n  File \"/usr/lib64/python2.7
> > /xmlrpclib.py\", line 1273, in request\nreturn
> self.single_request(host,
> > handler, request_body, verbose)\n  File \"/usr/lib64/python2.7/
> > xmlrpclib.py\", line 1301, in single_request\nself.send_content(h,
> > request_body)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 144
> > 8, in send_content\nconnection.endheaders(request_body)\n  File
> > \"/usr/lib64/python2.7/httplib.py\", line 1013, in endheaders\nself.
> > _send_output(message_body)\n  File \"/usr/lib64/python2.7/httplib.py\",
> line
> > 864, in _send_output\nself.send(msg)\n  File \"/usr/lib64/p
> > ython2.7/httplib.py\", line 826, in send\nself.connect()\n  

Re: [ovirt-users] hosted-engine deploy fails at "Wait for the engine to come up on the target VM" step

2018-03-12 Thread Kristian Petersen
I have v2.2.9 of ovirt-hosted-engine-setup currently installed.  I'll try
out the other suggestion you made also.  Thanks for the help.

On Fri, Mar 9, 2018 at 4:26 PM, Simone Tiraboschi 
wrote:

>
>
> On Fri, Mar 9, 2018 at 8:33 PM, Kristian Petersen 
> wrote:
>
>> I have attached the relevant log files as requested.​
>>  vdsm.log.1
>> 
>> ​
>>
>
>
> The real issue is here:
>
> 
> BroadwellIBRS
> 
> destroydestroy on_reboot>destroy (vm:2751)
> 2018-03-08 08:04:13,757-0700 ERROR (vm/9a1e133d) [virt.vm]
> (vmId='9a1e133d-13d8-4613-b1a5-fd3ca81ffcc3') The vm start process failed
> (vm:927)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 856, in
> _startUnderlyingVm
> self._run()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2756, in
> _run
> dom.createWithFlags(flags)
>   File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py",
> line 130, in wrapper
> ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line
> 92, in wrapper
> return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in
> createWithFlags
> if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed',
> dom=self)
> libvirtError: internal error: Unknown CPU model BroadwellIBRS
>
> Indeed it should be Broadwell-IBRS
>
> Can you please report which rpm version of ovirt-hosted-engine-setup did
> you used?
>
> You can fix it in this way:
> copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it and
> update the cpuType field.
>
> Then start the engine VM with your custom vm.conf with something like:
> hosted-engine --vm-start --vm-conf=/root/my_vm.conf
> keep the engine up for at least one hour and it will generate the
> OVF_STORE disks with the right configuration for the hosted-engine VM.
>
> It failed really at the end of the setup so anything else should be fine.
>
>
>
>>
>> On Fri, Mar 9, 2018 at 1:21 AM, Simone Tiraboschi 
>> wrote:
>>
>>>
>>>
>>> On Thu, Mar 8, 2018 at 7:28 PM, Kristian Petersen >> > wrote:
>>>
 I am trying to deploy oVirt with a self-hosted engine and the setup
 seems to go well until near the very end when the status message says:
 [ INFO ] TASK [Wait for the engine to come up on the target VM]

 [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120, "changed":
 true, "cmd": ["hosted-engine", "--vm-status", "--json"], "delta": "0:0
 0:00.216412", "end": "2018-03-07 16:02:02.677478", "rc": 0, "start":
 "2018-03-07 16:02:02.461066", "stderr": "", "stderr_lines": [], "stdout
 ": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true,
 \"extra\": \"metadata_parse_version=1\\nmetadata_feature_version=1\\nti
 m
 estamp=4679955 (Wed Mar  7 16:01:50 2018)\\nhost-id=1\\nscore=3400
 \\nvm_conf_refresh_time=4679956 (Wed Mar  7 16:01:51
 2018)\\nconf_on_share
 d_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
 \"hostname\": \"rhv1.cpms.byu.edu\", \"host-id\": 1, \"engin
 e-status\": {\"reason\": \"vm not running on this host\", \"health\":
 \"bad\", \"vm\": \"down\", \"detail\": \"unknown\"}, \"score\": 3400,
 \"stopped\": false, \"maintenance\": false, \"crc32\": \"d3a67cf7\",
 \"local_conf_timestamp\": 4679956, \"host-ts\": 4679955}, \"global_main
 tenance\": false}", "stdout_lines": ["{\"1\":
 {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\":
 \"metadata_parse_version=1\
 \nmetadata_feature_version=1\\ntimestamp=4679955 (Wed Mar  7 16:01:50
 2018)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=4679956 (Wed Mar
   7 16:01:51 2018)\\nconf_on_shared_storage
 =True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
 \"hostname\": \"rhv1.cpms.
 byu.edu\", \"host-id\": 1, \"engine-status\": {\"reason\": \"vm not
 running on this host\", \"health\": \"bad\", \"vm\": \"down\", \"detail\
 ": \"unknown\"}, \"score\": 3400, \"stopped\": false, \"maintenance\":
 false, \"crc32\": \"d3a67cf7\", \"local_conf_timestamp\": 4679956, \"
 host-ts\": 4679955}, \"global_maintenance\": false}"]}
 [ ERROR ] Failed to execute stage 'Closing up': Failed executing
 ansible-playbook

 Any ideas that might help?

>>>
>>>
>>> Hi Kristian,
>>> {\"reason\": \"vm not running on this host\" sonds really bad.
>>> I means that ovirt-ha-agent (in charge of restarting the engine VM)
>>> think that another host took over but at that stage you should have just
>>> one host.
>>>
>>> Could you please attach /var/log/ovirt-hosted-engine-ha/agent.log and
>>> /var/log/vdsm/vdsm.log for the relevant time frame?
>>>
>>>


 --

[ovirt-users] PostgreSQL tuning in oVirt

2018-03-12 Thread Hari Prasanth Loganathan
Hi Team,

We increased the number of threads in Apache web server and JBoss and we
are able to scale up to 500 concurrent requests in oVirt.

But after the long run, we are getting the below error from PostgreSQL but
the oVirt is still running successfully.

org.springframework.dao.DataAccessResourceFailureException:
PreparedStatementCallback; SQL [select * from getvdcoptionbyname(?, ?)];
This connection has been closed.; nested exception is
org.postgresql.util.PSQLException: This connection has been closed.

1) Could somebody explain this error?
2) What are the tuning parameters for PostgreSQL?

SystemConfiguration for reference :

16 GB Ram,
5GB for Ovirt
Architecture:  x86_64
CPU op-mode(s):32-bit, 64-bit
Byte Order:Little Endian
CPU(s):4
On-line CPU(s) list:   0-3
Thread(s) per core:1
Core(s) per socket:4
Socket(s): 1
NUMA node(s):  1
Vendor ID: GenuineIntel
CPU family:6
Model: 58
Model name:Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
Stepping:  9
CPU MHz:   3369.191
BogoMIPS:  6200.27
Virtualization:VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache:  256K
L3 cache:  6144K
NUMA node0 CPU(s): 0-3

OS: Cent OS

Thanks,
Hari

-- 


DISCLAIMER

The information in this e-mail is confidential and may be subject to legal 
privilege. It is intended solely for the addressee. Access to this e-mail 
by anyone else is unauthorized. If you have received this communication in 
error, please address with the subject heading "Received in error," send to 
i...@msystechnologies.com,  then delete the e-mail and destroy any copies of 
it. If you are not the intended recipient, any disclosure, copying, 
distribution or any action taken or omitted to be taken in reliance on it, 
is prohibited and may be unlawful. The views, opinions, conclusions and 
other information expressed in this electronic mail and any attachments are 
not given or endorsed by the company unless otherwise indicated by an 
authorized representative independent of this message.
MSys cannot guarantee that e-mail communications are secure or error-free, 
as information could be intercepted, corrupted, amended, lost, destroyed, 
arrive late or incomplete, or contain viruses, though all reasonable 
precautions have been taken to ensure no viruses are present in this e-mail. 
As our company cannot accept responsibility for any loss or damage arising 
from the use of this e-mail or attachments we recommend that you subject 
these to your virus checking procedures prior to use
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Problem with repo virtio-win-stable

2018-03-12 Thread Fabrice Bacchella
I'm trying to setup a local cache of the repository virtio-win-stable, using 
Sonatype's nexus3. But it's a little picky about content-type and this 
repository setup is not to it's taste:

it's says :
2018-03-12 15:47:21,025+0100 WARN  [qtp2016749412-36]  *UNKNOWN 
org.sonatype.nexus.repository.view.handlers.ExceptionHandler - Invalid content: 
GET 
/repodata/5048716d95c37bb6e0df68263c13daea16145384c34bd950dba45bf69e39ea98-primary.xml.gz:
 org.sonatype.nexus.repository.InvalidContentException: Detected content type 
[application/xml, application/x-xml, text/xml], but expected 
[application/x-gzip, application/gzip, application/x-tgz, 
application/gzip-compressed, application/gzipped, application/x-gunzip, 
application/x-gzip-compressed, gzip/document]: 
repodata/5048716d95c37bb6e0df68263c13daea16145384c34bd950dba45bf69e39ea98-primary.xml.gz

And indeed:

$ curl -JORLv 
https://fedorapeople.org/groups/virt/virtio-win/repo/stable/repodata/5048716d95c37bb6e0df68263c13daea16145384c34bd950dba45bf69e39ea98-primary.xml.gz

return:
< Content-Encoding: gzip
< Content-Type: text/plain; charset=UTF-8

The file content is right:
$ zless 
5048716d95c37bb6e0df68263c13daea16145384c34bd950dba45bf69e39ea98-primary.xml.gz

http://linux.duke.edu/metadata/common; 
xmlns:rpm="http://linux.duke.edu/metadata/rpm; packages="5">

For sac-gdeploy, I get:
$ curl -JORLv 
https://copr-be.cloud.fedoraproject.org/results/sac/gdeploy/epel-7-x86_64/repodata/0f79cb019e43ae53bda93bae802a611f1fb025859729da143c5459ca2b5590b6-primary.xml.gz
 

...
< Content-Type: application/x-gzip

This repository is the only one broken out of 14 I already setup, from Elastic, 
Postgres and other oVirt repositories.

With who should I get in touch to correct that problem ?

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


Re: [ovirt-users] Failure to upgrade Cluster Compatibility Version

2018-03-12 Thread Jonathan Mathews
Hi

I do apologise, somehow all these emails seem to be going directly to my
trash, so I thought there was no reply.

It appears that I need to shutdown all VM's in that cluster, in order to
change the Cluster Compatibility Version.



On Thu, Mar 8, 2018 at 11:48 AM, Yaniv Kaul  wrote:

>
>
> On Thu, Mar 8, 2018 at 10:55 AM, Jonathan Mathews 
> wrote:
>
>> Hi , this has now become really urgent.
>>
>
> It's not clear to me why it's urgent.
> Please look at past replies and provide more information so we can assist
> you.
> Y.
>
>
>
>>
>> Everything I try, I am unable to get the Cluster Compatibility Version
>> to change.
>>
>> The entire platform is running the latest 3.6 release.
>>
>> On Tue, Mar 6, 2018 at 4:20 PM, Jonathan Mathews 
>> wrote:
>>
>>> Any chance of getting feedback on this?
>>>
>>> It is becoming urgent.
>>>
>>
>>
>> ___
>> 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] Weekly fstrim & Ubuntu 16.04 LTS guest freeze

2018-03-12 Thread Andrei Verovski
On 03/12/2018 01:50 PM, Yaniv Kaul wrote:
>
>
> On Mon, Mar 12, 2018 at 1:40 PM, Andrei Verovski  > wrote:
>
> Hi !
>
>
> I have stubborn VM (Ubuntu 16.04 LTS) which randomly freezes about
> each 2 - 3 weeks at weekends (when load is close to zero).
> No updates or kernel upgrades help.
> Freeze is not detected by oVirt watchdog and VM is not
> automatically restarted.
>
> Since it happens only on weekends, I suspect some weekly cron job
> may cause this.
> Ubuntu 16.04 LTS is installed on qcow2 disk image (thin provision).
> is it possible that fstrim (which discards / trims unused blocks)
> is a source of this problem ?
>
>
> Are you using virtio-blk (which doesn't support it) or virtio-SCSI
> (which does)?
> Also, does the storage support trimming? Not all do.

I'm using virtio-SCSI, Ubuntu thin provision disk formatted as ext4 boot
+ ext4 root + swap.
Disk image on ext4 RAID 1.

> Y.
>  
>
>
> Thanks in advance
> Andrei
>
> ___
> 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] Failure to upgrade Cluster Compatibility Version

2018-03-12 Thread Jonathan Mathews
Hi Everyone

Is it possible to get some feedback on this?

On Thu, Mar 8, 2018 at 10:55 AM, Jonathan Mathews 
wrote:

> Hi , this has now become really urgent.
>
> Everything I try, I am unable to get the Cluster Compatibility Version to
> change.
>
> The entire platform is running the latest 3.6 release.
>
> On Tue, Mar 6, 2018 at 4:20 PM, Jonathan Mathews 
> wrote:
>
>> Any chance of getting feedback on this?
>>
>> It is becoming urgent.
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Having trouble setting up Ovirt

2018-03-12 Thread Yedidyah Bar David
On Tue, Mar 6, 2018 at 6:42 PM, Kristian Petersen  wrote:
> I am trying to setup Ovirt with a self hosted engine and NFS storage for
> said engine.  The storage appears to mounting OK, but when it gets to the
> point that it is initializing the lockspace it fails spectacularly and shows
> a Python traceback which I cleaned up and have included below:
>
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
>   File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
> exec code in run_globals
>   File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py",
> line 30, in 
> ha_cli.reset_lockspace(force)
>   File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py",
> line 270, in reset_lockspace
> stats = broker.get_stats_from_storage()
>   File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py",
> line 135, in get_stats_from_storage
> result = self._proxy.get_stats()
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
> return self.__send(self.__name, args)
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
> verbose=self.__verbose
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
> return self.single_request(host, handler, request_body, verbose)
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
> self.send_content(h, request_body)
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
> connection.endheaders(request_body)
>   File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
> self._send_output(message_body)
>   File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
> self.send(msg)
>   File "/usr/lib64/python2.7/httplib.py", line 826, in send
> self.connect()
>   File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py",
> line 52, in connect
> self.sock.connect(base64.b16decode(self.host))
>   File "/usr/lib64/python2.7/socket.py", line 224, in meth
> return getattr(self._sock,name)(*args)
> socket.error: [Errno 2] No such file or directory
>
> The messier ansible output is below:
> [ INFO  ] TASK [Initialize lockspace volume]
> [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true,
> "cmd": ["hosted-engine", "--reinitialize-lockspace", "--force"], "
> delta": "0:00:01.007879", "end": "2018-03-05 14:03:00.474295", "msg":
> "non-zero return code", "rc": 1, "start": "2018-03-05 14:02:59.466416"
> , "stderr": "Traceback (most recent call last):\n  File
> \"/usr/lib64/python2.7/runpy.py\", line 162, in _run_module_as_main\n
> \"__main__\
> ", fname, loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line
> 72, in _run_code\nexec code in run_globals\n  File \"/usr/li
> b/python2.7/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\",
> line 30, in \nha_cli.reset_lockspace(force)\n
> File
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py\",
> line 270, in reset_lockspace\nstats = broker.get_stat
> s_from_storage()\n  File
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\",
> line 135, in get_stats_from_storage\
> nresult = self._proxy.get_stats()\n  File
> \"/usr/lib64/python2.7/xmlrpclib.py\", line 1233, in __call__\nreturn
> self.__send(self.__n
> ame, args)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 1587, in
> __request\nverbose=self.__verbose\n  File \"/usr/lib64/python2.7
> /xmlrpclib.py\", line 1273, in request\nreturn self.single_request(host,
> handler, request_body, verbose)\n  File \"/usr/lib64/python2.7/
> xmlrpclib.py\", line 1301, in single_request\nself.send_content(h,
> request_body)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 144
> 8, in send_content\nconnection.endheaders(request_body)\n  File
> \"/usr/lib64/python2.7/httplib.py\", line 1013, in endheaders\nself.
> _send_output(message_body)\n  File \"/usr/lib64/python2.7/httplib.py\", line
> 864, in _send_output\nself.send(msg)\n  File \"/usr/lib64/p
> ython2.7/httplib.py\", line 826, in send\nself.connect()\n  File
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.p
> y\", line 52, in connect\n
> self.sock.connect(base64.b16decode(self.host))\n  File
> \"/usr/lib64/python2.7/socket.py\", line 224, in meth\n
> return getattr(self._sock,name)(*args)\nsocket.error: [Errno 2] No such
> file or directory", "stderr_lines": ["Traceback (most recent cal
> l last):", "  File \"/usr/lib64/python2.7/runpy.py\", line 162, in
> _run_module_as_main", "\"__main__\", fname, loader, pkg_name)", "  Fi
> le \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code", "exec code
> in run_globals", "  File \"/usr/lib/python2.7/site-packages/ovi
> 

Re: [ovirt-users] 4.2 upgrade question

2018-03-12 Thread Yedidyah Bar David
On Mon, Mar 12, 2018 at 1:37 PM, KSNull Zero  wrote:
> Hello!
> Currently we run 4.1.9 and try to upgrade to the latest 4.2 release.
> Our DB server is on separate machine and run PostgreSQL 9.2.23.
>
> During upgrade the following error occurs:
> [WARNING] This release requires PostgreSQL server 9.5.9 but the engine
> database is currently hosted on PostgreSQL server 9.2.23
> [ ERROR ] Please upgrade the PostgreSQL instance that serves the engine
> database to 9.5.9 and retry.
>
> Ok, so we need to upgrade PostgreSQL.
> The question is - do we need to have exact 9.5.9 version of PostgreSQL ?

'9.5.9' is not hard-coded, but is the version shipped by SCL [1].

The CentOS 7 engine build pulls that in and uses it, for both client (always)
and server (if configured to).

This is the only combination that's tested and known to work. To use this
on your remote PG machine, add there SCL repos and use them. You will need
to upgrade your database to the new version, similarly to what engine-setup
does if it's a local db. I do not think we have docs for this, see e.g. [2].

If you want to use some other (non-SCL) build of PG also on the client,
I think it should not be too hard to make everything work, as this is
what we do in the fedora build, but I didn't try this myself, nor know
about anyone that did. It's probably enough to remove the file:

/etc/ovirt-engine-setup.env.d/10-setup-scl-postgres-95.env

If you go this way, note that you'll have to repeat removing it per
each upgrade. Alternatively, you can add your own file there, with
a later number, clearing the variables set in this file, e.g.:

# cat << __EOF__ > /etc/ovirt-engine-setup.env.d/99-unset-postgresql.env
unset RHPOSTGRESQL95BASE
unset RHPOSTGRESQL95DATA
unset sclenv
unset POSTGRESQLENV
__EOF__

And also install the postgresql client/libraries/etc matching what you
have on your server.

[1] https://www.softwarecollections.org/en/scls/rhscl/rh-postgresql95/
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1498351#c12

> Because if we upgrade PostgreSQL to the latest available 9.5.12 the same
> error occurs saying that client and server version mismatched and upgrade
> terminates.
> Thank you.

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


[ovirt-users] 4.2 upgrade question

2018-03-12 Thread KSNull Zero
Hello!
Currently we run 4.1.9 and try to upgrade to the latest 4.2 release.
Our DB server is on separate machine and run PostgreSQL 9.2.23.

During upgrade the following error occurs:
[WARNING] This release requires PostgreSQL server 9.5.9 but the engine
database is currently hosted on PostgreSQL server 9.2.23
[ ERROR ] Please upgrade the PostgreSQL instance that serves the engine
database to 9.5.9 and retry.

Ok, so we need to upgrade PostgreSQL.
The question is - do we need to have exact 9.5.9 version of PostgreSQL ?
Because if we upgrade PostgreSQL to the latest available 9.5.12 the same
error occurs saying that client and server version mismatched and upgrade
terminates.
Thank you.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Having trouble setting up Ovirt

2018-03-12 Thread Kristian Petersen
I am trying to setup Ovirt with a self hosted engine and NFS storage for
said engine.  The storage appears to mounting OK, but when it gets to the
point that it is initializing the lockspace it fails spectacularly and
shows a Python traceback which I cleaned up and have included below:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
  File 
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py",
line 30, in 
ha_cli.reset_lockspace(force)
  File 
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py",
line 270, in reset_lockspace
stats = broker.get_stats_from_storage()
  File 
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py",
line 135, in get_stats_from_storage
result = self._proxy.get_stats()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
self.send_content(h, request_body)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
connection.endheaders(request_body)
  File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 826, in send
self.connect()
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py",
line 52, in connect
self.sock.connect(base64.b16decode(self.host))
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 2] No such file or directory

The messier ansible output is below:
[ INFO  ] TASK [Initialize lockspace volume]
[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true,
"cmd": ["hosted-engine", "--reinitialize-lockspace", "--force"], "
delta": "0:00:01.007879", "end": "2018-03-05 14:03:00.474295", "msg":
"non-zero return code", "rc": 1, "start": "2018-03-05 14:02:59.466416"
, "stderr": "Traceback (most recent call last):\n  File
\"/usr/lib64/python2.7/runpy.py\", line 162, in _run_module_as_main\n
\"__main__\
", fname, loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line
72, in _run_code\nexec code in run_globals\n  File \"/usr/li
b/python2.7/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\",
line 30, in \nha_cli.reset_lockspace(force)\n
File
\"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py\",
line 270, in reset_lockspace\nstats = broker.get_stat
s_from_storage()\n  File
\"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\",
line 135, in get_stats_from_storage\
nresult = self._proxy.get_stats()\n  File
\"/usr/lib64/python2.7/xmlrpclib.py\", line 1233, in __call__\nreturn
self.__send(self.__n
ame, args)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 1587, in
__request\nverbose=self.__verbose\n  File \"/usr/lib64/python2.7
/xmlrpclib.py\", line 1273, in request\nreturn
self.single_request(host, handler, request_body, verbose)\n  File
\"/usr/lib64/python2.7/
xmlrpclib.py\", line 1301, in single_request\nself.send_content(h,
request_body)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 144
8, in send_content\nconnection.endheaders(request_body)\n  File
\"/usr/lib64/python2.7/httplib.py\", line 1013, in endheaders\nself.
_send_output(message_body)\n  File \"/usr/lib64/python2.7/httplib.py\",
line 864, in _send_output\nself.send(msg)\n  File \"/usr/lib64/p
ython2.7/httplib.py\", line 826, in send\nself.connect()\n  File
\"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.p
y\", line 52, in connect\n
self.sock.connect(base64.b16decode(self.host))\n  File
\"/usr/lib64/python2.7/socket.py\", line 224, in meth\n
return getattr(self._sock,name)(*args)\nsocket.error: [Errno 2] No such
file or directory", "stderr_lines": ["Traceback (most recent cal
l last):", "  File \"/usr/lib64/python2.7/runpy.py\", line 162, in
_run_module_as_main", "\"__main__\", fname, loader, pkg_name)", "  Fi
le \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code", "exec
code in run_globals", "  File \"/usr/lib/python2.7/site-packages/ovi
rt_hosted_engine_setup/reinitialize_lockspace.py\", line 30, in ",
"ha_cli.reset_lockspace(force)", "  File \"/usr/lib/python2.7
/site-packages/ovirt_hosted_engine_ha/client/client.py\", line 270, in
reset_lockspace", "stats = broker.get_stats_from_storage()", "  

Re: [ovirt-users] After the export, the import OVA failed

2018-03-12 Thread Fabrice SOLER

Hi,

I have deleted the VM amon and tried to import the OVA. It does not work.
I think there is a problem in the ovf file (XML format) like I posted in 
the precedente mail :


*/I constated that the ovf format is not the same when I made the export 
ova with vmware and ovirt./**/

/**//**/
/**/Export ova with vmware :/**/
/**//**/
/**/[root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf/**/
/**/AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, 
with CRLF line terminators/**/

/**//**/
/**/Export ova with ovirt :/**/
/**/[root@ovirt-eple amon]# file vm.ovf/**/
/**/vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no 
line terminators/**/

/**//**/
/**/With Ovirt there is no line terminators./**/
/**//**/
/**/Is that normal ? Is that why the OVA import does not work ?/*/
/






Le 06/03/2018 à 12:11, Oliver Riesener a écrit :

Hi Fabrice,
try to rename the already existing old VM to another name like amon-old.
The import the OVA machine again.

On 06.03.2018 15:33, Fabrice SOLER wrote:

Hello,

I have upgraded the engine and the node, so the version is : 
4.2.1.1.1-1.el7

To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events  :



It seems it does not work. Maybe the VM is hide somewhere ?

Sincerely,




___
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



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


[ovirt-users] After the export, the import OVA failed

2018-03-12 Thread Fabrice SOLER

Hello,

I found this KB : https://bugzilla.redhat.com/show_bug.cgi?id=1529607
and put a description to the VM disk and the OVA export works ! :-)

Now, the import does not work :-(

The error is : */Failed to load VM configuration from OVA file: 
/data/ova/amon


/*I have tried two ways.
In first, I let the file ova.
Secondely I did  : tar xvf file.ova and specifiy the directory where the 
ovf file is.


In the engine log, I have found this :

2018-03-05 16:15:58,319-04 INFO 
[org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (default 
task-6) [e2a953ca-1460-4899-a958-7dbe37e40a21] Ansible playbook command 
has exited with value: 2
2018-03-05 16:15:58,319-04 ERROR 
[org.ovirt.engine.core.bll.GetVmFromOvaQuery] (default task-6) 
[e2a953ca-1460-4899-a958-7dbe37e40a21] Failed to query OVA info
2018-03-05 16:15:58,319-04 ERROR 
[org.ovirt.engine.core.bll.GetVmFromOvaQuery] (default task-6) 
[e2a953ca-1460-4899-a958-7dbe37e40a21] Query 'GetVmFromOvaQuery' failed: 
EngineException: Failed to query OVA info (Failed with error 
GeneralException and code 100)


I have found this KB : https://bugzilla.redhat.com/show_bug.cgi?id=1529965
The unique solution is a update ?

Sincerely
Fabrice
*//*

Le 05/03/2018 à 13:13, Fabrice SOLER a écrit :

Hello,

Thank for your answer, I have put all permissions for the directory 
and I always have errors.


Here are the ERROR in logs on the engine :

2018-03-05 13:03:18,525-04 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetVolumeInfoVDSCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] FINISH, 
GetVolumeInfoVDSCommand, return: 
org.ovirt.engine.core.common.businessentities.storage.DiskImage@90e3c610, 
log id: 84f89c3
2018-03-05 13:03:18,529-04 ERROR 
[org.ovirt.engine.core.bll.CreateOvaCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Command 
'org.ovirt.engine.core.bll.CreateOvaCommand' failed: null
2018-03-05 13:03:18,529-04 ERROR 
[org.ovirt.engine.core.bll.CreateOvaCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] 
Exception: java.lang.NullPointerException

...
2018-03-05 13:03:18,533-04 ERROR 
[org.ovirt.engine.core.bll.exportimport.ExportOvaCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Failed 
to create OVA file
2018-03-05 13:03:18,533-04 INFO 
[org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Command 
'ExportOva' id: 'c484392e-3540-4a11-97bf-3fecbc13e080' failed when 
attempting to perform the next operation, marking as FAILED 
'[d5d4381b-ec82-4927-91a4-74597cd2511d]'
2018-03-05 13:03:18,533-04 INFO 
[org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Command 
'ExportOva' id: 'c484392e-3540-4a11-97bf-3fecbc13e080' child commands 
'[d5d4381b-ec82-4927-91a4-74597cd2511d]' executions were completed, 
status 'FAILED'
2018-03-05 13:03:19,542-04 ERROR 
[org.ovirt.engine.core.bll.exportimport.ExportOvaCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-98) 
[c99e94b0-a9dd-486f-9274-9aa17c9590a0] Ending command 
'org.ovirt.engine.core.bll.exportimport.ExportOvaCommand' with failure.
2018-03-05 13:03:19,543-04 INFO 
[org.ovirt.engine.core.bll.exportimport.ExportOvaCommand] 
(EE-ManagedThreadFactory-engineScheduled-Thread-98) 
[c99e94b0-a9dd-486f-9274-9aa17c9590a0] Lock freed to object 
'EngineLock:{exclusiveLocks='[3ae307cb-53d6-4d70-87b6-4e073c6f5eb6=VM]', 
sharedLocks=''}'
2018-03-05 13:03:19,550-04 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedThreadFactory-engineScheduled-Thread-98) 
[c99e94b0-a9dd-486f-9274-9aa17c9590a0] EVENT_ID: 
IMPORTEXPORT_EXPORT_VM_TO_OVA_FAILED(1,225), Failed to export Vm 
pfSense as a Virtual Appliance to path /ova/pfSense.ova on Host 
eple-rectorat-proto

...

Sincerely,
Fabrice

Le 05/03/2018 à 12:50, Arik Hadas a écrit :



On Mon, Mar 5, 2018 at 6:48 PM, Arik Hadas > wrote:




On Mon, Mar 5, 2018 at 6:29 PM, Fabrice SOLER
> wrote:

Hello,

I need to export my VM to OVA format from the administration
portail Ovirt. It fails with this message :

/Failed to export Vm CentOS as a Virtual Appliance to path
/data/CentOS.ova on Host eple-rectorat-proto/

My storage is local (not NFS or iSCSI), is there some
particulars permissions to put to the destination directory ?

No, the script that packs the OVA is executed with root permissions.

The path is the path to an export domain ?

Not necessarily.


Oh, and please share the (engine, ansible) logs if you want more eyes 
looking at that failure.


Sincerely,

Fabrice SOLER

-- 


___
Users mailing list

Re: [ovirt-users] After the export, the import OVA failed

2018-03-12 Thread Fabrice SOLER

Hello,

I constated that the ovf format is not the same when I made the export 
ova with vmware and ovirt.


Export ova with vmware :

[root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf
AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, with 
CRLF line terminators


Export ova with ovirt :
[root@ovirt-eple amon]# file vm.ovf
vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no line 
terminators


With Ovirt there is no line terminators.

Is that normal ? Is that why the OVA import does not work ?

Sincerely,

Fabrice SOLER


Le 06/03/2018 à 10:33, Fabrice SOLER a écrit :

Hello,

I have upgraded the engine and the node, so the version is : 
4.2.1.1.1-1.el7

To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events  :



It seems it does not work. Maybe the VM is hide somewhere ?

Sincerely,




___
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] Weekly fstrim & Ubuntu 16.04 LTS guest freeze

2018-03-12 Thread Andrei Verovski
Hi !


I have stubborn VM (Ubuntu 16.04 LTS) which randomly freezes about each 2 - 3 
weeks at weekends (when load is close to zero).
No updates or kernel upgrades help.
Freeze is not detected by oVirt watchdog and VM is not automatically restarted.

Since it happens only on weekends, I suspect some weekly cron job may cause 
this.
Ubuntu 16.04 LTS is installed on qcow2 disk image (thin provision).
is it possible that fstrim (which discards / trims unused blocks) is a source 
of this problem ?

Thanks in advance
Andrei

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


Re: [ovirt-users] qemu-kvm-ev-2.9.0-16.el7_4.14.1 has been released

2018-03-12 Thread Allon Mureinik
>From oVirt's perspective - this build includes a fix that allows for live
storage migration of a disk that uses iothreads.

I've already posted a vdsm patch to require it, reviews are welcome:
https://gerrit.ovirt.org/#/c/88770/


And thanks for the quick turnaround here, Sandro!

On Fri, Mar 9, 2018 at 11:02 AM, Sandro Bonazzola 
wrote:

> Hi, qemu-kvm-ev-2.9.0-16.el7_4.14.1
>  has been tagged for
> release and should land on mirrors.centos.org on Monday, March 12th 2018.
>
> Here's the ChangeLog:
>
> * Thu Mar 08 2018 Sandro Bonazzola  -
> ev-2.9.0-16.el7_4.14.1 - Removing RH branding from package name * Thu Jan
> 18 2018 Miroslav Rezanina  - rhev-2.9.0-16.el7_4.14
> - kvm-fw_cfg-fix-memory-corruption-when-all-fw_cfg-slots-a.patch
> [bz#1534649] - kvm-mirror-Fix-inconsistent-backing-AioContext-for-after.patch
> [bz#1535125] - Resolves: bz#1534649 (Qemu crashes when all fw_cfg slots are
> used [rhel-7.4.z]) - Resolves: bz#1535125 (Mirror jobs for drives with
> iothreads make QEMU to abort with "block.c:1895: bdrv_attach_child:
> Assertion `bdrv_get_aio_context(parent_bs) ==
> bdrv_get_aio_context(child_bs)' failed." [rhel-7.4.z])
> Regards,
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
>
> ___
> 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] Auto-restart VM from Linux Shell

2018-03-12 Thread andreil1
You meant this:
https://github.com/machacekondra/ovirt-ansible-example/wiki
https://github.com/machacekondra/ovirt-ansible-example

Seems like overkill for so simple task. If bash scripts works, its OK for now.


> On 12 Mar 2018, at 11:31, Yedidyah Bar David  wrote:
> 
> On Mon, Mar 12, 2018 at 1:45 AM, Andrei Verovski  wrote:
>> Hi !
>> 
>> I have stubborn VM which time to time freezes, and watchdog for whatever
>> reason don't restart it.
>> 
>> Basically I would like to combine these 3 command into one script.
>> 
>> ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
>> --ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal" --password
>> "secret"
>> 
>> action vm MyVM stop
>> action vm MyVM start
>> 
>> Now I have problems.
>> 1) Option --password "secret" is not recognized anymore in oVirt Shell 4.2.
>> 2) What is the proper syntax to connect & run certain command in oVirt
>> Shell 4.2? Something like:
>> 
>> ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
>> --ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal" --password
>> "secret" && action vm MyVM stop
> 
> ovirt-shell is considered deprecated. Did you consider using ansible?
> 
> Best regards,
> -- 
> Didi

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


Re: [ovirt-users] Cannot use virt-viewer to open VM console

2018-03-12 Thread Yedidyah Bar David
On Mon, Mar 12, 2018 at 4:32 AM, Terry hey  wrote:
> Dear all,
>
> I would like to ask which version of virt-viewer are you using?
> I downloaded virt-viewer 6.0.msi and installed.
> But i could not open VM console( i have set the graphic protocol is SPICE).
> It shows the following error.
>
> "At least Remote Viewer version 2.0-160 is required to setup this
> connection, see
> http://www.ovirt.org/documentation/admin-guide/virt/console-client-resources
> for details"
>
> Also, i can i verify the version of virt-viewer that i have installed?

Please see:

https://bugzilla.redhat.com/show_bug.cgi?id=1285883
http://lists.ovirt.org/pipermail/users/2017-June/thread.html#82343

Are you sure you use the 6.0 msi? I think it should work.

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


Re: [ovirt-users] VM guest agent

2018-03-12 Thread Oliver Riesener

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.
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 runself.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



install-ovirt.sh
Description: application/shellscript
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Auto-restart VM from Linux Shell

2018-03-12 Thread Yedidyah Bar David
On Mon, Mar 12, 2018 at 1:45 AM, Andrei Verovski  wrote:
> Hi !
>
> I have stubborn VM which time to time freezes, and watchdog for whatever
> reason don't restart it.
>
> Basically I would like to combine these 3 command into one script.
>
> ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
> --ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal" --password
> "secret"
>
> action vm MyVM stop
> action vm MyVM start
>
> Now I have problems.
> 1) Option --password "secret" is not recognized anymore in oVirt Shell 4.2.
> 2) What is the proper syntax to connect & run certain command in oVirt
> Shell 4.2? Something like:
>
> ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
> --ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal" --password
> "secret" && action vm MyVM stop

ovirt-shell is considered deprecated. Did you consider using ansible?

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


Re: [ovirt-users] ovirt 4.2.1 pre hosted engine deploy failure

2018-03-12 Thread Michael Seidel
Hi,

thanks for your response. I checked the permissions and ownership of the
filesm, they seem okay to me. However, the installation still fails:

[root@plantfiler02 ovirt]# ll
total 0
drwxr-xr-x 5 vdsm kvm 61 Mar  9 09:02 017fcf64-45c8-4289-87f7-c1195f7ec584
-rwxr-xr-x 1 vdsm kvm  0 Mar  9 22:07 __DIRECT_IO_TEST__

[root@plantfiler02 ovirt]# ll 017fcf64-45c8-4289-87f7-c1195f7ec584/
total 4
drwxr-xr-x 2 vdsm kvm  111 Mar  9 09:01 dom_md
drwxr-xr-x 6 vdsm kvm 4096 Mar  9 09:04 images
drwxr-xr-x 4 vdsm kvm   40 Mar  9 09:02 master

[root@plantfiler02 ovirt]# ll 017fcf64-45c8-4289-87f7-c1195f7ec584/images/
total 16
drwxr-xr-x 2 vdsm kvm 4096 Mar  9 09:02 3780dd3c-c248-4bbd-ae5d-5977780853dc
drwxr-xr-x 2 vdsm kvm 4096 Mar  9 09:04 66aadb48-31c5-49a6-a5ea-cc7a66b388eb
drwxr-xr-x 2 vdsm kvm 4096 Mar  9 09:03 e158fb00-c885-4443-9288-184045d6ab1d
drwxr-xr-x 2 vdsm kvm 4096 Mar  9 09:03 f36c079b-ba17-4c14-96a2-2b2beea7d989

[root@plantfiler02 ovirt]# ll
017fcf64-45c8-4289-87f7-c1195f7ec584/images/3780dd3c-c248-4bbd-ae5d-5977780853dc/
total 1049604
-rw-rw 1 vdsm kvm 1073741824 Mar  9 09:02
3909a6b6-2cf7-4bca-81e0-56959e8ec9b5
-rw-rw 1 vdsm kvm1048576 Mar  9 09:02
3909a6b6-2cf7-4bca-81e0-56959e8ec9b5.lease
-rw-r--r-- 1 vdsm kvm320 Mar  9 09:02
3909a6b6-2cf7-4bca-81e0-56959e8ec9b5.meta


Cheers,
- Michael


On 03/09/2018 07:09 PM, Simone Tiraboschi wrote:
> 
> 
> On Fri, Mar 9, 2018 at 9:16 AM, Michael Seidel
>  > wrote:
> 
> Hi,
> 
> I found the messages at
> http://lists.ovirt.org/pipermail/users/2018-January/086631.html
>  in
> your
> archive and am running into a similar/identical issue when trying to
> install a hosted engine:
> 
> After providing all of the information, the installer does create some
> files on the nfs share (plantfiler02:/storage/vmx/ovirt) but eventually
> dies with:
> 
> [ INFO  ] TASK [Copy configuration files to the right location on host]
> [ INFO  ] TASK [Copy configuration archive to storage]
> [ ERROR ]  [WARNING]: Failure using method (v2_runner_on_failed) in
> callback plugin
> [ ERROR ] ( at 0x25c86d0>):
> [ ERROR ] 'ascii' codec can't encode character u'\u2018' in position
> 489: ordinal not in
> [ ERROR ] range(128)
> [ ERROR ] Failed to execute stage 'Closing up': Failed executing
> ansible-playbook
> [ INFO  ] Stage: Clean up
> 
> The relevant part in the logfile I believe is the following:
> 
> 2018-03-09 09:05:05,762+0100 DEBUG
> otopi.ovirt_hosted_engine_setup.ansible_utils
> ansible_utils._process_output:94 {u'_ansible_parsed': True,
> u'stderr_lines': [u'dd: failed to open
> 
> \u2018/rhev/data-center/mnt/plantfiler02:_storage_vmx_ovirt/017fcf64-45c8-4289-87f7-c1195f7ec584/images/f36c079b-ba17-4c14-96a2-2b2beea7d989/56cd3448-4ecf-490e-99cc-ace36b977a9a\u2019:
> Permission denied'], u'cmd': [u'dd', u'bs=20480', u'count=1',
> u'oflag=direct',
> u'if=/var/tmp/localvmf0uaFh/56cd3448-4ecf-490e-99cc-ace36b977a9a',
> 
> u'of=/rhev/data-center/mnt/plantfiler02:_storage_vmx_ovirt/017fcf64-45c8-4289-87f7-c1195f7ec584/images/f36c079b-ba17-4c14-96a2-2b2beea7d989/56cd3448-4ecf-490e-99cc-ace36b977a9a'],
> u'end': u'2018-03-09 09:05:05.565013', u'_ansible_no_log': False,
> u'stdout': u'', u'changed': True, u'start': u'2018-03-09
> 09:05:05.557703', u'delta': u'0:00:00.007310', u'stderr': u'dd: failed
> to open
> 
> \u2018/rhev/data-center/mnt/plantfiler02:_storage_vmx_ovirt/017fcf64-45c8-4289-87f7-c1195f7ec584/images/f36c079b-ba17-4c14-96a2-2b2beea7d989/56cd3448-4ecf-490e-99cc-ace36b977a9a\u2019:
> Permission denied', u'rc': 1, u'invocation': {u'module_args': {u'warn':
> True, u'executable': None, u'_uses_shell': False, u'_raw_params': u'dd
> bs=20480 count=1 oflag=direct
> if="/var/tmp/localvmf0uaFh/56cd3448-4ecf-490e-99cc-ace36b977a9a"
> 
> of="/rhev/data-center/mnt/plantfiler02:_storage_vmx_ovirt/017fcf64-45c8-4289-87f7-c1195f7ec584/images/f36c079b-ba17-4c14-96a2-2b2beea7d989/56cd3448-4ecf-490e-99cc-ace36b977a9a"',
> u'removes': None, u'creates': None, u'chdir': None, u'stdin': None}},
> u'stdout_lines': [], u'ms
> 
> 
> I did create vdsm user and kvm user and group on the NFS server and I
> succesfully ran the nfs-check.py script from the host where ovirt should
> be installed:
> 
> # python nfs-check.py plantfiler02:/storage/vmx/ovirt/
> Current hostname: hyena.**.de - IP addr 10.216.60.21
> Trying to /bin/mount -t nfs plantfiler02:/storage/vmx/ovirt/...
> Executing NFS tests..
> Removing vdsmTest file..
> Status of tests [OK]
> Disconnecting from NFS Server..
> Done!
> 
> 
> The target directory has following permissions:
> 
> drwxr-xr-x 3 vdsm      kvm  86 Mar  9 09:12 ovirt
> 
> 
>