Project

Profile

Help

Issue #8620

closed

pulp_installer fails to recognize pulpcore_port_t

Added by mdepaulo@redhat.com almost 3 years ago. Updated over 2 years ago.

Status:
MODIFIED
Priority:
Normal
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

Also available in: Atom PDF