Bug 283801 - iscsistart fails on initrd image.
Summary: iscsistart fails on initrd image.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: iscsi-initiator-utils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike Christie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-09 02:36 UTC by Kostas Georgiou
Modified: 2013-01-10 04:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-09 20:19:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kostas Georgiou 2007-09-09 02:36:11 UTC
iscsistart fails with the following error:
iscsistart: peeruser_unix: unknown local user with uid 0

It seems that iscsistart calls getpwuid which fails since neither the password
file or the nss modules are available.

Comment 1 Kostas Georgiou 2007-09-14 00:24:26 UTC
Is there any way to help? I would really love to get iSCSI root working again in
fedora :)

Comment 2 Mike Christie 2007-09-14 20:43:54 UTC
I am working on a patch. I should hopefully have something monday for you to test.

Comment 3 Kostas Georgiou 2007-10-04 23:20:46 UTC
Any luck yet? :)

Comment 4 Mike Christie 2007-10-05 06:22:09 UTC
I thought it was a problem like you described in the bug report, but for
iscsistart we do some hokey magic and compile iscsistart with:

statics.c:

static struct passwd root_pw = {
        .pw_name = "root",
};

struct passwd*
getpwuid(uid_t uid)
{
        if (uid == 0)
                return &root_pw;
        else {
                errno = ENOENT;
                return 0;
        }
}


Are you using the iscsi-initiator-utils iscsistart? And what version of
iscsi-initiator-utils is it?

Comment 5 Mike Christie 2007-10-05 06:32:00 UTC
Ah ignore my comment #44. For F7 and above we are not compiling it as static, so
the patch for this bz https://bugzilla.redhat.com/show_bug.cgi?id=225915 is what
broke it.

Comment 6 Mike Christie 2007-10-05 07:58:06 UTC
This should be fixed in iscsi-initiator-utils-6.2.0.865-0.2.fc8. That should go
up soon. I will send a link to the rpm when it is ready.

Comment 7 Kostas Georgiou 2007-10-05 11:45:13 UTC
Aha I looked at the sources but I missed the static getpwuid. I see that
iscsi-initiator-utils-6.2.0.865-0.2.fc8 has finished building in koji so I'll
try to test it during the weekend.

Comment 8 Lubomir Kundrak 2008-02-09 18:04:32 UTC
ISCSI root does work for me now. Does it do also for you?

Comment 9 Kostas Georgiou 2008-02-09 20:19:51 UTC
I didn't had the time to test with a recent rawhide :( If the xen kernel is
functional I'll try to give it a go again. Unfortunately I am leaving for
holidays so it might take some time if I don't find the time tomorrow.

Since it's working for you and iscsistart is statically build now I am closing
the bug. 


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