Bug 1353897

Summary: storage profiles not working
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Lubos Trilety <ltrilety>
Component: coreAssignee: Nishanth Thomas <nthomas>
core sub component: provisioning QA Contact: Lubos Trilety <ltrilety>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: high CC: mkudlej, vsarmila
Version: 2Keywords: TestBlocker
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: 2016-08-23 19:56:22 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: 1349786    
Bug Blocks: 1344195    
Attachments:
Description Flags
crush map none

Description Lubos Trilety 2016-07-08 11:15:19 UTC
Created attachment 1177616 [details]
crush map

Description of problem:
It is possible to use and/or create storage profiles, however a crush map is not created correctly hence those rules are not really present in ceph.
# ceph osd crush rule ls
[
    "replicated_ruleset"
]
Moreover because UI uses its storage profiles (crush rules) that could cause that pools cannot be created.

Version-Release number of selected component (if applicable):
rhscon-ui-0.0.45-1.el7scon.noarch
rhscon-core-selinux-0.0.31-1.el7scon.noarch
rhscon-ceph-0.0.30-1.el7scon.x86_64
rhscon-core-0.0.31-1.el7scon.x86_64

How reproducible:
100%

Steps to Reproduce:
1. During creating of a cluster add some storage profiles (e.g. ec_profile)
2. Check crush map
3.

Actual results:
crush map does not have any crush rule corresponding to created storage profiles
There are these lines in log:
ec_profile In cleared 0 0 {0 0 0 }} not found in cluster, removing from DB
general In cleared 0 0 {0 0 0 }} not found in cluster, removing from DB

Expected results:
storage profiles and corresponding rules are created correctly

Additional info:
see crush map in attachment

Comment 2 Lubos Trilety 2016-07-22 08:42:45 UTC
Tested on:
rhscon-core-0.0.34-1.el7scon.x86_64
rhscon-ui-0.0.48-1.el7scon.noarch
rhscon-core-selinux-0.0.34-1.el7scon.noarch
rhscon-ceph-0.0.33-1.el7scon.x86_64

# ceph osd crush rule ls
[
    "replicated_ruleset",
    "test"
]

Crush map checked.

Comment 4 errata-xmlrpc 2016-08-23 19:56:22 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/RHEA-2016:1754