From 9c32fb7aceb2f695d7b82c598102aa8e5db9548a Mon Sep 17 00:00:00 2001 From: luyf5 Date: Mon, 30 Aug 2021 13:57:20 +0800 Subject: [PATCH] IMMv1 "Unable To Process Request" message https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a6a4e1968e2b1df660947910e95e33450a520a36 (174389) [pyghmi] SAP Customer - IMMv1 "Unable To Process Request" message. Change-Id: Ib7b40c6bb95b7b873f68f694ce6a5e92162c4137 --- pyghmi/ipmi/command.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index acea5358..b06b9b8e 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -1923,15 +1923,11 @@ class Command(object): privilege_level='no_access') try: # First try to set name to all \x00 explicitly + # Fix bug-174389, don't try to send \xff command, + # will cause IMM1 can't login self.set_user_name(uid, '') - except exc.IpmiException as ie: - if ie.ipmicode != 0xcc: - raise - # An invalid data field in request is frequently reported. - # however another convention that exists is all '\xff' - # if this fails, pass up the error so that calling code knows - # that the deletion did not go as planned for now - self.set_user_name(uid, b'\xff' * 16) + except exc.IpmiException: + raise return True def disable_user(self, uid, mode):