1 Reply Latest reply on Apr 27, 2016 1:05 PM by rage@mellanox.com

    Issues with updating kernel with OFED installed - AttributeError: 'module' object has no attribute 'make_report_file'

    a.reshetov

      Hello,

       

      My environment:

      - Ubuntu 14.04 with kernel linux-image-4.2.0-27-generic

      - OFED 3.2-2.0.0.0

       

      During installation of linux kernel > 4.2.0-27 DKMS reports errors.

       

      Setting up linux-image-4.2.0-30-generic (4.2.0-30.36~14.04.1) ...

      Running depmod.

      update-initramfs: deferring update (hook will be called later)

      Examining /etc/kernel/postinst.d.

      run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.2.0-30-generic /boot/vmlinuz-4.2.0-30-generic

      run-parts: executing /etc/kernel/postinst.d/dkms 4.2.0-30-generic /boot/vmlinuz-4.2.0-30-generic

      Traceback (most recent call last):

        File "/usr/share/apport/package-hooks/dkms_packages.py", line 98, in <module>

          with apport.fileutils.make_report_file(report) as f:

      AttributeError: 'module' object has no attribute 'make_report_file'

      Traceback (most recent call last):

        File "/usr/share/apport/package-hooks/dkms_packages.py", line 98, in <module>

          with apport.fileutils.make_report_file(report) as f:

      AttributeError: 'module' object has no attribute 'make_report_file'

      Error! Bad return status for module build on kernel: 4.2.0-30-generic (x86_64)

      Consult /var/lib/dkms/srp/1.5.5/build/make.log for more information.

      Error! Bad return status for module build on kernel: 4.2.0-30-generic (x86_64)

      Consult /var/lib/dkms/iser/1.7.0/build/make.log for more information.

       

      : Unable to find an initial ram disk that I know how to handle.

      Will not try to make an initrd.

       

      When there is no OFED package in the system all goes fine.

      cat /var/lib/dkms/srp/1.5.5/build/make.log

       

      DKMS make.log for srp-1.5.5 for kernel 4.2.0-30-generic (x86_64)

      Fri Mar 18 13:03:56 UTC 2016

      makefile:17: /usr/src/ofa_kernel/default/configure.mk.kernel: No such file or directory

      grep: srp.spec: No such file or directory

      make: *** No rule to make target `/usr/src/ofa_kernel/default/configure.mk.kernel'.  Stop.

      makefile:17: /usr/src/ofa_kernel/default/configure.mk.kernel: No such file or directory

      grep: srp.spec: No such file or directory

      make: *** No rule to make target `/usr/src/ofa_kernel/default/configure.mk.kernel'.  Stop.

       

      cat /var/lib/dkms/iser/1.7.0/build/make.log

       

      DKMS make.log for iser-1.7.0 for kernel 4.2.0-30-generic (x86_64)

      Fri Mar 18 13:03:56 UTC 2016

      makefile:48: /usr/src/ofa_kernel/default/configure.mk.kernel: No such file or directory

      grep: iser.spec: No such file or directory

      make: *** No rule to make target `/usr/src/ofa_kernel/default/configure.mk.kernel'.  Stop.

      makefile:48: /usr/src/ofa_kernel/default/configure.mk.kernel: No such file or directory

      grep: iser.spec: No such file or directory

       

      Prior to linux image 4.2.0-27 updates was successful too.