Skip to content
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 1 commit into from
Sep 20, 2024
Merged

Upgrade Metabase to v0.50.26.1 #3461

merged 1 commit into from
Sep 20, 2024

Conversation

ohrite
Copy link
Contributor

@ohrite ohrite commented Sep 18, 2024

Description

Metabase is currently out of date (0.48 vs v0.50) and the Slack integration surfaces a warning.

Resolves #3451

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

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.

  • No action required
  • Actions required

@ohrite ohrite force-pushed the doc/upgrade-metabase branch 2 times, most recently from 43d65b4 to 6bbb3b3 Compare September 18, 2024 21:32
@ohrite ohrite changed the title WIP - Analyst understands how to upgrade Metabase Upgrade Metabase to v0.50.26.1 Sep 18, 2024
Copy link

github-actions bot commented 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 ohrite force-pushed the doc/upgrade-metabase branch 2 times, most recently from e479cac to 44207ab Compare September 18, 2024 21:37
@ohrite ohrite marked this pull request as ready for review September 18, 2024 21:40
@ohrite ohrite added this to the Data Infrastructure Maintenance milestone Sep 18, 2024
@evansiroky 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
runbooks/workflow/upgrade-metabase.md Outdated Show resolved Hide resolved
runbooks/workflow/upgrade-metabase.md Outdated Show resolved Hide resolved
runbooks/workflow/upgrade-metabase.md Show resolved Hide resolved
runbooks/workflow/upgrade-metabase.md Outdated Show resolved Hide resolved
runbooks/workflow/upgrade-metabase.md Outdated Show resolved Hide resolved
runbooks/workflow/upgrade-metabase.md Show resolved Hide resolved
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
Copy link
Contributor

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

* Update test/production Metabase to v0.50.26.1

[#3451]
@ohrite ohrite merged commit ceeea6e into main Sep 20, 2024
2 checks passed
@ohrite ohrite deleted the doc/upgrade-metabase branch September 20, 2024 17:51
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Analyst sees an upgraded version of Metabase
3 participants