Skip to content

Operators Tab missing & AAP PermissionError on PV (macOS/vfkit) #5039

@rbsq1312

Description

@rbsq1312
Image Image

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

  1. Start CRC on macOS with increased memory: crc config set memory 24576, crc start.
  2. Open the OpenShift Console (crc console).
  3. Observe Issue 1: The "Operators" -> "OperatorHub" menu item is missing from the sidebar.
  4. Attempted Workaround: Manually scaled the marketplace operator (oc scale deployment marketplace-operator -n openshift-marketplace --replicas=1).
  5. Result: The pods started, but the OperatorHub menu still did not appear in the console.
  6. Installed the "Ansible Automation Platform" Operator (stable-2.6) via CLI (oc apply -f subscription.yaml) since the UI was inaccessible.
  7. Created an AutomationController instance in a new namespace (e.g., aap) with projects_persistence: true.
  8. Waited for pods to reach Running state.
  9. 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.0

CRC 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/cache

CRC 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:           25B78

Expected behavior

  1. The "OperatorHub" menu should be visible by default after a fresh crc start.
  2. The AAP Automation Controller login page should load successfully without a 500 Server Error.

Actual behavior

  1. The "OperatorHub" menu is missing from the sidebar. Even after manually enabling and scaling the marketplace-operator deployment, the menu remains invisible, forcing a CLI installation.
  2. The AAP Controller UI crashes with a 500 Server Error. The web container logs show TemplateDoesNotExist: index.html. Manual investigation confirms a PermissionError [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 1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions