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

aoscx_facts not returning proper information #76

Closed
aaronfs07 opened this issue Jun 29, 2023 · 5 comments
Closed

aoscx_facts not returning proper information #76

aaronfs07 opened this issue Jun 29, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@aaronfs07
Copy link

aaronfs07 commented Jun 29, 2023

Playbook

    - name: Collect facts from switches
      aoscx_facts:
        gather_subset:
          - host_name
          - product_info
          - software_images
      async: 10800
      poll: 30

Results Returned

ok: [IDF-02] => {
    "ansible_facts": {
        "ansible_net_gather_network_resources": null,
        "ansible_net_gather_subset": [
            "host_name",
            "product_info",
            "software_images",
            "management_interface",
            "software_version"
        ],
        "ansible_net_product_info": {
            "chassis,1": {
                "base_mac_address": "XXXXXX",
                "device_version": "1",
                "instance": "1",
                "number_of_macs": "64",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XX",
                "vendor": "Aruba"
            },
            "chassis,2": {
                "base_mac_address": "XX0",
                "device_version": "1",
                "instance": "1",
                "number_of_macs": "64",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXXX",
                "vendor": "Aruba"
            },
            "chassis,3": {
                "base_mac_address": "XXXX",
                "device_version": "1",
                "instance": "1",
                "number_of_macs": "64",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXXX",
                "vendor": "Aruba"
            },
            "chassis,4": {
                "base_mac_address": "XXXX",
                "device_version": "1",
                "instance": "1",
                "number_of_macs": "64",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXXXX",
                "vendor": "Aruba"
            },
            "chassis,5": {
                "base_mac_address": "XXX",
                "device_version": "1",
                "instance": "1",
                "number_of_macs": "64",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXXX",
                "vendor": "Aruba"
            },
            "chassis,6": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "6",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "chassis,7": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "7",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "chassis,8": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "8",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "line_card,1/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "",
                "instance": "1",
                "interface_count": "52",
                "max_transmission_unit": "9198",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXXX",
                "vendor": "Aruba"
            },
            "line_card,2/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "",
                "instance": "2",
                "interface_count": "52",
                "max_transmission_unit": "9198",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "line_card,3/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "",
                "instance": "3",
                "interface_count": "52",
                "max_transmission_unit": "9198",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "line_card,4/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "",
                "instance": "4",
                "interface_count": "52",
                "max_transmission_unit": "9198",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXXX",
                "vendor": "Aruba"
            },
            "line_card,5/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "",
                "instance": "5",
                "interface_count": "52",
                "max_transmission_unit": "9198",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "line_card,6/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "6",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "line_card,7/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "7",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "line_card,8/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "8",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "management_module,1/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "1",
                "instance": "1",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "management_module,2/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "1",
                "instance": "2",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "management_module,3/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "1",
                "instance": "3",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "management_module,4/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "1",
                "instance": "4",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": "XXX",
                "vendor": "Aruba"
            },
            "management_module,5/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "device_version": "1",
                "instance": "5",
                "number_of_macs": "0",
                "part_number": "JL728A",
                "product_description": "6200F 48G Class4 PoE 4SFP+ 740W Switch",
                "product_name": "6200F 48G CL4 4SFP+740W Swch",
                "serial_number": XXXX",
                "vendor": "Aruba"
            },
            "management_module,6/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "6",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "management_module,7/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "7",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            },
            "management_module,8/1": {
                "base_mac_address": "00:00:00:00:00:00",
                "instance": "8",
                "number_of_macs": "0",
                "part_number": "",
                "product_description": "",
                "product_name": "",
                "serial_number": "",
                "vendor": ""
            }
        },
        "ansible_network_resources": {}
    },
    "changed": false,
    "invocation": {
        "module_args": {
            "gather_network_resources": null,
            "gather_subset": [
                "host_name",
                "product_info",
                "software_images",
                "management_interface",
                "software_version"
            ]
        }
    }
}

Expected Result

I expect to see software_version and software_images. This exact playbook worked before the upgrade to 4.2.1 -- when attempting to downgrade back to the previous versions I received a CRLF error that was unrecoverable.

@tchiapuziowong tchiapuziowong self-assigned this Jul 5, 2023
@tchiapuziowong tchiapuziowong added the bug Something isn't working label Jul 5, 2023
@tchiapuziowong
Copy link
Member

Thank you for bringing this to our attention! I've brought this up with engineering and will be updating this issue when a fix has been published. Thank you for your patience!

@tchiapuziowong
Copy link
Member

@aaronfs07 Can you provide the error when you attempt to downgrade? You may way to downgrade both PYAOSCX and the ansible collection just in case:
ansible-galaxy collection install arubanetworks.aoscx:4.2.0 -f
pip install pyaoscx==v2.4.0

@aaronfs07
Copy link
Author

@tchiapuziowong It works perfectly when downgraded. Thank you!

Please let me know when safe to upgrade again!

@jon-larsen
Copy link

I just want to add that subset "platform_name" is not giving any output either.

@tchiapuziowong
Copy link
Member

thank you @jon-larsen I'll bring this up internally as well!

kchavesr pushed a commit that referenced this issue Sep 7, 2023
Module aoscx_facts is not returning proper information: software
version, software images, management interface and others are not
seen.

This commit fixes the issue and missing information is displayed as
required.

AOSANSI-268615

Issue #76

(cherry picked from commit 5a57cf2b86759c4c2ebbe9abe089afd64a3be70f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants