fail to backup HP switches
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rancid (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ LANG=C lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ LANG=C apt-cache policy rancid
rancid:
Installed: 3.3.0-1
Candidate: 3.3.0-1
Version table:
*** 3.3.0-1 500
500 http://
100 /var/lib/
The backup of switches HP are based on the hlogin and hrancid scripts. The hlogin expect plugin fails to launch commands in the HP switch. It only sends the "no page" command (line 552 of hlogin script), it waits in the expect sentence until the timeout is reached.
This has been already solved in the upstream 3.5.1 version. According to the Changelog of the project several bug/improvements have been applied to hlogin script since the 3.3.0 version:
3.5.0: hlogin: when refactoring prompt, eat full lines before looking for the
prompt
3.5.1: hlogin: missed an ssh -c option among the clean-up - Mark Felder
I can confirm that by replacing the hlogin script provided by the package with the hlogin of version 3.5.1, the backup of HP switches works again.
Regards,
Christian
The attachment "diff between the hlogin provided by the package and the hlogin provided by rancid 3.5.1" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]