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

Can't set in-order-delivery #145

Open
mgoetze5 opened this issue Feb 13, 2024 · 2 comments
Open

Can't set in-order-delivery #145

mgoetze5 opened this issue Feb 13, 2024 · 2 comments

Comments

@mgoetze5
Copy link

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
Copy link
Collaborator

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
Copy link
Collaborator

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.

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

2 participants