Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1600498

Summary: glusterfs installation failed: Unable to open database: permission denied
Product: OpenShift Container Platform Reporter: Hongkai Liu <hongkliu>
Component: InstallerAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED NOTABUG QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.10.0CC: aos-bugs, ekuric, hongkliu, jokerman, mifiedle, mmccomas
Target Milestone: ---   
Target Release: 3.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-12 19:00:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hongkai Liu 2018-07-12 12:01:20 UTC
Description of problem:

Version-Release number of the following components:
# yum list installed | grep openshift
atomic-openshift.x86_64         3.10.15-1.git.0.4c19c7e.el7

$ git log --oneline -1
f74b6265c (HEAD -> release-3.10, origin/release-3.10) Merge pull request #9152 from openshift-cherrypick-robot/cherry-pick-9137-to-release-3.10

$ ansible --version
ansible 2.5.5
  config file = /home/fedora/openshift-ansible/ansible.cfg
  configured module search path = [u'/home/fedora/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15 (default, May 16 2018, 17:50:09) [GCC 8.1.1 20180502 (Red Hat 8.1.1-1)]


How reproducible:

Steps to Reproduce:
1. ansible-playbook -i /tmp/2.file openshift-ansible/playbooks/openshift-glusterfs/config.yml -vvv


Actual results:
# oc get pod
NAME                            READY     STATUS        RESTARTS   AGE
deploy-heketi-storage-1-mzj5q   1/1       Terminating   0          1m
glusterfs-storage-g88g7         1/1       Running       0          2m
glusterfs-storage-qj7sg         1/1       Running       0          2m
glusterfs-storage-xdth9         1/1       Running       0          2m
heketi-storage-1-deploy         1/1       Running       0          15s
heketi-storage-1-jc9pt          0/1       Error         1          11s
root@ip-172-31-46-164: ~ # oc logs heketi-storage-1-jc9pt
Heketi 7.0.0
[heketi] INFO 2018/07/12 11:49:36 Loaded kubernetes executor
[heketi] ERROR 2018/07/12 11:49:36 /src/github.com/heketi/heketi/apps/glusterfs/dbcommon.go:173: Unable to open database: permission denied
[heketi] ERROR 2018/07/12 11:49:36 /src/github.com/heketi/heketi/apps/glusterfs/app.go:127: Unable to open database: permission denied. Retrying using read only mode
[heketi] ERROR 2018/07/12 11:49:36 /src/github.com/heketi/heketi/apps/glusterfs/dbcommon.go:166: Unable to open database in read only mode: permission denied
[heketi] ERROR 2018/07/12 11:49:36 /src/github.com/heketi/heketi/apps/glusterfs/app.go:132: Unable to open database: permission denied
ERROR: Unable to start application




Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Will attach the ansible -vvv and inv file.

Comment 1 Scott Dodson 2018-07-12 12:08:28 UTC
openshift-ansible 3.10 is not tested and supported with Ansible 2.5, while I doubt this particular error is related to that, can you please confirm whether this happens with Ansible 2.4.x?