Bug 1397366

Summary: New rhgs-server-docker is based on "CentOS Linux release 7.2.1511" instead of RHEL-7.3
Product: Red Hat Gluster Storage Reporter: Prasanth <pprakash>
Component: rhgs-server-containerAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED WORKSFORME QA Contact: Prasanth <pprakash>
Severity: high Docs Contact:
Priority: high    
Version: cns-3.4CC: hchiramm, madam, mliyazud, pprakash, rcyriac, rhs-bugs, sankarshan
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 10:53:53 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:

Description Prasanth 2016-11-22 11:59:48 UTC
Description of problem:

New rhgs-server-docker is based out of "CentOS Linux release 7.2.1511" whereas it is supposed to be based on RHEL-7.3

Version-Release number of selected component (if applicable):
rhgs-server-docker:3.1.3-15
d670e1d14e3a

How reproducible: Always


Steps to Reproduce:
1. Deploy gluster pods using the latest image
2. # cat /etc/redhat-release
3.

Actual results:
# oc rsh glusterfs-dc-dhcp47-121.lab.eng.blr.redhat.com-1-yzj4b

sh-4.2# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 

sh-4.2# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Expected results: It should be based on "Red Hat Enterprise Linux Server release 7.3"


Additional info:

Comment 2 Humble Chirammal 2016-11-22 12:02:50 UTC
hmmm.. That shouldnt have been. @Ashiq, can you check this ?

Comment 3 Mohamed Ashiq 2016-11-22 12:06:45 UTC
can you check /root/buildinfo/?

you will find two dockerfile. one of the base image and another one of glusterfs.
the image I used was rhel-7.3:released-7.3.

Comment 4 Humble Chirammal 2016-11-22 12:09:15 UTC
The repo has "RHEL 7.3. has its base"

http://dist-git.app.eng.bos.redhat.com/cgit/rpms/rhgs-server-docker/tree/Dockerfile?h=rhgs-3.1-rhel-7

Comment 5 Humble Chirammal 2016-11-22 12:12:48 UTC
The build log says its RHEL 7.3 base.

2016-11-21 02:54:55,339 - atomic_reactor.build - DEBUG - base image specified in dockerfile = 'rhel7.3:7.3-released'

Comment 6 Mohamed Ashiq 2016-11-22 12:13:54 UTC
I see:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.3 (Maipo)

Comment 7 Mohamed Ashiq 2016-11-22 12:15:02 UTC
[root@node3 /]# cat /etc/os-release     
NAME="Red Hat Enterprise Linux Server"
VERSION="7.3 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.3"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.3 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.3:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.3"

[root@node3 /]# cat /etc/redhat-storage-release 
Red Hat Gluster Storage Server 3.1 Update 3 (Container)

Comment 8 Humble Chirammal 2016-11-22 12:18:35 UTC
Prasanth, Looks like a user error to me :). Please confirm

Comment 10 Humble Chirammal 2016-11-23 10:57:29 UTC
Prasanth, iic, the template always pointed to downstream docker image of "glusterfs" in its configuration. Have you noticed a wrong entry in the downstream template ? If yes, please point, so that we can make sure its corrected.

Comment 11 Prasanth 2016-11-23 11:27:29 UTC
(In reply to Humble Chirammal from comment #10)
> Prasanth, iic, the template always pointed to downstream docker image of
> "glusterfs" in its configuration. Have you noticed a wrong entry in the
> downstream template ? If yes, please point, so that we can make sure its
> corrected.

Humble,

Yes, I've noticed a wrong entry as mentioned in my previous comment. 

In heketi-templates-3.1.0-1.el7rhgs.x86_64.rpm build, I noticed the following wrong entry:

####
# cat /usr/share/heketi/templates/glusterfs-template.json |grep "image"
                                "image": "heketi/gluster:latest",
####

In heketi-templates-3.1.0-2.el7rhgs.x86_64.rpm, this was still not corrected completely and I noticed that it changed to the following:

####
# cat /usr/share/heketi/templates/glusterfs-template.json |grep "image"
                                "image": "rhgs3/rhgs-volmanager-rhel7",
####

For more details, refer: https://bugzilla.redhat.com/show_bug.cgi?id=1397793

Comment 12 Humble Chirammal 2016-11-23 11:44:16 UTC
(In reply to Prasanth from comment #11)
> (In reply to Humble Chirammal from comment #10)
> > Prasanth, iic, the template always pointed to downstream docker image of
> > "glusterfs" in its configuration. Have you noticed a wrong entry in the
> > downstream template ? If yes, please point, so that we can make sure its
> > corrected.
> 
> Humble,
> 
> Yes, I've noticed a wrong entry as mentioned in my previous comment. 
> 
> In heketi-templates-3.1.0-1.el7rhgs.x86_64.rpm build, I noticed the
> following wrong entry:
> 
> ####
> # cat /usr/share/heketi/templates/glusterfs-template.json |grep "image"
>                                 "image": "heketi/gluster:latest",
> ####
> 
> In heketi-templates-3.1.0-2.el7rhgs.x86_64.rpm, this was still not corrected
> completely and I noticed that it changed to the following:
> 
> ####
> # cat /usr/share/heketi/templates/glusterfs-template.json |grep "image"
>                                 "image": "rhgs3/rhgs-volmanager-rhel7",
> ####
> 
> For more details, refer: https://bugzilla.redhat.com/show_bug.cgi?id=1397793

Nice catch.. That answers it. It seems that the last build got really mangled. Thanks for noticing it.