[Pkg-iscsi-maintainers] Bug#850060: 2.0.874-2~exp1 issues

Andrew Patterson andrew.patterson at hpe.com
Wed Jan 18 05:35:07 UTC 2017


On Thu, 5 Jan 2017 12:50:31 -0700 Andrew Patterson
<andrew.patterson at hpe.com> wrote:
> 
> On 01/05/2017 12:10 PM, Christian Seiler wrote:
> > On 01/05/2017 07:10 PM, Andrew Patterson wrote:
> >> On 01/04/2017 04:11 PM, Christian Seiler wrote:
> >>> OTOH, initramfs should write to /run/initramfs only, so maybe
> >>> we should pass -p /run/initramfs/iscsiuio.pid to iscsiuio
> >>> instead as well.
> >>
> >> Yes. I believe that will work. I wonder why this option is not in the
> >> man-page.
> > 
> > -ENOTIME on part of the developers perhaps. ;-)
> > 
> >>> The ideal solution would be to mirror the check that is done
> >>> for -b in -N. In that case we'd either configure the host
> >>> interface (and use software iSCSI), or configure offloading
> >>> (and use hardware iSCSI), but never both, and never neither.
> >>> So instead of the current patch for #850057 I would suggest
> >>> to do that instead. That should then also be upstream-able. I
> >>> can prepare a patch for that tomorrow.
> 
> Sounds good.
> 
> >>
> >> That was my thought. However, I don't think you can programaticaly
> >> determine whether the card is configured for iscsi offload.
> > 
> > Well, according to the commit message I referenced in my
> > previous email [1], we have the following situation:
> > 
> >  - cxgb*i: always use offloading (which will apparently work,
> >    since offloading will reuse the MAC address)
> > 
> >  - bnx2*i: look at the MAC address to see if the MAC address
> >    from iBFT matches the offloading mac: if so, assume
> >    offloading, if not, assume software
> > 
> >  - otherwise: always assume software
> > 
> > This is what the code bracketed by -DOFFLOAD_BOOT_SUPPORTED
> > checks for, and we just need to mirror that code (or better:
> > extract into an own function and call it from both places)
> > for -b.
> > 
> > I'll prepare a patch, you can then test it.
> > 
> > [1] https://github.com/open-iscsi/open-iscsi/commit/ee115be828362653478e6fe7cd4c6ee3318223ff
> > 
> >> It looks like iscsuio is complaining about a missing libgcc:
> >>
> >> writev(2, [{"libgcc_s.so.1 must be installed "..., 59]], 1) = 59
> >>
> >> which is indeed missing.  I think pthreads needs libgcc, but shouldn't
> >> copy_exec take care of this?
> > 
> > Nope, since libgcc_s.so is dlopened() by pthread_cancel. So
> > the automatic library dependency detection doesn't work
> > properly.
> > 
> > We are not the only ones with that problem; luckily someone

I have attached a series of patches that:

* Use /run/initramfs/iscsiuio.pid for pid file in initramfs.
* Add iscsiuio dependent libgcc_s library to debian initramfs.
* Add Chelsio offload modules to initramfs.

-- 
Andrew Patterson
Hewlett-Packard Enterprise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-run-initramfs-iscsiuio.pid-for-pid-file-in-initr.patch
Type: text/x-patch
Size: 1620 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20170117/959c7de7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-iscsuio-dependent-libgcc_s-library-to-debian-ini.patch
Type: text/x-patch
Size: 1133 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20170117/959c7de7/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-Chelsio-offload-modules-to-initramfs.patch
Type: text/x-patch
Size: 749 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20170117/959c7de7/attachment-0002.bin>


More information about the Pkg-iscsi-maintainers mailing list