Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Added bootstrap service #476

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,7 @@ spec:
services:
default:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/openstackdataplanenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type OpenStackDataPlaneNodeSetSpec struct {
NetworkAttachments []string `json:"networkAttachments,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default={download-cache,configure-network,validate-network,install-os,configure-os,run-os,ovn,neutron-metadata,libvirt,nova,telemetry}
// +kubebuilder:default={download-cache,bootstrap,configure-network,validate-network,install-os,configure-os,run-os,ovn,neutron-metadata,libvirt,nova,telemetry}
// Services list
Services []string `json:"services"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,7 @@ spec:
services:
default:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
# Create this deployment before Ceph is deployed
# on EDPM nodes in an HCI scenario.
servicesOverride:
- bootstrap
rebtoor marked this conversation as resolved.
Show resolved Hide resolved
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
- name: ANSIBLE_ENABLE_TASK_DEBUGGER
value: "True"
services:
- bootstrap
- download-cache
- configure-network
- validate-network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
value: "True"
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
value: "True"
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
value: "True"
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- frr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ spec:
# Create a nova-custom-ceph service which uses a ConfigMap
# containing libvirt overrides for Ceph RBD.
services:
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ spec:
# full service list is defined here only so the non-custom
# services will be defined by the operator.
services:
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
value: false
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
value: "True"
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
value: "True"
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
value: "True"
preProvisioned: true
services:
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
labels:
app.kubernetes.io/name: openstackdataplaneservice
app.kubernetes.io/instance: openstackdataplaneservice-bootstrap
app.kubernetes.io/part-of: dataplane-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: dataplane-operator
name: bootstrap
spec:
label: dataplane-deployment-bootstrap
playbook: osp.edpm.bootstrap
2 changes: 2 additions & 0 deletions docs/composable_services.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The default list of services as they will appear on the `services` field on an

services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down Expand Up @@ -290,6 +291,7 @@ service to execute for the `edpm-compute` `NodeSet`.
services:
- hello-world
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ var _ = Describe("Dataplane NodeSet Test", func() {
Nodes: map[string]dataplanev1.NodeSection{},
Services: []string{
"download-cache",
"bootstrap",
"configure-network",
"validate-network",
"install-os",
Expand Down
16 changes: 6 additions & 10 deletions tests/kuttl/tests/dataplane-create-test/00-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,15 @@ spec:
edpm_chrony_ntp_servers:
- clock.redhat.com
edpm_iscsid_image: '{{ registry_url }}/openstack-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/openstack-cron:{{ image_tag
}}'
edpm_logrotate_crond_image: '{{ registry_url }}/openstack-cron:{{ image_tag }}'
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_template: templates/single_nic_vlans/single_nic_vlans.j2
edpm_nodes_validation_validate_controllers_icmp: false
edpm_nodes_validation_validate_gateway_icmp: false
edpm_nova_compute_container_image: '{{ registry_url }}/openstack-nova-compute:{{
image_tag }}'
edpm_nova_libvirt_container_image: '{{ registry_url }}/openstack-nova-libvirt:{{
image_tag }}'
edpm_ovn_controller_agent_image: '{{ registry_url }}/openstack-ovn-controller:{{
image_tag }}'
edpm_neutron_metadata_agent_image: '{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{
image_tag }}'
edpm_nova_compute_container_image: '{{ registry_url }}/openstack-nova-compute:{{ image_tag }}'
edpm_nova_libvirt_container_image: '{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}'
edpm_ovn_controller_agent_image: '{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}'
edpm_neutron_metadata_agent_image: '{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}'
edpm_selinux_mode: enforcing
edpm_sshd_allowed_ranges:
- 192.168.122.0/24
Expand Down Expand Up @@ -94,6 +89,7 @@ spec:
preProvisioned: true
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
value: "True"
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
preProvisioned: true
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
preProvisioned: true
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down
52 changes: 52 additions & 0 deletions tests/kuttl/tests/dataplane-deploy-no-nodes-test/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
spec:
services:
- download-cache
- bootstrap
- configure-network
- validate-network
- install-os
Expand Down Expand Up @@ -96,6 +97,57 @@ status:
---
apiVersion: ansibleee.openstack.org/v1alpha1
kind: OpenStackAnsibleEE
metadata:
name: dataplane-deployment-bootstrap-edpm-compute-no-nodes
namespace: openstack
ownerReferences:
- apiVersion: dataplane.openstack.org/v1beta1
blockOwnerDeletion: true
controller: true
kind: OpenStackDataPlaneDeployment
name: edpm-compute-no-nodes
spec:
backoffLimit: 6
extraMounts:
- mounts:
- mountPath: /runner/env/ssh_key
name: ssh-key
subPath: ssh_key
- mountPath: /runner/inventory/hosts
name: inventory
subPath: inventory
volumes:
- name: ssh-key
secret:
items:
- key: ssh-privatekey
path: ssh_key
secretName: dataplane-ansible-ssh-private-key-secret
- name: inventory
secret:
items:
- key: inventory
path: inventory
secretName: dataplanenodeset-edpm-compute-no-nodes
name: openstackansibleee
restartPolicy: Never
playbook: osp.edpm.bootstrap
uid: 1001
status:
JobStatus: Succeeded
conditions:
- message: AnsibleExecutionJob complete
reason: Ready
status: "True"
type: Ready
- message: AnsibleExecutionJob complete
reason: Ready
status: "True"
type: AnsibleExecutionJobReady

---
apiVersion: ansibleee.openstack.org/v1alpha1
kind: OpenStackAnsibleEE
metadata:
name: dataplane-deployment-configure-network-edpm-compute-no-nodes
namespace: openstack
Expand Down
Loading