Bug 1638228

Summary: [GSS] Modifying a ruleset to include device class causes data movement even when the cluster has only one type of device
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Karun Josy <kjosy>
Component: RADOSAssignee: Josh Durgin <jdurgin>
Status: CLOSED DUPLICATE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: assingh, ceph-eng-bugs, dzafman, igreen, jdurgin, kchai, kjosy, mhackett, nojha, takirby
Target Milestone: rc   
Target Release: 3.*   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-17 21:37:14 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:

Description Karun Josy 2018-10-11 07:42:10 UTC
Description of problem:

Consider a cluster with device all HDDs. 

- Initially the ruleset "test" doesn't have a device class associated with it 

rule test {
        id 2
        type replicated
        min_size 1
        max_size 10
        step take default            =========> hdd device class missing
        step chooseleaf firstn 0 type host
        step emit
}


- Edited the crushmap and added the device class

rule test {
        id 2
        type replicated
        min_size 1
        max_size 10
        step take default class hdd  =========> hdd device class present
        step chooseleaf firstn 0 type host
        step emit
}


After injecting the new crush map, we noticed some data movement. Ideally there shouldn't be any data movement as there is no change in the underlying osd disks types.

Is this expected behaviour? If yes,is there any workaround to prevent it as it causes large data movement?


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

How reproducible:
Always

Comment 13 Josh Durgin 2018-10-17 21:37:14 UTC

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