Problem with zfs module on SmartOS?

14 views
Skip to first unread message

Don Jackson

unread,
Jun 13, 2016, 4:13:55 PM6/13/16
to Ansible Project

Over the past month or so, the following task has consistently failed for me, because the specified dataset already exists:

    - name: Create zfs datasets
      zfs:
        name: zones/images
        state: present
      become: true

The failure looks like this: (reformatted to make it a bit easier to read...)

  "changed": false,
  "failed": true,
  "module_stderr": "",
  "module_stdout": "Traceback (most recent call last):\r\n  
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 245, in <module>\r\n    main()\r\n  
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 227, in main\r\n    zfs = Zfs(module, name, properties)\r\n  
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 90, in __init__\r\n    self.enhanced_sharing = self.check_enhanced_sharing()\r\n  
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 99, in check_enhanced_sharing\r\n    if int(version) >= 34:\r\nValueError: invalid literal for int() with base 10: '-'\r\n",
  "msg": "MODULE FAILURE",
  "parsed": false
}

Is there a fix or workaround available?
For now I am just setting ignore_errors: true

Matt Martz

unread,
Jun 13, 2016, 4:15:53 PM6/13/16
to ansible...@googlegroups.com
There seems to be an issue filed for this exact traceback:  https://github.com/ansible/ansible-modules-extras/issues/2415

--
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/e01a9129-ebf7-413d-be13-666a8888c9a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages