This is a cryptographically signed message in MIME format.
--------------ms020309030908040404030106
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
Hi Ondra,
I am testing oVirt ansible modules and I am stucked in this simple=20
scenario. I would like to create a new vm with new bootable disk=20
attached to it.
I wrote this simple role for it
http://pastebin.com/XwwyCH4b
when I run it I got
$ ansible-playbook site.yml
PLAY [create ovirt vm]=20
*********************************************************
TASK [setup]=20
*******************************************************************
ok: [localhost]
TASK [create_vm : ovirt_auth]=20
**************************************************
ok: [localhost]
TASK [create_vm : ovirt_disks]=20
*************************************************
changed: [localhost]
TASK [create_vm : ovirt_vms]=20
***************************************************
fatal: [localhost]: FAILED! =3D> {"changed": false, "failed": true,
"msg"=
:=20
"Fault reason is \"Operation Failed\". Fault detail is \"[Cannot run
VM=20
without at least one bootable disk.\nAlternatives:\n- Create a disk for=20
this VM, and rerun the VM.\n- Change the boot sequence using the Edit VM =
command (Boot Option Sub-Tab).\n- Use the 'Run Once' command to select a =
different boot option and rerun the VM.]\". HTTP response code is 409."}
to retry, use: --limit=20
@/home/dron/#work/#cit/ovirt/ansible/ovirt/site.retry
PLAY RECAP=20
*********************************************************************
localhost : ok=3D3 changed=3D1 unreachable=3D0=20
failed=3D1
In the manager I can see the is disk successfully created, vm too, disk=20
is attached to vm but not activated.
When I activate it manually, I am able to run this vm.
Any ideas how can I achieve this via ansible?
Thanks in advance,
Jiri Slezka
On 12/02/2016 02:12 PM, Ondra Machacek wrote:
Hello all,
I would like to kindly ask everyone who is Ansible or oVirt user for
testing of the new Ansible oVirt modules. For everyone who is familiar
with the Ansible and oVirt, this[1] describes the steps you need to do,=
to setup oVirt modules library and start using those modules (Most
of
those modules will be available in Ansible 2.3, some of them are alread=
y
in 2.2).
If you have any issue setting this up, please contact me, I will do the=
best to help you.
If you have an issue, which you think is a bug, please open an issue
here[2]. Please note that Ansible is merging it's repositories, so sinc=
e
next week it will actually be stored here[3]. If you are missing
anything please open an issue as well, or just contact me, and I will
do fix it. You are also very welcome to sent PR with fixes.
For those who don't have testing environment which can test against,
I've created an Vagrant project which will deploy you the oVirt instanc=
e
using Ansible playbooks. You can find how to use it here[4].
The repository also contains few examples[5], so you don't have to
copy-paste them from the source.
Thanks all for reading this and any feedback,
Ondra
[1]
https://github.com/machacekondra/ovirt-tests/releases/tag/0.1
[2]
https://github.com/ansible/ansible-modules-extras/issues
[3]
https://github.com/ansible/ansible
[4]
https://github.com/machacekondra/ovirt-tests
[5]
https://github.com/machacekondra/ovirt-tests/tree/master/examples
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--------------ms020309030908040404030106
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
Cn4wggUJMIID8aADAgECAhACt8ndrdK9CetZxFyQDGB4MA0GCSqGSIb3DQEBCwUAMGUxCzAJ
BgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2Vy
dC5jb20xJDAiBgNVBAMTG0RpZ2lDZXJ0IEFzc3VyZWQgSUQgUm9vdCBDQTAeFw0xNDExMTgx
MjAwMDBaFw0yNDExMTgxMjAwMDBaMHIxCzAJBgNVBAYTAk5MMRYwFAYDVQQIEw1Ob29yZC1I
b2xsYW5kMRIwEAYDVQQHEwlBbXN0ZXJkYW0xDzANBgNVBAoTBlRFUkVOQTEmMCQGA1UEAxMd
VEVSRU5BIGVTY2llbmNlIFBlcnNvbmFsIENBIDMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQCwp9Jj5Aej1xPkS1GV3LvBdemFmkUR//nSzBodqsU3dv2BCRD30r4gt5oRsYty
qDGF2nnItxV1SkwVoDxFeRzOIHYNYvBRHaiG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