add ipa-client-install --mkhomedir option

Bug #1823727 reported by Cyril Lopez on 2019-04-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Undecided
Cyril Lopez

Bug Description

When we use enable-internal-tls.yaml, ipa-client-install is run on all node but mkhomedir is not available.

So when you try to connect with a ipa user on a node you have a fail :

-sh-4.2$ ssh overcloud-controller-0.local
Could not chdir to home directory /home/cylopez: No such file or directory

Fix proposed to branch: master
Review: https://review.openstack.org/650899

Changed in tripleo:
assignee: nobody → Cyril Lopez (cylopez)
status: New → In Progress

Reviewed: https://review.opendev.org/650899
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=364a0eaabcad25615ee42b155cc80e9d254ebe80
Submitter: Zuul
Branch: master

commit 364a0eaabcad25615ee42b155cc80e9d254ebe80
Author: Cyril Lopez <email address hidden>
Date: Mon Apr 8 15:47:28 2019 +0200

    Add mkhomedir option to ipa-client-install

    To allow PAM to create home directory for
    user who do not have one, ipa-client-install
    need an option. This is added by MakeHomeDir
    variable.

    Closes-bug: #1823727

    Change-Id: I040014482e9126947b8c4a1d7b1bf7645f926c4b
    Signed-off-by: Cyril Lopez <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released

Reviewed: https://review.opendev.org/658266
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=2471642f6f1423b11392856a38341095a7f52e06
Submitter: Zuul
Branch: master

commit 2471642f6f1423b11392856a38341095a7f52e06
Author: yatinkarel <email address hidden>
Date: Fri May 10 10:36:19 2019 +0530

    [ipaclient] Fix type of MakeHomeDir heat param

    https://review.opendev.org/#/c/650899 added this new
    Heat Parameter but set type to 'bool', the correct type
    is 'boolean', this patch fixes it.

    Also change the comparison in shell script to handle
    both True/true by converting the variable to lower case.

    Related-Bug: #1823727
    Change-Id: I52ba523ecbfd8282858e3102b29189d8ce287a26

Reviewed: https://review.opendev.org/661033
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=aa6dc4cbc4b0120ac98fad3fc17f23961e2e7f00
Submitter: Zuul
Branch: stable/stein

commit aa6dc4cbc4b0120ac98fad3fc17f23961e2e7f00
Author: Cyril Lopez <email address hidden>
Date: Mon Apr 8 15:47:28 2019 +0200

    Add mkhomedir option to ipa-client-install

    To allow PAM to create home directory for
    user who do not have one, ipa-client-install
    need an option. This is added by MakeHomeDir
    variable.

    This commit includes a fix from ykarel to fix the
    new variable type.

    Related-bug: #1823727

    Change-Id: I040014482e9126947b8c4a1d7b1bf7645f926c4b
    Signed-off-by: Cyril Lopez <email address hidden>
    (cherry-picked from commit 2471642f6f1423b11392856a38341095a7f52e06 and
     e3ad34aece1bf87bfd7367014699eee86ab6d5ca)

tags: added: in-stable-stein

Reviewed: https://review.opendev.org/661029
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=7ae1427107b8701d3974d129557685651168d0b0
Submitter: Zuul
Branch: stable/rocky

commit 7ae1427107b8701d3974d129557685651168d0b0
Author: Cyril Lopez <email address hidden>
Date: Mon Apr 8 15:47:28 2019 +0200

    Add mkhomedir option to ipa-client-install

    To allow PAM to create home directory for
    user who do not have one, ipa-client-install
    need an option. This is added by MakeHomeDir
    variable.

    This commit includes a fix from ykarel to fix the
    new variable type.

    Related-bug: #1823727

    Change-Id: I040014482e9126947b8c4a1d7b1bf7645f926c4b
    Signed-off-by: Cyril Lopez <email address hidden>
    (cherry-picked from commit 2471642f6f1423b11392856a38341095a7f52e06 and
     e3ad34aece1bf87bfd7367014699eee86ab6d5ca)

tags: added: in-stable-rocky

Reviewed: https://review.opendev.org/661037
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=5c37edc49abfa6dc5ab25ef4d1686a592de070e0
Submitter: Zuul
Branch: stable/queens

commit 5c37edc49abfa6dc5ab25ef4d1686a592de070e0
Author: Cyril Lopez <email address hidden>
Date: Mon Apr 8 15:47:28 2019 +0200

    Add mkhomedir option to ipa-client-install

    To allow PAM to create home directory for
    user who do not have one, ipa-client-install
    need an option. This is added by MakeHomeDir
    variable.

    This commit includes a fix from ykarel to fix the
    new variable type.

    Related-bug: #1823727

    Change-Id: I040014482e9126947b8c4a1d7b1bf7645f926c4b
    Signed-off-by: Cyril Lopez <email address hidden>
    (cherry-picked from commit 2471642f6f1423b11392856a38341095a7f52e06 and
     e3ad34aece1bf87bfd7367014699eee86ab6d5ca)

tags: added: in-stable-queens

This issue was fixed in the openstack/tripleo-heat-templates 11.0.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers