Skip to content

Commit 2e62571

Browse files
authored
Merge pull request #2162 from NCEAS/develop
chart2.1.1 release prep - merge to main
2 parents 9014f10 + f81150f commit 2e62571

File tree

8 files changed

+100
-233
lines changed

8 files changed

+100
-233
lines changed

RELEASE-NOTES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Metacat Release Notes
22

3+
## Release Notes for helm chart 2.1.1
4+
5+
**Release date: 2025-05-20**
6+
7+
This is a patch release to upgrade the indexer sub-chart from 1.3.0 to 1.3.1. It does not include
8+
any other changes to the metacat codebase or the metacat helm chart, beyond the documentation edits
9+
listed below.
10+
11+
- Bump dataone-indexer sub-chart to version 1.3.1 ([see indexer release notes for
12+
details](https://github.com/DataONEorg/dataone-indexer/blob/3.1.4/RELEASE-NOTES.md))
13+
- Documentation-only updates to `MetacatQuickRef.md` and `Installation-Upgrade-Tips.md`
14+
- Updates to the example values-override files in `helm/examples`
15+
16+
> [!CAUTION]
17+
> If you are upgrading from a helm chart version earlier than 2.1.0, please see the [Upgrade
18+
> Notes](#chart-upgrade-notes) below. Failure to do so may result in loss of data!
19+
20+
321
## Release Notes for Metacat 3.2.1
422

523
**Release date: 2024-05-01**

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type: application
2121
# This is the chart version. This version number should be incremented each time you make changes
2222
# to the chart and its templates, including the app version.
2323
# Versions are expected to follow Semantic Versioning (https://semver.org/)
24-
version: "2.1.0"
24+
version: "2.1.1"
2525
icon: https://camo.githubusercontent.com/a41e704e6cbd198afed0a892f2dccfc43aef29fb7631407048f531aa31956e72/68747470733a2f2f6b6e622e65636f696e666f726d61746963732e6f72672f6b6e622f646f63732f5f696d616765732f6d6574616361742d6c6f676f2d6461726b677261792e706e67
2626

2727
# This is the version number of the application being deployed. This version number should be
@@ -49,7 +49,7 @@ dependencies:
4949

5050
- name: dataone-indexer
5151
repository: oci://ghcr.io/dataoneorg/charts
52-
version: 1.3.0
52+
version: 1.3.1
5353
condition: global.dataone-indexer.enabled
5454
import-values:
5555
- child: solr

helm/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Starting in the root directory of the `metacat` repo:
8080

8181
```shell
8282
$ ./helm-upstall.sh myreleasename mynamespace oci://ghcr.io/nceas/charts/metacat \
83-
--version 2.1.0 -f /your/values-overrides.yaml
83+
--version [version-here] -f /your/values-overrides.yaml
8484
```
8585

8686
To access Metacat, you'll need to create a mapping between your ingress IP address (found by:
@@ -108,7 +108,7 @@ using the [Helm](https://helm.sh) package manager.
108108
To install the chart with the release name `my-release`:
109109
110110
```shell
111-
helm install my-release oci://ghcr.io/nceas/charts/metacat --version 2.1.0
111+
helm install my-release oci://ghcr.io/nceas/charts/metacat --version [version-here]
112112
```
113113
114114
This command deploys Metacat on the Kubernetes cluster in the default configuration that is defined
@@ -120,15 +120,15 @@ by creating a YAML file that specifies only those values that need to be overrid
120120
that file as part of the helm install command. For example:
121121
122122
```shell
123-
helm install my-release -f myValues.yaml oci://ghcr.io/nceas/charts/metacat --version 2.1.0
123+
helm install my-release -f myValues.yaml oci://ghcr.io/nceas/charts/metacat --version [version-here]
124124
```
125125
(where `myValues.yaml` contains only the values you wish to override.)
126126
127127
Parameters may also be provided on the command line to override those in
128128
[values.yaml](./values.yaml); e.g.
129129
130130
```shell
131-
helm install my-release oci://ghcr.io/nceas/charts/metacat --version 2.1.0 \
131+
helm install my-release oci://ghcr.io/nceas/charts/metacat --version [version-here] \
132132
--set postgres.auth.existingSecret=my-release-secrets
133133
```
134134

helm/admin/Installation-Upgrade-Tips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
### See how many "old" datasets exist in DB, before the upgrade:
3838

3939
* ```shell
40-
kubectl exec metacatarctic-postgresql-0 -- bash -c "psql -U metacat << EOF
40+
kubectl exec ${RELEASE_NAME}-postgresql-0 -- bash -c "psql -U metacat << EOF
4141
select count(*) as docs from xml_documents where docid not like 'autogen%';
4242
select count(*) as revs from xml_revisions where docid not like 'autogen%';
4343
EOF"

helm/admin/MetacatQuickRef.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -351,33 +351,28 @@ whether you are using the MetacatUI sub-chart or not:
351351
application.readOnlyMode=true
352352
```
353353
354-
- [ ] Stop tomcat (not postgres)
354+
- [ ] Restart tomcat (not postgres)
355355
356356
```shell
357-
sudo systemctl stop tomcat9
357+
sudo systemctl restart tomcat9
358+
```
359+
360+
- [ ] Check it's in RO mode! `https://$HOSTNAME/CONTEXT/d1/mn/v2/node` - look for:
361+
362+
```xml
363+
<property key="read_only_mode">true</property>
358364
```
359365
360366
- [ ] `pg_dump` on legacy host
361367
362368
```shell
363-
DUMP_DIR="/var/lib/postgresql/14-pg_dump"
369+
JOBS=20 # adjust for available cpu cores
370+
DEST="/var/lib/postgresql/14-pg_dump"
364371
PGDB=metacat
365372
POSTGRES_USER=metacat
366-
sudo pg_dump -U $POSTGRES_USER -h localhost --format=directory --file=$DUMP_DIR --jobs=20 $PGDB
373+
sudo pg_dump -U $POSTGRES_USER -h localhost --format=directory --file=$DEST --jobs=$JOBS $PGDB
367374
```
368375
369-
- [ ] Start tomcat
370-
371-
```shell
372-
sudo systemctl start tomcat9
373-
```
374-
375-
- [ ] Check it's in RO mode! `https://$HOSTNAME/CONTEXT/d1/mn/v2/node` - look for:
376-
377-
```xml
378-
<property key="read_only_mode">true</property>
379-
```
380-
381376
- [ ] "top-up" `rsync` from legacy to ceph:
382377
383378
```shell
@@ -389,9 +384,6 @@ whether you are using the MetacatUI sub-chart or not:
389384
sudo rsync -rltDHX -e "ssh -i $HOME/.ssh/id_ed25519" --stats --human-readable \
390385
/var/metacat/data/ $USER@$TARGET:/mnt/ceph/repos/$REPO/metacat/data/
391386
392-
sudo rsync -rltDHX -e "ssh -i $HOME/.ssh/id_ed25519" --stats --human-readable \
393-
/var/metacat/dataone/ $USER@$TARGET:/mnt/ceph/repos/$REPO/metacat/dataone/
394-
395387
sudo rsync -rltDHX -e "ssh -i $HOME/.ssh/id_ed25519" --stats --human-readable \
396388
/var/metacat/documents/ $USER@$TARGET:/mnt/ceph/repos/$REPO/metacat/documents/
397389
@@ -411,7 +403,7 @@ whether you are using the MetacatUI sub-chart or not:
411403
412404
cd /mnt/ceph/repos/$REPO/metacat
413405
414-
sudo chown -R 59997:59997 data dataone documents logs
406+
sudo chown -R 59997:59997 data documents logs
415407
416408
sudo chmod -R g+rw data documents dataone
417409
```
@@ -428,10 +420,15 @@ whether you are using the MetacatUI sub-chart or not:
428420
```
429421
430422
- [ ] Delete the `storage.hashstore.disableConversion:` setting, so the hashstore converter will
431-
run, and do a `helm upgrade`
423+
run, and do a `helm upgrade`. Watch for completion:
424+
425+
```shell
426+
kubectl exec ${RELEASE_NAME}-postgresql-0 -- bash -c "psql -U metacat << EOF
427+
select storage_upgrade_status from version_history where version='3.1.0';
428+
EOF"
429+
```
432430
433-
> See [this tip](./Installation-Upgrade-Tips.md#monitor-hashstore-conversion-progress-and-completion)
434-
> for how to detect when hashstore conversion finishes
431+
...or see [this tip](./Installation-Upgrade-Tips.md#monitor-hashstore-conversion-progress-and-completion) for other monitoring options
435432
436433
**When hashstore conversion has finished successfully...**
437434
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Values Overrides - see metacatui's values.yaml for full documentation on the following parameters
2+
##
3+
## $ helm upgrade --install metacatuibrooke -n brooke \
4+
## -f metacatui/values-prod-cluster-brooke-mcui.yaml \
5+
## oci://ghcr.io/nceas/charts/metacatui --version [VERSION] --debug --render-subchart-notes
6+
##
7+
8+
global:
9+
metacatUiThemeName: "default"
10+
metacatExternalBaseUrl: "https://metacat-dev.test.dataone.org/"
11+
d1ClientCnUrl: "https://cn-sandbox.test.dataone.org/cn"
12+
# metacatUiWebRoot: "/" ## delete if default is ok
13+
# metacatAppContext: "metacat" ## delete if default is ok
14+
15+
## example for a custom theme (also need to set global.metacatUiThemeName: "cerp", above)
16+
##
17+
# customTheme:
18+
# enabled: true
19+
# ## Use your own release name instead of metacatbrooke
20+
# claimName: metacatbrooke-metacatui-customtheme
21+
# subPath: metacatui-themes/src/cerp/js/themes/cerp
22+
#
23+
## disable appConfig because SFWMD uses cerp theme, overlaid with
24+
## SFWMD config.js at /config/config.js (created as configMap)
25+
# appConfig:
26+
# enabled: false

helm/examples/values-dev-cluster-example.yaml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,20 @@
1717
debug: &debug true
1818

1919
global:
20-
metacatUiThemeName: "default"
21-
metacatUiWebRoot: "/"
2220
metacatExternalBaseUrl: "https://metacat-dev.test.dataone.org/"
2321
d1ClientCnUrl: "https://cn-sandbox.test.dataone.org/cn"
2422
storageClass: &storageClassName csi-cephfs-sc
2523
ephemeralVolumeStorageClass: csi-cephfs-sc-ephemeral
2624
## Use your own release name instead of metacatbrooke
2725
passwordsSecret: &passwordSecretName metacatbrooke-metacat-secrets
28-
29-
30-
## example for a custom theme (also need to set global.metacatUiThemeName: "cerp", above)
31-
##
32-
#metacatui:
33-
# customTheme:
34-
# enabled: true
35-
# ## Use your own release name instead of metacatbrooke
36-
# claimName: metacatbrooke-metacatui-customtheme
37-
# subPath: metacatui-themes/src/cerp/js/themes/cerp
38-
# appConfig:
39-
# enabled: false
40-
## disabled because SFWMD uses cerp theme, overlaid with
41-
## SFWMD config.js at /config/config.js (created as configMap)
26+
## MetacatUI is deployed as a separate chart, to allow for a different upgrade cycle.
27+
## see separate values overrides in ./values-dev-cluster-example-mcui.yaml
28+
##
29+
includeMetacatUi: false # don't include the MetacatUI sub-chart
30+
metacatUiIngressBackend:
31+
enabled: true # configure the Ingress to point to the MetacatUI service
32+
service:
33+
name: mcuibrooke-metacatui # Use your own service name
4234

4335
metacat:
4436
server.name: metacat-dev.test.dataone.org
@@ -72,6 +64,19 @@ image:
7264
pullPolicy: Always
7365
debug: *debug
7466

67+
resources:
68+
requests:
69+
cpu: 1
70+
memory: 4Gi
71+
limits:
72+
cpu: 2
73+
memory: 8Gi
74+
75+
tomcat:
76+
heapMemory:
77+
min: 4G
78+
max: 8G
79+
7580
ingress:
7681
annotations:
7782
cert-manager.io/cluster-issuer: "letsencrypt-prod"
@@ -124,8 +129,16 @@ dataone-indexer:
124129
rabbitmq:
125130
auth:
126131
existingPasswordSecret: *passwordSecretName
132+
resources:
133+
requests:
134+
cpu: 1.0
135+
memory: 2048Mi
136+
limits:
137+
cpu: 3.0
138+
memory: 3072Mi
127139

128140
solr:
141+
resourcesPreset: "large"
129142
extraVolumes:
130143
- name: solr-config
131144
configMap:

0 commit comments

Comments
 (0)