| Summary: | Pool creation crush ruleset | ||
|---|---|---|---|
| Product: | Red Hat Storage Console | Reporter: | Filip Balák <fbalak> |
| Component: | Ceph | Assignee: | Shubhendu Tripathi <shtripat> |
| Ceph sub component: | configuration | QA Contact: | sds-qe-bugs |
| Status: | CLOSED WONTFIX | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | nthomas |
| Version: | 2 | ||
| Target Milestone: | --- | ||
| Target Release: | 3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-11-19 05:40:31 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: | |
This product is EOL now |
Description of problem: Pool should be created with proper crush ruleset. Instead of creating it in the default one and than changing it into the proper one. Version-Release number of selected component (if applicable): rhscon-ceph-0.0.41-1.el7scon.x86_64 rhscon-core-selinux-0.0.42-1.el7scon.noarch rhscon-core-0.0.42-1.el7scon.x86_64 rhscon-ui-0.0.55-1.el7scon.noarch How reproducible: 100% Steps to Reproduce: 1. Create some pool using USM. (e.g. pool1) Actual results: From audit.log can be seen that the pool was created on the default ruleset. # cat ceph.audit.log ... 2016-09-15 13:31:14.327460 mon.2 10.34.126.89:6789/0 1881 : audit [INF] from='client.? 10.34.126.87:0/1573662641' entity='client.admin' cmd=[{"pool_type": "replicated", "prefix": "osd pool create", "pg_num": 128, "erasure_code_profile": "", "format": "json", "pool": "pool1"}]: dispatch 2016-09-15 13:31:14.328693 mon.0 10.34.126.87:6789/0 1142 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd=[{"pool_type": "replicated", "prefix": "osd pool create", "pg_num": 128, "erasure_code_profile": "", "format": "json", "pool": "pool1"}]: dispatch 2016-09-15 13:31:14.630310 mon.0 10.34.126.87:6789/0 1143 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd='[{"pool_type": "replicated", "prefix": "osd pool create", "pg_num": 128, "erasure_code_profile": "", "format": "json", "pool": "pool1"}]': finished 2016-09-15 13:31:14.634557 mon.2 10.34.126.89:6789/0 1882 : audit [INF] from='client.? 10.34.126.87:0/1573662641' entity='client.admin' cmd=[{"var": "size", "prefix": "osd pool set", "pool": "pool1", "val": 2, "format": "json"}]: dispatch 2016-09-15 13:31:14.639829 mon.0 10.34.126.87:6789/0 1145 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd=[{"var": "size", "prefix": "osd pool set", "pool": "pool1", "val": 2, "format": "json"}]: dispatch 2016-09-15 13:31:15.643268 mon.0 10.34.126.87:6789/0 1147 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd='[{"var": "size", "prefix": "osd pool set", "pool": "pool1", "val": 2, "format": "json"}]': finished 2016-09-15 13:31:15.654838 mon.2 10.34.126.89:6789/0 1883 : audit [INF] from='client.? 10.34.126.87:0/1573662641' entity='client.admin' cmd=[{"var": "min_size", "prefix": "osd pool set", "pool": "pool1", "val": 1, "format": "json"}]: dispatch 2016-09-15 13:31:15.688771 mon.0 10.34.126.87:6789/0 1150 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd=[{"var": "min_size", "prefix": "osd pool set", "pool": "pool1", "val": 1, "format": "json"}]: dispatch 2016-09-15 13:31:16.655490 mon.0 10.34.126.87:6789/0 1151 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd='[{"var": "min_size", "prefix": "osd pool set", "pool": "pool1", "val": 1, "format": "json"}]': finished 2016-09-15 13:31:16.658992 mon.2 10.34.126.89:6789/0 1884 : audit [INF] from='client.? 10.34.126.87:0/1573662641' entity='client.admin' cmd=[{"var": "crush_ruleset", "prefix": "osd pool set", "pool": "pool1", "val": 1, "format": "json"}]: dispatch 2016-09-15 13:31:16.660398 mon.0 10.34.126.87:6789/0 1153 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd=[{"var": "crush_ruleset", "prefix": "osd pool set", "pool": "pool1", "val": 1, "format": "json"}]: dispatch 2016-09-15 13:31:17.666433 mon.0 10.34.126.87:6789/0 1155 : audit [INF] from='client.15128 :/0' entity='client.admin' cmd='[{"var": "crush_ruleset", "prefix": "osd pool set", "pool": "pool1", "val": 1, "format": "json"}]': finished ... Expected results: If the pool is created on the correct crush ruleset it looks like this: 016-09-19 17:08:39.464116 mon.1 10.34.126.88:6789/0 18 : audit [INF] from='client.? 10.34.126.88:0/3936581272' entity='client.admin' cmd=[{"pool_type": "replicated", "prefix": "osd pool create", "pg_num": 120, "erasure_code_profile": "profil2", "pool": "pooltest"}]: dispatch 2016-09-19 17:08:39.465526 mon.0 10.34.126.87:6789/0 1437 : audit [INF] from='client.184117 :/0' entity='client.admin' cmd=[{"pool_type": "replicated", "prefix": "osd pool create", "pg_num": 120, "erasure_code_profile": "profil2", "pool": "pooltest"}]: dispatch 2016-09-19 17:08:39.807832 mon.0 10.34.126.87:6789/0 1438 : audit [INF] from='client.184117 :/0' entity='client.admin' cmd='[{"pool_type": "replicated", "prefix": "osd pool create", "pg_num": 120, "erasure_code_profile": "profil2", "pool": "pooltest"}]': finished Additional info: