[ovirt-users] Re: Deploy host engine error: The task includes an option with an undefined variable

2021-06-21 Thread Yedidyah Bar David
On Tue, Jun 22, 2021 at 12:31 AM Dominic Gwerder
 wrote:
>
> Is it not working with CentOS Stream? I have the same error when I deploy the 
> engine.

Hi,

please check/share: rpm -q ansible ovirt-ansible-collection, HE setup
logs. Thanks.

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


[ovirt-users] Re: Deploy host engine error: The task includes an option with an undefined variable

2021-06-21 Thread Dominic Gwerder
Is it not working with CentOS Stream? I have the same error when I deploy the 
engine.

Kind regards

Dominic

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


[ovirt-users] Re: Deploy host engine error: The task includes an option with an undefined variable

2020-08-07 Thread Sandro Bonazzola
Can you please open a bug about this?

Il giorno mer 10 giu 2020 alle ore 20:21 Angel R. Gonzalez <
angel.gonza...@uam.es> ha scritto:

> Hello!
> Thanks for your answers.
>
> First, I try to modify 01_create_target_hosted_engine_vm.yml file with
> the below code, and Redeploy. The process don't run. I've typed the code
> again with carefully, and the result is same. I've eliminated the code
> and Redeploy start again until find the error.
>
> After this, I've checked the mails with subject: Issues deploying
> 4.4.with HE on new EPYC hosts, and I think that is a problem with AMD
> processors.
>
> The scenario:
> serverlabs-engine -> 8x Intel(R) Xeon(R) CPU E5410 @ 2.33GHz. This node
> execute wizard Hosted engine
> serverlabs-node2 -> 8x Intel(R) Xeon(R) CPU E31230 @ 3.20GHz. This node
> has configured glusterfs storage
> Both CentOS-8.1.1911-x86_64 ISO LIVE DVD
> kernel 4.18.0-147.8.1.el8_1.x86_64 #1 SMP Thu Apr 9 13:49:54 UTC 2020
> x86_64 x86_64 x86_64 GNU/Linux
>
> # rpm -q qemu-kvm libvirt
> qemu-kvm-4.1.0-23.el8.1.x86_64
> libvirt-5.6.0-10.el8.x86_64
>
> The process running in host node (serverlabs-engine) in storage phase
> deployment:
>
> qemu  8455 1 52 17:46 ?00:31:09 /usr/libexec/qemu-kvm
> -name guest=HostedEngineLocal,debug-threads=on -S -object
> secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-HostedEngineLocal/master-key.aes
>
> -machine pc-q35-rhel8.1.0,accel=kvm,usb=off,dump-guest-core=off -cpu
> Penryn,vme=on,ss=on,x2apic=on,tsc-deadline=on,hypervisor=on,arat=on,tsc-adjust=on,arch-capabilities=on,skip-l1dfl-vmentry=on,kvmclock=on
>
> -m 8192 -overcommit mem-lock=off -smp 4,sockets=4,cores=1,threads=1
> -uuid 4af397d7-4c81-4044-934f-90138288e09a -no-user-config -nodefaults
> -chardev socket,id=charmonitor,fd=37,server,nowait -mon
> chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
> -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot
> menu=off,strict=on -device
> pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2
>
> -device
> pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1
> -device
> pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2
> -device
> pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3
> -device
> pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x4
> -device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 -drive
> file=/var/tmp/localvmaodqdyv8/images/6c7c4d4b-9c11-485d-98e0-466a09888515/c16b87ac-f9d4-491d-a972-7dc333a324a0,format=qcow2,if=none,id=drive-virtio-disk0
>
> -device
> virtio-blk-pci,scsi=off,bus=pci.3,addr=0x0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
>
> -drive
> file=/var/tmp/localvmaodqdyv8/seed.iso,format=raw,if=none,id=drive-sata0-0-0,readonly=on
>
> -device ide-cd,bus=ide.0,drive=drive-sata0-0-0,id=sata0-0-0 -netdev
> tap,fd=39,id=hostnet0,vhost=on,vhostfd=40 -device
> virtio-net-pci,netdev=hostnet0,id=net0,mac=00:16:3e:5a:57:25,bus=pci.1,addr=0x0
>
> -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 -chardev
> socket,id=charchannel0,fd=41,server,nowait -device
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0
>
> -vnc 127.0.0.1:0 -device VGA,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1
> -object rng-random,id=objrng0,filename=/dev/random -device
> virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.4,addr=0x0 -sandbox
> on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny
> -msg timestamp=on
>
>
>
> Finally, I've searched server_cpu_list and server_cpu_dist from
> ovirt-hosted-engine-setup-ansible-create_target_vm-2020510182419-vkgvze.log
>
> file:
>
>
> 2020-06-10 18:24:22,516+0200 DEBUG var changed: host "localhost" var
> "he_graphics_device" type " 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""vnc""
> 2020-06-10 18:24:22,516+0200 DEBUG var changed: host "localhost" var
> "he_vm_name" type " 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""HostedEngine""
> 2020-06-10 18:24:22,516+0200 DEBUG var changed: host "localhost" var
> "he_host_name" type " 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value:
> ""serverlabs-engine""
> 2020-06-10 18:24:22,517+0200 DEBUG var changed: host "localhost" var
> "he_console_type" type " 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""vnc""
> 2020-06-10 18:24:22,517+0200 DEBUG var changed: host "localhost" var
> "he_cpu_type" type " 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""model_Penryn""
> 2020-06-10 18:24:22,517+0200 DEBUG var changed: host "localhost" var
> "he_smtp_server" type " 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""localhost""
> 
> 
> .
> 2020-06-10 18:24:26,064+0200 DEBUG var changed: host "localhost" var
> "ansible_mounts" type "" value: "[
>  {
>  "block_available": 43397299,
>  "block_size": 4096,
>  "block_total": 51343866,
>  

[ovirt-users] Re: Deploy host engine error: The task includes an option with an undefined variable

2020-06-10 Thread Angel R. Gonzalez

Hello!
Thanks for your answers.

First, I try to modify 01_create_target_hosted_engine_vm.yml file with 
the below code, and Redeploy. The process don't run. I've typed the code 
again with carefully, and the result is same. I've eliminated the code 
and Redeploy start again until find the error.


After this, I've checked the mails with subject: Issues deploying 
4.4.with HE on new EPYC hosts, and I think that is a problem with AMD 
processors.


The scenario:
serverlabs-engine -> 8x Intel(R) Xeon(R) CPU E5410 @ 2.33GHz. This node 
execute wizard Hosted engine
serverlabs-node2 -> 8x Intel(R) Xeon(R) CPU E31230 @ 3.20GHz. This node 
has configured glusterfs storage

Both CentOS-8.1.1911-x86_64 ISO LIVE DVD
kernel 4.18.0-147.8.1.el8_1.x86_64 #1 SMP Thu Apr 9 13:49:54 UTC 2020 
x86_64 x86_64 x86_64 GNU/Linux


# rpm -q qemu-kvm libvirt
qemu-kvm-4.1.0-23.el8.1.x86_64
libvirt-5.6.0-10.el8.x86_64

The process running in host node (serverlabs-engine) in storage phase 
deployment:


qemu  8455 1 52 17:46 ?    00:31:09 /usr/libexec/qemu-kvm 
-name guest=HostedEngineLocal,debug-threads=on -S -object 
secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-HostedEngineLocal/master-key.aes 
-machine pc-q35-rhel8.1.0,accel=kvm,usb=off,dump-guest-core=off -cpu 
Penryn,vme=on,ss=on,x2apic=on,tsc-deadline=on,hypervisor=on,arat=on,tsc-adjust=on,arch-capabilities=on,skip-l1dfl-vmentry=on,kvmclock=on 
-m 8192 -overcommit mem-lock=off -smp 4,sockets=4,cores=1,threads=1 
-uuid 4af397d7-4c81-4044-934f-90138288e09a -no-user-config -nodefaults 
-chardev socket,id=charmonitor,fd=37,server,nowait -mon 
chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot 
menu=off,strict=on -device 
pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 
-device 
pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 
-device 
pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 
-device 
pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 
-device 
pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x4 
-device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 -drive 
file=/var/tmp/localvmaodqdyv8/images/6c7c4d4b-9c11-485d-98e0-466a09888515/c16b87ac-f9d4-491d-a972-7dc333a324a0,format=qcow2,if=none,id=drive-virtio-disk0 
-device 
virtio-blk-pci,scsi=off,bus=pci.3,addr=0x0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 
-drive 
file=/var/tmp/localvmaodqdyv8/seed.iso,format=raw,if=none,id=drive-sata0-0-0,readonly=on 
-device ide-cd,bus=ide.0,drive=drive-sata0-0-0,id=sata0-0-0 -netdev 
tap,fd=39,id=hostnet0,vhost=on,vhostfd=40 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=00:16:3e:5a:57:25,bus=pci.1,addr=0x0 
-chardev pty,id=charserial0 -device 
isa-serial,chardev=charserial0,id=serial0 -chardev 
socket,id=charchannel0,fd=41,server,nowait -device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 
-vnc 127.0.0.1:0 -device VGA,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1 
-object rng-random,id=objrng0,filename=/dev/random -device 
virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.4,addr=0x0 -sandbox 
on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny 
-msg timestamp=on




Finally, I've searched server_cpu_list and server_cpu_dist from 
ovirt-hosted-engine-setup-ansible-create_target_vm-2020510182419-vkgvze.log 
file:



2020-06-10 18:24:22,516+0200 DEBUG var changed: host "localhost" var 
"he_graphics_device" type "'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""vnc""
2020-06-10 18:24:22,516+0200 DEBUG var changed: host "localhost" var 
"he_vm_name" type "'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""HostedEngine""
2020-06-10 18:24:22,516+0200 DEBUG var changed: host "localhost" var 
"he_host_name" type "'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""serverlabs-engine""
2020-06-10 18:24:22,517+0200 DEBUG var changed: host "localhost" var 
"he_console_type" type "'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""vnc""
2020-06-10 18:24:22,517+0200 DEBUG var changed: host "localhost" var 
"he_cpu_type" type "'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""model_Penryn""
2020-06-10 18:24:22,517+0200 DEBUG var changed: host "localhost" var 
"he_smtp_server" type "'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""localhost""



.
2020-06-10 18:24:26,064+0200 DEBUG var changed: host "localhost" var 
"ansible_mounts" type "" value: "[

    {
    "block_available": 43397299,
    "block_size": 4096,
    "block_total": 51343866,
    "block_used": 7946567,
    "device": "/dev/sda1",
    "fstype": "ext4",
    "inode_available": 13025816,
    "inode_total": 13107200,
    "inode_used": 81384,
    "mount": "/",
    "options": "rw,seclabel,relatime",
    "size_available": 177755336704,
 

[ovirt-users] Re: Deploy host engine error: The task includes an option with an undefined variable

2020-06-10 Thread Yedidyah Bar David
On Tue, Jun 9, 2020 at 10:47 PM Strahil Nikolov via Users
 wrote:
>
> Can you put something like this before the 'Parse server cpu list'  :
>
> -  name: Debug why parsing  fails
>   debug:
> msg:
> - "Loop is done over  {{ 
> server_cpu_list.json['values']['system_option_value'][0]['value'].split('; 
> ')|list|difference(['']) }}"
> - "Actual value of server_cpu_dict before the set_fact is {{ 
> server_cpu_dict }}"
>
>
> Note: e-mail clients can distort code. Don't copy/paste , but type the 
> example  from above.
>
> Best  Regards,
> Strahil Nikolov
>
> На 9 юни 2020 г. 19:34:07 GMT+03:00, "Angel R. Gonzalez" 
>  написа:
> >Hi all!
> >
> >I'm deploying a host engine in a host node with a 8x Intel(R) Xeon(R)
> >CPU E5410 @ 2.33GHz.
> >
> >The deploy proccess show the next message
> >
> >> [INFO]TASK [ovirt.hosted_engine_setup : Convert CPU model name]
> >> [ERROR]fatal: [localhost]: FAILED! => {"msg": "The task includes an
> >> option with an undefined variable. The error was: 'dict object' has
> >no
> >> attribute ''\n\nThe error appears to be in
> >>
> >'/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/create_target_vm/01_create_target_hosted_engine_vm.yml':
> >
> >> line 105, column 15, but may\nbe elsewhere in the file depending on
> >> the exact syntax problem.\n\nThe offending line appears to be:\n\n -
> >> debug: var=server_cpu_dict\n ^ here\n\nThere appears to be both 'k=v'
> >
> >> shorthand syntax and YAML in this task. Only one syntax may be
> >used.\n"}
> >
> >The ansible deploy script in his 105 line show:
> >
> >> - name: Parse server CPU list
> >> set_fact:
> >>  server_cpu_dict: "{{ server_cpu_dict |
> >> combine({item.split(':')[1]: item.split(':')[3]}) }}"
> >> with_items: >-
> >>   {{
> >>
> >server_cpu_list.json['values']['system_option_value'][0]['value'].split(';
> >
> >> ')|list|difference(['']) }}
> >>   - debug: var=server_cpu_dict
> >
> >I don´t know ansible and i don't how to resolve this issue. Any idea?

Please check/share /var/log/ovirt-hosted-engine-setup/*. Search there, e.g.,
for server_cpu_list, server_cpu_dict.

Your case seems similar to a few others, discussed recently in this thread:

[ovirt-users] Issues deploying 4.4 with HE on new EPYC hosts

Can you please check it?

In particular, what OS are you using? Perhaps CentOS Stream?

What is the output of:

rpm -q qemu-kvm libvirt

?

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


[ovirt-users] Re: Deploy host engine error: The task includes an option with an undefined variable

2020-06-09 Thread Strahil Nikolov via Users
Can you put something like this before the 'Parse server cpu list'  :

-  name: Debug why parsing  fails
  debug:
msg:
- "Loop is done over  {{ 
server_cpu_list.json['values']['system_option_value'][0]['value'].split('; 
')|list|difference(['']) }}"
- "Actual value of server_cpu_dict before the set_fact is {{ 
server_cpu_dict }}"


Note: e-mail clients can distort code. Don't copy/paste , but type the example  
from above.

Best  Regards,
Strahil Nikolov

На 9 юни 2020 г. 19:34:07 GMT+03:00, "Angel R. Gonzalez" 
 написа:
>Hi all!
>
>I'm deploying a host engine in a host node with a 8x Intel(R) Xeon(R) 
>CPU E5410 @ 2.33GHz.
>
>The deploy proccess show the next message
>
>> [INFO]TASK [ovirt.hosted_engine_setup : Convert CPU model name]
>> [ERROR]fatal: [localhost]: FAILED! => {"msg": "The task includes an 
>> option with an undefined variable. The error was: 'dict object' has
>no 
>> attribute ''\n\nThe error appears to be in 
>>
>'/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/create_target_vm/01_create_target_hosted_engine_vm.yml':
>
>> line 105, column 15, but may\nbe elsewhere in the file depending on 
>> the exact syntax problem.\n\nThe offending line appears to be:\n\n - 
>> debug: var=server_cpu_dict\n ^ here\n\nThere appears to be both 'k=v'
>
>> shorthand syntax and YAML in this task. Only one syntax may be
>used.\n"}
>
>The ansible deploy script in his 105 line show:
>
>> - name: Parse server CPU list
>>     set_fact:
>>  server_cpu_dict: "{{ server_cpu_dict | 
>> combine({item.split(':')[1]: item.split(':')[3]}) }}"
>>     with_items: >-
>>   {{ 
>>
>server_cpu_list.json['values']['system_option_value'][0]['value'].split(';
>
>> ')|list|difference(['']) }}
>>   - debug: var=server_cpu_dict
>
>I don´t know ansible and i don't how to resolve this issue. Any idea?
>
>Thanks in advance,
>
>Ángel González.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/G5X3PHZRPR2VW2S576TALV4W4DU5EGAP/