Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks: run systemctl daemon-reload after httpd.service.d updates #608

Closed
wants to merge 1 commit into from
Closed

tasks: run systemctl daemon-reload after httpd.service.d updates #608

wants to merge 1 commit into from

Conversation

HonzaCholasta
Copy link
Contributor

@HonzaCholasta HonzaCholasta commented Mar 16, 2017

Run systemctl daemon-reload after
/etc/systemd/system/httpd.service.d/ipa.conf is created or deleted,
otherwise systemd will not merge the file into httpd.service and therefore
required environment variables will not be set for httpd.

This fixes authentication failures ("No valid Negotiate header in server
response") due to missing GSS_USE_PROXY=yes in httpd environment.

https://pagure.io/freeipa/issue/6773

Run `systemctl daemon-reload` after
`/etc/systemd/system/httpd.service.d/ipa.conf` is created or deleted,
otherwise systemd will not merge the file into httpd.service and therefore
required environment variables will not be set for httpd.

This fixes authentication failures ("No valid Negotiate header in server
response") due to missing `GSS_USE_PROXY=yes` in httpd environment.

https://pagure.io/freeipa/issue/6773
@martbab martbab self-assigned this Mar 17, 2017
@martbab martbab added ack Pull Request approved, can be merged and removed ack Pull Request approved, can be merged labels Mar 17, 2017
@martbab
Copy link
Contributor

martbab commented Mar 17, 2017

Hmmm I just caught a following error during FreeIPA replica uninstall:

Updating DNS system records
--------------------------------------
Deleted IPA server "replica1.ipa.test"
--------------------------------------
Shutting down all IPA services
Unconfiguring ntpd
Configuring certmonger to stop tracking system certificates for KRA
Configuring certmonger to stop tracking system certificates for CA
Unconfiguring CA
Unconfiguring web server
ipa         : ERROR    Command '/bin/systemctl restart httpd.service' returned non-zero exit status 1

see the excerpt of the uninstall log here: https://paste.fedoraproject.org/paste/TcHWFTK-TwNhO0v6~BBMG15M1UNdIGYhyRLivL9gydE=/

It looks like we need another daemon-reload in the Apache uninstallation. Although I don't see any reason to add it, it looks like some restore operations make systemd unhappy.

@HonzaCholasta
Copy link
Contributor Author

@martbab, can I see httpd error_log? Uninstall works fine for me.

@HonzaCholasta
Copy link
Contributor Author

@martbab, and httpd journal as well.

@martbab
Copy link
Contributor

martbab commented Mar 21, 2017

@HonzaCholasta I was not able to reproduce it any more so I guess that it was transient error. If I encounter it again I will file a separate ticket.

@martbab martbab added the ack Pull Request approved, can be merged label Mar 21, 2017
@martbab
Copy link
Contributor

martbab commented Mar 21, 2017

master:

  • 3de0970 tasks: run systemctl daemon-reload after httpd.service.d updates
    ipa-4-5:

  • 62c4121 tasks: run systemctl daemon-reload after httpd.service.d updates

@martbab martbab added the pushed Pull Request has already been pushed label Mar 21, 2017
@martbab martbab closed this Mar 21, 2017
@martbab
Copy link
Contributor

martbab commented Mar 21, 2017

If you need the fix in ipa-4-4 you need to file a rebased PR against that branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants