<commit_before>---
- name: make sure public_network configured
  fail:
    msg: "public_network must be configured. Ceph public network"
  when: public_network == '0.0.0.0/0'

- name: make sure cluster_network configured
  fail:
    msg: "cluster_network must be configured. Ceph replication network"
  when:
    - cluster_network == '0.0.0.0/0'
    - not containerized_deployment

- name: make sure journal_size configured
  debug:
    msg: "WARNING: journal_size is configured to less than 5GB. This is not recommended and can lead to severe issues."
  when:
    - journal_size|int < 5120
    - osd_objectstore == 'filestore'
    - osd_group_name in group_names

- name: make sure an osd scenario was chosen
  fail:
    msg: "please choose an osd scenario"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - not containerized_deployment
    - osd_scenario == 'dummy'

- name: make sure a valid osd scenario was chosen
  fail:
    msg: "please choose an osd scenario, valid scenarios are {{ valid_osd_scenarios }}"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - not containerized_deployment
    - not osd_scenario in valid_osd_scenarios

- name: verify devices have been provided
  fail:
    msg: "please provide devices to your osd scenario"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - not osd_auto_discovery
    - devices|length == 0

- name: verify lvm_volumes have been provided
  fail:
    msg: "please provide lvm_volumes to your osd scenario"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - lvm_osds
    - not osd_auto_discovery
    - lvm_volumes|length == 0<commit_msg>lvm-osds: check for osd_objectstore == 'filestore'<commit_after>---
- name: make sure public_network configured
  fail:
    msg: "public_network must be configured. Ceph public network"
  when: public_network == '0.0.0.0/0'

- name: make sure cluster_network configured
  fail:
    msg: "cluster_network must be configured. Ceph replication network"
  when:
    - cluster_network == '0.0.0.0/0'
    - not containerized_deployment

- name: make sure journal_size configured
  debug:
    msg: "WARNING: journal_size is configured to less than 5GB. This is not recommended and can lead to severe issues."
  when:
    - journal_size|int < 5120
    - osd_objectstore == 'filestore'
    - osd_group_name in group_names

- name: make sure an osd scenario was chosen
  fail:
    msg: "please choose an osd scenario"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - not containerized_deployment
    - osd_scenario == 'dummy'

- name: make sure a valid osd scenario was chosen
  fail:
    msg: "please choose an osd scenario, valid scenarios are {{ valid_osd_scenarios }}"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - not containerized_deployment
    - not osd_scenario in valid_osd_scenarios

- name: verify devices have been provided
  fail:
    msg: "please provide devices to your osd scenario"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - not osd_auto_discovery
    - devices|length == 0

- name: verify lvm_volumes have been provided
  fail:
    msg: "please provide lvm_volumes to your osd scenario"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - lvm_osds
    - not osd_auto_discovery
    - lvm_volumes|length == 0

- name: verify osd_objectstore is 'filestore' when using lvm_osds
  fail:
    msg: "the lvm_osds scenario currently only works for filestore, not bluestore"
  when:
    - osd_group_name is defined
    - osd_group_name in group_names
    - lvm_osds
    - not osd_auto_discovery
    - osd_objectstore != 'filestore'
{'fraction_non_alphanumeric': 0.06950317124735729, 'fraction_numerical': 0.008985200845665961, 'mean_word_length': 3.173098125689085, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '361530', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1237, 'n_words': 399}