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

In the netapp.cloudmanager.na_cloudmanager_info module the ontapClusterProperties is missing #8

Open
abhilash945 opened this issue Mar 31, 2023 · 0 comments

Comments

@abhilash945
Copy link

Summary

When I am using the "netapp.cloudmanager.na_cloudmanager_info" module to fetch some information about the CVOs the below data is missing in the response json.
info.working_environments_info[].gcpVsaWorkingEnvironments[].ontapClusterProperties

I am basically trying to find the management IP of the CVO.

Component Name

netapp.cloudmanager.na_cloudmanager_info

Ansible Version

$ ansible --version
ansible [core 2.12.4]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/xxxxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /app/awxvenv/ansible-5.6/lib/python3.8/site-packages/ansible
  ansible collection location = /home/xxxxxx/.ansible/collections:/usr/share/ansible/collections
  executable location = /app/awxvenv/ansible-5.6/bin/ansible
  python version = 3.8.13 (default, Apr  5 2022, 17:15:15) [GCC 9.1.1 20190605 (Red Hat 9.1.1-2)]
  jinja version = 3.1.1
  libyaml = True

Cloud Manager Collection Version

$ ansible-galaxy collection list
# /app/awxvenv/ansible-5.6/lib64/python3.8/site-packages/ansible_collections
Collection                    Version
----------------------------- -------
amazon.aws                    2.2.0
ansible.netcommon             2.6.1
ansible.posix                 1.3.0
ansible.utils                 2.5.2
ansible.windows               1.9.0
arista.eos                    3.1.0
awx.awx                       19.4.0
azure.azcollection            1.12.0
check_point.mgmt              2.3.0
chocolatey.chocolatey         1.2.0
cisco.aci                     2.2.0
cisco.asa                     2.1.0
cisco.intersight              1.0.18
cisco.ios                     2.8.1
cisco.iosxr                   2.9.0
cisco.ise                     1.2.1
cisco.meraki                  2.6.1
cisco.mso                     1.4.0
cisco.nso                     1.0.3
cisco.nxos                    2.9.1
cisco.ucs                     1.8.0
cloud.common                  2.1.0
cloudscale_ch.cloud           2.2.1
community.aws                 2.4.0
community.azure               1.1.0
community.ciscosmb            1.0.4
community.crypto              2.2.4
community.digitalocean        1.16.0
community.dns                 2.0.9
community.docker              2.3.0
community.fortios             1.0.0
community.general             4.7.0
community.google              1.0.0
community.grafana             1.3.3
community.hashi_vault         2.4.0
community.hrobot              1.2.3
community.kubernetes          2.0.1
community.kubevirt            1.0.0
community.libvirt             1.0.2
community.mongodb             1.3.3
community.mysql               2.3.5
community.network             3.1.0
community.okd                 2.1.0
community.postgresql          1.7.1
community.proxysql            1.3.1
community.rabbitmq            1.1.0
community.routeros            2.0.0
community.sap                 1.0.0
community.skydive             1.0.0
community.sops                1.2.1
community.vmware              1.18.0
community.windows             1.9.0
community.zabbix              1.5.1
containers.podman             1.9.3
cyberark.conjur               1.1.0
cyberark.pas                  1.0.13
dellemc.enterprise_sonic      1.1.0
dellemc.openmanage            4.4.0
dellemc.os10                  1.1.1
dellemc.os6                   1.0.7
dellemc.os9                   1.0.4
f5networks.f5_modules         1.15.0
fortinet.fortimanager         2.1.4
fortinet.fortios              2.1.4
frr.frr                       1.0.3
gluster.gluster               1.0.2
google.cloud                  1.0.2
hetzner.hcloud                1.6.0
hpe.nimble                    1.1.4
ibm.qradar                    1.0.3
infinidat.infinibox           1.3.3
infoblox.nios_modules         1.2.1
inspur.sm                     1.3.0
junipernetworks.junos         2.10.0
kubernetes.core               2.3.0
mellanox.onyx                 1.0.0
netapp.aws                    21.7.0
netapp.azure                  21.10.0
netapp.cloudmanager           21.15.0
netapp.elementsw              21.7.0
netapp.ontap                  21.17.3
netapp.storagegrid            21.10.0
netapp.um_info                21.8.0
netapp_eseries.santricity     1.3.0
netbox.netbox                 3.6.0
ngine_io.cloudstack           2.2.3
ngine_io.exoscale             1.0.0
ngine_io.vultr                1.1.1
openstack.cloud               1.7.2
openvswitch.openvswitch       2.1.0
ovirt.ovirt                   1.6.6
purestorage.flasharray        1.12.1
purestorage.flashblade        1.9.0
sensu.sensu_go                1.13.0
servicenow.servicenow         1.0.6
splunk.es                     1.0.2
t_systems_mms.icinga_director 1.28.0
theforeman.foreman            2.2.0
vyos.vyos                     2.8.0
wti.remote                    1.0.3

