
<div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5478"> &nbs=
------=_Part_13273584_849961723.1497542412090 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear Users Procedure :1- create clean volume replica 2 distributed with glusterfs .2- = create clean ovirt-engine machine .3- create clean vm from scratch then cre= ate template from this vm.4- then create two vm from this template (vm1) & = (vm2).5- then delete the two vm .6- create new two vm with the same name (v= m1) & (vm2) from the template .7- till now the two vm stable and work corre= ctly .8- repeat no (7) three time all vm's is working correctly . issue :i have ansible playbook to deploy vm's to our ovirt , my playbook us= e the above template to deploy the vm's .my issue is after ansible script d= eploy the vm's , all vm's disk crash and the template disk is crash also an= d the script make change into the template checksum hash . you can look at ansible parameters : - hosts: localhost=C2=A0 =C2=A0 connection: local=C2=A0 =C2=A0 gather_facts= : false=C2=A0 =C2=A0 tasks:=C2=A0 =C2=A0 =C2=A0 - name: entering=C2=A0 =C2= =A0 =C2=A0 =C2=A0 ovirt_auth:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 url:= https://ovirt-engine.elcld.net:443/ovirt-engine/api=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 username: admin@internal=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 password: pass=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 insec= ure: yes=C2=A0 =C2=A0 =C2=A0 - name: creating=C2=A0 =C2=A0 =C2=A0 =C2=A0 ov= irt_vms:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 auth: "{{ ovirt_auth }}"=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 name: myvm05=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = template: mahdi=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #state: present=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 cluster: Cluster02=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 memory: 4GiB=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cpu_cores: 2=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 comment: Dev=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #ty= pe: server=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cloud_init:=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 host_name: vm01=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 user_name: root=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root_passwo= rd: pass=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nic_on_boot: true=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nic_boot_protocol: static=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 nic_name: eth0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 dns_servers: 109.224.19.5=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 dns_search: elcld.net=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nic_ip_a= ddress: 10.10.20.2=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nic_netmask: 25= 5.255.255.0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nic_gateway: 10.10.20.= 1=C2=A0 =C2=A0 =C2=A0 - name: Revoke=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 ovirt= _auth:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 state: absent=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ovirt_auth: "{{ ovirt_auth }}" can you assist me with this issue by checking if that any missing in my ans= ible . best regards=C2=A0=C2=A0 ------=_Part_13273584_849961723.1497542412090 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div style=3D"color:#000; background-color:#fff; f= ont-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font= -size:13px"><div id=3D"yui_3_16_0_1_1497541336982_2674"><span></span></div>= <div></div><div id=3D"yui_3_16_0_1_1497541336982_3243">Dear Users</div><div= id=3D"yui_3_16_0_1_1497541336982_3243"><br></div> <div id=3D"yui_3_16_0_1_1497541336982_3244"><u id=3D"yui_3_16_0_1_149754133= 6982_3245">Procedure :</u></div> <div id=3D"yui_3_16_0_1_1497541336982_3246">1- create clean volume replica = 2 distributed with glusterfs .</div> <div id=3D"yui_3_16_0_1_1497541336982_3247">2- create clean ovirt-engine ma= chine .</div> <div id=3D"yui_3_16_0_1_1497541336982_3248">3- create clean vm from scratch= then create template from this vm.</div> <div id=3D"yui_3_16_0_1_1497541336982_3249">4- then create two vm from this= template (vm1) & (vm2).</div> <div id=3D"yui_3_16_0_1_1497541336982_3250">5- then delete the two vm .</di= v> <div id=3D"yui_3_16_0_1_1497541336982_3251">6- create new two vm with the s= ame name (vm1) & (vm2) from the template .</div> <div id=3D"yui_3_16_0_1_1497541336982_3252">7- till now the two vm stable a= nd work correctly .</div> <div id=3D"yui_3_16_0_1_1497541336982_3253">8- repeat no (7) three time all= vm's is working correctly .</div><div id=3D"yui_3_16_0_1_1497541336982_325= 3"><br></div><div id=3D"yui_3_16_0_1_1497541336982_3255"><u id=3D"yui_3_16_= 0_1_1497541336982_3256">issue :</u></div> <div id=3D"yui_3_16_0_1_1497541336982_3257">i have ansible playbook to depl= oy vm's to our ovirt , my playbook use the above template to deploy the vm'= s .</div> <div id=3D"yui_3_16_0_1_1497541336982_2673" dir=3D"ltr">my issue is after a= nsible script deploy the vm's , all vm's disk crash and the template disk i= s crash also and the script make change into the template checksum hash .</= div><div id=3D"yui_3_16_0_1_1497541336982_2673" dir=3D"ltr"><br></div><div = id=3D"yui_3_16_0_1_1497541336982_2673" dir=3D"ltr">you can look at ansible = parameters :</div><div id=3D"yui_3_16_0_1_1497541336982_2673" dir=3D"ltr"><= br></div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5456">- hosts: l= ocalhost</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5457"> = ; connection: local</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541= 336982_5458"> gather_facts: false</div><div dir=3D"ltr" id=3D"= yui_3_16_0_1_1497541336982_5459"> tasks:</div><div dir=3D"ltr"= id=3D"yui_3_16_0_1_1497541336982_5460"> - name: enteri= ng</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5461"> &nbs= p; ovirt_auth:</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_14975= 41336982_5462"> url: https://ovirt= -engine.elcld.net:443/ovirt-engine/api</div><div dir=3D"ltr" id=3D"yui_3_16= _0_1_1497541336982_5463"> username= : admin@internal</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_546= 4"> password: pass</div><div dir= =3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5465"> = insecure: yes</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_14975= 41336982_5466"> - name: creating</div><div dir=3D"ltr" = id=3D"yui_3_16_0_1_1497541336982_5467"> ovirt_vm= s:</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5468"> &nbs= p; auth: "{{ ovirt_auth }}"</div><div dir=3D"ltr" id= =3D"yui_3_16_0_1_1497541336982_5469"> nam= e: myvm05</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5470">&nbs= p; template: mahdi</div><div dir=3D"ltr" id=3D"= yui_3_16_0_1_1497541336982_5471"> #state:= present</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5472"> = ; cluster: Cluster02</div><div dir=3D"ltr" id= =3D"yui_3_16_0_1_1497541336982_5473"> mem= ory: 4GiB</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5474">&nbs= p; cpu_cores: 2</div><div dir=3D"ltr" id=3D"yui= _3_16_0_1_1497541336982_5475"> comment: D= ev</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5476"> &nbs= p; #type: server</div><div dir=3D"ltr" id=3D"yui_3_16_= 0_1_1497541336982_5477"> cloud_init:</div= p; host_name: vm01</div><div dir=3D"ltr" id=3D"yui_3_1= 6_0_1_1497541336982_5479"> user_na= me: root</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5480"> = ; root_password: pass</div><div dir=3D"l= tr" id=3D"yui_3_16_0_1_1497541336982_5481"> &nbs= p; nic_on_boot: true</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_149754= 1336982_5482"> nic_boot_protocol: = static</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5483"> = nic_name: eth0</div><div dir=3D"ltr" id= =3D"yui_3_16_0_1_1497541336982_5484"> &nb= sp; dns_servers: 109.224.19.5</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497= 541336982_5485"> dns_search: elcld= .net</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5486"> &n= bsp; nic_ip_address: 10.10.20.2</div><div dir= =3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5487"> = nic_netmask: 255.255.255.0</div><div dir=3D"ltr" id=3D"yui_3= _16_0_1_1497541336982_5488"> nic_g= ateway: 10.10.20.1</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5= 489"> - name: Revoke </div><div dir=3D"ltr" id=3D"= yui_3_16_0_1_1497541336982_5490"> ovirt_auth:</d= iv><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5491"> &n= bsp; state: absent</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1= 497541336982_5492"> ovirt_auth: "{{ ovirt= _auth }}"</div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5492"><br>= </div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5492">can you assis= t me with this issue by checking if that any missing in my ansible .</div><= div dir=3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5492"><br></div><div dir= =3D"ltr" id=3D"yui_3_16_0_1_1497541336982_5492">best regards </div><di= v id=3D"yui_3_16_0_1_1497541336982_2673" dir=3D"ltr"> </div><div class= =3D"signature" id=3D"yui_3_16_0_1_1497541336982_2670"><div id=3D"yui_3_16_0= _1_1497541336982_2672"><br></div><div id=3D"yui_3_16_0_1_1497541336982_2671= "><br></div><div id=3D"yui_3_16_0_1_1497541336982_2669"><br></div></div></d= iv></body></html> ------=_Part_13273584_849961723.1497542412090--

