Bug 1154098

Summary: Bad debian sources.list configuration in multiarch context
Product: [Community] Gluster-Documentation Reporter: Yann Richard <yann.richard>
Component: OtherAssignee: Anjana Suparna Sriram <asriram>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Yann Richard 2014-10-17 14:06:19 UTC
Description of problem:

In some documentation to how to configure debian repository :
http://download.gluster.org/pub/gluster/glusterfs/3.3/3.3.2/Debian/README
http://download.gluster.org/pub/gluster/glusterfs/3.3/3.3.1/Debian/readme.txt
http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.0/Debian/README

Theirs configuration cause error when multi-arch ios enabled and this new arch are not provided in gluster repository. 

Actual results:

If multi-arch is enabled for i386 (or any arch non managed in gluster repository)

There is error when "apt-get update" :

W: Failed to fetch http://download.gluster.org/pub/gluster/glusterfs/3.3/LATEST/Debian/apt/dists/wheezy/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)


Expected results:

no error

How to fix : 

Only add [arch=amd64] after deb if you provide only amd64 binary. Exemple :

echo "deb [arch=amd64] http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.1/Debian/apt wheezy main" > /etc/apt/sources.list.d/gluster.list