Your message dated Fri, 24 Aug 2018 10:06:54 +0200
with message-id <20180824080654.5artc4owgllly...@dinghy.sail.spinnaker.de>
has caused the   report #907035,
regarding rancid: problems with smc (dell powerconnect) since upgrade from 3.7 
to 3.8
to be marked as having been forwarded to the upstream software
author(s) ran...@shrubbery.net

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
907035: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907035
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Hi rancid developers!

As the maintainer of the Debian package of rancid I received the
following bug report.

Tracking down the issue the bug submitter found out, that the issue is
triggered by power supply mangling code in srancid, which was
introduced by SVN commit r3741 in rancid 3.8, which seems to stumble
on the output of the M8024-k switch (see below).

It would be great, if you could fix this.
You can find the full conversation about this ticket at
https://bugs.debian.org/907035

Greetings
Roland

----- Forwarded message from Thomas vO <thoma...@grenoble-inp.fr> -----

From: Thomas vO <thoma...@grenoble-inp.fr>
Subject: Bug#907035: rancid: problems with smc (dell powerconnect) since 
upgrade from 3.7 to 3.8
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Date: Thu, 23 Aug 2018 11:34:50 +0200
Reply-To: Thomas vO <thoma...@grenoble-inp.fr>, 907...@bugs.debian.org
X-Mailer: reportbug 7.1.7

Package: rancid
Version: 3.8-1~bpo9+1
Severity: important

Dear Maintainer,

I get an error on saving the configuration of a PowerConnect M8024-k switch
with rancid since the upgrade from 3.7-2~bpo9+1 to 3.8-1~bpo9+1. I read the
changelogs and news and did not find any relevant information to fix my
problem.

   * What led up to the situation?

I did an upgrade:

> 2018-08-22 08:36:54 upgrade rancid:amd64 3.7-2~bpo9+1 3.8-1~bpo9+1

and get the configuration save from my powerconnect switch not working with
this error:

> swe2-stack2.mgmt.ensimag.fr: missed cmd(s): show version, dir, show vlan
> swe2-stack2.mgmt.ensimag.fr: End of run not found

and the report email says:

> The following routers have not been successfully contacted for
> more than 24 hours.
> -rw-r----- 1 rancid rancid 31076 août  22 07:55 swe2-stack2.mgmt.ensimag.fr

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?

- login with clogin and manually run the commands (show version, dir, show
  vlan) works
- test with srancid doesn't work:
> executing hlogin -t 90 -c"terminal datadump;show system;show version;dir;show 
> vlan;show running-config" swe2-stack2.mgmt.ensimag.fr
> PROMPT MATCH: swe2-stack2#
> HIT COMMAND:swe2-stack2#terminal datadump
>     In RunCommand: swe2-stack2#terminal datadump
> HIT COMMAND:swe2-stack2#show system
>     In ShowSys: swe2-stack2#show system
> swe2-stack2.mgmt.ensimag.fr: missed cmd(s): show version, dir, show vlan
> swe2-stack2.mgmt.ensimag.fr: End of run not found
> swe2-stack2.mgmt.ensimag.fr: found_end is false
> ! !
- the command 'terminal datadump' doesn't work when logged on the switch
  ('terminal length 0' works) but every other commands works

   * What outcome did you expect instead?

As usual, I expect to get a backup of my switch config.

[...]
Thanks,

--
Thomas vO

----- End forwarded message -----

----- Forwarded message from Thomas vO <thoma...@grenoble-inp.fr> -----

From: Thomas vO <thoma...@grenoble-inp.fr>
Subject: Re: Bug#907035: rancid: problems with smc (dell powerconnect) since 
upgrade from 3.7 to 3.8
To: Roland Rosenfeld <rol...@debian.org>, 907...@bugs.debian.org
Date: Thu, 23 Aug 2018 15:21:56 +0200

Hello,

Le jeudi 23 août 2018 à 14:32:00 (+0200), Roland Rosenfeld a écrit :
> Thank you for your bug report.

You're welcome, thanks for your quick answer.

> > I get an error on saving the configuration of a PowerConnect M8024-k
> > switch with rancid since the upgrade from 3.7-2~bpo9+1 to
> > 3.8-1~bpo9+1. I read the changelogs and news and did not find any
> > relevant information to fix my problem.
>
> To say the truth, I don't see what exactly causes your problem.  I
> also do not see, what code change could have triggered your problem,
> since hlogin wasn't touched at all between 3.7 and 3.8 and srancid has
> only one little change to optimize power consumption display.

That's what I thought reading the changelogs, but:

> Maybe you could try to patch srancid and undo this change:
>
> +       # filter power rates and tmestamps from 7024 power supply info
> +       # Power Supplies:
> +       #
> +       # Unit  Description    Status     Average     Current          Since
> +       #                                  Power       Power         Date/Time
> +       #                                 (Watts)     (Watts)
> +       # ----  -----------  -----------  ----------  --------  
> -------------------
> +       # 1     System       OK            1.4        65.2
> +       # 1     Internal     OK           N/A         N/A       10/05/2017 
> 20:18:35
> +       if (/power supplies/i) {
> +           ProcessHistory("COMMENTS","keysort","C1",
> +               "! Unit\tDescription\tStatus\n");
> +           ProcessHistory("COMMENTS","keysort","C1",
> +               "! ----\t-----------\t------\n");
> +           while (<INPUT>) {
> +               s/^\s+\015//g;
> +               tr/\015//d;
> +               /^(unit\s|--+\s|\s)/i && next;
> +               if (/(\d+)\s+(\w+)\s+(\w+(\s\w+)?)\s/) {
> +                   if (length($2) >= 8) {
> +                       ProcessHistory("COMMENTS","keysort","C1","! 
> $1\t$2\t$3\n");
> +                   } else {
> +                       ProcessHistory("COMMENTS","keysort","C1","! 
> $1\t$2\t\t$3\n");
> +                   }
> +               }
> +               /^\s*$/ && last;
> +           }
> +       }

Commenting this code block solves the issue, thanks for the hint. I
guess this piece of code has not been tested with PowerConnect M8024-k
(Dell Chassis M1000-e) because what I get about power supply is this:

> Power Supplies:
>
> Unit  Description    Status
>
> ----  -----------  -----------
> NA        NA            NA
> NA        NA            NA
> NA        NA            NA

so some of the regexps won't work, and I cannot find which ones… Do you
have some kind of access to upstream to tell them, or should I tell them
myself?

Thanks a lot,

-- 
Thomas vO


----- End forwarded message -----

--- End Message ---

Reply via email to