I m having a similar issue on my side with ansible failling to create an instance based on a "shared" image. Same error message: "Inner Exception: Invalid imageRef provided." If we accept the image it will works fine but it is extra works for us and we are not facing the issue when we deploy with Terraform so I m wondering if there was an ongoing action to change this behavior and having ansible able to use shared image ?
Le lundi 7 novembre 2016 09:15:59 UTC-5, Lars Van Casteren a écrit : > > Hi, > > I'm trying to create a vm instance via ansible on trystack. Modules such > as os_network, os_subnet and os_image_facts are all working. > When trying to use os_server I get this message: > > fatal: [localhost]: FAILED! => {"changed": false, "extra_data": null, > "failed": true, "msg": "Error in creating instance (Inner Exception: > create() takes at least 4 arguments (9 given))"} > > This is the yaml: > - name: Create a Cirros Server instance > os_server: > state: present > name: server1 > image: openstack_image.id > key_name: Key_1 > timeout: 200 > flavor: 1 > nics: > - net-id: openstack_subnets.id > meta: > hostname: server1 > group: testgroup > > Shade 1.12.1 > Openstack: 3.3.0 > > Where should I start looking? > > Thanks! > -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/aad29428-7f43-4a8a-8e51-80999a61a2c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.