brocade / ansible

55 stars 33 forks source link

Can't set in-order-delivery #145

Open mgoetze5 opened 7 months ago

mgoetze5 commented 7 months ago

Like in the examples I tried to set

- name: Set fabric parameters
  brocade.fos.brocade_fibrechannel_configuration_fabric:
    credential: "{{credential}}"
    vfid: -1
    fabric:
      insistent_domain_id_enabled: True
      in_order_delivery_enabled: False

on a disabled G720 running FOS 9.1.1c. I got the following error:

{
  "changed": true,
  "POST_url": "https://********/rest/logout",
  "GET_url": "https://********/rest/running/brocade-fibrechannel-configuration/fabric",
  "ssh_hostkeymust": true,
  "diff_attributes": {
    "insistent-domain-id-enabled": "true",
    "in-order-delivery-enabled": "false"
  },
  "current_attributes": {
    "insistent_domain_id_enabled": false,
    "principal_selection_enabled": false,
    "preserved_domain_id_mode_enabled": true,
    "fabric_principal_enabled": false,
    "fabric_principal_priority": ""
  },
  "new_attributes": {
    "insistent_domain_id_enabled": true,
    "in_order_delivery_enabled": false
  },
  "msg": "Failed to reset IOD. skiiping due to errorServer '********' not found in known_hosts",
  "url": "https://********/rest/running/brocade-fibrechannel-configuration/fabric",
  "diff_str": "<fabric>\n<insistent-domain-id-enabled>true</insistent-domain-id-enabled>\n</fabric>\n",
  "PATCH_url": "https://********/rest/running/brocade-fibrechannel-configuration/fabric",
  "patch_resp_data": "",
  "invocation": {
    "module_args": {
      "credential": {
        "fos_ip_addr": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
        "fos_user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
        "fos_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
        "https": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
      },
      "vfid": -1,
      "fabric": {
        "insistent_domain_id_enabled": true,
        "in_order_delivery_enabled": false
      },
      "throttle": null,
      "timeout": null
    }
  },
  "_ansible_no_log": false
}
prasad-valmeti-broadcom commented 4 months ago

It seems the host entry is missing in the known_hosts. If you can try the following, it should work: Adding to known hosts without any questions: ssh-keyscan >> ~/.ssh/known_hosts With your consent adding host to known_hosts: ssh

Please let us know if it helps. Since this module is taking "ssh_hostkeymust": true, it is expecting it in known_hosts. If you don't want do add it to known_hosts, workaround is edit the module brocade_fibrechannel_configuration_fabric.py and remove the line ssh_hostkeymust = True in that.

Please share your testing results with us.

prasad-valmeti-broadcom commented 2 months ago

Please let us know if it resolves the issue. If there are no further issues, please let us know if we can close the issue.