stunnel sdn cert error when adding host to pool
-
I'm trying to add a host to an existing pool but I keep getting the following error whenever I do so.
INTERNAL_ERROR(Sys_error("/etc/stunnel/certs/sdn-controller-ca.pem: No such file or directory"))
I had previously created a private network on the pool but I've long since deleted it. One host had files in the certs directory but not the pool master. I've tried deleting the SDN plugin config and telling it to override the existing certs but nothing ever shows up in the certs folder and I continue to get this error.
-
Have you tried disabling the plugin?
-
@Danp Yes, that was one of the steps I tried. Is there anyone I need to do besides unchecking it in XO?
-
@CJ IDK. You could try restarting XO Server to see if that makes a difference.
-
@Danp No change. Still the same error.
-
I followed this guide to get my SDN up and running, it may help you out.
HTH
-
@morehousef I'll take a look, thanks. The part that's most frustrating is that I have the SDN plugin turned off and I have no SDN defined but XCP-ng still wants some certs.
-
This ended up causing xen to get stuck in a boot loop during an 8.3 update. During the troubleshooting of that, we determined that XO had never correctly deleted the reference to the SDN cert.
If you run into this problem or something similar, run this comment.
xe certificate-list
You should see one of the certificates show with the following.
name ( RO): sdn-controller-ca.pem host ( RO): <not in database>
If the certificate file doesn't exist, you will have to recreate it before you can delete the cert reference.
touch /etc/stunnel/certs/sdn-controller-ca.pem xe pool-certificate-uninstall name=sdn-controller-ca.pem
This should fix the problem.
-
-
@olivierlambert @stormi is the one who helped me find and fix the issue. I just wanted to update my old thread in case someone else happened across the problem until it gets fixed in XO.