# /app/awxvenv/ansible-5.6/lib/python3.8/site-packages/ansible_collections
Collection                    Version
----------------------------- -------
amazon.aws                    2.2.0
ansible.netcommon             2.6.1
ansible.posix                 1.3.0
ansible.utils                 2.5.2
ansible.windows               1.9.0
arista.eos                    3.1.0
awx.awx                       19.4.0
azure.azcollection            1.12.0
check_point.mgmt              2.3.0
chocolatey.chocolatey         1.2.0
cisco.aci                     2.2.0
cisco.asa                     2.1.0
cisco.intersight              1.0.18
cisco.ios                     2.8.1
cisco.iosxr                   2.9.0
cisco.ise                     1.2.1
cisco.meraki                  2.6.1
cisco.mso                     1.4.0
cisco.nso                     1.0.3
cisco.nxos                    2.9.1
cisco.ucs                     1.8.0
cloud.common                  2.1.0
cloudscale_ch.cloud           2.2.1
community.aws                 2.4.0
community.azure               1.1.0
community.ciscosmb            1.0.4
community.crypto              2.2.4
community.digitalocean        1.16.0
community.dns                 2.0.9
community.docker              2.3.0
community.fortios             1.0.0
community.general             4.7.0
community.google              1.0.0
community.grafana             1.3.3
community.hashi_vault         2.4.0
community.hrobot              1.2.3
community.kubernetes          2.0.1
community.kubevirt            1.0.0
community.libvirt             1.0.2
community.mongodb             1.3.3
community.mysql               2.3.5
community.network             3.1.0
community.okd                 2.1.0
community.postgresql          1.7.1
community.proxysql            1.3.1
community.rabbitmq            1.1.0
community.routeros            2.0.0
community.sap                 1.0.0
community.skydive             1.0.0
community.sops                1.2.1
community.vmware              1.18.0
community.windows             1.9.0
community.zabbix              1.5.1
containers.podman             1.9.3
cyberark.conjur               1.1.0
cyberark.pas                  1.0.13
dellemc.enterprise_sonic      1.1.0
dellemc.openmanage            4.4.0
dellemc.os10                  1.1.1
dellemc.os6                   1.0.7
dellemc.os9                   1.0.4
f5networks.f5_modules         1.15.0
fortinet.fortimanager         2.1.4
fortinet.fortios              2.1.4
frr.frr                       1.0.3
gluster.gluster               1.0.2
google.cloud                  1.0.2
hetzner.hcloud                1.6.0
hpe.nimble                    1.1.4
ibm.qradar                    1.0.3
infinidat.infinibox           1.3.3
infoblox.nios_modules         1.2.1
inspur.sm                     1.3.0
junipernetworks.junos         2.10.0
kubernetes.core               2.3.0
mellanox.onyx                 1.0.0
netapp.aws                    21.7.0
netapp.azure                  21.10.0
netapp.cloudmanager           21.15.0
netapp.elementsw              21.7.0
netapp.ontap                  21.17.3
netapp.storagegrid            21.10.0
netapp.um_info                21.8.0
netapp_eseries.santricity     1.3.0
netbox.netbox                 3.6.0
ngine_io.cloudstack           2.2.3
ngine_io.exoscale             1.0.0
ngine_io.vultr                1.1.1
openstack.cloud               1.7.2
openvswitch.openvswitch       2.1.0
ovirt.ovirt                   1.6.6
purestorage.flasharray        1.12.1
purestorage.flashblade        1.9.0
sensu.sensu_go                1.13.0
servicenow.servicenow         1.0.6
splunk.es                     1.0.2
t_systems_mms.icinga_director 1.28.0
theforeman.foreman            2.2.0
vyos.vyos                     2.8.0
wti.remote                    1.0.3

Playbook

- name: Get all available subsets
      netapp.cloudmanager.na_cloudmanager_info:
        client_id: "xxxxxxxxxxxxxxxxxxxxxx"
        refresh_token: "xxxxxxxxxxxxxxxxxxxxxxxx"
        gather_subsets:
          - all

Steps to Reproduce

If we run the above playbook the issue you might notice the missing ontapClusterProperties information.

Expected Results

The ontapClusterProperties should be a json data, this data can be gathered using the http get request to the below URL.

