rubrikinc / rubrik-modules-for-ansible

Rubrik Modules for Ansible
https://build.rubrik.com/tooling-integrations/ansible/
GNU General Public License v3.0
17 stars 20 forks source link

rubrik_vsphere_live_mount missing? #72

Open davehailwood123 opened 4 years ago

davehailwood123 commented 4 years ago

Expected Behavior

Playbook using rubrik_vsphere_live_mount to work

Current Behavior

When running a playbook using rubrik_vsphere_live_mount you get the error:

ERROR! couldn't resolve module/action 'rubrik_vsphere_live_mount'. This often indicates a misspelling, missing collection, or incorrect module path.

Steps to Reproduce

  1. Follow Quick Start Guide or use Ansible Galaxy to download cdm collection
  2. Write playbook to use rubrik_vsphere_live_mount
  3. Run Playbook
    - name: LiveMount vSphere VM
      rubrik_vsphere_live_mount:
        provider: "{{credentials}}"
        vm_name: "{{ snapshot_name }}"
        date: "latest"
        time: "latest"
        host: "{{ VSphereHost }}"
        remove_network_devices: "True"

Context I'm trying to use the live mount modules as part of a workflow to create dev/test environments from our backups. Modules that have been added recently to the documentation are missing from the default branch on github. I've tried using the module-merge branch but this also fails. Are the new modules ready to be used?

drew-russell commented 4 years ago

@davehailwood123 we removed the Live Mount module temporarily while we convert it to a new format. The documentation should have been updated as well to show that. Apologies.

While we work on getting this merged into the main branch you can access the module here:

https://github.com/rubrikinc/rubrik-modules-for-ansible/tree/module-merge/rubrikinc/cdm/plugins/modules

davehailwood123 commented 4 years ago

Thanks I had tried using the module-merge branch but got a different error:

"msg": "Unexpected failure during module execution.",
"exception": "Traceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 145, in run\n    res = self._execute()\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 664, in _execute\n    result = self._handler.run(task_vars=variables)\n  File \"/usr/lib/python2.7/site-packages/ansible/plugins/action/normal.py\", line 46, in run\n    result = merge_hash(result, self._execute_module(task_vars=task_vars, wrap_async=wrap_async))\n  File \"/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py\", line 809, in _execute_module\n    (module_style, shebang, module_data, module_path) = self._configure_module(module_name=module_name, module_args=module_args, task_vars=task_vars)\n  File \"/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py\", line 203, in _configure_module\n    environment=final_environment)\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/module_common.py\", line 1023, in modify_module\n    environment=environment)\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/module_common.py\", line 859, in _find_module_utils\n    recursive_finder(module_name, b_module_data, py_module_names, py_module_cache, zf)\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/module_common.py\", line 594, in recursive_finder\n    pkg = import_module(package_name)\n  File \"/usr/lib64/python2.7/importlib/__init__.py\", line 37, in import_module\n    __import__(name)\nImportError: No module named ansible_collections.rubrikinc.cdm.plugins.module_utils\n",
"_ansible_no_log": false,
"stdout": ""

I can wait until it's merged back into the main branch though.