Bug 1324494

Summary: 2.0: 'calamari-ctl initialize' fails when trying to install calamari via ceph-ansible
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Harish NV Rao <hnallurv>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED DUPLICATE Docs Contact:
Severity: urgent    
Priority: unspecified CC: ceph-eng-bugs, hnallurv
Version: 2.0   
Target Milestone: rc   
Target Release: 2.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-27 15:39:24 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:
Attachments:
Description Flags
mon logs file.
none
ceph-ansible files none

Description Harish NV Rao 2016-04-06 13:21:58 UTC
Description of problem:

 In a working cluster, after adding mon host under [restapis] in 'hosts' file and rerunning the playbook, the calamari-ctl initialize fails with following messages in /var/log/messages:

Apr  6 12:12:58 magna013 yum[15292]: Installed: calamari-server-1.4.0-0.2.rc6.el7cp.x86_64
Apr  6 12:12:58 magna013 python: detected unhandled Python exception in '/opt/calamari/venv/bin/calamari-lite'
Apr  6 12:12:58 magna013 abrt-server: Package 'calamari-server' isn't signed with proper key
Apr  6 12:12:58 magna013 abrt-server: 'post-create' on '/var/spool/abrt/Python-2016-04-06-12:12:58-15348' exited with 1
Apr  6 12:12:58 magna013 abrt-server: Deleting problem directory '/var/spool/abrt/Python-2016-04-06-12:12:58-15348'
Apr  6 12:12:59 magna013 python: detected unhandled Python exception in '/opt/calamari/venv/bin/calamari-lite'
Apr  6 12:12:59 magna013 python: ansible-command Invoked with creates=None executable=None chdir=None args=calamari-ctl initialize removes=None NO_LOG=None shell=False warn=True
Apr  6 12:13:00 magna013 abrt-server: Not saving repeating crash in '/opt/calamari/venv/bin/calamari-lite'
Apr  6 12:14:00 magna013 systemd-logind: Removed session 246.

Version-Release number of selected component (if applicable): 
10.1.0-1.el7cp

How reproducible:
always

Steps to Reproduce:
1. create cluster using ceph-ansible. 
2. add the mon node under [restapis] in "hosts" file
3. Re-run the ceph-ansible command to create the cluster

Actual results:


Expected results:


Additional info:

Comment 2 Harish NV Rao 2016-04-06 13:24:38 UTC
Created attachment 1144223 [details]
mon logs file.

Comment 3 Harish NV Rao 2016-04-06 13:26:05 UTC
Created attachment 1144224 [details]
ceph-ansible files

Comment 4 Christina Meno 2016-04-12 00:04:25 UTC
Harish I believe this error is caused by https://bugzilla.redhat.com/show_bug.cgi?id=1326131

Would you please attempt the following work-around to confirm?
On nodes that you intend to be monitors enable the storage-console puddle and 
cd /etc/yum.repos.d && sudo curl \
            http://puddle.ceph.redhat.com/puddles/rhscon/2/latest/RHSCON-2.repo -O

yum install salt-minion salt-common

then install calamari using ceph-ansible. If the problem disappears you'll know that it's the same problem as in 1326131

Either way would you please let me know here?

Comment 5 Harish NV Rao 2016-04-12 09:48:15 UTC
I had already installed salt-minion. When I tried installing salt-common, it failed saying "No package salt-common available.". I did not find salt-common in http://puddle.ceph.redhat.com/puddles/rhscon/2/2016-04-10.1/RHSCON-2/x86_64/os/Packages/. 

Logs:
======
[root@magna013 yum.repos.d]# cat RHSCON-2.repo 
[RHSCON-2]
name=RHSCON-2
baseurl=http://puddle.ceph.redhat.com/puddles/rhscon/2/2016-04-10.1/RHSCON-2/$basearch/os
gpgcheck=0
enabled=1

[RHSCON-2-debug]
name=RHSCON-2 Debuginfo
baseurl=http://puddle.ceph.redhat.com/puddles/rhscon/2/2016-04-10.1/RHSCON-2/$basearch/debuginfo
gpgcheck=0
enabled=0

[RHSCON-2-sources]
name=RHSCON-2 Sources
baseurl=http://puddle.ceph.redhat.com/puddles/rhscon/2/2016-04-10.1/RHSCON-2/source
gpgcheck=0
enabled=0

[root@magna013 yum.repos.d]# yum install salt-minion salt-common
Loaded plugins: fastestmirror, langpacks, priorities, product-id, search-disabled-repos, subscription-manager
Loading mirror speeds from cached hostfile
Package salt-minion-2015.5.5-1.el7.noarch already installed and latest version
No package salt-common available.
Nothing to do

[root@magna013 yum.repos.d]#

Comment 6 Christina Meno 2016-04-27 15:39:24 UTC

*** This bug has been marked as a duplicate of bug 1326131 ***