Bug 1772112 - [Cinderlib] - After installed gcc it's impossible to installed os-brick on rhel-8 host
Summary: [Cinderlib] - After installed gcc it's impossible to installed os-brick on rh...
Keywords:
Status: CLOSED DUPLICATE of bug 1670102
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Tal Nisan
QA Contact: Avihai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-13 16:56 UTC by Shir Fishbain
Modified: 2019-11-18 15:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-18 15:11:34 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)
vdsm.log (2.54 MB, text/plain)
2019-11-13 17:15 UTC, Shir Fishbain
no flags Details
Installation_of_os-brick (15.95 KB, text/plain)
2019-11-13 17:17 UTC, Shir Fishbain
no flags Details

Description Shir Fishbain 2019-11-13 16:56:35 UTC
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:

Comment 1 Shir Fishbain 2019-11-13 17:15:53 UTC
Created attachment 1635863 [details]
vdsm.log

Comment 2 Shir Fishbain 2019-11-13 17:17:23 UTC
Created attachment 1635865 [details]
Installation_of_os-brick

Comment 3 Benny Zlotnik 2019-11-14 13:25:50 UTC
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

Comment 4 Tal Nisan 2019-11-18 15:11:34 UTC

*** This bug has been marked as a duplicate of bug 1670102 ***


Note You need to log in before you can comment on or make changes to this bug.