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

junos_user with purge option enabled fails #25989

Closed
ganeshrn opened this issue Jun 22, 2017 · 2 comments · Fixed by #28867
Closed

junos_user with purge option enabled fails #25989

ganeshrn opened this issue Jun 22, 2017 · 2 comments · Fixed by #28867
Assignees
Labels
affects_2.3 This issue/PR affects Ansible v2.3 bug This issue/PR relates to a bug. module This issue/PR relates to a module. networking Network category P2 Priority 2 - Issue Blocks Release support:network This issue/PR relates to code supported by the Ansible Network Team.
Milestone

Comments

@ganeshrn
Copy link
Member

ISSUE TYPE
  • Bug Report
COMPONENT NAME

junos_user

ANSIBLE VERSION
2.3
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
      junos_user:
        name: user
        purge: yes
EXPECTED RESULTS

It should delete all the login users configured on the device except the user mentioned in playbook ie. logged-in user.

ACTUAL RESULTS

Fails with error

fatal: [vsrx01]: FAILED! => {
    "changed": false,
    "err": "[Errno 2] No such file or directory",
    "failed": true,
    "invocation": {
        "module_args": {
            "full_name": null,
            "host": null,
            "name": "ansible",
            "password": null,
            "port": null,
            "provider": {
                "host": "vsrx",
                "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "port": null,
                "ssh_keyfile": null,
                "timeout": null,
                "transport": null,
                "username": "ansible"
            },
            "purge": true,
            "role": "unauthorized",
            "ssh_keyfile": null,
            "sshkey": null,
            "state": "present",
            "timeout": 10,
            "transport": null,
            "username": null,
            "users": null
        }
    },
    "msg": "unable to connect to socket"
}
@ansibot
Copy link
Contributor

ansibot commented Jun 22, 2017

@ansibot ansibot added affects_2.3 This issue/PR affects Ansible v2.3 bug_report module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category labels Jun 22, 2017
@ganeshrn ganeshrn removed the needs_triage Needs a first human triage before being processed. label Jun 22, 2017
@ansibot ansibot added the support:core This issue/PR relates to code supported by the Ansible Engineering Team. label Jun 29, 2017
@ansibot
Copy link
Contributor

ansibot commented Jul 18, 2017

@calfonso calfonso added this to the 2.4.0 milestone Jul 21, 2017
@calfonso calfonso added the P2 Priority 2 - Issue Blocks Release label Aug 4, 2017
@ansibot ansibot added support:network This issue/PR relates to code supported by the Ansible Network Team. and removed support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Aug 16, 2017
ganeshrn added a commit to ganeshrn/ansible that referenced this issue Aug 31, 2017
Fixes ansible#25989

Add seperate handling for purge option which
fetches configured users on remote device
and delete the one not present in aggregate
list.
ganeshrn added a commit that referenced this issue Aug 31, 2017
* Fix junos_user pruge option failures

Fixes #25989

Add seperate handling for purge option which
fetches configured users on remote device
and delete the one not present in aggregate
list.

* Minor changes
prasadkatti pushed a commit to prasadkatti/ansible that referenced this issue Oct 1, 2017
* Fix junos_user pruge option failures

Fixes ansible#25989

Add seperate handling for purge option which
fetches configured users on remote device
and delete the one not present in aggregate
list.

* Minor changes
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.3 This issue/PR affects Ansible v2.3 bug This issue/PR relates to a bug. module This issue/PR relates to a module. networking Network category P2 Priority 2 - Issue Blocks Release support:network This issue/PR relates to code supported by the Ansible Network Team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants