# OneKS fails to deploy a cluster if networks delays to have connectivity

**URL:** <https://forum.opennebula.io/t/oneks-fails-to-deploy-a-cluster-if-networks-delays-to-have-connectivity/14654>\
**Category:** Bug Reporting\
**Created:** [November 12, 2026, 5:09pm UTC](https://forum.opennebula.io/t/oneks-fails-to-deploy-a-cluster-if-networks-delays-to-have-connectivity/14654 "2026-11-12T17:09:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![conxuro](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/conxuro/32/9098_2.png) [@conxuro](https://forum.opennebula.io/u/conxuro)\
**Post date:** [November 12, 2026, 5:09pm UTC](https://forum.opennebula.io/t/oneks-fails-to-deploy-a-cluster-if-networks-delays-to-have-connectivity/14654/1 "2026-11-12T17:09:53Z")

</div>

When deploying a OneKS cluster over a network with a certain delay (STP or LACP) after being up it fails to execute /etc/one-context.d/net-90-service-appliance because it detects no connectivity.

It may be related to [OneKS Seed VM is created only with public nic, private nic is missing](https://forum.opennebula.io/t/oneks-seed-vm-is-created-only-with-public-nic-private-nic-is-missing/14565) but I cannot write there.

I have tested over a bridged interface with STP enabled, I have tried to lower the forward delay but it is still failing, and only works to start to deploy the vrouter and controlplane if I completely disable STP (which is not suitable to have it permanently disabled in that interface).

Is there a way to delay the execution of the service appliance script or can be set a timeout/wait time? Maybe at least have a few retries before failing? Or is there any other solution to not fail?

---

<div class="post-metadata">

**Author:** ![sowerscoton491](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@sowerscoton491](https://forum.opennebula.io/u/sowerscoton491)\
**Post date:** [November 16, 2026, 8:15am UTC](https://forum.opennebula.io/t/oneks-fails-to-deploy-a-cluster-if-networks-delays-to-have-connectivity/14654/2 "2026-11-16T08:15:34Z")

</div>

One option is to put a wait before the service-appliance check rather than changing STP. The one-context scripts run in lexical order, so if you can customize the Seed VM image, add e.g. /etc/one-context.d/net-05-wait-uplink that polls for carrier/default route and pings the gateway for up to 60–90s before net-90-service-appliance runs. If editing the image is impractical, wrap net-90-service-appliance in a retry loop. This keeps STP enabled and gives the bridge time to forward. I’d verify the exact script order in your one-context version.

---

<div class="post-metadata">

**Author:** ![brunorro](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/brunorro/32/7590_2.png) [@brunorro](https://forum.opennebula.io/u/brunorro)\
**Post date:** [November 16, 2026, 10:09am UTC](https://forum.opennebula.io/t/oneks-fails-to-deploy-a-cluster-if-networks-delays-to-have-connectivity/14654/3 "2026-11-16T10:09:44Z")

</div>

Hello,

Can you check the contents of `/var/log/one-appliance/configure.log` ?

Cheers!

---

<div class="post-metadata">

**Author:** ![conxuro](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/conxuro/32/9098_2.png) [@conxuro](https://forum.opennebula.io/u/conxuro)\
**Post date:** [November 16, 2026, 1:53pm UTC](https://forum.opennebula.io/t/oneks-fails-to-deploy-a-cluster-if-networks-delays-to-have-connectivity/14654/4 "2026-11-16T13:53:54Z")

</div>

The contents of configure.log when STP is enabled are similar to this:

```auto
I, [2026-11-06T16:14:27.211609 #3229] INFO -- : OneKS::configure
I, [2026-11-06T16:14:27.211743 #3229] INFO -- : Start Management Cluster
E, [2026-11-06T16:14:30.818860 #3229] ERROR -- : 255: + onegate vm update --data ONEKS_STATE=PROVISIONING_MGMT
ERROR:
Failed to open TCP connection to 169.254.16.9:5030 (Host is unreachable - connect(2) for "169.254.16.9" port 5030)

E, [2026-11-06T16:14:30.819200 #3229] ERROR -- : Unexpected error: 255: + onegate vm update --data ONEKS_STATE=PROVISIONING_MGMT
ERROR:
Failed to open TCP connection to 169.254.16.9:5030 (Host is unreachable - connect(2) for "169.254.16.9" port 5030)

```

I have not tried to edit the seed VM image yet, but adding net-90-service-appliance to be retried in the context start script worked to deploy the controlplane and vrouter VMs.  
However since it fails at the first attempt, as it is executed in net-97-start-script which always runs after the net-90-service-appliance, OneKS marks it as “Provision Failure” even if the VMs are deployed in another attempt.
