Skip to content
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 @@ -116,6 +116,13 @@ spec:
items:
type: string
type: array
useParallelExecution:
default: false
description: |-
UseParallelExecution enables parallel execution of services based on
their dependsOn dependencies. When not set (default), services run
sequentially in list order and service dependencies are ignored.
type: boolean
required:
- deploymentRequeueTime
- nodeSets
Expand Down
11 changes: 11 additions & 0 deletions api/bases/dataplane.openstack.org_openstackdataplaneservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ spec:
x-kubernetes-map-type: atomic
type: object
type: array
dependsOn:
description: |-
DependsOn lists EDPMServiceType or CR names that must complete before
this service runs; if empty, the list predecessor is used instead.
Entries referencing a service that is not part of the deployment's
service list are ignored, so a service can be deployed on its own
(e.g. via OpenStackDataPlaneDeployment spec.servicesOverride) without
its prerequisites.
items:
type: string
type: array
deployOnAllNodeSets:
description: |-
DeployOnAllNodeSets - should the service be deploy across all nodesets
Expand Down
6 changes: 6 additions & 0 deletions api/dataplane/v1beta1/openstackdataplanedeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ type OpenStackDataPlaneDeploymentSpec struct {
// AnsibleJobNodeSelector to target subset of worker nodes running the ansible jobs
AnsibleJobNodeSelector map[string]string `json:"ansibleJobNodeSelector,omitempty"`

// UseParallelExecution enables parallel execution of services based on
// their dependsOn dependencies. When not set (default), services run
// sequentially in list order and service dependencies are ignored.
// +kubebuilder:default:=false
UseParallelExecution bool `json:"useParallelExecution,omitempty"`

// +kubebuilder:validation:MaxLength:=253
// +kubebuilder:default="openstack-aee-default-env"
// AnsibleEEEnvConfigMapName is the name of the ConfigMap containing environment
Expand Down
9 changes: 9 additions & 0 deletions api/dataplane/v1beta1/openstackdataplaneservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ type OpenStackDataPlaneServiceSpec struct {
// to manage the service. If not set, will default to the
// OpenStackDataPlaneService name.
EDPMServiceType string `json:"edpmServiceType,omitempty" yaml:"edpmServiceType,omitempty"`

// DependsOn lists EDPMServiceType or CR names that must complete before
// this service runs; if empty, the list predecessor is used instead.
Comment thread
rabi marked this conversation as resolved.
// Entries referencing a service that is not part of the deployment's
// service list are ignored, so a service can be deployed on its own
// (e.g. via OpenStackDataPlaneDeployment spec.servicesOverride) without
// its prerequisites.
// +kubebuilder:validation:Optional
DependsOn []string `json:"dependsOn,omitempty" yaml:"dependsOn,omitempty"`
}

// OpenStackDataPlaneServiceStatus defines the observed state of OpenStackDataPlaneService
Expand Down
5 changes: 5 additions & 0 deletions api/dataplane/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions bindata/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20229,6 +20229,13 @@ spec:
items:
type: string
type: array
useParallelExecution:
default: false
description: |-
UseParallelExecution enables parallel execution of services based on
their dependsOn dependencies. When not set (default), services run
sequentially in list order and service dependencies are ignored.
type: boolean
required:
- deploymentRequeueTime
- nodeSets
Expand Down Expand Up @@ -22177,6 +22184,17 @@ spec:
x-kubernetes-map-type: atomic
type: object
type: array
dependsOn:
description: |-
DependsOn lists EDPMServiceType or CR names that must complete before
this service runs; if empty, the list predecessor is used instead.
Entries referencing a service that is not part of the deployment's
service list are ignored, so a service can be deployed on its own
(e.g. via OpenStackDataPlaneDeployment spec.servicesOverride) without
its prerequisites.
items:
type: string
type: array
deployOnAllNodeSets:
description: |-
DeployOnAllNodeSets - should the service be deploy across all nodesets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ spec:
items:
type: string
type: array
useParallelExecution:
default: false
description: |-
UseParallelExecution enables parallel execution of services based on
their dependsOn dependencies. When not set (default), services run
sequentially in list order and service dependencies are ignored.
type: boolean
required:
- deploymentRequeueTime
- nodeSets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ spec:
x-kubernetes-map-type: atomic
type: object
type: array
dependsOn:
description: |-
DependsOn lists EDPMServiceType or CR names that must complete before
this service runs; if empty, the list predecessor is used instead.
Entries referencing a service that is not part of the deployment's
service list are ignored, so a service can be deployed on its own
(e.g. via OpenStackDataPlaneDeployment spec.servicesOverride) without
its prerequisites.
items:
type: string
type: array
deployOnAllNodeSets:
description: |-
DeployOnAllNodeSets - should the service be deploy across all nodesets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ spec:
playbook: osp.edpm.bootstrap
edpmServiceType: bootstrap
caCerts: combined-ca-bundle
dependsOn:
- redhat
- download-cache
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ metadata:
spec:
playbook: osp.edpm.configure_network
edpmServiceType: configure-network
dependsOn:
- bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ metadata:
spec:
playbook: osp.edpm.configure_os
edpmServiceType: configure-os
dependsOn:
- install-os
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ metadata:
spec:
playbook: osp.edpm.download_cache
edpmServiceType: download-cache
dependsOn:
- redhat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: frr
spec:
playbook: osp.edpm.frr
dependsOn:
- run-os
- validate-network
containerImageFields:
- EdpmFrrImage
edpmServiceType: frr
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ spec:
playbook: osp.edpm.install_certs
addCertMounts: True
edpmServiceType: install-certs
dependsOn:
- bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ metadata:
spec:
playbook: osp.edpm.install_os
edpmServiceType: install-os
dependsOn:
- bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: libvirt
spec:
playbook: osp.edpm.libvirt
dependsOn:
- run-os
- validate-network
- install-certs
dataSources:
# NOTE: this Secret needs to be created before deploying the data plane.
# It should contain the libvirt sasl auth password using the key LibvirtPassword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: OpenStackDataPlaneService
metadata:
name: logging
spec:
dependsOn:
- run-os
- validate-network
dataSources:
- secretRef:
name: logging-compute-config-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: neutron-dhcp
spec:
playbook: osp.edpm.neutron_dhcp
dependsOn:
- run-os
- validate-network
dataSources:
- secretRef:
name: neutron-dhcp-agent-neutron-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metadata:
name: neutron-metadata
spec:
playbook: osp.edpm.neutron_metadata
dependsOn:
- ovn
dataSources:
- secretRef:
name: neutron-ovn-metadata-agent-neutron-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metadata:
name: neutron-ovn
spec:
playbook: osp.edpm.neutron_ovn
dependsOn:
- ovn
dataSources:
- secretRef:
name: neutron-ovn-agent-neutron-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: neutron-sriov
spec:
playbook: osp.edpm.neutron_sriov
dependsOn:
- run-os
- validate-network
dataSources:
- secretRef:
name: neutron-sriov-agent-neutron-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: OpenStackDataPlaneService
metadata:
name: nova
spec:
dependsOn:
- libvirt
- ssh-known-hosts
- neutron-ovn
- neutron-sriov
- neutron-dhcp
- neutron-metadata
dataSources:
- secretRef:
name: nova-cell1-compute-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ metadata:
spec:
playbook: osp.edpm.reboot
edpmServiceType: reboot-os
dependsOn:
- run-os
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: ovn
spec:
playbook: osp.edpm.ovn
dependsOn:
- run-os
- validate-network
- install-certs
dataSources:
- configMapRef:
name: ovncontroller-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metadata:
name: ovn-bgp-agent
spec:
playbook: osp.edpm.ovn_bgp_agent
dependsOn:
- ovn
dataSources:
- secretRef:
name: neutron-ovn-agent-neutron-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ spec:
containerImageFields:
- EdpmLogrotateCrondImage
edpmServiceType: run-os
dependsOn:
- configure-os
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ spec:
playbook: osp.edpm.ssh_known_hosts
deployOnAllNodeSets: true
edpmServiceType: ssh-known-hosts
dependsOn:
- install-os
- configure-network
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: swift
spec:
playbook: osp.edpm.swift
dependsOn:
- run-os
- validate-network
dataSources:
- secretRef:
name: swift-conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: OpenStackDataPlaneService
metadata:
name: telemetry
spec:
dependsOn:
- nova
dataSources:
- secretRef:
name: ceilometer-compute-config-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: OpenStackDataPlaneService
metadata:
name: telemetry-power-monitoring
spec:
dependsOn:
- nova
dataSources:
- secretRef:
name: ceilometer-ipmi-config-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ metadata:
spec:
playbook: osp.edpm.validate_network
edpmServiceType: validate-network
dependsOn:
- configure-network
Loading
Loading