Bug 1355962

Summary: cannot create pool in imported cluster
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Martin Kudlej <mkudlej>
Component: coreAssignee: Nishanth Thomas <nthomas>
core sub component: provisioning QA Contact: Martin Kudlej <mkudlej>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: urgent    
Priority: unspecified Keywords: TestBlocker
Version: 2   
Target Milestone: ---   
Target Release: 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhscon-core-0.0.34-1.el7scon.x86_64 rhscon-ceph-0.0.33-1.el7scon.x86_64 rhscon-ui-0.0.47-1.el7scon.noarch Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 05:29:56 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: 1362510    
Bug Blocks:    

Description Martin Kudlej 2016-07-13 07:19:40 UTC
Description of problem:
It is not possible to create pool in imported cluster. Error message:
 Error getting the ruleset for cluster: ceph_ansible

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

calamari node:
ceph-base-10.2.2-16.el7cp.x86_64
ceph-common-10.2.2-16.el7cp.x86_64
ceph-mon-10.2.2-16.el7cp.x86_64
ceph-release-1-1.el7.noarch
ceph-selinux-10.2.2-16.el7cp.x86_64
libcephfs1-10.2.2-16.el7cp.x86_64
python-cephfs-10.2.2-16.el7cp.x86_64
rhscon-agent-0.0.13-1.el7scon.noarch

console node:
ceph-ansible-1.0.5-25.el7scon.noarch
ceph-installer-1.0.12-4.el7scon.noarch
rhscon-ceph-0.0.31-1.el7scon.x86_64
rhscon-core-0.0.32-1.el7scon.x86_64
rhscon-core-selinux-0.0.32-1.el7scon.noarch
rhscon-ui-0.0.46-1.el7scon.noarch

How reproducible:
100%

Steps to Reproduce:
1. create cluster by ceph-ansible
2. import cluster
3. try to create pool

Actual results:


Expected results:


Additional info:

Comment 2 Martin Kudlej 2016-07-13 07:25:57 UTC
Created attachment 1179102 [details]
monitor log and etc

Comment 4 Martin Kudlej 2016-07-13 07:48:33 UTC
Crushmap:
# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
tunable chooseleaf_vary_r 1
tunable straw_calc_version 1

# devices
device 0 osd.0
device 1 osd.1
device 2 osd.2
device 3 osd.3

# types
type 0 osd
type 1 host
type 2 chassis
type 3 rack
type 4 row
type 5 pdu
type 6 pod
type 7 room
type 8 datacenter
type 9 region
type 10 root

# buckets
host dhcp46-20 {
        id -2           # do not change unnecessarily
        # weight 0.098
        alg straw
        hash 0  # rjenkins1
        item osd.0 weight 0.098
}
host dhcp46-16 {
        id -3           # do not change unnecessarily
        # weight 0.098
        alg straw
        hash 0  # rjenkins1
        item osd.3 weight 0.098
}
host dhcp46-18 {
        id -4           # do not change unnecessarily
        # weight 0.098
        alg straw
        hash 0  # rjenkins1
        item osd.2 weight 0.098
}
host dhcp46-14 {
        id -5           # do not change unnecessarily
        # weight 0.098
        alg straw
        hash 0  # rjenkins1
        item osd.1 weight 0.098
}
root default {
        id -1           # do not change unnecessarily
        # weight 0.390
        alg straw
        hash 0  # rjenkins1
        item dhcp46-20 weight 0.098
        item dhcp46-16 weight 0.098
        item dhcp46-18 weight 0.098
        item dhcp46-14 weight 0.098
}

# rules
rule replicated_ruleset {
        ruleset 0
        type replicated
        min_size 1
        max_size 10
        step take default
        step chooseleaf firstn 0 type host
        step emit
}

# end crush map

Comment 5 Martin Kudlej 2016-08-08 11:42:38 UTC
Tested with
ceph-ansible-1.0.5-32.el7scon.noarch
ceph-installer-1.0.14-1.el7scon.noarch
rhscon-ceph-0.0.40-1.el7scon.x86_64
rhscon-core-0.0.41-1.el7scon.x86_64
rhscon-core-selinux-0.0.41-1.el7scon.noarch
rhscon-ui-0.0.52-1.el7scon.noarch
and it works.