-
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
Upgrade Metabase to v0.50.26.1 #3461
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ohrite
force-pushed
the
doc/upgrade-metabase
branch
2 times, most recently
from
September 18, 2024 21:32
43d65b4
to
6bbb3b3
Compare
ohrite
changed the title
WIP - Analyst understands how to upgrade Metabase
Upgrade Metabase to v0.50.26.1
Sep 18, 2024
The following changes will be applied to the production Kubernetes cluster upon merge. BE AWARE this may not reveal changes that have been manually applied to the cluster getting undone—applying manual changes to the cluster should be avoided. metabase, metabase, Deployment (apps) has changed:
...
labels:
name: metabase
spec:
containers:
- name: metabase
- image: metabase/metabase:v0.48.3
+ image: metabase/metabase:v0.50.26.1
envFrom:
- configMapRef:
name: metabase-config
ports:
- containerPort: 3000
...
metabase-test, metabase, Deployment (apps) has changed:
...
labels:
name: metabase
spec:
containers:
- name: metabase
- image: metabase/metabase:v0.48.3
+ image: metabase/metabase:v0.50.26.1
envFrom:
- configMapRef:
name: metabase-config
ports:
- containerPort: 3000
... |
ohrite
force-pushed
the
doc/upgrade-metabase
branch
2 times, most recently
from
September 18, 2024 21:37
e479cac
to
44207ab
Compare
evansiroky
added
infrastructure
Maintenance of infrastructure supporting the data warehouse. Product owner is @evansiroky
kubernetes
Issues related to kubernetes config. Doc and Chris are product owners.
and removed
kubernetes
Issues related to kubernetes config. Doc and Chris are product owners.
labels
Sep 19, 2024
themightychris
requested changes
Sep 19, 2024
2 tasks
ohrite
force-pushed
the
doc/upgrade-metabase
branch
from
September 19, 2024 17:22
44207ab
to
1582736
Compare
themightychris
approved these changes
Sep 19, 2024
Comment on lines
+33
to
+39
1. Visit the test instance at https://metabase-test.k8s.calitp.jarv.us/ to see that login and reporting work as expected | ||
2. Connect to the database instance `kubectl -n metabase-test exec -it database-0 -- bash` | ||
3. Ensure that `psql` can connect: `psql -U admin postgres` | ||
4. Scale the `metabase` ReplicaSet to zero: `kubectl -n metabase-test scale deployment metabase --replicas=0` | ||
5. Restore the dump to the test database: `cat pg_dumpall.sql | kubectl -n metabase-test exec -it database-0 -- psql -U admin postgres` | ||
6. Scale the `metabase ReplicaSet` to 1: `kubectl -n metabase-test scale deployment metabase --replicas=1` | ||
7. Ensure that the test instance still works |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
1. Visit the test instance at https://metabase-test.k8s.calitp.jarv.us/ to see that login and reporting work as expected | |
2. Connect to the database instance `kubectl -n metabase-test exec -it database-0 -- bash` | |
3. Ensure that `psql` can connect: `psql -U admin postgres` | |
4. Scale the `metabase` ReplicaSet to zero: `kubectl -n metabase-test scale deployment metabase --replicas=0` | |
5. Restore the dump to the test database: `cat pg_dumpall.sql | kubectl -n metabase-test exec -it database-0 -- psql -U admin postgres` | |
6. Scale the `metabase ReplicaSet` to 1: `kubectl -n metabase-test scale deployment metabase --replicas=1` | |
7. Ensure that the test instance still works | |
1. Visit the test instance at https://metabase-test.k8s.calitp.jarv.us/ to see that login and reporting work as expected | |
2. Ensure that `psql` can connect to the database instance. Enter `\q` to quit when finished: | |
```bash | |
kubectl -n metabase-test exec -it statefulset/database -- psql -U admin postgres | |
``` | |
3. Scale the `metabase` ReplicaSet to zero: `kubectl -n metabase-test scale deployment metabase --replicas=0` | |
4. Restore the dump to the test database: `cat pg_dumpall.sql | kubectl -n metabase-test exec -it database-0 -- psql -U admin postgres` | |
5. Scale the `metabase ReplicaSet` to 1: `kubectl -n metabase-test scale deployment metabase --replicas=1` | |
6. Ensure that the test instance still works |
ohrite
force-pushed
the
doc/upgrade-metabase
branch
from
September 20, 2024 02:51
1582736
to
485ca38
Compare
* Update test/production Metabase to v0.50.26.1 [#3451]
ohrite
force-pushed
the
doc/upgrade-metabase
branch
from
September 20, 2024 15:09
485ca38
to
181fc25
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
infrastructure
Maintenance of infrastructure supporting the data warehouse. Product owner is @evansiroky
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Metabase is currently out of date (0.48 vs v0.50) and the Slack integration surfaces a warning.
Resolves #3451
Type of change
How has this been tested?
This PR was tested according to the steps documented in
runbooks/workflow/upgrade-metabase.md
Post-merge follow-ups
The new version will need to be rolled out to the cluster.