Bug 283801

Summary: iscsistart fails on initrd image.
Product: [Fedora] Fedora Reporter: Kostas Georgiou <k.georgiou>
Component: iscsi-initiator-utilsAssignee: Mike Christie <mchristi>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: agrover, dcantrell, lkundrak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-09 20:19:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.