Closed whitfiea closed 3 years ago
Thanks a lot for opening this issue. Could it be related to #39 ? I will have a look at it as soon as possiblee.
@lbroudoux yes that looks to be the issue, this is the error you see on the first reconcile when those files are not present:
TASK [The Microks GRPC certs are generated] ********************************
[0;31mfatal: [localhost]: FAILED! => {"changed": true, "cmd": ["openssl", "req", "-x509", "-nodes", "-days", "3650", "-newkey", "rsa:2048", "-keyout", "microcks-grpc.key", "-out", "microcks-grpc.crt", "-subj", "/CN=mas-core-microcksinstall-microcks.masdeps1-6f1620198115433da1cac8216c06779b-0000.eu-gb.containers.appdomain.cloud", "-extensions", "san", "-config", "microcks-grpc.cnf"], "delta": "0:00:00.085309", "end": "2021-07-28 11:06:48.479105", "msg": "non-zero return code", "rc": 1, "start": "2021-07-28 11:06:48.393796", "stderr": "Generating a RSA private key\n..................................................+++++\n..+++++\nwriting new private key to 'microcks-grpc.key'\n-----\nproblems making Certificate Request\n140114897585984:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:crypto/asn1/a_mbstr.c:107:maxsize=64", "stderr_lines": ["Generating a RSA private key", "..................................................+++++", "..+++++", "writing new private key to 'microcks-grpc.k...
[0;31m[
The following reconcile runs then fail with the
as it doesn't try to rerun the openssl command as it sees the key is already present but there is no generated crt.
It looks like the url is in the subjectAltNames so I guess it just needs the CN to be reduced
Great! Thanks for the analysis. Made a first rapid test and it seems to work just adding a | truncate(64)
.
I did not have such long CN when testing sorry 😉
Marking this one as duplicate
and will pursue on original #39.
Microcks operator 1.3.0 on OCP 4.6.34 failed to reconcile a Microcks install that was installed at the 1.2.1 level after the operator was upgraded. The reconcile error is:
The Microcks CR spec is:
Also creating a new MicrocksInstall instance using the same updated operator also fails with the same error.