rubrik-modules-for-ansible
rubrik-modules-for-ansible copied to clipboard
rubrik_on_demand_snapshot - Invalid object type "oracle_db"
Expected Behavior
I'd expect to be able to do an on-demand snapshot of an oracle-db
Current Behavior
The module fails stating the object type is incorrect.
Failure Information (for bugs)
- (fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "value of object_type must be one of: vmware, physical_host, ahv, mssql_db, got: oracle_db"})
on_demand_snapshot.yml
---
- hosts: localhost
gather_facts: false
tasks:
- name: On-Demand Snapshot
rubrikinc.cdm.rubrik_on_demand_snapshot:
object_name: "{{ db_name }}"
object_type: "oracle_db"
Steps to Reproduce
Invoke playbook above passing db_name as extra-var
Context
In terms of versions the API is invoked against the latest Rubrik version from a Python 3.6 virtual environment on RHEL7 OS.
Failure Logs
(ansible-venv) [ec2-user@ip-10-206-213-66 ansible]$ ansible-playbook --connection=local -i ./local_inventory --extra-vars "db_name=RBK01LB" on_demand_snapshot.yml
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [On-Demand Snapshot] **********************************************************************************************************************************************************************
task path: /working/rubrik/automation/ansible/on_demand_snapshot.yml:8
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "value of object_type must be one of: vmware, physical_host, ahv, mssql_db, got: oracle_db"}
PLAY RECAP *************************************************************************************************************************************************************************************
127.0.0.1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
The list of valid object types doesn't appear to be consistent with that supported by the Python SDK that the module uses.