Skip to content

GUI - SNMP Failed in finding collector nodes #195

Open
@olemyk

Description

@olemyk

Looks like we have some logic that is not working anymore when enabling SNMP

scale_gui_snmp_notification: true


TASK [ibm-spectrum-scale-install-infra/roles/gui/cluster : SNMP | Find collector nodes] ******************************************************************************************************************************************************
task path: /Users/olemyk/IdeaProjects/ansible-sandbox/roles/ibm-spectrum-scale-install-infra/roles/gui/cluster/tasks/snmp.yml:11
creating host via 'add_host': hostname=scale-dev-01
ok: [scale-dev-01] => (item=scale-dev-01) => {"add_host": {"groups": ["scale_gui_collectors"], "host_name": "scale-dev-01", "host_vars": {}}, "ansible_loop_var": "item", "changed": false, "item": "scale-dev-01"}
creating host via 'add_host': hostname=scale-dev-02
ok: [scale-dev-01] => (item=scale-dev-02) => {"add_host": {"groups": ["scale_gui_collectors"], "host_name": "scale-dev-02", "host_vars": {}}, "ansible_loop_var": "item", "changed": false, "item": "scale-dev-02"}
fatal: [scale-dev-01]: FAILED! => {"msg": "The conditional check 'hostvars[item].scale_cluster_gui | bool' failed. The error was: error while evaluating conditional (hostvars[item].scale_cluster_gui | bool): 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'scale_cluster_gui'\n\nThe error appears to be in '/Users/olemyk/IdeaProjects/ansible-sandbox/roles/ibm-spectrum-scale-install-infra/roles/gui/cluster/tasks/snmp.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SNMP | Find collector nodes\n  ^ here\n"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: GUIType: bugIndicates issue is an undesired behavior, usually caused by code error.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions