Re: [ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
Dear Lucai reproduce the vm by hand by create one vm all things is all right then create template from this vm after that i create new 10 vm's from this template and delete it then create 10 vm's with the same name from template again still all thing is all right so i suspect in my ansible . best regardsOn June 17, 2017 at 6:21 AM Luca 'remix_tj' Lorenzettowrote:On Sat, Jun 17, 2017 at 11:47 AM, khalid mahmood wrote:Dear Lucai want to be more specific after deploy vm by ansible from ansible sidetell me vm created successfully and from ovirt side the vm createdsuccessfully but with vm disk crash and the template disk crush too .best regardsHello,from what i've seen there no issues that can be related to ansible.Could you please try reproducing the same tasks by hand directly fromovirt engine UI?Luca--"E' assurdo impiegare gli uomini di intelligenza eccellente per farecalcoli che potrebbero essere affidati a chiunque se si usassero dellemacchine"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 listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/usersEng khalid jamalSystem Admin@IT DepartmentEarthlink TelecomEmail: khalid.ja...@earthlinktele.comNo: 3355skype: engkhalid21986NO : 07704268321 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
On Sat, Jun 17, 2017 at 11:47 AM, khalid mahmoodwrote: > Dear Luca > > i want to be more specific after deploy vm by ansible from ansible side > tell me vm created successfully and from ovirt side the vm created > successfully but with vm disk crash and the template disk crush too . > > best regards > Hello, from what i've seen there no issues that can be related to ansible. Could you please try reproducing the same tasks by hand directly from ovirt engine UI? Luca -- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) "Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente) Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
Dear Luca i want to be more specific after deploy vm by ansible from ansible side tell me vm created successfully and from ovirt side the vm created successfully but with vm disk crash and the template disk crush too . best regards On Saturday, June 17, 2017 12:30 PM, khalid mahmoodwrote: Dear Luca this is what i get after deploy the vm finished from ansible side : Using /etc/ansible/ansible.cfg as config fileLoading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: ovirt.yml **1 plays in ovirt.yml PLAY [localhost] *META: ran handlers TASK [entering] **task path: /home/testo/ovirt.yml:6Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/ovirt/ovirt_auth.py<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236 `" && echo ansible-tmp-1497701608.46-222857717850236="` echo /root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236 `" ) && sleep 0'<127.0.0.1> PUT /tmp/tmpQ_uCyi TO /root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236/ovirt_auth.py<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236/ /root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236/ovirt_auth.py && sleep 0'<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236/ovirt_auth.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1497701608.46-222857717850236/" > /dev/null 2>&1 && sleep 0'ok: [localhost] => { "ansible_facts": { "ovirt_auth": { "ca_file": null, "compress": true, "insecure": true, "kerberos": false, "timeout": 0, "token": "7tFUJzpf8t4uLoCQnI3jkYpIDoD7jP3n3oWsmk-aY8H5M5OTfTOsVNZQ6SvPBPdh4DKdikeUm_ObenNHHuuYVg", "url": "https://ovirt-engine.elcld.net:443/ovirt-engine/api" } }, "changed": false, "invocation": { "module_args": { "ca_file": null, "compress": true, "insecure": true, "kerberos": false, "ovirt_auth": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "timeout": 0, "url": "https://ovirt-engine.elcld.net:443/ovirt-engine/api", "username": "@internal" } }} TASK [creating] **task path: /home/testo/ovirt.yml:12Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/ovirt/ovirt_vms.py<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625 `" && echo ansible-tmp-1497701608.93-132538912332625="` echo /root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625 `" ) && sleep 0'<127.0.0.1> PUT /tmp/tmpRz1MaG TO /root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625/ovirt_vms.py<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625/ /root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625/ovirt_vms.py && sleep 0'<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625/ovirt_vms.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1497701608.93-132538912332625/" > /dev/null 2>&1 && sleep 0'changed: [localhost] => { "changed": true, "diff": { "after": {}, "before": {} }, "id": "2cc92449-48a7-4e3f-8d11-ea631232c39a", "invocation": { "module_args": { "boot_devices": null, "cd_iso": null, "clone": false, "clone_permissions": false, "cloud_init": { "dns_search": "elcld.net", "dns_servers": "109.224.14.2", "host_name": "vm01", "root_password": "booboo", "user_name": "root" }, "cloud_init_nics": null, "cluster": "Cluster02", "comment": "Dev", "cpu_cores": 2, "cpu_shares": null, "cpu_sockets": null, "delete_protected": null,
Re: [ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
Hello, imho seems everything ok. The VM gets created and powers up. What's your specific problem? on ansible side which messages you get? On Sat, Jun 17, 2017 at 9:29 AM, khalid mahmoodwrote: > Dear Martin > > > My Ovirt Engine Log In The Time When Ansible Script Run Can You Please check > the log : > > > > 2017-06-17 10:13:53,478 INFO > [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-5) [] > User admin@internal successfully logged in with scopes: ovirt-app-api > ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search > ovirt-ext=token-info:validate > 2017-06-17 10:13:54,076 INFO > [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-2) > [2cefa073] Running command: CreateUserSessionCommand internal: false. > 2017-06-17 10:13:54,227 INFO [org.ovirt.engine.core.bll.AddVmCommand] > (default task-1) [22a2647d] Lock Acquired to object > 'EngineLock:{exclusiveLocks='[myvm05= ACTION_TYPE_FAILED_OBJECT_LOCKED>]', > sharedLocks='[71e0d46a-d8b8-48dc-bae4-3895a42fa005= ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM$VmName myvm05>, > 4aba3e03-6665-46d5-882c-8d8931a563f0= ACTION_TYPE_FAILED_DISK_IS_USED_FOR_CREATE_VM$VmName myvm05>]'}' > 2017-06-17 10:13:54,287 INFO [org.ovirt.engine.core.bll.AddVmCommand] > (default task-1) [22a2647d] Running command: AddVmCommand internal: false. > Entities affected : ID: ffc26dac-0aeb-4486-8ce4-6eada0a99f0a Type: > ClusterAction group CREATE_VM with role type USER, ID: > 71e0d46a-d8b8-48dc-bae4-3895a42fa005 Type: VmTemplateAction group CREATE_VM > with role type USER, ID: 4a62e1c2-8942-48f6-a3c4-1e54d158e13a Type: > StorageAction group CREATE_DISK with role type USER > 2017-06-17 10:13:54,362 INFO > [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (default task-1) [] > START, SetVmStatusVDSCommand( > SetVmStatusVDSCommandParameters:{runAsync='true', > vmId='535f7d2b-a3df-4f7e-91e1-7b564bff625c', status='ImageLocked', > exitStatus='Normal'}), log id: 758c11b1 > 2017-06-17 10:13:54,366 INFO > [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (default task-1) [] > FINISH, SetVmStatusVDSCommand, log id: 758c11b1 > 2017-06-17 10:13:54,375 INFO > [org.ovirt.engine.core.bll.snapshots.CreateSnapshotFromTemplateCommand] > (default task-1) [431bbdcb] Running command: > CreateSnapshotFromTemplateCommand internal: true. Entities affected : ID: > 4a62e1c2-8942-48f6-a3c4-1e54d158e13a Type: Storage > 2017-06-17 10:13:54,389 INFO > [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] > (default task-1) [431bbdcb] START, CreateSnapshotVDSCommand( > CreateSnapshotVDSCommandParameters:{runAsync='true', > storagePoolId='ca3d926a-fff6-41e3-bddd-f244289713fc', > ignoreFailoverLimit='false', > storageDomainId='4a62e1c2-8942-48f6-a3c4-1e54d158e13a', > imageGroupId='67bfd3f8-8def-4b3a-bb45-c52aed5d1a4f', > imageSizeInBytes='17179869184', volumeFormat='COW', > newImageId='b5142477-2134-470e-8ba4-a2e72119ec9a', newImageDescription='', > imageInitialSizeInBytes='0', imageId='901367d7-8a2a-4f7e-80e8-636738ea3990', > sourceImageGroupId='4aba3e03-6665-46d5-882c-8d8931a563f0'}), log id: 1931032 > 2017-06-17 10:13:54,390 INFO > [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] > (default task-1) [431bbdcb] -- executeIrsBrokerCommand: calling > 'createVolume' with two new parameters: description and UUID > 2017-06-17 10:13:55,518 INFO > [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] > (default task-1) [431bbdcb] FINISH, CreateSnapshotVDSCommand, return: > b5142477-2134-470e-8ba4-a2e72119ec9a, log id: 1931032 > 2017-06-17 10:13:55,521 INFO > [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (default task-1) > [431bbdcb] CommandAsyncTask::Adding CommandMultiAsyncTasks object for > command 'b35f7ba3-89fc-4720-86e2-98cfa2ac4aeb' > 2017-06-17 10:13:55,521 INFO > [org.ovirt.engine.core.bll.CommandMultiAsyncTasks] (default task-1) > [431bbdcb] CommandMultiAsyncTasks::attachTask: Attaching task > 'a236b425-4414-49d8-860b-a0e932db175f' to command > 'b35f7ba3-89fc-4720-86e2-98cfa2ac4aeb'. > 2017-06-17 10:13:55,529 INFO > [org.ovirt.engine.core.bll.tasks.AsyncTaskManager] (default task-1) > [431bbdcb] Adding task 'a236b425-4414-49d8-860b-a0e932db175f' (Parent > Command 'CreateSnapshotFromTemplate', Parameters Type > 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters'), polling > hasn't started yet.. > 2017-06-17 10:13:55,571 INFO > [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] > (default task-1) [431bbdcb] Correlation ID: 22a2647d, Job ID: > 638b7524-baaa-4bb2-bb36-e02b78bb5dfd, Call Stack: null, Custom Event ID: -1, > Message: VM myvm05 creation was initiated by admin@internal-authz. > 2017-06-17 10:13:55,571 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] > (default task-1) [431bbdcb] BaseAsyncTask::startPollingTask: Starting to > poll task 'a236b425-4414-49d8-860b-a0e932db175f'. >
[ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
Dear Martin My Ovirt Engine Log In The Time When Ansible Script Run Can You Please check the log : 2017-06-17 10:13:53,478 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-5) [] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-06-17 10:13:54,076 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-2) [2cefa073] Running command: CreateUserSessionCommand internal: false. 2017-06-17 10:13:54,227 INFO [org.ovirt.engine.core.bll.AddVmCommand] (default task-1) [22a2647d] Lock Acquired to object 'EngineLock:{exclusiveLocks='[myvm05=]', sharedLocks='[71e0d46a-d8b8-48dc-bae4-3895a42fa005=, 4aba3e03-6665-46d5-882c-8d8931a563f0= ]'}' 2017-06-17 10:13:54,287 INFO [org.ovirt.engine.core.bll.AddVmCommand] (default task-1) [22a2647d] Running command: AddVmCommand internal: false. Entities affected : ID: ffc26dac-0aeb-4486-8ce4-6eada0a99f0a Type: ClusterAction group CREATE_VM with role type USER, ID: 71e0d46a-d8b8-48dc-bae4-3895a42fa005 Type: VmTemplateAction group CREATE_VM with role type USER, ID: 4a62e1c2-8942-48f6-a3c4-1e54d158e13a Type: StorageAction group CREATE_DISK with role type USER 2017-06-17 10:13:54,362 INFO [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (default task-1) [] START, SetVmStatusVDSCommand( SetVmStatusVDSCommandParameters:{runAsync='true', vmId='535f7d2b-a3df-4f7e-91e1-7b564bff625c', status='ImageLocked', exitStatus='Normal'}), log id: 758c11b1 2017-06-17 10:13:54,366 INFO [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (default task-1) [] FINISH, SetVmStatusVDSCommand, log id: 758c11b1 2017-06-17 10:13:54,375 INFO [org.ovirt.engine.core.bll.snapshots.CreateSnapshotFromTemplateCommand] (default task-1) [431bbdcb] Running command: CreateSnapshotFromTemplateCommand internal: true. Entities affected : ID: 4a62e1c2-8942-48f6-a3c4-1e54d158e13a Type: Storage 2017-06-17 10:13:54,389 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (default task-1) [431bbdcb] START, CreateSnapshotVDSCommand( CreateSnapshotVDSCommandParameters:{runAsync='true', storagePoolId='ca3d926a-fff6-41e3-bddd-f244289713fc', ignoreFailoverLimit='false', storageDomainId='4a62e1c2-8942-48f6-a3c4-1e54d158e13a', imageGroupId='67bfd3f8-8def-4b3a-bb45-c52aed5d1a4f', imageSizeInBytes='17179869184', volumeFormat='COW', newImageId='b5142477-2134-470e-8ba4-a2e72119ec9a', newImageDescription='', imageInitialSizeInBytes='0', imageId='901367d7-8a2a-4f7e-80e8-636738ea3990', sourceImageGroupId='4aba3e03-6665-46d5-882c-8d8931a563f0'}), log id: 1931032 2017-06-17 10:13:54,390 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (default task-1) [431bbdcb] -- executeIrsBrokerCommand: calling 'createVolume' with two new parameters: description and UUID 2017-06-17 10:13:55,518 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (default task-1) [431bbdcb] FINISH, CreateSnapshotVDSCommand, return: b5142477-2134-470e-8ba4-a2e72119ec9a, log id: 1931032 2017-06-17 10:13:55,521 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (default task-1) [431bbdcb] CommandAsyncTask::Adding CommandMultiAsyncTasks object for command 'b35f7ba3-89fc-4720-86e2-98cfa2ac4aeb' 2017-06-17 10:13:55,521 INFO [org.ovirt.engine.core.bll.CommandMultiAsyncTasks] (default task-1) [431bbdcb] CommandMultiAsyncTasks::attachTask: Attaching task 'a236b425-4414-49d8-860b-a0e932db175f' to command 'b35f7ba3-89fc-4720-86e2-98cfa2ac4aeb'. 2017-06-17 10:13:55,529 INFO [org.ovirt.engine.core.bll.tasks.AsyncTaskManager] (default task-1) [431bbdcb] Adding task 'a236b425-4414-49d8-860b-a0e932db175f' (Parent Command 'CreateSnapshotFromTemplate', Parameters Type 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters'), polling hasn't started yet.. 2017-06-17 10:13:55,571 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-1) [431bbdcb] Correlation ID: 22a2647d, Job ID: 638b7524-baaa-4bb2-bb36-e02b78bb5dfd, Call Stack: null, Custom Event ID: -1, Message: VM myvm05 creation was initiated by admin@internal-authz. 2017-06-17 10:13:55,571 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (default task-1) [431bbdcb] BaseAsyncTask::startPollingTask: Starting to poll task 'a236b425-4414-49d8-860b-a0e932db175f'. 2017-06-17 10:13:57,274 INFO [org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback] (DefaultQuartzScheduler5) [431bbdcb] Command 'AddVm' (id: 'd089dd43-f977-4eb7-aa22-245d8ab69e5d') waiting on child command id: 'b35f7ba3-89fc-4720-86e2-98cfa2ac4aeb' type:'CreateSnapshotFromTemplate' to complete
Re: [ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
Hi, It seems like some storage issue, could you please share your engine logs? Regards Martin Perina On Thursday, June 15, 2017, khalid mahmoodwrote: > 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 > > > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
On Thu, Jun 15, 2017 at 9:30 PM, khalid mahmoodwrote: > 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 > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Deploy Ovirt VM's By Ansible Playbook Issue
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 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users