Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr/cephadm: inform users if limit set for data devices is not met #43654

Merged
merged 2 commits into from Oct 30, 2021

Conversation

adk3798
Copy link
Contributor

@adk3798 adk3798 commented Oct 25, 2021

Signed-off-by: Adam King adking@redhat.com

################
OSDSPEC PREVIEWS
################
NOTE: Did not find enough disks matching filter on host vm-00 to reach data device limit (Found: 4 | Limit: 7)
NOTE: Did not find enough disks matching filter on host vm-01 to reach data device limit (Found: 4 | Limit: 7)
NOTE: Did not find enough disks matching filter on host vm-02 to reach data device limit (Found: 4 | Limit: 7)
+---------+--------------+-------+----------+----+-----+
|SERVICE  |NAME          |HOST   |DATA      |DB  |WAL  |
+---------+--------------+-------+----------+----+-----+
|osd      |osd_spec_hdd  |vm-00  |/dev/vdb  |-   |-    |
|osd      |osd_spec_hdd  |vm-00  |/dev/vdc  |-   |-    |
|osd      |osd_spec_hdd  |vm-00  |/dev/vdd  |-   |-    |
|osd      |osd_spec_hdd  |vm-00  |/dev/vde  |-   |-    |
|osd      |osd_spec_hdd  |vm-01  |/dev/vdb  |-   |-    |
|osd      |osd_spec_hdd  |vm-01  |/dev/vdc  |-   |-    |
|osd      |osd_spec_hdd  |vm-01  |/dev/vdd  |-   |-    |
|osd      |osd_spec_hdd  |vm-01  |/dev/vde  |-   |-    |
|osd      |osd_spec_hdd  |vm-02  |/dev/vdb  |-   |-    |
|osd      |osd_spec_hdd  |vm-02  |/dev/vdc  |-   |-    |
|osd      |osd_spec_hdd  |vm-02  |/dev/vdd  |-   |-    |
|osd      |osd_spec_hdd  |vm-02  |/dev/vde  |-   |-    |
+---------+--------------+-------+----------+----+-----+
[ceph: root@vm-00 /]# cat osd-spec.yaml 
service_id: osd_spec_hdd
placement:
  host_pattern: '*'
data_devices:
  rotational: 1
  limit: 7
  
[ceph: root@vm-00 /]# ceph orch device ls
HOST   PATH      TYPE  DEVICE ID   SIZE  AVAILABLE  REJECT REASONS  
vm-00  /dev/vdb  hdd              53.6G  Yes                        
vm-00  /dev/vdc  hdd              53.6G  Yes                        
vm-00  /dev/vdd  hdd              53.6G  Yes                        
vm-00  /dev/vde  hdd              53.6G  Yes                        
vm-01  /dev/vdb  hdd              53.6G  Yes                        
vm-01  /dev/vdc  hdd              53.6G  Yes                        
vm-01  /dev/vdd  hdd              53.6G  Yes                        
vm-01  /dev/vde  hdd              53.6G  Yes                        
vm-02  /dev/vdb  hdd              53.6G  Yes                        
vm-02  /dev/vdc  hdd              53.6G  Yes                        
vm-02  /dev/vdd  hdd              53.6G  Yes                        
vm-02  /dev/vde  hdd              53.6G  Yes        

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Signed-off-by: Adam King <adking@redhat.com>
Copy link
Contributor

@sebastian-philipp sebastian-philipp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way we can verify this is a test?

Signed-off-by: Adam King <adking@redhat.com>
@adk3798
Copy link
Contributor Author

adk3798 commented Oct 26, 2021

is there a way we can verify this is a test?

Added a unit test for the changes in generate_preview

@sebastian-philipp
Copy link
Contributor

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants