-
Notifications
You must be signed in to change notification settings - Fork 256
Description
General information
I am attempting to run the Ansible Automation Platform (AAP) Operator 2.6 on a fresh install of CRC 2.57.0 (OpenShift 4.20.5) on macOS (Apple Silicon). I encountered two significant blocking issues that required manual workarounds to proceed.
Issue 1: OperatorHub/Marketplace Disabled by Default Upon starting the cluster (crc start), the Operators -> OperatorHub menu item is missing from the OpenShift Console sidebar.
Investigation: The marketplace-operator deployment in the openshift-marketplace namespace is scaled to 0 or unmanaged by default in ClusterVersion overrides.
Impact: A user cannot install Operators via the UI without manually patching the ClusterVersion or manually scaling the marketplace deployment (oc scale deployment marketplace-operator --replicas=1).
Issue 2: AAP Controller UI fails (PermissionError on PV) After installing the AAP Operator and creating an AutomationController instance (with projects_persistence: true), the pods start, but the web UI returns a 500 Server Error.
Investigation: The example-controller-task pod fails to populate the static assets during migration.
Root Cause: Attempting to manually run collectstatic reveals a Permission Error on the mounted volume. The pod user (UID 1000) cannot write to the storage volume provided by the default CRC storage class.
Operating System
macOS
Hypervisor
vfkit
Did you run crc setup before crc start?
yes
Running on
Laptop
Steps to reproduce
- Start CRC on macOS with increased memory:
crc config set memory 24576,crc start. - Open the OpenShift Console (
crc console). - Observe Issue 1: The "Operators" -> "OperatorHub" menu item is missing from the sidebar.
- Attempted Workaround: Manually scaled the marketplace operator (
oc scale deployment marketplace-operator -n openshift-marketplace --replicas=1). - Result: The pods started, but the OperatorHub menu still did not appear in the console.
- Installed the "Ansible Automation Platform" Operator (stable-2.6) via CLI (
oc apply -f subscription.yaml) since the UI was inaccessible. - Created an
AutomationControllerinstance in a new namespace (e.g.,aap) withprojects_persistence: true. - Waited for pods to reach
Runningstate. - Observe Issue 2: Accessing the Route URL for the controller returns a 500 Error.
CRC version
CRC version: 2.57.0+ae41f6
OpenShift version: 4.20.5
MicroShift version: 4.20.0CRC status
CRC VM: Running
OpenShift: Running (v4.20.5)
RAM Usage: 10.81GB of 25.15GB
Disk Usage: 35.71GB of 53.08GB (Inside the CRC VM)
Cache Usage: 40.22GB
Cache Directory: /Users/ted/.crc/cacheCRC config
- consent-telemetry : no
- cpus : 8
- disk-size : 50
- memory : 24576
- pull-secret-file : /Users/ted/Downloads/pull-secret.txt
Host Operating System
ProductName: macOS
ProductVersion: 26.1
BuildVersion: 25B78Expected behavior
- The "OperatorHub" menu should be visible by default after a fresh
crc start. - The AAP Automation Controller login page should load successfully without a 500 Server Error.
Actual behavior
- The "OperatorHub" menu is missing from the sidebar. Even after manually enabling and scaling the
marketplace-operatordeployment, the menu remains invisible, forcing a CLI installation. - The AAP Controller UI crashes with a 500 Server Error. The web container logs show
TemplateDoesNotExist: index.html. Manual investigation confirms aPermissionError[Errno 13] when the pod (UID 1000) tries to write to the PVC storage, preventing static assets from being generated.
CRC Logs
# Log 1: Web Container crashing (from `oc logs -n aap deployment/example-controller -c web`)
django.template.exceptions.TemplateDoesNotExist: index.html
# Log 2: Manual collectstatic attempt failing (from `oc exec`)
ted@MacBook-Pro ~ % oc exec -n aap -it example-controller-task-646fcfb5c8-v22km -- awx-manage collectstatic --noinput --clear
...
Deleting 'api/api.css'
Traceback (most recent call last):
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/core/files/storage/filesystem.py", line 158, in delete
os.remove(name)
PermissionError: [Errno 13] Permission denied: '/var/lib/awx/public/static/api/api.css'
command terminated with exit code 1Additional context
No response