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

create a directory that will point to a specific pool #1

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ data:
00-init.sh: |-
export JAVA=/usr/bin/java
/opt/dcache/bin/dcache database update
/opt/dcache/bin/chimera writetag / OSMTemplate "StoreName test"
/opt/dcache/bin/chimera writetag / sGroup "default"
/opt/dcache/bin/chimera mkdir /testbase || true
/opt/dcache/bin/chimera chmod 0777 /testbase || true
/opt/dcache/bin/chimera mkdir /data || true
Expand All @@ -187,6 +189,12 @@ data:
/opt/dcache/bin/chimera chown 1000:1000 /data/g2 || true
/opt/dcache/bin/chimera mkdir /data/s2 || true
/opt/dcache/bin/chimera chown 1000:1000 /data/s2 || true
{{- range .Values.dcache.pools }}
/opt/dcache/bin/chimera mkdir /data/pool-{{.}} || true
/opt/dcache/bin/chimera chown 1000:1000 /data/pool-{{.}} || true
/opt/dcache/bin/chimera writetag /data/pool-{{.}} sGroup "pool-{{.}}"
{{- end }}


export: |-
/data *(rw,no_root_squash)
Expand Down Expand Up @@ -255,4 +263,20 @@ data:
psu set linkGroup onlineAllowed default-linkgroup true
psu addto linkGroup default-linkgroup default-link

# named pool, unit, unit group, links. The link's write pref is higher than the write perd of default-link
{{- range .Values.dcache.pools }}

psu create pool pool-{{ . }}

psu create unit -store test:pool-{{ . }}@osm
psu create ugroup pool-{{ . }}-store
psu addto ugroup pool-{{ . }}-store test:pool-{{ . }}@osm
psu addto ugroup any-store test:pool-{{ . }}@osm

psu create link pool-{{ . }}-link any-protocol pool-{{ . }}-store world-net
psu set link pool-{{ . }}-link -readpref=10 -writepref=20 -cachepref=20 -p2ppref=10
psu addto link pool-{{ . }}-link pool-{{ . }}
{{- end }}


immutable: true
Loading