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

brocade_security_security_certificate_action import cert fails #149

Open
pda79 opened this issue Mar 4, 2024 · 4 comments
Open

brocade_security_security_certificate_action import cert fails #149

pda79 opened this issue Mar 4, 2024 · 4 comments

Comments

@pda79
Copy link

pda79 commented Mar 4, 2024

brocade collection 1.3.3
dcx Fabric OS: v9.2.0a

when we try to use ansible collection for importing certs, the command an error "Chassis is not ready for management"

log_ansible.txt

the import works fine when we use rest api with the same parameter

@prasad-valmeti-broadcom
Copy link
Collaborator

Could you please share the playbook that you are using?
userserver_name/csrscpcerthttpscert_name.pemimport
Is this server_name is correct?
Is it reproducible always? or happening intermittently?

@pda79
Copy link
Author

pda79 commented May 13, 2024

Hi,
Here is the piece of code which return the error:

- name: "Certificat import"
  brocade.fos.brocade_security_security_certificate_action:
    credential: "{{credential}}"
    vfid: -1
    action_inputs: "{{action_inputs}}"
  vars:
    action_inputs:
      remote_user_name: user
      remote_host_ip: server_name
      remote_directory: /csr
      protocol: scp
      certificate_entity: cert
      certificate_type: https
      certificate_name: cert_name.pem
      operation: import

it is always reproductible and i have made test on 2 differents gen7 switch with the same fos version

@prasad-valmeti-broadcom
Copy link
Collaborator

I tried this with cert_install.yml playbook that is available in the collection. It is working fine in Ansible FOS 1.3.3 with 9.2 FOS release. Please replace your values in that playbook and run. If possible, the playbook output will help to analyze the issue properly.
ansible-playbook -i san-inventory cert_install.yml -vvvv

@pda79
Copy link
Author

pda79 commented Jul 23, 2024

I have made some other tests and i already have the issue.
here is the output of the result running the playbook with -vvvv
FOS v9.2.0a
brocade fos collection version 1.3.3

job_1277243.txt

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