Juniper / py-junos-netconify

Junos console/bootstrap automation Python module
Apache License 2.0
67 stars 30 forks source link

Netconify: Error is missing in log incase junos_install_console fails. #20

Closed mamathac closed 9 years ago

mamathac commented 10 years ago

Device : albert (srx5600) Ansible Module: Junos_install_config

Desciption: Try a failure case where error is expected. The console port and termser for alebert is bngsquid11-7026 I change the console port to any other port.

YAML code has;

       console="--telnet=bngsquid25-7022.englab.juniper.net,7022" >>> WHICH IS INCORRECT.

Albert is in amnesiac state:

[mamathac@ttbg-shell01 ~]$ t albert-con
Trying 10.209.32.26...
Connected to albert-con.
Escape character is '^]'.

There is no hot key to close the connection.
Amnesiac (ttyd0)
login: 

Executing YAML Code:

failed: [albert] => {"failed": true, "parsed": false}
invalid output was: ERROR: bad_passwd

FATAL: all hosts have already failed -- aborting

But the log file has only logging in message, no error is captured in log;

2014-06-02 14:10:14,213:NETCONIFY:albert:login:connecting to TTY:bngsquid25-7022.englab.juniper.net:7022 ... 2014-06-02 14:10:14,222:NETCONIFY:albert:login:logging in ...

jeremyschulman commented 10 years ago

Issue here is that there is not enough log information since the last log is shown above. So we need to add more/better logging during this module process.