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