adamant-kite-43734
06/05/2023, 2:19 PMjolly-lock-68045
06/05/2023, 2:35 PMcurl --insecure -fL <https://rancher.mycompany.com.br/system-agent-install.sh> | sudo sh -s - --server <https://rancher.mycompany.com.br> --label '<http://cattle.io/os=linux|cattle.io/os=linux>' --token hvwlv52tkjz7f76s9kxsq5747gv9rrvth8lsmz5jq5ccqsqgb..... --worker
rancher-system-agent.service logs
Jun 05 11:15:49 FNCWBSLX577 systemd[1]: Started Rancher System Agent.
Jun 05 11:15:49 FNCWBSLX577 rancher-system-agent[2085]: time="2023-06-05T11:15:49-03:00" level=info msg="Rancher System Agent version v0.3.2 (afbc4aa) is starting"
Jun 05 11:15:49 FNCWBSLX577 rancher-system-agent[2085]: time="2023-06-05T11:15:49-03:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
Jun 05 11:15:49 FNCWBSLX577 rancher-system-agent[2085]: time="2023-06-05T11:15:49-03:00" level=info msg="Starting remote watch of plans"
Jun 05 11:15:50 FNCWBSLX577 rancher-system-agent[2085]: E0605 11:15:50.067940 2085 memcache.go:206] couldn't get resource list for <http://management.cattle.io/v3|management.cattle.io/v3>:
Jun 05 11:15:50 FNCWBSLX577 rancher-system-agent[2085]: time="2023-06-05T11:15:50-03:00" level=info msg="Starting /v1, Kind=Secret controller"
It does no go ahead with the process of instalation of rke2-server service.
This is the log from the same process, but using the etcd role.
Jun 05 09:59:12 FNCWBSLX572 systemd[1]: Started Rancher System Agent.
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Rancher System Agent version v0.3.2 (afbc4aa) is starting"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Starting remote watch of plans"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: E0605 09:59:13.163899 682854 memcache.go:206] couldn't get resource list for <http://management.cattle.io/v3|management.cattle.io/v3>:
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Starting /v1, Kind=Secret controller"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Detected first start, force-applying one-time instruction set"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="[Applyinator] Applying one-time instructions for plan with checksum 2f483f7c0bd6065bb48dbb513441d13d34a113d0e38df1daabfc246916041b1b"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="[Applyinator] Extracting image rancher/system-agent-installer-rke2:v1.25.9-rke2r1 to directory /var/lib/rancher/agent/work/20230605-095913/2f483f7c0bd6065bb48dbb513441d13d34a113d0e38df1daabfc246916041b1b_0"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Using private registry config file at /etc/rancher/agent/registries.yaml"
Jun 05 09:59:13 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:13-03:00" level=info msg="Pulling image <http://index.docker.io/rancher/system-agent-installer-rke2:v1.25.9-rke2r1|index.docker.io/rancher/system-agent-installer-rke2:v1.25.9-rke2r1>"
Jun 05 09:59:14 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:14-03:00" level=info msg="Extracting file installer.sh to /var/lib/rancher/agent/work/20230605-095913/2f483f7c0bd6065bb48dbb513441d13d34a113d0e38df1daabfc246916041b1b_0/installer.sh"
Jun 05 09:59:14 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:14-03:00" level=info msg="Extracting file rke2.linux-amd64.tar.gz to /var/lib/rancher/agent/work/20230605-095913/2f483f7c0bd6065bb48dbb513441d13d34a113d0e38df1daabfc246916041b1b_0/rke2.linux-amd64.tar.gz"
Jun 05 09:59:17 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:17-03:00" level=info msg="Extracting file sha256sum-amd64.txt to /var/lib/rancher/agent/work/20230605-095913/2f483f7c0bd6065bb48dbb513441d13d34a113d0e38df1daabfc246916041b1b_0/sha256sum-amd64.txt"
Jun 05 09:59:17 FNCWBSLX572 rancher-system-agent[682854]: time="2023-06-05T09:59:17-03:00" level=info msg="Extracting file run.sh to /var/lib/rancher/agent/work/20230605-095913/2f483f7c0bd6065bb48dbb513441d13d34a113d0e38df1daabfc246916041b1b_0/run.sh"
...
Rancher Version: 2.7.2
Rancher RKE2 Cluster Version: v1.24.12 +rke2r1
Downstream RKE2 Cluster version: v1.25.9+rke2r1
Actual state fo Downstream Cluster in Rancher UI: Updating (Configuring control plane node(s) custom-b0de6dd768ec,custom-f3c8988c82da)
Nodes state of the Downstream Cluster:
[root@FNCWBSLX572 ~]# k get nodes
NAME STATUS ROLES AGE VERSION
fncwbslx572 Ready etcd 2d23h v1.25.9+rke2r1
fncwbslx573 Ready etcd 2d23h v1.25.9+rke2r1
fncwbslx574 Ready etcd 2d23h v1.25.9+rke2r1
fncwbslx575 Ready control-plane,master 2d23h v1.25.9+rke2r1
fncwbslx576 Ready control-plane,master 2d23h v1.25.9+rke2r1
Any help will be appreciated.
Thank's in advance.ambitious-plastic-3551
06/05/2023, 4:36 PMjolly-lock-68045
06/05/2023, 8:11 PM$ k logs cattle-cluster-agent-5dfb5dc455-p4bb7 -n cattle-system
...
...x509: certificate is valid for ingress.local, not <http://rancher.mycompany.com.br|rancher.mycompany.com.br>
...
I'm trying to install a valid certificate on NGinx Load Balancer to see if it solve the certificate issue.jolly-lock-68045
06/06/2023, 6:07 PMjolly-lock-68045
06/07/2023, 8:28 PMtime="2023-06-07T20:20:44Z" level=error msg="Certficate's Subject (CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE) does not match with previous certificate Issuer (CN=Valid Certificadora Digital AlphaSSL CA 2018,O=VALID CERTIFICADORA DIGITAL,C=BR). Please check if the configured server certificate contains all needed intermediate certificates and make sure they are in the correct order (server certificate first, intermediates after)"
Any help will be appreciated.ambitious-plastic-3551
06/07/2023, 8:40 PMjolly-lock-68045
06/07/2023, 9:03 PMk -n cattle-system create secret tls tls-rancher-ingress --cert=tls.crt --key=tls.key --dry-run=client -o yaml > finaxis-tls-rancher-ingress.yaml
and applyed the manifest to create the secret in cattle-system namespace.
After that, I redeploy the rancher pods and the certificate on Browser was shown as Valid.
I followed this guide: Updating from a Private CA Certificate to a Public CA Certificate
I don't know what would be the intermediate certificate or how to get the chain.ambitious-plastic-3551
06/07/2023, 9:04 PMambitious-plastic-3551
06/07/2023, 9:06 PMjolly-lock-68045
06/07/2023, 9:10 PMambitious-plastic-3551
06/07/2023, 9:10 PMambitious-plastic-3551
06/07/2023, 9:11 PMambitious-plastic-3551
06/07/2023, 9:11 PMambitious-plastic-3551
06/07/2023, 9:23 PMambitious-plastic-3551
06/07/2023, 9:23 PMambitious-plastic-3551
06/07/2023, 9:23 PMambitious-plastic-3551
06/07/2023, 9:24 PMambitious-plastic-3551
06/07/2023, 9:24 PMjolly-lock-68045
06/07/2023, 9:32 PMcat mycertificate.crt bundle.crt > tls.crt
And finally execute the steps to create the tls-rancher-ingress
secret?ambitious-plastic-3551
06/07/2023, 9:34 PMjolly-lock-68045
06/07/2023, 9:34 PMambitious-plastic-3551
06/07/2023, 9:35 PMambitious-plastic-3551
06/07/2023, 9:36 PMjolly-lock-68045
06/07/2023, 9:48 PMk logs cattle-cluster-agent-66bcc79d4d-fzcph -n cattle-system
INFO: Environment: CATTLE_ADDRESS=10.42.73.194 CATTLE_CA_CHECKSUM= CATTLE_CLUSTER=true CATTLE_CLUSTER_AGENT_PORT=<tcp://10.43.166.209:80> CATTLE_CLUSTER_AGENT_PORT_443_TCP=<tcp://10.43.166.209:443> CATTLE_CLUSTER_AGENT_PORT_443_TCP_ADDR=10.43.166.209 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PORT=443 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_PORT_80_TCP=<tcp://10.43.166.209:80> CATTLE_CLUSTER_AGENT_PORT_80_TCP_ADDR=10.43.166.209 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PORT=80 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_SERVICE_HOST=10.43.166.209 CATTLE_CLUSTER_AGENT_SERVICE_PORT=80 CATTLE_CLUSTER_AGENT_SERVICE_PORT_HTTP=80 CATTLE_CLUSTER_AGENT_SERVICE_PORT_HTTPS_INTERNAL=443 CATTLE_CLUSTER_REGISTRY= CATTLE_FEATURES=embedded-cluster-api=false,fleet=false,monitoringv1=false,multi-cluster-management=false,multi-cluster-management-agent=true,provisioningv2=false,rke2=false CATTLE_INGRESS_IP_DOMAIN=<http://sslip.io|sslip.io> CATTLE_INSTALL_UUID=4fc5293b-6d65-4623-a3db-0872f427be71 CATTLE_INTERNAL_ADDRESS= CATTLE_IS_RKE=false CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=cattle-cluster-agent-66bcc79d4d-fzcph CATTLE_SERVER=<https://rancher.mycompany.com.br> CATTLE_SERVER_VERSION=v2.7.2
INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local <http://intra.grupopetra.com.br|intra.grupopetra.com.br> nameserver 10.43.0.10 options ndots:5
INFO: <https://rancher.mycompany.com.br/ping> is accessible
INFO: <http://rancher.mycompany.com.br|rancher.mycompany.com.br> resolves to 172.16.1.177
time="2023-06-07T21:42:09Z" level=info msg="Listening on /tmp/log.sock"
time="2023-06-07T21:42:09Z" level=info msg="Rancher agent version v2.7.2 is starting"
time="2023-06-07T21:42:09Z" level=info msg="Certificate details from <https://rancher.mycompany.com.br>"
time="2023-06-07T21:42:09Z" level=info msg="Certificate #0 (<https://rancher.mycompany.com.br>)"
time="2023-06-07T21:42:09Z" level=info msg="Subject: CN=*.<http://mycompany.com.br|mycompany.com.br>"
time="2023-06-07T21:42:09Z" level=info msg="Issuer: CN=Valid Certificadora Digital AlphaSSL CA 2018,O=VALID CERTIFICADORA DIGITAL,C=BR"
time="2023-06-07T21:42:09Z" level=info msg="IsCA: false"
time="2023-06-07T21:42:09Z" level=info msg="DNS Names: [*.<http://mycompany.com.br|mycompany.com.br> <http://mycompany.com.br|mycompany.com.br>]"
time="2023-06-07T21:42:09Z" level=info msg="IPAddresses: <none>"
time="2023-06-07T21:42:09Z" level=info msg="NotBefore: 2022-11-03 16:46:14 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="NotAfter: 2023-09-19 00:00:00 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="SignatureAlgorithm: SHA256-RSA"
time="2023-06-07T21:42:09Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2023-06-07T21:42:09Z" level=info msg="Certificate #1 (<https://rancher.mycompany.com.br>)"
time="2023-06-07T21:42:09Z" level=info msg="Subject: CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE"
time="2023-06-07T21:42:09Z" level=info msg="Issuer: CN=GlobalSign,OU=GlobalSign Root CA - R3,O=GlobalSign"
time="2023-06-07T21:42:09Z" level=info msg="IsCA: true"
time="2023-06-07T21:42:09Z" level=info msg="DNS Names: <none>"
time="2023-06-07T21:42:09Z" level=info msg="IPAddresses: <none>"
time="2023-06-07T21:42:09Z" level=info msg="NotBefore: 2018-11-21 00:00:00 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="NotAfter: 2028-11-21 00:00:00 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="SignatureAlgorithm: SHA256-RSA"
time="2023-06-07T21:42:09Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2023-06-07T21:42:09Z" level=error msg="Certficate's Subject (CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE) does not match with previous certificate Issuer (CN=Valid Certificadora Digital AlphaSSL CA 2018,O=VALID CERTIFICADORA DIGITAL,C=BR). Please check if the configured server certificate contains all needed intermediate certificates and make sure they are in the correct order (server certificate first, intermediates after)"
time="2023-06-07T21:42:09Z" level=info msg="Certificate #2 (<https://rancher.mycompany.com.br>)"
time="2023-06-07T21:42:09Z" level=info msg="Subject: CN=GlobalSign,OU=GlobalSign Root CA - R3,O=GlobalSign"
time="2023-06-07T21:42:09Z" level=info msg="Issuer: CN=GlobalSign,OU=GlobalSign Root CA - R3,O=GlobalSign"
time="2023-06-07T21:42:09Z" level=info msg="IsCA: true"
time="2023-06-07T21:42:09Z" level=info msg="DNS Names: <none>"
time="2023-06-07T21:42:09Z" level=info msg="IPAddresses: <none>"
time="2023-06-07T21:42:09Z" level=info msg="NotBefore: 2009-03-18 10:00:00 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="NotAfter: 2029-03-18 10:00:00 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="SignatureAlgorithm: SHA256-RSA"
time="2023-06-07T21:42:09Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2023-06-07T21:42:09Z" level=info msg="Certificate #3 (<https://rancher.mycompany.com.br>)"
time="2023-06-07T21:42:09Z" level=info msg="Subject: CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE"
time="2023-06-07T21:42:09Z" level=info msg="Issuer: CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE"
time="2023-06-07T21:42:09Z" level=info msg="IsCA: true"
time="2023-06-07T21:42:09Z" level=info msg="DNS Names: <none>"
time="2023-06-07T21:42:09Z" level=info msg="IPAddresses: <none>"
time="2023-06-07T21:42:09Z" level=info msg="NotBefore: 2000-05-30 10:48:38 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="NotAfter: 2020-05-30 10:48:38 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="SignatureAlgorithm: SHA1-RSA"
time="2023-06-07T21:42:09Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2023-06-07T21:42:09Z" level=error msg="Certficate's Subject (CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE) does not match with previous certificate Issuer (CN=GlobalSign,OU=GlobalSign Root CA - R3,O=GlobalSign). Please check if the configured server certificate contains all needed intermediate certificates and make sure they are in the correct order (server certificate first, intermediates after)"
time="2023-06-07T21:42:09Z" level=info msg="Certificate #4 (<https://rancher.mycompany.com.br>)"
time="2023-06-07T21:42:09Z" level=info msg="Subject: CN=USERTrust RSA Certification Authority,O=The USERTRUST Network,L=Jersey City,ST=New Jersey,C=US"
time="2023-06-07T21:42:09Z" level=info msg="Issuer: CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE"
time="2023-06-07T21:42:09Z" level=info msg="IsCA: true"
time="2023-06-07T21:42:09Z" level=info msg="DNS Names: <none>"
time="2023-06-07T21:42:09Z" level=info msg="IPAddresses: <none>"
time="2023-06-07T21:42:09Z" level=info msg="NotBefore: 2000-05-30 10:48:38 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="NotAfter: 2020-05-30 10:48:38 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="SignatureAlgorithm: SHA384-RSA"
time="2023-06-07T21:42:09Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2023-06-07T21:42:09Z" level=error msg="Certficate's Subject (CN=USERTrust RSA Certification Authority,O=The USERTRUST Network,L=Jersey City,ST=New Jersey,C=US) does not match with previous certificate Issuer (CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE). Please check if the configured server certificate contains all needed intermediate certificates and make sure they are in the correct order (server certificate first, intermediates after)"
time="2023-06-07T21:42:09Z" level=info msg="Certificate #5 (<https://rancher.mycompany.com.br>)"
time="2023-06-07T21:42:09Z" level=info msg="Subject: CN=Sectigo RSA Organization Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB"
time="2023-06-07T21:42:09Z" level=info msg="Issuer: CN=USERTrust RSA Certification Authority,O=The USERTRUST Network,L=Jersey City,ST=New Jersey,C=US"
time="2023-06-07T21:42:09Z" level=info msg="IsCA: true"
time="2023-06-07T21:42:09Z" level=info msg="DNS Names: <none>"
time="2023-06-07T21:42:09Z" level=info msg="IPAddresses: <none>"
time="2023-06-07T21:42:09Z" level=info msg="NotBefore: 2018-11-02 00:00:00 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="NotAfter: 2030-12-31 23:59:59 +0000 UTC"
time="2023-06-07T21:42:09Z" level=info msg="SignatureAlgorithm: SHA384-RSA"
time="2023-06-07T21:42:09Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2023-06-07T21:42:09Z" level=error msg="Certficate's Subject (CN=Sectigo RSA Organization Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB) does not match with previous certificate Issuer (CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE). Please check if the configured server certificate contains all needed intermediate certificates and make sure they are in the correct order (server certificate first, intermediates after)"
time="2023-06-07T21:42:09Z" level=fatal msg="Certificate chain is not complete, please check if all needed intermediate certificates are included in the server certificate (in the correct order) and if the cacerts setting in Rancher either contains the correct CA certificate (in the case of using self signed certificates) or is empty (in the case of using a certificate signed by a recognized CA). Certificate information is displayed above. error: Get \"<https://rancher.mycompany.com.br>\": x509: certificate signed by unknown authority"
ambitious-plastic-3551
06/07/2023, 9:54 PMambitious-plastic-3551
06/07/2023, 9:55 PMjolly-lock-68045
06/07/2023, 9:58 PMambitious-plastic-3551
06/08/2023, 4:07 AMjolly-lock-68045
06/09/2023, 11:46 AMjolly-lock-68045
06/09/2023, 2:33 PM