Skip to content

Commit 2cee258

Browse files
wangxiyuanbzhaoopenstack
authored andcommitted
Add citynetwork openrc (apache#596)
The openrc should be updated for citynetwork cloud as well Related-Bug: theopenlab/openlab#321
1 parent c563f82 commit 2cee258

File tree

9 files changed

+28
-21
lines changed
  • playbooks
    • cloud-provider-openstack-acceptance-test-csi-cinder
    • cloud-provider-openstack-acceptance-test-e2e-conformance
    • cloud-provider-openstack-acceptance-test-k8s-cinder
    • cloud-provider-openstack-acceptance-test-lb-octavia
    • cloud-provider-openstack-test
    • cloud-provider-openstack-unittest
  • roles/export-cloud-openrc/tasks
  • zuul.d

9 files changed

+28
-21
lines changed

playbooks/cloud-provider-openstack-acceptance-test-csi-cinder/run.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
- hosts: all
22
roles:
33
- config-golang
4-
- role: export-cloud-openrc
5-
vars:
6-
cloud_name: 'vexxhost'
4+
- export-cloud-openrc
75
- install-k8s
86
become: yes
97
tasks:

playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/run.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
- hosts: all
22
roles:
33
- config-golang
4-
- role: export-cloud-openrc
5-
vars:
6-
cloud_name: 'vexxhost'
4+
- export-cloud-openrc
75
- install-k8s
86
become: yes
97
tasks:

playbooks/cloud-provider-openstack-acceptance-test-k8s-cinder/run.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
become: yes
33
roles:
44
- config-golang
5-
- role: export-cloud-openrc
6-
vars:
7-
cloud_name: 'vexxhost'
5+
- export-cloud-openrc
86
- install-k8s
97
tasks:
108
- name: Run kubernetes cinder acceptance tests with cloud-provider-openstack

playbooks/cloud-provider-openstack-acceptance-test-lb-octavia/post.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
- hosts: all
22
become: yes
33
roles:
4-
- role: export-cloud-openrc
5-
vars:
6-
cloud_name: 'vexxhost'
4+
- export-cloud-openrc
75
tasks:
86
- name: Clean up resources for lbass octavia acceptance tests
97
shell:

playbooks/cloud-provider-openstack-acceptance-test-lb-octavia/run.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
become: yes
33
roles:
44
- config-golang
5-
- role: export-cloud-openrc
6-
vars:
7-
cloud_name: 'vexxhost'
5+
- export-cloud-openrc
86
- install-k8s
97
tasks:
108
- name: Run lbass octavia acceptance tests with cloud-provider-openstack

playbooks/cloud-provider-openstack-test/post.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
- hosts: all
22
become: yes
33
roles:
4-
- role: export-cloud-openrc
5-
vars:
6-
cloud_name: 'vexxhost'
4+
- export-cloud-openrc
75
tasks:
86
- name: Clean up resources for kubernetes tests
97
shell:

playbooks/cloud-provider-openstack-unittest/run.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
become: yes
33
roles:
44
- config-golang
5-
- role: export-cloud-openrc
6-
vars:
7-
cloud_name: 'vexxhost'
5+
- export-cloud-openrc
86
tasks:
97
- name: Run unit tests with cloud-provider-openstack
108
shell:

roles/export-cloud-openrc/tasks/main.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,25 @@
9191
no_log: yes
9292
when: cloud_name == 'vexxhost'
9393

94+
- name: Set fact for citynetwork openrc
95+
set_fact:
96+
openrc:
97+
OS_AUTH_TYPE: '{{ citynetwork_credentials.auth_type }}'
98+
OS_IDENTITY_API_VERSION: '{{ citynetwork_credentials.identity_api_version }}'
99+
OS_VOLUME_API_VERSION: '{{ citynetwork_credentials.volume_api_version }}'
100+
OS_NETWORK_API_VERSION: '{{ citynetwork_credentials.network_api_version }}'
101+
OS_INTERFACE: '{{ citynetwork_credentials.interface }}'
102+
OS_AUTH_URL: '{{ citynetwork_credentials.auth_url }}'
103+
OS_PROJECT_NAME: '{{ citynetwork_credentials.project_name }}'
104+
OS_PROJECT_DOMAIN_ID: '{{ citynetwork_credentials.project_domain_id }}'
105+
OS_USERNAME: '{{ citynetwork_credentials.username }}'
106+
OS_USER_DOMAIN_NAME: '{{ citynetwork_credentials.user_domain_name }}'
107+
OS_PASSWORD: '{{ citynetwork_credentials.password }}'
108+
OS_REGION_NAME: '{{ citynetwork_credentials.region_name }}'
109+
OS_DOMAIN_NAME: '{{ citynetwork_credentials.user_domain_name }}'
110+
no_log: yes
111+
when: cloud_name == 'citynetwork'
112+
94113
- name: Set fact for fusioncloud openrc
95114
set_fact:
96115
openrc:

zuul.d/jobs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
k8s_src_dir: '{{ ansible_user_dir }}/src/k8s.io/kubernetes'
534534
k8s_log_dir: '{{ ansible_user_dir }}/workspace/logs/kubernetes'
535535
kubectl: '{{ ansible_user_dir }}/src/k8s.io/kubernetes/cluster/kubectl.sh'
536+
cloud_name: vexxhost
536537

537538
- job:
538539
name: cloud-provider-openstack-unittest
@@ -2207,6 +2208,7 @@
22072208
k8s_src_dir: '{{ ansible_user_dir }}/src/k8s.io/kubernetes'
22082209
k8s_log_dir: '{{ ansible_user_dir }}/workspace/logs/kubernetes'
22092210
kubectl: '{{ ansible_user_dir }}/src/k8s.io/kubernetes/cluster/kubectl.sh'
2211+
cloud_name: citynetwork
22102212

22112213
- job:
22122214
name: cloud-provider-openstack-unittest-citynetwork

0 commit comments

Comments
 (0)