Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1450776 - Wrong path in opacmdall script
Wrong path in opacmdall script
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: opa-ff (Show other bugs)
7.4
x86_64 Unspecified
unspecified Severity high
: rc
: ---
Assigned To: Honggang LI
zguo
:
Depends On: 1451607 1454376
Blocks: 1353018 1446211 1381646
  Show dependency treegraph
 
Reported: 2017-05-15 03:55 EDT by Maksym Wezdecki
Modified: 2017-08-01 12:57 EDT (History)
9 users (show)

See Also:
Fixed In Version: opa-ff-10.3.1.0-11.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-01 12:57:45 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2011 normal SHIPPED_LIVE RDMA stack bug fix and enhancement update 2017-08-01 13:59:05 EDT

  None (edit)
Description Maksym Wezdecki 2017-05-15 03:55:08 EDT
Description of problem: 

After installation opa-fastfabric, opa-basic-tools packages, opacmdall script is reporting errors:

# opacmdall
cat: /usr/lib/opa/tools/osid_wrapper: No such file or directory
/usr/sbin/opacmdall: line 40: /usr/lib/opa/tools/opafastfabric.conf.def: No such file or directory
/usr/sbin/opacmdall: line 45: /usr/lib/opa/tools/ff_funcs: No such file or directory


Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server 7.4 Alfa 1


How reproducible:
It is reproducible each time.


Steps to Reproduce:
1. yum install opa-fm opa-basic-tools opa-fastfabric
2. opacmdall
3. Notice errors:
# opacmdall
cat: /usr/lib/opa/tools/osid_wrapper: No such file or directory
/usr/sbin/opacmdall: line 40: /usr/lib/opa/tools/opafastfabric.conf.def: No such file or directory
/usr/sbin/opacmdall: line 45: /usr/lib/opa/tools/ff_funcs: No such file or directory



Actual results:
Errors during run opacmdall

Expected results:
No errors

Additional info:
Comment 4 Scott Breyer 2017-05-16 14:47:08 EDT
I looked at the source RPM, and that the patch file "update-ff-install-script.patch" is changing installation directories. This is causing the error, because our scripts have hard-coded path names where files such as opafastfabric.conf.def and ff_funcs are expected to be installed.

I would suggest suppressing those changes in the update script.
Comment 5 Honggang LI 2017-05-17 03:10:27 EDT
I'm working on this issue. But upstream rdma-core commit 29bb8f07da911 redefined ntohll and htonll. It breaks opa-ff compiling. Until this issue got fixed, we can't build opa-ff in our internal RPM building system.

------------------------------------------------------------
gcc -pipe -DTARGET_CPU_FAMILY_X86 -Wall -D__X86_64__ -DCPU_LE -m64 -fno-strict-aliasing -fstack-protector -DLINUX -Dlinux -D__LINUX__   -DPRODUCT=OPENIB_FF -DPRODUCT_OPENIB_FF -DMODULEVERSION=10.3.1.0.7 -DIB_STACK_OPENIB   -fpic  -g -I. -I/home/test/rpmbuild/BUILD/opa-ff-10.3.1.0-8/builtinclude.OPENIB_FF.release -I/home/test/rpmbuild/BUILD/opa-ff-10.3.1.0-8/builtinclude.OPENIB_FF.release/iba -I/home/test/rpmbuild/BUILD/opa-ff-10.3.1.0-8/builtinclude.OPENIB_FF.release/iba/public -I/usr/include/infiniband -I/usr/include -c src/dsap_scan_fabric.c -o build.OPENIB_FF.release/src/dsap_scan_fabric.o
In file included from src/dsap_scan_fabric.c:34:0:
/usr/include/infiniband/umad.h:237:52: error: redefinition of 'htonll'
 static inline __attribute__((deprecated)) uint64_t htonll(uint64_t x) { return htobe64(x); }
                                                    ^
In file included from src/dsap_scan_fabric.c:33:0:
/usr/include/infiniband/mad.h:1671:24: note: previous definition of 'htonll' was here
 static inline uint64_t htonll(uint64_t x)
                        ^
In file included from src/dsap_scan_fabric.c:34:0:
/usr/include/infiniband/umad.h:238:52: error: redefinition of 'ntohll'
 static inline __attribute__((deprecated)) uint64_t ntohll(uint64_t x) { return be64toh(x); }
                                                    ^
In file included from src/dsap_scan_fabric.c:33:0:
/usr/include/infiniband/mad.h:1665:24: note: previous definition of 'ntohll' was here
 static inline uint64_t ntohll(uint64_t x)
                        ^
src/dsap_scan_fabric.c: In function 'dsap_publish_paths':
src/dsap_scan_fabric.c:315:5: warning: 'ntohll' is deprecated (declared at /usr/include/infiniband/umad.h:238) [-Wdeprecated-declarations]
------------------------------------------------------------
Comment 6 Honggang LI 2017-05-17 08:02:41 EDT
Hello, Intel
 
http://people.redhat.com/honli/.bz1450776/x86_64

Please test the scratch RPMs. Let me know if you have any problem with the scratch RPMs.
Comment 7 Maksym Wezdecki 2017-05-17 08:28:02 EDT
Hi,

I've tested rpms and I can run opacmdall without any issue. When will the fix be available in official repo via "yum install"?
Comment 8 Honggang LI 2017-05-17 18:07:08 EDT
(In reply to Maksym Wezdecki from comment #7)
> Hi,
> 
> I've tested rpms and I can run opacmdall without any issue. When will the
> fix be available in official repo via "yum install"?

We are working with upstream to fix the duplicated define of ntohll and htonll in mad.h and umad.h. Once this issue got fixed, we will build opa-ff in our internal RPM building system. Anyway, this issue will be fixed for RHEL-7.4. So the fix will be available in RHEL-7.4 GA distro.
Comment 10 zguo 2017-05-27 05:03:45 EDT
[root@rdma-qe-14 ~]$ opacmdall -f /etc/sysconfig/opa/hosts date
[root@opa0-qe-15]# date
Sat May 27 05:01:28 EDT 2017
[root@opa0-qe-14]# date
Sat May 27 05:01:28 EDT 2017
[root@rdma-qe-14 ~]$ opacmdall -f /etc/sysconfig/opa/hosts 'uname -r'
[root@opa0-qe-15]# uname -r
3.10.0-663.el7.x86_64
[root@opa0-qe-14]# uname -r
3.10.0-663.el7.x86_64
[root@rdma-qe-14 ~]$ opacmdall -f /etc/sysconfig/opa/hosts 'rpm -qa | grep opa'
[root@opa0-qe-15]# rpm -qa | grep opa
opa-fm-10.3.1.0-8.el7.x86_64
[root@opa0-qe-14]# rpm -qa | grep opa
opa-basic-tools-10.3.1.0-11.el7.x86_64
opa-fm-10.3.1.0-8.el7.x86_64
opa-fastfabric-10.3.1.0-11.el7.x86_64
Comment 11 errata-xmlrpc 2017-08-01 12:57:45 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2011

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