<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 9:30 PM, khalid mahmood <span dir="ltr"><<a href="mailto:engkhalid21986@yahoo.com" target="_blank">engkhalid21986@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2674"><span></span></div><div></div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3243">Dear Users</div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3243"><br></div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3244"><u id="m_7571168848384304321yui_3_16_0_1_1497541336982_3245">Procedure :</u></div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3246">1- create clean volume replica 2 distributed with glusterfs .</div></div></div></blockquote><div><br></div><div>Only replica 3 or replica 3 with arbiter is supported as storage domain in oVirt<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px">
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3247">2- create clean ovirt-engine machine .</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3248">3- create clean vm from scratch then create template from this vm.</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3249">4- then create two vm from this template (vm1) & (vm2).</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3250">5- then delete the two vm .</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3251">6- create new two vm with the same name (vm1) & (vm2) from the template .</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3252">7- till now the two vm stable and work correctly .</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3253">8- repeat no (7) three time all vm's is working correctly .</div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3253"><br></div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3255"><u id="m_7571168848384304321yui_3_16_0_1_1497541336982_3256">issue :</u></div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_3257">i have ansible playbook to deploy vm's to our ovirt , my playbook use the above template to deploy the vm's .</div>
<div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2673" dir="ltr">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 .</div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2673" dir="ltr"><br></div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2673" dir="ltr">you can look at ansible parameters :</div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2673" dir="ltr"><br></div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5456">- hosts: localhost</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5457"> connection: local</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5458"> gather_facts: false</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5459"> tasks:</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5460"> - name: entering</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5461"> ovirt_auth:</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5462"> url: <a href="https://ovirt-engine.elcld.net:443/ovirt-engine/api" target="_blank">https://ovirt-engine.elcld.<wbr>net:443/ovirt-engine/api</a></div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5463"> username: admin@internal</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5464"> password: pass</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5465"> insecure: yes</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5466"> - name: creating</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5467"> ovirt_vms:</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5468"> auth: "{{ ovirt_auth }}"</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5469"> name: myvm05</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5470"> template: mahdi</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5471"> #state: present</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5472"> cluster: Cluster02</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5473"> memory: 4GiB</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5474"> cpu_cores: 2</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5475"> comment: Dev</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5476"> #type: server</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5477"> cloud_init:</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5478"> host_name: vm01</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5479"> user_name: root</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5480"> root_password: pass</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5481"> nic_on_boot: true</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5482"> nic_boot_protocol: static</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5483"> nic_name: eth0</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5484"> dns_servers: 109.224.19.5</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5485"> dns_search: <a href="http://elcld.net" target="_blank">elcld.net</a></div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5486"> nic_ip_address: 10.10.20.2</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5487"> nic_netmask: 255.255.255.0</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5488"> nic_gateway: 10.10.20.1</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5489"> - name: Revoke </div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5490"> ovirt_auth:</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5491"> state: absent</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5492"> ovirt_auth: "{{ ovirt_auth }}"</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5492"><br></div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5492">can you assist me with this issue by checking if that any missing in my ansible .</div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5492"><br></div><div dir="ltr" id="m_7571168848384304321yui_3_16_0_1_1497541336982_5492">best regards </div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2673" dir="ltr"> </div><div class="m_7571168848384304321signature" id="m_7571168848384304321yui_3_16_0_1_1497541336982_2670"><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2672"><br></div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2671"><br></div><div id="m_7571168848384304321yui_3_16_0_1_1497541336982_2669"><br></div></div></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>