adamant-kite-43734
11/04/2024, 10:33 AMicy-agency-38675
11/04/2024, 4:32 PMI manually imported the CRD through theCan you elaborate on thecommand linekubectl
manually imported ...
? What are your steps to upgrade?cool-architect-86201
11/05/2024, 2:06 AMcool-architect-86201
11/05/2024, 2:07 AMicy-agency-38675
11/05/2024, 2:08 AMcool-architect-86201
11/05/2024, 2:09 AMicy-agency-38675
11/05/2024, 2:10 AMthere were errors showing that CRD resources were missing.What are the errors?
cool-architect-86201
11/05/2024, 2:12 AM/var/lib/longhorn
. However, in version 1.6.0, I manually set it to /data
. After the upgrade, the storage location on all worker nodes reverted to /var/lib/longhorn
, so I had to manually change each one back to /data
.
When Longhorn was upgraded from 1.6.0 to 1.6.3, it appears that the backend configuration files may have been lost as well—this is just my assumption, though.icy-agency-38675
11/05/2024, 2:13 AMicy-agency-38675
11/05/2024, 2:14 AMcool-architect-86201
11/05/2024, 2:23 AMicy-agency-38675
11/05/2024, 2:24 AMBy default, Longhorn’s storage location is set toWhat's setting name you changed during upgrade?. However, in version 1.6.0, I manually set it to/var/lib/longhorn
. After the upgrade, the storage location on all worker nodes reverted to/data
, so I had to manually change each one back to/var/lib/longhorn
./data
cool-architect-86201
11/05/2024, 2:27 AMicy-agency-38675
11/05/2024, 2:31 AMcool-architect-86201
11/05/2024, 2:48 AM/var/lib/longhorn
, but I manually changed each one to /data
through the UI.
Yesterday, I decided to upgrade to 1.6.3 because I noticed some bugs and saw in the issues that these were fixed in later versions. I upgraded through the Rancher app without changing any values. Helm logs showed that the installation was successful. However, Longhorn wasn’t functioning properly, and when I checked the Longhorn backend, I found that many resources couldn’t be retrieved due to missing CRDs.
I tried upgrading through the Longhorn Rancher chart again, this time to version 1.7.2 (thinking that version 1.6.3 might not have included these CRD resources). At this point, the Rancher terminal log notified me that the upgrade failed because CRDs were missing.
So I manually found these CRD resources on GitHub and applied them with kubectl apply
. Version 1.6.3 is now working, but the data appears to be lost, as the previous pods are no longer functioning.icy-agency-38675
11/05/2024, 2:52 AMcool-architect-86201
11/05/2024, 3:01 AMcool-architect-86201
11/05/2024, 3:02 AM024-11-05T02:57:00.317687075Z time="2024-11-05T02:57:00Z" level=debug msg="Complete node web3-staking-tokyo-01"
2024-11-05T02:57:00.330030773Z time="2024-11-05T02:57:00Z" level=debug msg="Handle create node bundle for rke-worker-01"
2024-11-05T02:57:00.344685251Z time="2024-11-05T02:57:00Z" level=debug msg="Complete node rke-worker-01"
2024-11-05T02:57:00.520072770Z time="2024-11-05T02:57:00Z" level=debug msg="Handle create node bundle for rke-worker-06"
2024-11-05T02:57:00.528997170Z time="2024-11-05T02:57:00Z" level=debug msg="Complete node rke-worker-06"
2024-11-05T02:57:00.690127959Z time="2024-11-05T02:57:00Z" level=debug msg="Handle create node bundle for rke-worker-08"
2024-11-05T02:57:00.701616014Z time="2024-11-05T02:57:00Z" level=debug msg="Complete node rke-worker-08"
2024-11-05T02:57:00.777495986Z time="2024-11-05T02:57:00Z" level=debug msg="Handle create node bundle for rke-worker-07"
2024-11-05T02:57:00.793919777Z time="2024-11-05T02:57:00Z" level=debug msg="Complete node rke-worker-07"
2024-11-05T02:57:01.201829858Z time="2024-11-05T02:57:01Z" level=debug msg="Handle create node bundle for rke-worker-02"
2024-11-05T02:57:01.222568871Z time="2024-11-05T02:57:01Z" level=debug msg="Complete node rke-worker-02"
time="2024-11-05T02:57:01Z" level=debug msg="All nodes are completed"
2024-11-05T02:57:01.222657810Z time="2024-11-05T02:57:01Z" level=info msg="All node bundles are received."
time="2024-11-05T02:57:01Z" level=info msg="Succeed to run phase node bundle. Progress (50)."
2024-11-05T02:57:01.230345330Z time="2024-11-05T02:57:01Z" level=info msg="Running phase prometheus bundle"
2024-11-05T02:57:31.241536883Z time="2024-11-05T02:57:31Z" level=error msg="Failed to run phase prometheus bundle: failed to get prometheus alert: Get \"<http://10.42.19.64:9090/api/v1/alerts>\": dial tcp 10.42.19.64:9090: i/o timeout"
time="2024-11-05T02:57:31Z" level=error msg="Failed to run optionalPhases prometheus bundle: failed to get prometheus alert: Get \"<http://10.42.19.64:9090/api/v1/alerts>\": dial tcp 10.42.19.64:9090: i/o timeout"
2024-11-05T02:57:31.241592992Z time="2024-11-05T02:57:31Z" level=info msg="Running phase package"
2024-11-05T02:57:32.515724780Z time="2024-11-05T02:57:32Z" level=info msg="Succeed to run phase package. Progress (66)."
2024-11-05T02:57:32.515761629Z time="2024-11-05T02:57:32Z" level=info msg="Running phase done"
2024-11-05T02:57:32.515773419Z time="2024-11-05T02:57:32Z" level=info msg="Support bundle /tmp/support-bundle-kit/supportbundle_35290e10-63fd-4cca-a3e6-fe9c629b49a6_2024-11-05T02-56-05Z.zip ready to download"
2024-11-05T02:57:32.515780609Z time="2024-11-05T02:57:32Z" level=info msg="Succeed to run phase done. Progress (83)."
icy-agency-38675
11/05/2024, 3:11 AMcool-architect-86201
11/05/2024, 3:24 AMicy-agency-38675
11/05/2024, 3:25 AM