summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2018-10-18 17:55:36 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2018-10-18 17:55:36 -0400
commit25dadb94db37e0f1c6769bf586ec06c3b5ea3051 (patch)
treeef8de3837794a3abe693f3ac6966272c31c2b18a /playbooks
parentce520ee789bf6a46f56de86769d74c095ce432cf (diff)
downloadnova-25dadb94db37e0f1c6769bf586ec06c3b5ea3051.tar.gz
Remove the CachingScheduler
The CachingScheduler has been deprecated since Pike [1]. It does not use the placement service and as more of nova relies on placement for managing resource allocations, maintaining compabitility for the CachingScheduler is exorbitant. The release note in this change goes into much more detail about why the FilterScheduler + Placement should be a sufficient replacement for the original justification for the CachingScheduler along with details on how to migrate from the CachingScheduler to the FilterScheduler. Since the [scheduler]/driver configuration option does allow loading out-of-tree drivers and the scheduler driver interface does have the USES_ALLOCATION_CANDIDATES variable, it is possible that there are drivers being used which are also not using the placement service. The release note also explains this but warns against it. However, as a result some existing functional tests, which were using the CachingScheduler, are updated to still test scheduling without allocations being created in the placement service. Over time we will likely remove the USES_ALLOCATION_CANDIDATES variable in the scheduler driver interface along with the compatibility code associated with it, but that is left for a later change. [1] Ia7ff98ff28b7265058845e46b277317a2bfc96d2 Change-Id: I1832da2190be5ef2b04953938860a56a43e8cddf
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/legacy/nova-caching-scheduler/post.yaml15
-rw-r--r--playbooks/legacy/nova-caching-scheduler/run.yaml59
2 files changed, 0 insertions, 74 deletions
diff --git a/playbooks/legacy/nova-caching-scheduler/post.yaml b/playbooks/legacy/nova-caching-scheduler/post.yaml
deleted file mode 100644
index e07f5510ae..0000000000
--- a/playbooks/legacy/nova-caching-scheduler/post.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-- hosts: primary
- tasks:
-
- - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
- synchronize:
- src: '{{ ansible_user_dir }}/workspace/'
- dest: '{{ zuul.executor.log_root }}'
- mode: pull
- copy_links: true
- verify_host: true
- rsync_opts:
- - --include=/logs/**
- - --include=*/
- - --exclude=*
- - --prune-empty-dirs
diff --git a/playbooks/legacy/nova-caching-scheduler/run.yaml b/playbooks/legacy/nova-caching-scheduler/run.yaml
deleted file mode 100644
index d3bc6e28fe..0000000000
--- a/playbooks/legacy/nova-caching-scheduler/run.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-- hosts: all
- name: nova-caching-scheduler
- tasks:
-
- - name: Ensure workspace directory
- file:
- path: '{{ ansible_user_dir }}/workspace'
- state: directory
-
- - shell:
- cmd: |
- set -e
- set -x
- cat > clonemap.yaml << EOF
- clonemap:
- - name: openstack-infra/devstack-gate
- dest: devstack-gate
- EOF
- /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
- git://git.openstack.org \
- openstack-infra/devstack-gate
- executable: /bin/bash
- chdir: '{{ ansible_user_dir }}/workspace'
- environment: '{{ zuul | zuul_legacy_vars }}'
-
- - shell:
- # The scheduler.periodic_task_interval must be less than the
- # service_down_time (defaults to 60) otherwise the ComputeFilter
- # will be using potentially stale compute service information and
- # think that the compute service is down when it's really not.
- cmd: |
- set -e
- set -x
- cat << 'EOF' >>"/tmp/dg-local.conf"
- [[local|localrc]]
- SCHEDULER=caching_scheduler
- [[post-config|$NOVA_CONF]]
- [scheduler]
- periodic_task_interval=30
-
- EOF
- executable: /bin/bash
- chdir: '{{ ansible_user_dir }}/workspace'
- environment: '{{ zuul | zuul_legacy_vars }}'
-
- - shell:
- cmd: |
- set -e
- set -x
- export PYTHONUNBUFFERED=true
- # Yes we want to run Tempest.
- export DEVSTACK_GATE_TEMPEST=1
- # Run with our blacklist.
- export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova/devstack/tempest-dsvm-caching-scheduler-rc
- cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
- ./safe-devstack-vm-gate-wrap.sh
- executable: /bin/bash
- chdir: '{{ ansible_user_dir }}/workspace'
- environment: '{{ zuul | zuul_legacy_vars }}'