Skip to content

Commit

Permalink
Swap download-cache and bootstrap services
Browse files Browse the repository at this point in the history
For `download-cache` to work, it needs to have access to the remote
container registry and a RPM repository. This necessitates that we
execute subscription-manager prior to trying to download anything.

This change swaps the `bootstrap` and `download-cache` services so that
`bootstrap` is executed first before trying to download anything.

This allows users to register their nodes leveraging the
`edpm_bootstrap_command` variable defined on the NodeSet prior to any
attempts to download content.

Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Aug 15, 2024
1 parent 9bc8d23 commit fa1a5aa
Show file tree
Hide file tree
Showing 25 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,8 @@ spec:
type: integer
services:
default:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
2 changes: 1 addition & 1 deletion apis/dataplane/v1beta1/openstackdataplanenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type OpenStackDataPlaneNodeSetSpec struct {
NetworkAttachments []string `json:"networkAttachments,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default={download-cache,bootstrap,configure-network,validate-network,install-os,configure-os,ssh-known-hosts,run-os,reboot-os,install-certs,ovn,neutron-metadata,libvirt,nova,telemetry}
// +kubebuilder:default={bootstrap,download-cache,configure-network,validate-network,install-os,configure-os,ssh-known-hosts,run-os,reboot-os,install-certs,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 @@ -1176,8 +1176,8 @@ spec:
type: integer
services:
default:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane/bgp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ data:
edpm_frr_bgp_ipv6_src_network: bgpmainnet6
edpm_ovn_bgp_agent_expose_tenant_networks: true
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- frr
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane/bgp_ovn_cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ data:
edpm_ovn_bgp_agent_exposing_method: ovn
edpm_ovn_bgp_agent_provider_networks_pool_prefixes: '172.16.0.0/16'
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- frr
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane/networker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ data:
- name: tenant
subnetName: subnet1
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
2 changes: 1 addition & 1 deletion docs/assemblies/con_data-plane-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ The default list of services as they will appear on the `services` field on an

----
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
2 changes: 1 addition & 1 deletion docs/assemblies/proc_creating-a-custom-service.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ service to execute for the `edpm-compute` `NodeSet`.
spec:
services:
- hello-world
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ var _ = Describe("Dataplane NodeSet Test", func() {
},
},
Services: []string{
"download-cache",
"bootstrap",
"download-cache",
"configure-network",
"validate-network",
"install-os",
Expand Down Expand Up @@ -363,8 +363,8 @@ var _ = Describe("Dataplane NodeSet Test", func() {
BeforeEach(func() {
nodeSetSpec := DefaultDataPlaneNoNodeSetSpec(tlsEnabled)
nodeSetSpec["services"] = []string{
"download-cache",
"bootstrap",
"download-cache",
"configure-network",
"validate-network",
"install-os",
Expand Down Expand Up @@ -452,8 +452,8 @@ var _ = Describe("Dataplane NodeSet Test", func() {
},
},
Services: []string{
"download-cache",
"bootstrap",
"download-cache",
"configure-network",
"validate-network",
"install-os",
Expand Down Expand Up @@ -898,8 +898,8 @@ var _ = Describe("Dataplane NodeSet Test", func() {
},
},
Services: []string{
"download-cache",
"bootstrap",
"download-cache",
"configure-network",
"validate-network",
"install-os",
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/tests/dataplane-create-test/00-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ spec:
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret
preProvisioned: true
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
- name: ANSIBLE_FORCE_COLOR
value: "True"
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ metadata:
spec:
preProvisioned: true
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ spec:
preProvisioned: true
tlsEnabled: false
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
gbReq: {}
preProvisioned: true
services:
- download-cache
- bootstrap
- download-cache
env:
- name: ANSIBLE_FORCE_COLOR
value: "True"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
env:
- name: ANSIBLE_FORCE_COLOR
value: "True"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ metadata:
spec:
preProvisioned: true
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ spec:
preProvisioned: true
tlsEnabled: false
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
gbReq: {}
preProvisioned: true
services:
- download-cache
- bootstrap
- download-cache
env:
- name: ANSIBLE_FORCE_COLOR
value: "True"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
namespace: openstack-kuttl-tests
spec:
services:
- download-cache
- bootstrap
- download-cache
env:
- name: ANSIBLE_FORCE_COLOR
value: "True"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
- name: ANSIBLE_FORCE_COLOR
value: "True"
services:
- download-cache
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
Expand Down

0 comments on commit fa1a5aa

Please sign in to comment.