Bug 1397562

Summary: Errno 61 & Error creating a storage domain
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Matheus Gomes <itsupport>
Component: Plugins.GlusterAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED NOTABUG QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0.3.1CC: bugs, itsupport
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-23 15:35:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
full logs
none
ovirt-gluster.conf
none
storage.conf none

Description Matheus Gomes 2016-11-22 20:06:22 UTC
Description of problem:
When running:

hosted-engine --deploy --config-append=storage.conf
after all the configs have been set, regardless of options the following error occurs:

[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 61] No data available: '/rhev/data-center/9c43eb80-dbc9-4e63-85a8-445a68ca306f/f803ae30-fef9-4095-8286-5d667b84c3c9/images/aa03c2f8-4632-4fcb-870d-d66ccb15a7f0'

Version-Release number of selected component (if applicable):

ovirt-hosted-engine-setup-2.0.3-1.el7.centos.noarch
all latest of today Nov 22nd

How reproducible:

Each and every time, have reinstalled the server, run the:
http://www.ovirt.org/documentation/how-to/hosted-engine/
also have run bash script & reinstall and no luck

I'm following: https://www.ovirt.org/blog/2016/08/up-and-running-with-ovirt-4-0-and-gluster-storage/


Steps to Reproduce:
1. follow steps of https://www.ovirt.org/blog/2016/08/up-and-running-with-ovirt-4-0-and-gluster-storage/

2. STORAGE.conf needs host1,2,3,4,5,6 ip on backup-volfile-servers=1,2,3,4,5,6

if the backup-volfile-servers=2,3,4,5,6 ERROR happens: 
[ ERROR ] Failed to execute stage 'Misc configuration': Error creating a storage domain: (u'storageType=7, sdUUID=2826fa97-1bc7-48d8-b7ca-dccc0b536e10, domainName=hosted_storage, domClass=1, typeSpecificArg=10.30.20.61:/ch4-engine domVer

Actual results:

Expected results:
to finish the setup successful 


Additional info:

with or without the --config-append=storage.conf settings will get same error=

[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 61] No data available: '/rhev/data-center/9c43eb80-dbc9-4e63-85a8-445a68ca306f/f803ae30-fef9-4095-8286-5d667b84c3c9/images/aa03c2f8-4632-4fcb-870d-d66ccb15a7f0'

and if the --config-append=storage.conf is used than it must have all the hosts on the backup-volfile-servers, including host1 or will receive error=

[ ERROR ] Failed to execute stage 'Misc configuration': Error creating a storage domain: (u'storageType=7, sdUUID=2826fa97-1bc7-48d8-b7ca-dccc0b536e10, domainName=hosted_storage, domClass=1, typeSpecificArg=10.30.20.61:/ch4-engine domVer

Comment 1 Matheus Gomes 2016-11-22 20:11:57 UTC
Created attachment 1222848 [details]
full logs

Comment 2 Matheus Gomes 2016-11-22 20:12:46 UTC
Created attachment 1222849 [details]
ovirt-gluster.conf

gdeploy -c ovirt-gluster.conf

Comment 3 Matheus Gomes 2016-11-22 20:13:35 UTC
Created attachment 1222850 [details]
storage.conf

hosted-engine --deploy --config-append=storage.conf

Comment 4 Matheus Gomes 2016-11-22 20:15:24 UTC
gluster settup:

gluster volume create ch4-engine replica 3 arbiter 1 ch4lpdatahost1:/data/glusterfs/vol1/brick1/ch4-engine ch4lpdatahost2:/data/glusterfs/vol1/brick1/ch4-engine ch4lparbhost1:/fusion/data/vol1/brick1/ch4-engine ch4lpdatahost3:/data/glusterfs/vol1/brick1/ch4-engine ch4lpdatahost4:/data/glusterfs/vol1/brick1/ch4-engine ch4lparbhost2:/fusion/data/vol1/brick1/ch4-engine

gluster volume set ch4-engine group virt && 
gluster volume set ch4-engine storage.owner-uid 36 && 
gluster volume set ch4-engine storage.owner-gid 36 && 
gluster volume start ch4-engine

Comment 5 Simone Tiraboschi 2016-11-23 08:13:10 UTC
Matheus,
can you please attach also vdsm and gluster logs?

Comment 6 Matheus Gomes 2016-11-23 15:34:22 UTC
Disregard, I've redeployed the entire environment and was able to successfully deploy on gluster and ovirt with hosted-engine.

Comment 7 Matheus Gomes 2016-11-23 15:35:08 UTC
RTFM

Comment 8 Matheus Gomes 2016-11-23 15:37:09 UTC
Cause of issue was installation of Gluster without the use of the centos repo.

https://wiki.centos.org/SpecialInterestGroup/Storage/gluster-Quickstart