Bug 1967945 - [4.8.0] [assisted operator] Assisted Service Postgres crashes msg: "mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied"
Summary: [4.8.0] [assisted operator] Assisted Service Postgres crashes msg: "mkdir: ca...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.0
Assignee: Mat Kowalski
QA Contact: Chad Crum
URL:
Whiteboard: AI-Team-Platform
Depends On: 1951812
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-04 13:39 UTC by Antoni Segura Puimedon
Modified: 2021-07-27 23:11 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1951812
Environment:
Last Closed: 2021-07-27 23:11:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1557 0 None closed OCPBUGSM-28017: Unify operator manifests and move them under config 2021-06-04 13:39:20 UTC
Red Hat Bugzilla 1951812 1 high CLOSED [master] [assisted operator] Assisted Service Postgres crashes msg: "mkdir: cannot create directory '/var/lib/pgsql/data... 2023-09-15 01:05:23 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:11:55 UTC

Comment 2 Chad Crum 2021-07-06 22:50:26 UTC
I validated this is fixed in latest ACM ds build:
- 2.3.0-DOWNSTREAM-2021-07-06-15-17-20

Validation steps:
- Deploy hub cluster
- Deploy ACM + Assisted service with latest ACM ds build
- Deploy a SNO instance via ACM / Assisted Service
- Allow assisted installer controller pod on SNO to complete
- Check assisted installer controller pod log and confirm run-level label is removed after install
- Check assisted installer namespace and ensure run-level label was removed


## SNO assisted installer controller log
[core@snocone-0-0 ~]$ oc logs -f assisted-installer-controller-spqgv | grep run
time="2021-07-06T21:27:23Z" level=info msg="Start running Assisted-Controller. Configuration is:\n struct ControllerConfig {\n\tClusterID: \"ecf7a149-bdbc-4833-b836-cd2000271384\",\n\tURL: \"https://assisted-service-rhacm.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com\",\n\tPullSecretToken: \"eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVyX2lkIjoiZWNmN2ExNDktYmRiYy00ODMzLWI4MzYtY2QyMDAwMjcxMzg0In0.EqgmFkEdnc32ji14EFQrsam1bKL8hu02D7LBqqeuRwmhGX0UgJIwQBK9w1WzQ7Mw7sRnPIWmqZ94zeYGhbYXwg\",\n\tSkipCertVerification: false,\n\tCACertPath: \"/etc/assisted-service/service-ca-cert.crt\",\n\tNamespace: \"assisted-installer\",\n\tOpenshiftVersion: \"4.8.0-fc.3\",\n\tHighAvailabilityMode: \"None\",\n\tWaitForClusterVersion: true,\n\tMustGatherImage: \"quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:14bf15424b61f532936deac4270a7956015f793133adb60e2480d31fac8d8c5d\",\n}"
time="2021-07-06T21:47:26Z" level=info msg="Removing run-level label from assisted-installer namespace"
time="2021-07-06T21:54:26Z" level=info msg="Operator image-registry, statuses: [{Available True 2021-07-06 21:38:58 +0000 UTC Removed NodeCADaemonAvailable: The daemon set node-ca has available replicas\nAvailable: The registry is removed\nImagePrunerAvailable: Pruner CronJob has been created} {Progressing False 2021-07-06 21:38:52 +0000 UTC Removed Progressing: All registry resources are removed} {Degraded False 2021-07-06 21:38:52 +0000 UTC Removed Degraded: The registry is removed}]"
[core@snocone-0-0 ~]$ 

## SNO assisted-installer project yaml output
[core@snocone-0-0 ~]$ oc get project assisted-installer -o yaml 
apiVersion: project.openshift.io/v1
kind: Project
metadata:
  annotations:
    openshift.io/sa.scc.mcs: s0:c11,c0
    openshift.io/sa.scc.supplemental-groups: 1000110000/10000
    openshift.io/sa.scc.uid-range: 1000110000/10000
  creationTimestamp: "2021-07-06T21:16:58Z"
  labels:
    kubernetes.io/metadata.name: assisted-installer
  name: assisted-installer
  resourceVersion: "19878"
  uid: a8e737da-72b6-42d2-913a-05e0b3a40863
spec:
  finalizers:
  - kubernetes
status:
  phase: Active

Comment 4 errata-xmlrpc 2021-07-27 23:11:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2438


Note You need to log in before you can comment on or make changes to this bug.