Bug 877318
Summary: | Unable to delete servers from Satellite with SELinux in Enforcing Mode | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Stephen Benjamin <stbenjam> | ||||||
Component: | Other | Assignee: | Jan Pazdziora <jpazdziora> | ||||||
Status: | CLOSED DEFERRED | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 550 | CC: | cperry, jpazdziora, mzazrivec | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-05-29 20:09:43 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: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 462714 | ||||||||
Attachments: |
|
Description
Stephen Benjamin
2012-11-16 08:57:18 UTC
What does rpm -q cobbler return? cobbler-2.0.7-21.el6sat.noarch Thanks! The problem is this is by no means deterministic -- we did not see this behaviour on other installations. Could you strace that cobblerd to see what operation (and at what point) it tries to do? What is in your /etc/hosts? Would adding FQDN to /etc/hosts prevent it from trying to reach the DNS server? I tried it twice before I opened the bug and both machines failed. Now, I've turned off cobbler_can_network_connect (and restarted satellite). Deleting a system is still successful. The Satellite server itself is not in /etc/hosts, which makes me think that Satellite was trying to resolve the satellite hostname, which failed because it required network connectivity, but now, it's already cached. So, it seems, my mistake for not having FQDN in /etc/hosts. However, is that a requirement for RHNS? (In reply to comment #4) > I tried it twice before I opened the bug and both machines failed. Now, > I've turned off cobbler_can_network_connect (and restarted satellite). > Deleting a system is still successful. > > The Satellite server itself is not in /etc/hosts, which makes me think that > Satellite was trying to resolve the satellite hostname, which failed because > it required network connectivity, but now, it's already cached. Where would it be cached? > So, it seems, my mistake for not having FQDN in /etc/hosts. However, is > that a requirement for RHNS? Checking the documentation, it is not. I'm pretty certain we had that requirement in the past. If you are able to reproduce the issue, we'd still love to see the strace from that cobblerd process, to figure out at which stage this happens. Right, I thought maybe urllib2 or whatever cobbler was using had some short term internal DNS cache, but I tried to reproduce it today, and couldn't. Seems like it was just a fluke. Created attachment 649737 [details]
When seboolean cobbler_can_network_connect is true
Created attachment 649738 [details]
Strace when cobbler_can_network_connect is false
It happened again, this time while trying to get a list of kickstarts. I clicked Systems tab, then Kickstarts, and then Profiles and got an internal server error. Cobbler was trying to do some kind of DNS lookup: type=AVC msg=audit(1353585004.742:66749): avc: denied { name_connect } for pid=14375 comm="cobblerd" dest=53 scontext=system_u:system_r:cobblerd_t:s0 tcontext=system_u:object_r:dns_port_t:s0 tclass=tcp_socket I have an strace: cobbler_failure.txt when the seboolean cobbler_can_network_connect was set to false, cobbler_success.txt when cobbler_can_network_connect is true. The list of kickstarts worked when it was true. So, it seems it's not exactly predictable when cobbler will attempt to do this, because I've probably tried to bring up the list of kickstarts 50 times in the last two weeks, all successfully until now. Cobbler does seem to need the ability to DNS lookups. (In reply to comment #7) > Created attachment 649737 [details] > When seboolean cobbler_can_network_connect is true There's not connect in the output. You probably want to strace with the -f option. |