Actions
Issue #8620
closedpulp_installer fails to recognize pulpcore_port_t
Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 100
Quarter:
Description
This task failed for newswangerd :
TASK [pulp.pulp_installer.pulp_api : Apply the SELinux type to the TCP port that pulpcore-api listens on] *************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: Type pulpcore_port_t is invalid, must be a port type
fatal: [localhost]: FAILED! => {"changed": false, "msg": "ValueError: Type pulpcore_port_t is invalid, must be a port type\n"}
I suspect the problem was that the handlers for installing the selinux policies in the dependency role pulp_common were not run.
I suspect that happened because pulp-api was run without pulp_database_config being run 1st, which would have called meta: flush_handlers
.
So the solution would be to add meta: flush_handlers
in either pulp_common after SELinux policies get installed, or in both pulp_api and pulp_content before applying the label
Actions
Flush the handlers right after the SELinux policy is compiled
fixes: #8620 https://pulp.plan.io/issues/8620