Bug 1215850

Summary: De-hardcode 7.0 in calamari
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: Harish NV Rao <hnallurv>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: urgent CC: branto, ceph-qa-bugs, dmick, gmeno, icolle, kdreyer, nlevine, poelstra, sgraf, tmuthami, trhoden
Version: 1.3.0Keywords: Regression
Target Milestone: rc   
Target Release: 1.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: calamari-server-1.3-4.el7cp Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1190766 Environment:
Last Closed: 2015-06-24 15:52:32 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:
Bug Depends On: 1190766    
Bug Blocks:    

Comment 2 Ken Dreyer (Red Hat) 2015-04-28 15:09:46 UTC
PR for upstream master branch: https://github.com/ceph/calamari/pull/274
PR for upstream 1.3 branch: https://github.com/ceph/calamari/pull/275

Comment 3 Ken Dreyer (Red Hat) 2015-04-29 21:27:09 UTC
Discussed this with Gregory on IRC today. The upstream PR https://github.com/ceph/calamari/pull/275 contains two patches. The reason for this is that one of the patches is to fix this issue, and the other is to partially fix the issue described at bug 1215802. A more complete patch for bug 1215802 is still in development.

Comment 7 Harish NV Rao 2015-06-02 07:09:35 UTC
Tested the fix on an admin node running RHEL 7.1 which had SELinux disabled. The calamari-ctl initialize completed successfully. 

[root@Admin ~]# 
[root@Admin ~]# cat /etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

[root@Admin ~]# calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[INFO] Updating database...
[INFO] Initializing web interface...
[INFO] Starting/enabling services...
[INFO] Restarting services...
[INFO] Complete.
[root@Admin ~]#

Comment 9 errata-xmlrpc 2015-06-24 15:52:32 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, 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/RHBA-2015:1183