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

Issue with junos_package -"You must provide either 'host' or 'sock_fd' value", #347

Closed
abailey8 opened this issue Nov 29, 2022 · 4 comments
Assignees
Labels
bug This issue/PR relates to a bug. needs_info This issue requires further information. Please answer any outstanding questions.

Comments

@abailey8
Copy link

I am unable to install junos software on an SRX 300. I am using ansible core 2.12.10 with version 4.0.0. of the junipernetworks.junos collection. The netconf service is enabled on the SRX and I have junos-eznc installed. Here is my playbook:

- hosts: juniper
  connection: local
  vars: 
    junos_bin: junos-srxsme-15.1X49-D170.4-domestic.tgz
    
  tasks:
    - name: Install Package On Remote Device
      junipernetworks.junos.junos_package: 
        src: /home/andrew/software/juniper/{{ junos_bin }}
        reboot: no

I get the following error:

"changed": false,
"module_stderr": "You must provide either 'host' or 'sock_fd' value",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"
@rohitthakur2590 rohitthakur2590 added the bug This issue/PR relates to a bug. label Nov 30, 2022
@susannehansson
Copy link

Hi,
I have the same issue with the latest ansible version with provider being deprecated.
It works with ansible 2.4.
When will this be fixed. Thanks for the reply.

@mactizzle
Copy link

I have a similar issue. Posted bug #608 under Juniper's GitHub

Has anyone found a workaround since it seems this issue has been open a couple months with no update?

@rohitthakur2590
Copy link
Collaborator

@abailey8 @susannehansson could you pleasetry with junos 5.0.0 release ?

@rohitthakur2590 rohitthakur2590 added the needs_info This issue requires further information. Please answer any outstanding questions. label Mar 28, 2023
@rohitthakur2590
Copy link
Collaborator

Please feel free to open new issue to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. needs_info This issue requires further information. Please answer any outstanding questions.
Projects
None yet
Development

No branches or pull requests

4 participants