Introspection fails in OVB, bmc error: openstackbmc: struct.error: unpack requires a string argument of length 2

Bug #1883913 reported by Sagi (Sergey) Shnaidman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Introspection fails on OVB jobs on master and ussuri.

Example from vexxhost:
In vexxhost there is error in BMC host:
https://logserver.rdoproject.org/28/735428/4/openstack-check/tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001-vexxhost/5a864cc/logs/bmc_4_26064-console.log

Traceback (most recent call last):
[17870.604483] openstackbmc[26746]: File "/usr/local/bin/openstackbmc", line 335, in <module>
[17870.608469] openstackbmc[26746]: main()
[17870.610479] openstackbmc[26746]: File "/usr/local/bin/openstackbmc", line 331, in main
[17870.614361] openstackbmc[26746]: mybmc.listen()
[17870.616601] openstackbmc[26746]: File "/usr/lib/python2.7/site-packages/pyghmi/ipmi/bmc.py", line 153, in listen
[17870.620767] openstackbmc[26746]: ipmisession.Session.wait_for_rsp(timeout)
[17870.624028] openstackbmc[26746]: File "/usr/lib/python2.7/site-packages/pyghmi/ipmi/private/session.py", line 1103, in wait_for_rsp
[17870.628784] openstackbmc[26746]: relsession.process_pktqueue()
[17870.631241] openstackbmc[26746]: File "/usr/lib/python2.7/site-packages/pyghmi/ipmi/private/serversession.py", line 290, in process_pktqueue
[17870.636857] openstackbmc[26746]: self.sessionless_data(pkt[0], pkt[1])
[17870.639367] openstackbmc[26746]: File "/usr/lib/python2.7/site-packages/pyghmi/ipmi/private/serversession.py", line 316, in sessionless_data
[17870.643599] openstackbmc[26746]: myaddr, netfnlun = struct.unpack('2B', bytes(data[14:16]))
[17870.646737] openstackbmc[26746]: struct.error: unpack requires a string argument of length 2

Ironic failures: https://logserver.rdoproject.org/28/735428/4/openstack-check/tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001-vexxhost/5a864cc/logs/undercloud/var/log/containers/ironic/ironic-conductor.log.txt.gz

2020-06-17 09:46:37.522 7 WARNING ironic.drivers.modules.ipmitool [req-b0e48544-0133-496b-a59f-125435f89200 - - - - -] IPMI Error encountered, retrying "ipmitool -I lanplus -H 192.168.101.154 -L ADMINISTRATOR -U admin -R 1 -N 1 -f /tmp/tmpfonl9rmo power status" for node 5130f8a7-64b1-4d38-99c4-c76e36c79ba5. Error: Unexpected error while running command.
Command: ipmitool -I lanplus -H 192.168.101.154 -L ADMINISTRATOR -U admin -R 1 -N 1 -f /tmp/tmpfonl9rmo power status
Exit code: 1
Stdout: ''
Stderr: 'Unable to Get Channel Cipher Suites\nError: Received an Unexpected Open Session Response\nError: Unable to establish IPMI v2 / RMCP+ session\n': oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.

On RDO cloud BMC looks OK: https://logserver.rdoproject.org/10/735810/1/openstack-check/tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001/0293b60/logs/bmc_1_21919-console.log

Seen only a few errors: https://logserver.rdoproject.org/10/735810/1/openstack-check/tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001/0293b60/logs/undercloud/var/log/containers/ironic/ironic-conductor.log.txt.gz
2020-06-17 11:04:58.451 7 WARNING ironic.drivers.modules.ipmitool [req-94360948-7da6-48d8-89f5-31124168bbe1 - - - - -] IPMI Error encountered, retrying "ipmitool -I lanplus -H 192.168.100.184 -L ADMINISTRATOR -U admin -R 1 -N 1 -f /tmp/tmp8ayrxbxg power status" for node 76339813-4fb9-4df4-94b0-6d9d27ba3fb6. Error: Unexpected error while running command.
Command: ipmitool -I lanplus -H 192.168.100.184 -L ADMINISTRATOR -U admin -R 1 -N 1 -f /tmp/tmp8ayrxbxg power status
Exit code: 1
Stdout: ''
Stderr: 'Unable to Get Channel Cipher Suites\nUnable to get Chassis Power Status\n': oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.

But still introspection fails: https://logserver.rdoproject.org/10/735810/1/openstack-check/tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001/0293b60/logs/undercloud/home/zuul/overcloud_introspect.log.txt.gz

2020-06-17 07:54:41 | 2020-06-17 07:54:41.893375 | fa163e6e-e390-580b-6896-00000000000c | FATAL | Notice | localhost | error={"changed": false, "msg": "No nodes are manageable at this time."}

Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

BMC on rdo cloud:
Centos 7, python 2.7.5
pyghmi==1.2.16

BMC on vexxhost:
Centos 7, python 2.7.5
pyghmi==1.0.18

Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :
Download full text (4.0 KiB)

Full list of python packages and versions on rdo cloud and vexxhost:

RDO cloud BMC:

