]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: When device size contains the decimal, it can not match size exactly.
authorjianglong01 <jianglong01@qianxin.com>
Fri, 12 Mar 2021 03:03:10 +0000 (11:03 +0800)
committerSage Weil <sage@newdream.net>
Fri, 7 May 2021 12:41:41 +0000 (07:41 -0500)
commita516dbee983d4f516f07fbd01db8f75baaf1e6eb
treeeb397ec2a5a1b1979ea980731f2717ed207d78ed
parentf3e956c7fe1b7c543d988f9f5fca55a534d03b45
mgr/cephadm: When device size contains the decimal, it can not match size exactly.

for example, osd.yaml:
service_type: osd
service_name: test
placement:
  host_pattern: '*'
spec:
  data_devices:
    size: 3.6TB

Signed-off-by: jianglong01 <jianglong01@qianxin.com>
(cherry picked from commit fd30aff672a1908a37163472f9c6478eca4e98e2)
src/python-common/ceph/deployment/drive_selection/matchers.py