Description of problem: According to the steps of configuration cinderlib host , it's impossible to install os-brick after installed gcc. Version-Release number of selected component (if applicable): ovirt-engine-tools-4.4.0-0.4.master.el7.noarch vdsm-4.40.0-127.gitc628cce.el8ev.x86_64 libvirt-client-5.0.0-12.module+el8.0.1+3755+6782b0ed.x86_64 qemu-guest-agent-2.12.0-3.el7.x86_64 qemu-kvm-3.1.0-30.module+el8.0.1+3755+6782b0ed.x86_64 How reproducible: 100% Steps to Reproduce: 1.yum install gcc 2.pip3 install os-brick Actual results: Installing collected packages: pbr, greenlet, monotonic, eventlet, wrapt, debtcollector, oslo.i18n, pyparsing, iso8601, oslo.utils, rfc3986, stevedore, oslo.config, oslo.context, msgpack, oslo.serialization, python-dateutil, oslo.log, repoze.lru, Routes, fasteners, oslo.concurrency, Paste, WebOb, Yappi, linecache2, traceback2, python-mimeparse, extras, argparse, unittest2, testtools, fixtures, PasteDeploy, oslo.service, retrying, oslo.privsep, os-win, os-brick Running setup.py install for wrapt ... done Running setup.py install for Yappi ... error Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-u84kkr70/Yappi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4_nfff1a-record/install-record.txt --single-version-externally-managed --compile: /tmp/timer_create4t9otfvo.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main (int argc, char **argv) { ^~~~ /tmp/timer_create4t9otfvo.c: In function ‘main’: /tmp/timer_create4t9otfvo.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration] timer_create(); ^~~~~~~~~~~~ running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying yappi.py -> build/lib.linux-x86_64-3.6 running build_ext building '_yappi' extension creating build/temp.linux-x86_64-3.6 gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DLIB_RT_AVAILABLE=1 -I/usr/include/python3.6m -c _yappi.c -o build/temp.linux-x86_64-3.6/_yappi.o In file included from _yappi.c:10: config.h:4:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-u84kkr70/Yappi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4_nfff1a-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-u84kkr70/Yappi/ Expected results: The installation of os-brick should success Additional info:
Created attachment 1635863 [details] vdsm.log
Created attachment 1635865 [details] Installation_of_os-brick
fixed by install python3-devel, other than that it's a general packaging bug same as[1] since a user isn't supposed to install os-brick manually. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1670102
*** This bug has been marked as a duplicate of bug 1670102 ***