-
Notifications
You must be signed in to change notification settings - Fork 43
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
ucs_vnic_template: setup error: 'NoneType' object has no attribute 'status' #113
Comments
Noting...is the related to my my_vlans list?
|
I believe you answered your own question, the 'id' is not a valid property.
|
But can I not provide a list/dictionary as the vlans_list that happens to contain more properties than required? I'm trying to be lazy and consistent by using a single variable to create the vlans as well as assign the exact same list to the vnic template. |
Here's how I do this. Don't know if it helps. host_varsdemo_lan_conn:
play.yaml
|
Attempting to add vlans to a VNIC template.
Results in "setup error: 'NoneType' object has no attribute 'status'" error.
`
ucs_vnic_template:
hostname: "{{ inventory_hostname }}"
username: "{{ ucs_username }}"
password: "{{ ucs_password }}"
org_dn: "{{ ucs_org_dn }}"
name: vm-network-a
vlans_list: "{{ my_vlans}}"
`
Here's a snippet from the execution of the play:
`
Using module file /usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_vnic_template.py
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File "/tmp/ansible_ucs_vnic_template_payload_CV5HWj/main.py", line 354, in main
ucs.login_handle.remove_mo(mo_1)
File "/usr/lib/python2.7/site-packages/ucsmsdk/ucshandle.py", line 696, in remove_mo
mo.status = "deleted"
fatal: [ucsm.hostname.com]: FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"invocation": {
"module_args": {
"cdn_name": "",
"cdn_source": "vnic-name",
"description": "",
"fabric": "A",
"hostname": "ucsm.hostname.com",
"mac_pool": "",
"mtu": "1500",
"name": "vm-network-a",
"network_control_policy": "",
"org_dn": "org-root/org-MyCluster",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"peer_redundancy_template": "",
"pin_group": "",
"port": null,
"proxy": null,
"qos_policy": "",
"redundancy_type": "none",
"state": "present",
"stats_policy": "default",
"target": "adaptor",
"template_type": "initial-template",
"use_proxy": true,
"use_ssl": true,
"username": "admin",
"vlans_list": [
{
"id": "99",
"name": "VLAN0099-My-VLAN",
"native": "no",
"state": "present"
}
]
}
},
"msg": "setup error: 'NoneType' object has no attribute 'status' "
}
`
The text was updated successfully, but these errors were encountered: