Merge "Upgrade task for Swift"

This commit is contained in:
Jenkins 2016-02-22 18:18:35 +00:00 committed by Gerrit Code Review
commit 3678532f34
3 changed files with 44 additions and 12 deletions

View File

@ -43,18 +43,6 @@
- "heka_socket:/var/lib/kolla/heka/"
when: inventory_hostname not in groups['swift-proxy-server']
- name: Starting swift-proxy-server container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
image: "{{ swift_proxy_server_image_full }}"
name: "swift_proxy_server"
volumes:
- "{{ node_config_directory }}/swift/:/var/lib/kolla/swift/:ro"
- "{{ node_config_directory }}/swift-proxy-server/:{{ container_config_directory }}/:ro"
- "heka_socket:/var/lib/kolla/heka/"
when: inventory_hostname in groups['swift-proxy-server']
- name: Starting swift-account-server container
kolla_docker:
action: "start_container"
@ -223,3 +211,15 @@
- "{{ swift_devices_mount_point }}:{{ swift_devices_mount_point }}"
- "heka_socket:/var/lib/kolla/heka/"
when: inventory_hostname in groups['swift-object-server']
- name: Starting swift-proxy-server container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
image: "{{ swift_proxy_server_image_full }}"
name: "swift_proxy_server"
volumes:
- "{{ node_config_directory }}/swift/:/var/lib/kolla/swift/:ro"
- "{{ node_config_directory }}/swift-proxy-server/:{{ container_config_directory }}/:ro"
- "heka_socket:/var/lib/kolla/heka/"
when: inventory_hostname in groups['swift-proxy-server']

View File

@ -0,0 +1,28 @@
---
# NOTE(pbourke): because the images that are used to start Swift containers
# were refactored for Mitaka, we need to completely remove the existing
# containers or we get a conflict when attempting to start the new ones.
- name: "Cleaning out old Swift containers"
kolla_docker:
name: "{{ item }}"
# TODO(pbourke): Swift recommend using a SIGHUP to gracefully stop the
# services. Update once kolla_docker supports this.
action: remove_container
with_items:
- "swift_rsyncd"
- "swift_account_server"
- "swift_account_auditor"
- "swift_account_replicator"
- "swift_account_reaper"
- "swift_container_server"
- "swift_container_auditor"
- "swift_container_replicator"
- "swift_container_updater"
- "swift_object_server"
- "swift_object_auditor"
- "swift_object_replicator"
- "swift_object_updater"
- "swift_object_expirer"
- "swift_proxy_server"
- include: start.yml

View File

@ -1 +1,5 @@
---
- include: config.yml
- include: stop_and_start.yml
serial: "30%"