| Summary: | idm_register snippet automount fails when providing idm_server variable. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | evan.hisey |
| Component: | Provisioning Templates | Assignee: | Marek Hulan <mhulan> |
| Status: | CLOSED ERRATA | QA Contact: | Shimon Shtein <sshtein> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.4 | CC: | ahumbe, bbuckingham, ehelms, evan.hisey, jcallaha, kbidarka, mhulan, mtaru, oshtaier, phess, sshtein, tim.daley, zhunting |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-21 16:54:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
evan.hisey
2016-11-28 20:08:15 UTC
By modifying the automount fragment to this: <% if @host.param_true? 'idm_automount' -%> if [ -f /usr/sbin/ipa-client-automount ] then <%if @host.params['idm_server_automount'] -%> idm_server_automount="--server <%= @host.params['idm_server_automount'] %>" <% end -%> /usr/sbin/ipa-client-automount $idm_server_automount $automount_location --unattended fi <% end -%> And using the new idm_server_automount parament,I now get the following correct output: IPA server: example.idm.com Location: default Configured /etc/nsswitch.conf Configured /etc/sysconfig/nfs Configured /etc/idmapd.conf Started rpcgssd Restarting sssd, waiting for it to become available. Started autofs Thanks for the proposed fix. Would it make sense to rather reuse the idm_server parameter value? This way user would have to duplicate the information in two parameters.
The suggested version would be
> <% if @host.param_true? 'idm_automount' -%>
> if [ -f /usr/sbin/ipa-client-automount ]
> then
> <%if @host.params['idm_server'] -%>
> idm_server_automount="--server <%= @host.params['idm_server'] %>"
> <% end -%>
> /usr/sbin/ipa-client-automount $idm_server_automount $automount_location -- unattended
> fi
> <% end -%>
the only difference is <%= @host.params['idm_server'] %>" instead of <%if @host.params['idm_server_automount'] -%>
If that make sense I could send a patch to upstream repo.
Marek- The only issue I see that could arise is the case where idm_server and idm_automount_server were different machines. I do not know how often this edge case would occur, but I can see it being something I might have needed. Ok, I'll try to check idm_server_automount and if it's not present we'd fallback to idm_server. That way it would still work without copying the value if automount server is the same but keeping the way to override the value through idm_server_automount parameter. Changing back the component, it is probably better fit. Created redmine issue http://projects.theforeman.org/issues/17543 from this bug Upstream bug assigned to mhulan Upstream bug assigned to mhulan Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17543 has been resolved. *** Bug 1387888 has been marked as a duplicate of this bug. *** idm_register snippet is now updated appropriately. VERIFIED with sat6.3.0-snap-32 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> >
> > For information on the advisory, and where to find the updated files, follow the link below.
> >
> > If the solution does not work for you, open a new bug report.
> >
> > https://access.redhat.com/errata/RHSA-2018:0336
|