forked from openstack-k8s-operators/data-plane-adoption
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ospdo adoption backend services (openstack-k8s-operators#689)
* Add Director Operator backend_service sscripts for adoption Related CI patch and background: https://gitlab.cee.redhat.com/ci-framework/ci-framework-jobs/-/merge_requests/966 Jiras: https://issues.redhat.com/browse/OSPRH-1891 https://issues.redhat.com/browse/OSPRH-2984 * backend_services default vars * fix lint * fix lint * fix lint * fix lint comment * update dpa vars
- Loading branch information
1 parent
71d6de4
commit 0f35244
Showing
5 changed files
with
248 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/roles/backend_services/tasks/ospdo_backend_services.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- name: get service passwords | ||
ansible.builtin.shell: | | ||
oc get secret tripleo-passwords -o jsonpath='{.data.*}' | base64 -d>~/tripleo-standalone-passwords.yaml | ||
when: get_svc_pass| default(false) | bool | ||
|
||
- name: get OSPdO storage storageClass | ||
ansible.builtin.shell: | | ||
oc get -n {{ org_namespace }} pvc openstackclient-hosts -o jsonpath='{.spec.storageClassName}' | ||
register: ospdo_storage_class | ||
when: deploy_ctlplane_ospdo| default(false) | bool | ||
|
||
- name: template out the openstack_control_plane_ospdo override for deployment | ||
ansible.builtin.template: | ||
src: openstack_control_plane_ospdo.j2 | ||
dest: "{{ dpa_tests_dir }}/config/tmp/openstack_control_plane_ospdo.yaml" | ||
mode: '644' | ||
force: true | ||
when: deploy_ctlplane_ospdo| default(false) | bool | ||
|
||
- name: Deploy podified control along side OSPdO | ||
ansible.builtin.shell: | | ||
{{ shell_header }} | ||
{{ oc_header }} | ||
oc apply -f {{ dpa_tests_dir }}/config/tmp/openstack_control_plane_ospdo.yaml | ||
args: | ||
chdir: "{{ dpa_tests_dir }}/config" | ||
when: deploy_ctlplane_ospdo| default(false) | bool |
180 changes: 180 additions & 0 deletions
180
tests/roles/backend_services/templates/openstack_control_plane_ospdo.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
nodeSelector: | ||
type: openstack | ||
storageClass: {{ ospdo_storage_class.stdout }} | ||
barbican: | ||
enabled: false | ||
template: | ||
barbicanAPI: {} | ||
barbicanWorker: {} | ||
barbicanKeystoneListener: {} | ||
|
||
cinder: | ||
enabled: false | ||
template: | ||
cinderAPI: {} | ||
cinderScheduler: {} | ||
cinderBackup: {} | ||
cinderVolumes: {} | ||
|
||
dns: | ||
template: | ||
override: | ||
service: | ||
metadata: | ||
annotations: | ||
metallb.universe.tf/address-pool: ctlplane{{ osp18_ns_suffix }} | ||
metallb.universe.tf/allow-shared-ip: ctlplane{{ osp18_ns_suffix }} | ||
metallb.universe.tf/loadBalancerIPs: 172.22.0.80 | ||
spec: | ||
type: LoadBalancer | ||
options: | ||
- key: server | ||
values: | ||
- 172.22.0.1 | ||
replicas: 1 | ||
|
||
glance: | ||
enabled: false | ||
template: | ||
glanceAPIs: {} | ||
|
||
horizon: | ||
enabled: false | ||
template: {} | ||
|
||
ironic: | ||
enabled: false | ||
template: | ||
ironicConductors: [] | ||
|
||
keystone: | ||
enabled: false | ||
template: {} | ||
|
||
manila: | ||
enabled: false | ||
template: | ||
manilaAPI: {} | ||
manilaScheduler: {} | ||
manilaShares: {} | ||
|
||
mariadb: | ||
enabled: false | ||
templates: {} | ||
|
||
galera: | ||
enabled: true | ||
templates: | ||
openstack: | ||
adoptionRedirect: {} | ||
replicas: 1 | ||
secret: osp-secret | ||
storageClass: {{ ospdo_storage_class.stdout }} | ||
storageRequest: 500M | ||
openstack-cell1: | ||
adoptionRedirect: {} | ||
replicas: 1 | ||
secret: osp-secret | ||
storageClass: {{ ospdo_storage_class.stdout }} | ||
storageRequest: 500M | ||
|
||
memcached: | ||
enabled: true | ||
templates: | ||
memcached: | ||
replicas: 1 | ||
|
||
neutron: | ||
enabled: false | ||
template: {} | ||
|
||
nova: | ||
enabled: false | ||
template: {} | ||
|
||
ovn: | ||
enabled: false | ||
template: | ||
ovnDBCluster: | ||
ovndbcluster-nb: | ||
dbType: NB | ||
storageClass: {{ ospdo_storage_class.stdout }} | ||
storageRequest: 10G | ||
networkAttachment: internalapi{{ osp18_ns_suffix }} | ||
ovndbcluster-sb: | ||
storageClass: {{ ospdo_storage_class.stdout }} | ||
dbType: SB | ||
storageRequest: 10G | ||
networkAttachment: internalapi{{ osp18_ns_suffix }} | ||
ovnNorthd: | ||
replicas: 0 | ||
ovnController: | ||
networkAttachment: tenant{{ osp18_ns_suffix }} | ||
nodeSelector: | ||
node: non-existing-node-name | ||
|
||
placement: | ||
enabled: false | ||
template: {} | ||
|
||
rabbitmq: | ||
templates: | ||
rabbitmq: | ||
replicas: 1 | ||
override: | ||
service: | ||
metadata: | ||
annotations: | ||
metallb.universe.tf/address-pool: internalapi{{ osp18_ns_suffix }} | ||
metallb.universe.tf/loadBalancerIPs: 172.17.0.190 | ||
spec: | ||
type: LoadBalancer | ||
rabbitmq-cell1: | ||
persistence: | ||
storageClassName: {{ ospdo_storage_class.stdout }} | ||
replicas: 1 | ||
override: | ||
service: | ||
metadata: | ||
annotations: | ||
metallb.universe.tf/address-pool: internalapi{{ osp18_ns_suffix }} | ||
metallb.universe.tf/loadBalancerIPs: 172.17.0.196 | ||
spec: | ||
type: LoadBalancer | ||
|
||
ceilometer: | ||
enabled: false | ||
template: {} | ||
|
||
autoscaling: | ||
enabled: false | ||
template: {} | ||
|
||
tls: | ||
{% if enable_tlse %} | ||
podLevel: | ||
enabled: true | ||
internal: | ||
ca: | ||
customIssuer: rootca-internal | ||
libvirt: | ||
ca: | ||
customIssuer: rootca-internal | ||
ovn: | ||
ca: | ||
customIssuer: rootca-internal | ||
ingress: | ||
ca: | ||
customIssuer: rootca-internal | ||
enabled: true | ||
{% else %} | ||
podLevel: | ||
enabled: false | ||
ingress: | ||
enabled: false | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters