---
- hosts: localhost
tasks:
- name: create vm based on template
ovirt: user=admin@internal url=https://rhevm.domain.nl/ instance_name=ansibletest2 password=xxxxxxxxxx image=Ubuntu_template zone=datacenter_default resource_type=new
ansible-playbook -v create_vm.yml
PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [create vm] *************************************************************
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1406189516.72-109759934250973/ovirt", line 1642, in <module>
main()
File "/root/.ansible/tmp/ansible-tmp-1406189516.72-109759934250973/ovirt", line 379, in main
if get_vm(c, vmname) == "empty":
File "/root/.ansible/tmp/ansible-tmp-1406189516.72-109759934250973/ovirt", line 311, in get_vm
vm = conn.vms.get(name=vmname)
File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 18940, in get
headers={"All-Content":all_content}
File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 58, in get
return self.request(method='GET', url=url, headers=headers)
File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 118, in request
persistent_auth=self._persistent_auth)
File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 140, in __doRequest
persistent_auth=persistent_auth
File "/usr/lib/python2.6/site-packages/ovirtsdk/web/connection.py", line 134, in doRequest
raise RequestError, response
ovirtsdk.infrastructure.errors.RequestError:
status: 401
reason: Unauthorized
detail: JBWEB000065: HTTP Status 401
FATAL: all hosts have already failed -- aborting
2014-07-24 10:21:42,769 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-7) Running command: LoginUserCommand internal: false.
2014-07-24 10:21:42,783 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-7) Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: User admin logged in.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/47a76152-fe0f-4734-b390-69470a604947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I might have a look at this. Not sure if the API has changed over time.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20140813120104.GG5139%40hawking.
I'd be very interested in testing your "improved" ovirt module but the standard ovirt module isn't working for us in total. See my first post.
@Michael, we are using RHEV (commercial ovirt) in production to run VM for our customers with special setups. The environment is only growing and growing and it would be pretty awesome if Ansible could provision the virtual machines and configures them afterwards.
Op woensdag 13 augustus 2014 14:01:11 UTC+2 schreef Karl Jorgensen:
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/78d2f180-0cd1-4699-8191-e8dcb48321dd%40googlegroups.com.
Hi,
Just returned from Holiday abroad. I hope to have a look at it in the next few days.
Which version of oVirt are you using and do you by any chance now about changes in the api, because the module worked perfectly on the version we used (3.1).
Regards,
Vincent
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c7e8fd6b-05d2-4f94-a94a-87cda35ad603%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/q_fghQC8EIk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAO3_%2BAH7BX%3DkRDYM%3D-QKrQpX2KLeAWtH7URCWQv-CFZqJY%3DsdQ%40mail.gmail.com.
Hi,
I don't know If this can be done on deployment of the template.
An option might be to deploy your template and then alter the resource settings one it's available. But this should be added to the module.
I currently don't have access to a rhev/ovirt setup to see what has changed in the API.
Vincent
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0255b1a2-82c3-46db-845c-ec09a5c5b26f%40googlegroups.com.