<commit_before>include:
  - openstack.repo
  - openstack.ceph.repo
  - openstack.ceph.keys
  - openstack.patch.kombu
  - openstack.cinder.user

ceph-integration:
  pkg.installed:
    - pkgs:
      - python-ceph
      - ceph-common
    - require:
      - pkgrepo: ceph-repo
      - sls: openstack.ceph.keys

{% for subservice in ['api','scheduler','volume'] %}
cinder-{{subservice}}:
  pkg.installed:
    - require:
      - user: cinder-user
      - pkg: ceph-integration
      - sls: openstack.patch.kombu
  service.running:
    - watch:
      - file: '/etc/cinder/cinder.conf'
      - pkg: cinder-{{subservice}}
      - cmd: cinder-service-cephargs
    - require:
      - cmd: cinder-db-sync
      - file: '/etc/cinder/cinder.conf'
      - pkg: cinder-{{subservice}}
{% endfor %}

cinder-db-sync:
  cmd.wait:
    - name: cinder-manage db sync<commit_msg>Include cinder client on install of api server.<commit_after>include:
  - openstack.repo
  - openstack.ceph.repo
  - openstack.ceph.keys
  - openstack.patch.kombu
  - openstack.cinder.user

ceph-integration:
  pkg.installed:
    - pkgs:
      - python-ceph
      - ceph-common
    - require:
      - pkgrepo: ceph-repo
      - sls: openstack.ceph.keys

{% for subservice in ['api','scheduler','volume'] %}
cinder-{{subservice}}:
  pkg.installed:
    - require:
      - user: cinder-user
      - pkg: ceph-integration
      - sls: openstack.patch.kombu
  service.running:
    - watch:
      - file: '/etc/cinder/cinder.conf'
      - pkg: cinder-{{subservice}}
      - cmd: cinder-service-cephargs
    - require:
      - cmd: cinder-db-sync
      - file: '/etc/cinder/cinder.conf'
      - pkg: cinder-{{subservice}}
{% endfor %}

cinder-client:
  pkg.installed:
    - pkgs:
        - python-cinder
        - python-cinderclient
    - require:
      - pkg: cinder-api

cinder-db-sync:
  cmd.wait:
    - name: cinder-manage db sync
{'fraction_non_alphanumeric': 0.1434643995749203, 'fraction_numerical': 0.0, 'mean_word_length': 2.154103852596315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '603515', 'n_tokens_mistral': 721, 'n_tokens_neox': 684, 'n_words': 116}