After digging through the source code, I believe I've tracked the problem
down to the following call in _tasks.py in Shade:
class ServerCreate(task_manager.Task):
def main(self, client):
return client.nova_client.servers.create(**self.args)
This appears to be calling the following method from servers.py in
novaclient:
def create(self, name, image, flavor, meta=None ... and a bunch more
parameters with default values)
I can only assume that self.args is only expanding into two values instead
of the expected minimum 4.
I don't know where the value of self.args comes from, however. I'm
definitely passing a "name", "flavor", and "image" to the os_server module.
Rich
On Monday, September 26, 2016 at 6:11:32 PM UTC-4, Richard Eggert wrote:
>
> I managed to get the os_server_facts module working, but when I try to use
> the os_server module to create a new VM instance, I get the following error:
>
> Error in creating instance (Inner Exception: create() takes at least 4
> non-keyword arguments (2 given))
>
> No other meaningful diagnostic information is provided (even with "-v -v
> -v"), so I have no idea where to look. I couldn't find anything specific to
> Ansible when I looked up the error message via Google. I couldn't finding
> any direct calls to a method named "create" in os_server.py, either.
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d785f03f-c7a9-4297-b505-76300811f6ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.