On Thu, Jun 15, 2017 at 9:30 PM, khalid mahmood <engkhalid21986@yahoo.com> wrote:
Dear Users
*Procedure :* 1- create clean volume replica 2 distributed with glusterfs .
Only replica 3 or replica 3 with arbiter is supported as storage domain in oVirt
2- create clean ovirt-engine machine . 3- create clean vm from scratch then create template from this vm. 4- then create two vm from this template (vm1) & (vm2). 5- then delete the two vm . 6- create new two vm with the same name (vm1) & (vm2) from the template . 7- till now the two vm stable and work correctly . 8- repeat no (7) three time all vm's is working correctly .
*issue :* i have ansible playbook to deploy vm's to our ovirt , my playbook use the above template to deploy the vm's . my issue is after ansible script deploy the vm's , all vm's disk crash and the template disk is crash also and the script make change into the template checksum hash .
you can look at ansible parameters :
- hosts: localhost connection: local gather_facts: false tasks: - name: entering ovirt_auth: url: https://ovirt-engine.elcld.net:443/ovirt-engine/api username: admin@internal password: pass insecure: yes - name: creating ovirt_vms: auth: "{{ ovirt_auth }}" name: myvm05 template: mahdi #state: present cluster: Cluster02 memory: 4GiB cpu_cores: 2 comment: Dev #type: server cloud_init: host_name: vm01 user_name: root root_password: pass nic_on_boot: true nic_boot_protocol: static nic_name: eth0 dns_servers: 109.224.19.5 dns_search: elcld.net nic_ip_address: 10.10.20.2 nic_netmask: 255.255.255.0 nic_gateway: 10.10.20.1 - name: Revoke ovirt_auth: state: absent ovirt_auth: "{{ ovirt_auth }}"
can you assist me with this issue by checking if that any missing in my ansible .
best regards
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, It seems like some storage issue, could you please share your engine logs? Regards Martin Perina On Thursday, June 15, 2017, khalid mahmood <engkhalid21986@yahoo.com> wrote:
Dear Users Procedure : 1- create clean volume replica 2 distributed with glusterfs . 2- create clean ovirt-engine machine . 3- create clean vm from scratch then create template from this vm. 4- then create two vm from this template (vm1) & (vm2). 5- then delete the two vm . 6- create new two vm with the same name (vm1) & (vm2) from the template . 7- till now the two vm stable and work correctly . 8- repeat no (7) three time all vm's is working correctly . issue : i have ansible playbook to deploy vm's to our ovirt , my playbook use the above template to deploy the vm's . my issue is after ansible script deploy the vm's , all vm's disk crash and the template disk is crash also and the script make change into the template checksum hash . you can look at ansible parameters : - hosts: localhost connection: local gather_facts: false tasks: - name: entering ovirt_auth: url: https://ovirt-engine.elcld.net:443/ovirt-engine/api username: admin@internal password: pass insecure: yes - name: creating ovirt_vms: auth: "{{ ovirt_auth }}" name: myvm05 template: mahdi #state: present cluster: Cluster02 memory: 4GiB cpu_cores: 2 comment: Dev #type: server cloud_init: host_name: vm01 user_name: root root_password: pass nic_on_boot: true nic_boot_protocol: static nic_name: eth0 dns_servers: 109.224.19.5 dns_search: elcld.net nic_ip_address: 10.10.20.2 nic_netmask: 255.255.255.0 nic_gateway: 10.10.20.1 - name: Revoke ovirt_auth: state: absent ovirt_auth: "{{ ovirt_auth }}" can you assist me with this issue by checking if that any missing in my ansible . best regards
participants (3)
-
khalid mahmood
-
Martin Perina
-
Sahina Bose