anyjson==0.3.3
appdirs==1.4.0
asn1crypto==0.23.0
Babel==2.3.4
backports.ssl-match-hostname==3.5.0.1
cffi==1.11.2
chardet==2.2.1
cliff==2.11.1
cloud-init==0.7.9
cmd2==0.6.8
configobj==4.7.2
cryptography==2.1.4
debtcollector==1.19.0
decorator==3.4.0
deprecation==1.0
dogpile.cache==0.6.2
dogpile.core==0.4.1
enum34==1.0.4
eventlet==0.20.1
extras==1.0.0
fasteners==0.14.1
fixtures==3.0.0
funcsigs==1.0.2
futures==3.1.1
greenlet==0.4.12
idna==2.5
iniparse==0.4
ipaddress==1.0.16
IPy==0.75
iso8601==0.1.11
Jinja2==2.7.2
jmespath==0.9.0
jsonpatch==1.2
jsonpointer==1.9
jsonschema==2.6.0
keyring==5.7.1
keystoneauth1==3.4.0
kitchen==1.1.1
linecache2==1.0.0
MarkupSafe==0.11
monotonic==0.6
msgpack-python==0.4.6
munch==2.2.0
netaddr==0.7.19
netifaces==0.10.4
openstacksdk==0.11.3
os-client-config==1.29.0
os-net-config==8.4.3
os-service-types==1.1.0
osc-lib==1.9.0
oslo.concurrency==3.25.1
oslo.config==5.2.0
oslo.i18n==3.19.0
oslo.serialization==2.24.0
oslo.utils==3.35.1
pbr==3.1.1
perf==0.1
ply==3.4
policycoreutils-default-encoding==0.1
prettytable==0.7.2
pycparser==2.14
pycrypto==2.6.1
pycurl==7.19.0
pyghmi==1.2.16
pygobject==3.22.0
pygpgme==0.3
pyliblzma==0.5.3
pyOpenSSL==17.3.0
pyparsing==2.1.10
pyserial==2.6
PySocks==1.5.6
python-cinderclient==3.5.0
python-glanceclient==2.10.0
python-keystoneclient==3.15.0
python-linux-procfs==0.4.9
python-mimeparse==0.1.4
python-neutronclient==6.7.0
python-novaclient==10.1.0
python-openstackclient==3.14.2
pytz==2016.10
pyudev==0.15
pyxattr==0.5.1
PyYAML==3.10
repoze.lru==0.4
requests==2.14.2
requestsexceptions==1.4.0
rfc3986==0.3.1
schedutils==0.4
seobject==0.1
sepolicy==1.1
simplejson==3.5.3
six==1.10.0
stevedore==1.28.0
testtools==1.8.0
traceback2==1.4.0
unicodecsv==0.14.1
unittest2==1.0.1
urlgrabber==3.10
urllib3==1.21.1
warlock==1.0.1
wrapt==1.10.8
yum-metadata-parser==1.1.4

Vexxhost BMC:

anyjson==0.3.3
appdirs==1.4.0
asn1crypto==0.24.0
Babel==2.6.0
backports.ssl-match-hostname==3.5.0.1
Beaker==1.5.4
boto==2.45.0
cffi==1.11.2
chardet==3.0.4
Cheetah==2.4.4
cliff==2.14.1
cloud-init==18.5
cmd2==0.8.8
configobj==4.7.2
contextlib2==0.5.5
cryptography==2.5
debtcollector==1.21.0
decorator==3.4.0
dnspython==1.15.0
dogpile.cache==0.6.8
enum34==1.0.4
eventlet==0.24.1
extras==1.0.0
fasteners==0.14.1
fixtures==3.0.0
funcsigs==1.0.2
futures==3.1.1
greenlet==0.4.12
idna==2.5
iniparse==0.4
ipaddress==1.0.18
IPy==0.75
iso8601==0.1.11
Jinja2==2.10
jmespath==0.9.0
jsonpatch==1.21
jsonpointer==1.10
jsonschema==2.6.0
keyring==5.7.1
keystoneauth1==3.13.1
kitchen==1.1.1
linecache2==1.0.0
Mako==0.8.1
Markdown==2.4.1
MarkupSafe==1.1.0
monotonic==1.5
msgpack==0.6.1
munch==2.2.0
netaddr==0.7.19
netifaces==0.10.4
olefile==0.46
openstacksdk==0.27.0
os-client-config==1.32.0
os-net-config==10.4.1
os-service-types==1.6.0
osc-lib==1.12.1
oslo.concurrency==3.29.1
oslo.config==6.8.1
oslo.context==2.22.1
oslo.i18n==3.23.1
oslo.log==3.42.3
oslo.serialization==2.28.2
oslo.utils==3.40.3
Paste==1.7.5.1
pbr==5.1.2
perf==0.1
Pillow==5.4.1
ply==3.4
policycoreutils-default-encoding==0.1
positional==1.1.1
posix-ipc==0.9.8
prettytable==0.7.2
pyasn1==0.3.7
pycparser==2.14
pycry...

Read more...

Changed in tripleo:
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.