Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined API when calling volume_group/hosts apis #286

Open
quasd opened this issue Nov 24, 2022 · 0 comments
Open

Undefined API when calling volume_group/hosts apis #286

quasd opened this issue Nov 24, 2022 · 0 comments
Labels

Comments

@quasd
Copy link

quasd commented Nov 24, 2022

Expected Behavior

When trying to assign sla with ansible pluging rubrikinc.cdm.rubrik_assign_sla the plugin does not give erros.

Current Behavior

When trying to assign sla with ansible rubrikinc.cdm.rubrik_assign_sla the api calls from this library fail.

Failure Information (for bugs)

"msg": "Undefined API"
  • Trace
The full traceback is:
  File "/tmp/ansible_rubrikinc.cdm.rubrik_assign_sla_payload_2yujz2un/ansible_rubrikinc.cdm.rubrik_assign_sla_payload.zip/ansible_collections/rubrikinc/cdm/plugins/modules/rubrik_assign_sla.py", line 182, in main
  File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/rubrik_cdm/data_management.py", line 923, in assign_sla
    windows_host, "volume_group", timeout=timeout)
  File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/rubrik_cdm/data_management.py", line 519, in object_id
    timeout=timeout)
  File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/rubrik_cdm/api.py", line 228, in get
    params=params)
  File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/rubrik_cdm/api.py", line 168, in _common_api
    raise APICallException(error_message)

Steps to Reproduce

Run following ansible

  - name: Assign volume group SLA to host [Windows]
    rubrikinc.cdm.rubrik_assign_sla:
      username: "{{ rubrik_username }}"
      password: "{{ rubrik_password }}"
      node_ip: "{{ dataprotection_cluster[0] }}"
      object_name: "{{ drive_letters }}"
      sla_name: "{{ dataprotection_sladomain[0] }}"
      object_type: volume_group
      windows_host: "{{ host_backup_fqdn }}"
    delegate_to: 127.0.0.1

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant