-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't upgrade k8s using snap refresh #634
Comments
Hi @mhalano Thanks for reporting this issue. For me, the upgrade to the latest version works:
Would you mind retrying this upgrade on |
@bschimke95 I did the test you mentioned, and the upgrade process works, but it crashes my cluster after:
I don't know if this problem is still related to the snap anymore. Any tips? |
This looks like something inside Would you mind sharing an inspection report and the output of |
Here it is:
|
Thanks! So as assumed, the |
Here it is. |
Thanks @mhalano. It looks like the migrations are not correctly applied.
The |
I think I got the same issue, or a very similar one while working on a k8s cluster deployed through https://charmhub.io/k8s. Traceback (most recent call last):
File "/var/lib/juju/agents/unit-k8s-2/charm/venv/charms/reconciler.py", line 35, in reconcile
self.reconcile_function(event)
File "/var/lib/juju/agents/unit-k8s-2/charm/./src/charm.py", line 608, in _reconcile
self._install_snaps()
File "/usr/lib/python3.10/contextlib.py", line 78, in inner
with self._recreate_cm():
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/var/lib/juju/agents/unit-k8s-2/charm/venv/charms/contextual_status.py", line 106, in on_error
raise ReconcilerError(msg) from e
charms.contextual_status.ReconcilerError: Found expected exception: Snap: 'k8s'; command ['snap', 'refresh', 'k8s', '--channel="edge"'] failed with output = '2024-10-04T06:10:28Z INFO Waiting for "snap.k8s.kube-apiserver.service" to stop.\n'
I tried restarting |
Hey @kot0dama @louiseschmidtgen could you confirm that the microcluster issue should be resolved? @kot0dama I think you are running into #642. If the snap is refreshed, the relevant services are restarted which causes the apiserver to break (right now). |
Thanks @bschimke95 , I've tried the workaround listed on that bug report but that doesn't seem to have fixed it for me. |
Hey @kot0dama, that bug report might not exactly be related. Can you share inspection reports for the units? Also can you check if |
Dear @mhalano, the fix is populated to all channels, you may now upgrade from 1.30-> 1.31 without any troubles. Thank you for raising the issue! |
Summary
I tried to upgrade my snap k8s installed on a single node and got this error:
What Should Happen Instead?
Should complete the upgrade correctly
Reproduction Steps
sudo snap refresh k8s
to get the latest version. At this moment is 1.31.0System information
inspection-report-20240828_225625.tar.gz
Can you suggest a fix?
No response
Are you interested in contributing with a fix?
I don't know how I can fix it, but I can help troubleshooting and validate any possible solution. My cluster is not critical.
The text was updated successfully, but these errors were encountered: