Skip to content

Commit

Permalink
Update e2e playbooks with new label convention openebs -> openebs.io
Browse files Browse the repository at this point in the history
Signed-off-by: kmova <kiran.mova@openebs.io>
  • Loading branch information
kmova committed Aug 25, 2018
1 parent 77e2f3e commit c5b2e65
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions e2e/ansible/playbooks/feature/ha/ha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
- name: Get storage ctrl pod name
shell: >
source ~/.profile;
kubectl get pods -n {{ namespace }} -l openebs/controller=jiva-controller --no-headers
kubectl get pods -n {{ namespace }} -l openebs.io/controller=jiva-controller --no-headers
args:
executable: /bin/bash
register: result
Expand Down Expand Up @@ -192,7 +192,7 @@
- name: Check if ctrl pod is restarted within 30s
shell: >
source ~/.profile;
kubectl get pods -n {{ namespace }} -l openebs/controller=jiva-controller
kubectl get pods -n {{ namespace }} -l openebs.io/controller=jiva-controller
args:
executable: /bin/bash
register: result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import time, os, sys
list = []
namespace = sys.argv[1]
cmd_cntrl_name = "source ~/.profile; kubectl get pod -n %s -l openebs/controller=jiva-controller --no-headers | awk '{print $1}'" %(namespace)
cmd_cntrl_name = "source ~/.profile; kubectl get pod -n %s -l openebs.io/controller=jiva-controller --no-headers | awk '{print $1}'" %(namespace)
print cmd_cntrl_name
out = subprocess.Popen(cmd_cntrl_name,stdout=subprocess.PIPE,shell=True)
cntrl_name = out.communicate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ claim_name: percona-claim

app_label: "name=percona"

replica_label: "openebs/replica=jiva-replica"
replica_label: "openebs.io/replica=jiva-replica"

namespace: resize-volume
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
delegate_to: "{{ groups['kubernetes-kubemasters'].0}}"

- name: Getting the replica pod names
shell: kubectl get pods --all-namespaces --show-labels | grep openebs/replica=jiva-replica | awk {'print $2'} | awk 'FNR == {{ item }} {print}'
shell: kubectl get pods --all-namespaces --show-labels | grep openebs.io/replica=jiva-replica | awk {'print $2'} | awk 'FNR == {{ item }} {print}'
args:
executable: /bin/bash
register: pods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
#- --interval=10m

# only target pods in the test environment
#- --labels=openebs/controller=jiva-controller
#- --labels=openebs.io/controller=jiva-controller

# only consider pods with this annotation
#- --annotations=chaos.alpha.kubernetes.io/enabled=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
- name: Get the name of the volume ctrl deployment
shell: >
source ~/.profile; kubectl get deployments -n {{ namespace }}
-l openebs/controller=jiva-controller --no-headers
-l openebs.io/controller=jiva-controller --no-headers
args:
executable: /bin/bash
delegate_to: "{{groups['kubernetes-kubemasters'].0}}"
Expand Down Expand Up @@ -147,7 +147,7 @@
shell: >
source ~/.profile; kubectl exec {{ chaospod }} -n {{ namespace }}
-- timeout -t {{ chaos_duration }} chaoskube
--labels 'openebs/controller=jiva-controller'
--labels 'openebs.io/controller=jiva-controller'
--no-dry-run --interval={{ chaos_interval }}s
--debug
--namespaces={{ namespace }}
Expand Down Expand Up @@ -231,4 +231,4 @@

- name: Set Test Name as Fact
set_fact:
testname: "{{ test_name }}"
testname: "{{ test_name }}"
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
include_tasks: "{{utils_path}}/deploy_check.yml"
vars:
ns: "{{ namespace }}"
lkey: openebs/replica
lkey: openebs.io/replica
lvalue: jiva-replica

- name: 8) Obtaining the replica pods running on specified node
Expand Down Expand Up @@ -269,7 +269,7 @@
include_tasks: "{{utils_path}}/deploy_check.yml"
vars:
ns: "{{ namespace }}"
lkey: openebs/replica
lkey: openebs.io/replica
lvalue: jiva-replica

