Skip to content

Commit

Permalink
Provisioning server ready probe longe init delay
Browse files Browse the repository at this point in the history
Increase the PeriodSeconds to 10 and InitialDelaySeconds
to 60 for the openstakcprovisioningservers readinessProbe.

I am experiencing an issue where the pod never starts because
the readiness probe is restarting the pod before the certificate
generation process has completed.

```
Normal   Killing    4m44s                  kubelet            Container osp-httpd failed liveness probe, will be restarted
```

```
$ oc logs -n openstack pod/openstack-edpm-ipam-provisionserver-openstackprovisionserv6vcjp
Defaulted container "osp-httpd" out of: osp-httpd, osp-provision-ip-discovery-agent, init (init)
=> sourcing 10-set-mpm.sh ...
=> sourcing 20-copy-config.sh ...
=> sourcing 40-ssl-certs.sh ...
---> Generating SSL key pair for httpd...
```

Signed-off-by: Harald Jensås <[email protected]>
  • Loading branch information
hjensas committed Nov 20, 2023
1 parent 9590013 commit 932b2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/openstackprovisionserver/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func Deployment(
readinessProbe := &corev1.Probe{
// TODO might need tuning
TimeoutSeconds: 5,
PeriodSeconds: 5,
InitialDelaySeconds: 5,
PeriodSeconds: 10,
InitialDelaySeconds: 60,
}

args := []string{"-c"}
Expand Down

0 comments on commit 932b2fe

Please sign in to comment.