Skip to content

Commit

Permalink
Remove remaining references to openshift-master.service
Browse files Browse the repository at this point in the history
Prevents playbooks from accidentally restarting the master service.
  • Loading branch information
smarterclayton committed Aug 8, 2017
1 parent b3c610d commit 8e28bbc
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
with_items:
- etcd_container
- openvswitch
- "{{ openshift.common.service_type }}-master"
- "{{ openshift.common.service_type }}-master-api"
- "{{ openshift.common.service_type }}-master-controllers"
- "{{ openshift.common.service_type }}-node"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
- name: Stop containerized services
service: name={{ item }} state=stopped
with_items:
- "{{ openshift.common.service_type }}-master"
- "{{ openshift.common.service_type }}-master-api"
- "{{ openshift.common.service_type }}-master-controllers"
- "{{ openshift.common.service_type }}-node"
Expand Down
5 changes: 0 additions & 5 deletions playbooks/common/openshift-master/restart_services.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
- name: Restart master
service:
name: "{{ openshift.common.service_type }}-master"
state: restarted
when: not openshift_master_ha | bool
- name: Restart master API
service:
name: "{{ openshift.common.service_type }}-master-api"
Expand Down
1 change: 0 additions & 1 deletion playbooks/common/openshift-node/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
with_items:
- etcd_container
- openvswitch
- "{{ openshift.common.service_type }}-master"
- "{{ openshift.common.service_type }}-master-api"
- "{{ openshift.common.service_type }}-master-controllers"
- "{{ openshift.common.service_type }}-node"
Expand Down
4 changes: 0 additions & 4 deletions roles/nuage_master/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
become: yes
systemd: name=nuage-openshift-monitor state=restarted

- name: restart master
systemd: name={{ openshift.common.service_type }}-master state=restarted
when: (not openshift_master_ha | bool) and (not master_service_status_changed | default(false))

- name: restart master api
systemd: name={{ openshift.common.service_type }}-master-api state=restarted
when: >
Expand Down
12 changes: 0 additions & 12 deletions roles/openshift_master/tasks/system_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
atomic containers list --no-trunc -a -f container={{ openshift.common.service_type }}-master
register: result

- name: Install or Update master system container
oc_atomic_container:
name: "{{ openshift.common.service_type }}-master"
image: "{{ 'docker:' if openshift.common.system_images_registry == 'docker' else openshift.common.system_images_registry + '/' }}{{ openshift.master.master_system_image }}:{{ openshift_image_tag }}"
state: latest
when:
- not l_is_ha

# HA
- name: Install or Update HA api master system container
oc_atomic_container:
Expand All @@ -26,8 +18,6 @@
state: latest
values:
- COMMAND=api
when:
- l_is_ha

- name: Install or Update HA controller master system container
oc_atomic_container:
Expand All @@ -36,5 +26,3 @@
state: latest
values:
- COMMAND=controllers
when:
- l_is_ha

This file was deleted.

1 change: 0 additions & 1 deletion roles/openshift_master/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ openshift_master_valid_grant_methods:
- prompt
- deny

l_is_ha: "{{ openshift.master.ha is defined and openshift.master.ha | bool }}"
openshift_master_is_scaleup_host: False
2 changes: 0 additions & 2 deletions roles/openshift_node_upgrade/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
name: "{{ item }}"
state: stopped
with_items:
- "{{ openshift.common.service_type }}-master"
- "{{ openshift.common.service_type }}-master-controllers"
- "{{ openshift.common.service_type }}-master-api"
- etcd_container
Expand Down Expand Up @@ -81,7 +80,6 @@
with_items:
- etcd_container
- openvswitch
- "{{ openshift.common.service_type }}-master"
- "{{ openshift.common.service_type }}-master-api"
- "{{ openshift.common.service_type }}-master-controllers"
- "{{ openshift.common.service_type }}-node"
Expand Down
1 change: 0 additions & 1 deletion roles/openshift_node_upgrade/tasks/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
with_items:
- etcd_container
- openvswitch
- "{{ openshift.common.service_type }}-master"
- "{{ openshift.common.service_type }}-master-api"
- "{{ openshift.common.service_type }}-master-controllers"
- "{{ openshift.common.service_type }}-node"
Expand Down

0 comments on commit 8e28bbc

Please sign in to comment.