"http:///occm/api/gcp/vsa/working-environments/vsaworkingenvironment-xxxxxx/?fields=ontapClusterProperties"

Actual Results

{
    "publicId": "vsaworkingenvironment-xxxxxxxxxxxxx",
    "name": "xxxxxxxxxxxxx",
    "tenantId": "Tenant-xxxx",
    "svmName": "xxxxxxxxxxxxx",
    "creatorUserEmail": "auth0|fwfjwefkewkfjiewfkewj",
    "status": null,
    "providerProperties": null,
    "reservedSize": null,
    "clusterProperties": null,
    "ontapClusterProperties": {
        "nodes": [
            {
                "name": "xxxxxxxxxxxxx-01",
                "lifs": [
                    {
                        "ip": "xxxxxxxxxxxxx",
                        "netmask": "255.255.255.255",
                        "lifType": "Intercluster",
                        "dataProtocols": [],
                        "nodeName": "xxxxxxxxxxxxx-01",
                        "privateIp": true
                    },
                    {
                        "ip": "xxxxxxxxxxxxx",
                        "netmask": "255.255.255.255",
                        "lifType": "Cluster Management",
                        "dataProtocols": [],
                        "nodeName": "xxxxxxxxxxxxx-01",
                        "privateIp": true
                    },
                    {
                        "ip": "xxxxxxxxxxxxx",
                        "netmask": "255.255.255.255",
                        "lifType": "Data",
                        "dataProtocols": [
                            "nfs",
                            "cifs"
                        ],
                        "nodeName": "xxxxxxxxxxxxx-01",
                        "privateIp": true
                    },
                    {
                        "ip": "xxxxxxxxxxxxx",
                        "netmask": "255.255.255.255",
                        "lifType": "Data",
                        "dataProtocols": [
                            "iscsi"
                        ],
                        "nodeName": "xxxxxxxxxxxxx-01",
                        "privateIp": true
                    },
                    {
                        "ip": "xxxxxxxxxxxxx",
                        "netmask": "255.255.255.255",
                        "lifType": "SVM Management",
                        "dataProtocols": [],
                        "nodeName": "xxxxxxxxxxxxx-01",
                        "privateIp": true
                    }
                ],
                "serialNumber": "xxxxxxxxxxxxx",
                "systemId": "xxxxxxxxxxxxx",
                "platformLicense": null,
                "platformSerialNumber": null,
                "cloudProviderId": "",
                "healthy": true,
                "inTakeover": false
            }
        ],
        "clusterName": "xxxxxxxxxxxxx",
        "clusterUuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "ontapVersion": "9.11.1RC1",
        "systemManagerUrl": "https://xxxxxxxxxxxxx/sysmgr/SysMgr.html",
        "creationTime": 1655958859671,
        "licenseType": {
            "name": "Cloud Volumes ONTAP Capacity Based Charging",
            "capacityLimit": {
                "size": 2000.0,
                "unit": "TB"
            }
        },
        "licensePackageName": "Essential",
        "isKeystoneSubscription": false,
        "lastModifiedOffbox": null,
        "offboxTarget": false,
        "upgradeVersions": null,
        "writingSpeedState": "NORMAL",
        "broadcastDomainInfos": [
            {
                "broadcastDomain": "Cluster",
                "ipSpace": "Cluster",
                "mtu": 9000
            },
            {
                "broadcastDomain": "Default",
                "ipSpace": "Default",
                "mtu": 1460
            }
        ],
        "evaluation": false,
        "capacityTierInfo": null,
        "canConfigureCapacityTier": false,
        "usedCapacity": {
            "size": 0.06346679687430878,
            "unit": "TB"
        },
        "userName": "admin",
        "wormEnabled": false,
        "isSpaceReportingLogical": true,
        "vscanFileOperationDefaultProfile": "standard",
        "aggregateCount": 1,
        "volumeCount": 72
    },
    "cloudProviderName": "GCP",
    "snapshotPolicies": null,
    "actionsRequired": null,
    "activeActions": null,
    "replicationProperties": null,
    "schedules": null,
    "svms": null,
    "workingEnvironmentType": "VSA",
    "supportRegistrationProperties": null,
    "supportRegistrationInformation": [],
    "capacityFeatures": null,
    "encryptionProperties": null,
    "supportedFeatures": null,
    "isHA": false,
    "haProperties": null,
    "fpolicyProperties": null,
    "saasProperties": null,
    "cbsProperties": null,
    "complianceProperties": null,
    "monitoringProperties": null,
    "licensesInformation": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant