Secret with name example-bundle-link in namespace: example-namespace not found!

Issue

Having provisioned a Managed Master/Team Master via CasC, in the following restart of this controller, it is not able to complete the provisioning process and it shows the following error in the Manage Page of the Managed Master/Team Master item:

Secret with name "[example-bundle-link] in namespace: [example-namespace] not found!

In the master logs this error is exposed like:

WARNING	c.c.o.server.model.ManagedMaster#setStoppingErrorState: Stopping request of <masterName> failed
java.lang.IllegalArgumentException: Secret with name [<secretName>] in namespace: [<namespace>] not found!
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.waitUntilCondition(BaseOperation.java:1092)
	at io.fabric8.kubernetes.client.handlers.SecretHandler.waitUntilCondition(SecretHandler.java:93)
	at io.fabric8.kubernetes.client.handlers.SecretHandler.waitUntilCondition(SecretHandler.java:39)
	at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.waitUntilCondition(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.java:254)
	at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.waitUntilCondition(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.java:59)
	at com.cloudbees.masterprovisioning.kubernetes.cmd.KubernetesCommand.waitForDeletion(KubernetesCommand.java:119)
	at com.cloudbees.masterprovisioning.kubernetes.cmd.AbstractDeleteKubernetesCommand.executeInternal(AbstractDeleteKubernetesCommand.java:62)
	at com.cloudbees.masterprovisioning.kubernetes.cmd.KubernetesCommand.execute(KubernetesCommand.java:111)
	at com.cloudbees.masterprovisioning.kubernetes.KubernetesMasterProvisioning$DescriptorImpl.lambda$null$14(KubernetesMasterProvisioning.java:1256)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
	at com.cloudbees.masterprovisioning.kubernetes.KubernetesMasterProvisioning$DescriptorImpl.lambda$stop$15(KubernetesMasterProvisioning.java:1256)

Environment

Resolution

This is a known issue with the core and the fix is available since 2.249.2.x (October 2020 release)

Workaround

In the “Manage” page of the Managed Master item:

  • Click on “Acknowledge the error”
  • Then on “Free Snapshot”
  • And finally “Start” the master

Tested product/plugin versions

Have more questions?

0 Comments

Please sign in to leave a comment.