@@ -477,7 +477,6 @@ NNCP_CTLPLANE_IPV6_ADDRESS_SUFFIX ?=10
477477NNCP_GATEWAY_IPV6 ?=fd00:aaaa::1
478478NNCP_DNS_SERVER_IPV6 ?=fd00:aaaa::1
479479NNCP_ADDITIONAL_HOST_ROUTES ?=
480- NNCP_RETRIES ?= 5
481480
482481# MetalLB
483482ifeq ($(NETWORK_ISOLATION_USE_DEFAULT_NETWORK ) , true)
@@ -739,7 +738,7 @@ endif
739738
740739OPENSTACK_PREP_DEPS := validate_marketplace
741740OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_NMSTATE ) ) , nmstate)
742- OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_NNCP ) ) , nncp_with_retries )
741+ OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_NNCP ) ) , nncp )
743742OPENSTACK_PREP_DEPS += metallb
744743OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_CERT_MANAGER ) ) , certmanager)
745744OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_ISOLATION ) ) , netattach metallb_config)
@@ -2363,25 +2362,6 @@ else
23632362 oc wait deployments/nmstate-webhook -n ${NAMESPACE} --for condition=Available --timeout=${TIMEOUT}
23642363endif
23652364
2366- .PHONY : nncp_with_retries
2367- nncp_with_retries : nncp_dns # # Deploy NNCP with retries
2368- $(eval $(call vars,$@ ) )
2369- bash scripts/retry_make_nncp.sh $(NNCP_RETRIES )
2370-
2371- .PHONY : nncp_dns
2372- nncp_dns : export DNS_SERVER=${NNCP_DNS_SERVER}
2373- nncp_dns :
2374- $(eval $(call vars,$@ ,nncp) )
2375- ifeq ($(NNCP_NODES ) ,)
2376- WORKERS='$(shell oc get nodes -l node-role.kubernetes.io/worker -o jsonpath="{.items[*].metadata.name}")' \
2377- bash scripts/gen-nncp-dns.sh
2378- else
2379- WORKERS=${NNCP_NODES} bash scripts/gen-nncp-dns.sh
2380- endif
2381- oc apply -f ${DEPLOY_DIR}/
2382- timeout ${NNCP_TIMEOUT} bash -c "while ! (oc wait nncp -l osp/interface=nncp-dns --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured); do sleep 10; done"
2383- oc delete nncp -l osp/interface=nncp-dns
2384-
23852365.PHONY : nncp
23862366nncp : export INTERFACE=${NNCP_INTERFACE}
23872367nncp : export BRIDGE_NAME=${NNCP_BRIDGE}
@@ -2408,7 +2388,7 @@ ifeq ($(NETWORK_ISOLATION_IPV6), true)
24082388nncp : export IPV6_ENABLED=true
24092389nncp : export CTLPLANE_IPV6_ADDRESS_PREFIX=${NNCP_CTLPLANE_IPV6_ADDRESS_PREFIX}
24102390nncp : export CTLPLANE_IPV6_ADDRESS_SUFFIX=${NNCP_CTLPLANE_IPV6_ADDRESS_SUFFIX}
2411- nncp : export DNS_SERVER_IPV6 =${NNCP_DNS_SERVER_IPV6}
2391+ nncp : export DNS_SERVER =${NNCP_DNS_SERVER_IPV6}
24122392endif
24132393ifeq ($(NETWORK_ISOLATION_IPV4 ) , true)
24142394nncp : export IPV4_ENABLED=true
@@ -2431,6 +2411,8 @@ else
24312411endif
24322412 oc apply -f ${DEPLOY_DIR}/
24332413 timeout ${NNCP_TIMEOUT} bash -c "while ! (oc wait nncp -l osp/interface=${NNCP_INTERFACE} --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured); do sleep 10; done"
2414+ oc patch dns.operator/default --type merge -p '{"spec":{"upstreamResolvers":{"policy":"Sequential","upstreams":[{"type":"Network","address":"'${DNS_SERVER}'","port":53},{"type":"SystemResolvConf"}]}}}'
2415+ timeout ${NNCP_TIMEOUT} bash -c "while ! (oc wait dns.operator/default --for condition=available); do sleep 10; done"
24342416
24352417
24362418.PHONY : nncp_cleanup
0 commit comments