- name: 14) Get Controller SVC IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@
lvalue: percona

- name: Get the node details on which pvc-rep is scheduled
shell: source ~/.profile; kubectl get pods -n {{ namespace }} -o wide -l openebs/replica=jiva-replica --no-headers | awk 'FNR == 1 {print}' | awk {'print $7'}
shell: source ~/.profile; kubectl get pods -n {{ namespace }} -o wide -l openebs.io/replica=jiva-replica --no-headers | awk 'FNR == 1 {print}' | awk {'print $7'}
args:
executable: /bin/bash
delegate_to: "{{groups['kubernetes-kubemasters'].0}}"
register: node_rep

- name: Get the pvc-rep name
shell: source ~/.profile; kubectl get pods -n {{ namespace }} -l openebs/replica=jiva-replica --no-headers | awk 'FNR == 1 {print}'| awk {'print $1'}
shell: source ~/.profile; kubectl get pods -n {{ namespace }} -l openebs.io/replica=jiva-replica --no-headers | awk 'FNR == 1 {print}'| awk {'print $1'}
args:
executable: /bin/bash
delegate_to: "{{groups['kubernetes-kubemasters'].0}}"
Expand Down Expand Up @@ -209,4 +209,4 @@

- name: Set Test Name as Fact
set_fact:
testname: "{{ test_name }}"
testname: "{{ test_name }}"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
changed_when: true

- name: Get replica pod name
shell: source ~/.profile; kubectl get pods -n {{ namespace }} -l openebs/replica=jiva-replica --no-headers | awk 'FNR == 1 {print}' | awk {'print $1'}
shell: source ~/.profile; kubectl get pods -n {{ namespace }} -l openebs.io/replica=jiva-replica --no-headers | awk 'FNR == 1 {print}' | awk {'print $1'}
args:
executable: /bin/bash
register: result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
- name: Get the name of the volume replica deployment
shell: >
source ~/.profile; kubectl get deployments -n {{ namespace }}
-l openebs/replica=jiva-replica --no-headers
-l openebs.io/replica=jiva-replica --no-headers
args:
executable: /bin/bash
delegate_to: "{{groups['kubernetes-kubemasters'].0}}"
Expand Down Expand Up @@ -181,4 +181,4 @@

- name: Set Test Name as Fact
set_fact:
testname: "{{ test_name }}"
testname: "{{ test_name }}"
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
#- --interval=10m

# only target pods in the test environment
#- --labels=openebs/controller=jiva-controller
#- --labels=openebs.io/controller=jiva-controller

# only consider pods with this annotation
#- --annotations=chaos.alpha.kubernetes.io/enabled=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
- name: Get the name of the volume single replica deployment
shell: >
source ~/.profile; kubectl get deployments -n {{ namespace }}
-l openebs/replica=jiva-replica --no-headers
-l openebs.io/replica=jiva-replica --no-headers
args:
executable: /bin/bash
delegate_to: "{{groups['kubernetes-kubemasters'].0}}"
Expand All @@ -138,7 +138,7 @@
- name: Get the name of the single replica pod to a variable
shell: >
source ~/.profile; kubectl get pods -n {{ namespace }}
-l openebs/replica=jiva-replica --no-headers
-l openebs.io/replica=jiva-replica --no-headers
args:
executable: /bin/bash
delegate_to: "{{groups['kubernetes-kubemasters'].0}}"
Expand Down Expand Up @@ -193,7 +193,7 @@
shell: >
source ~/.profile; kubectl exec {{ chaospod }} -n {{ namespace }}
-- timeout -t {{ chaos_duration }} chaoskube
--labels 'openebs/replica=jiva-replica'
--labels 'openebs.io/replica=jiva-replica'
--no-dry-run --interval={{ chaos_interval }}s
--debug
--namespaces={{ namespace }}
Expand Down Expand Up @@ -294,4 +294,4 @@

- name: Set Test Name as Fact
set_fact:
testname: "{{ test_name }}"
testname: "{{ test_name }}"

0 comments on commit c5b2e65

Please sign in to comment.