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

RPC "get-system-core-dumps" with formats "text" only prints the first line of rpc-reply #616

Closed
chidanandpujar opened this issue May 5, 2023 · 4 comments
Assignees

Comments

@chidanandpujar
Copy link
Collaborator

Issue Type

  • Bug Report

Module Name

juniper.device.rpc

juniper.device collection and Python libraries version

junos-eznc 2.6.6

ansible-junos-stdlib v1.0.2-collections

OS / Environment

All-junos

Summary

RPC "get-system-core-dumps" prints with formats "text" only prints the first line of rpc-reply with formats "text"
<

Steps to reproduce

yml file


  • name: Router Upgrade
    hosts: all
    ignore_unreachable: true
    gather_facts: false
    vars:
    ansible_host_key_checking: false
    ansible_connection: local

    tasks:

    • name: Show system core dumps
      juniper.device.rpc:
      rpcs:
      - "get-system-core-dumps"
      formats:
      - "text"
      register: core_dumps

    • name: Print system alarm information
      debug:
      msg: "{{ core_dumps }}"

Run the playbook
ansible-playbook test_core.yml

Expected results

show system core-dumps
/var/crash/core: No such file or directory
/var/tmp/core: No such file or directory
/var/tmp/pics/core: No such file or directory
/var/crash/kernel.*: No such file or directory
/var/jails/rest-api/tmp/core: No such file or directory
/tftpboot/corefiles/core: No such file or directory

Actual results

ok: [test] => {
"msg": {
"attrs": null,
"changed": false,
"failed": false,
"format": "text",
"kwargs": null,
"msg": "The RPC executed successfully.",
"rpc": "get-system-core-dumps",
"stdout": "\n/var/crash/core: No such file or directory\n",
"stdout_lines": [
"",
"/var/crash/core: No such file or directory"
]
}
}

@chidanandpujar chidanandpujar self-assigned this May 5, 2023
@chidanandpujar chidanandpujar changed the title RPC "get-system-core-dumps" prints with formats "text" only prints the first line of rpc-reply with formats "text" RPC "get-system-core-dumps" with formats "text" only prints the first line of rpc-reply with formats "text" May 5, 2023
@chidanandpujar chidanandpujar changed the title RPC "get-system-core-dumps" with formats "text" only prints the first line of rpc-reply with formats "text" RPC "get-system-core-dumps" with formats "text" only prints the first line of rpc-reply May 5, 2023
@dineshbaburam91
Copy link
Collaborator

Junos Software bug. Internal PR raised for this issue.

@jnicholson56
Copy link

Junos Software bug. Internal PR raised for this issue.

Do you have a PR number that I can use to track this issue?

@dineshbaburam91
Copy link
Collaborator

@jnicholson56 PR 1789911

@dineshbaburam91
Copy link
Collaborator

Juniper ticket was opened for this issue. Could you track the Juniper PR?
Hence, I am closing this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants