Skip to content

Commit 5a669ec

Browse files
committed
(WIP) (*) replace s3daemon class with s3nd; rm s3daemon instances
1 parent 75b7383 commit 5a669ec

38 files changed

+235
-559
lines changed

Puppetfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod 'lsst/pi', '1.0.0'
3434
mod 'lsst/powertop', '0.1.2'
3535
mod 'lsst/rke', '2.1.0'
3636
mod 'lsst/rke2', '2.0.0'
37-
mod 'lsst/s3daemon', '2.1.0'
37+
mod 'lsst/s3nd', '1.0.0'
3838
mod 'lsst/smee', '2.4.0'
3939
mod 'puppet/alternatives', '6.0.0'
4040
mod 'puppet/archive', '7.1.0'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
classes:
3+
- "s3nd"

hieradata/common.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ lookup_options:
107107
cni::plugins::enable:
108108
merge:
109109
strategy: "deep"
110-
s3daemon::instances:
110+
s3nd::instances:
111111
merge:
112112
strategy: "deep"
113113

@@ -574,12 +574,11 @@ restic::bucket: "rubin-bm-backups/%{facts.networking.fqdn}"
574574
restic::enable_backup: true
575575
restic::host: "s3.us-east-1.amazonaws.com"
576576

577-
s3daemon_default_image: "ghcr.io/lsst-dm/s3daemon:sha-57e1aa9"
578577
s3nd_default_image: "ghcr.io/lsst-dm/s3nd:1.6.0"
579-
s3daemon::volumes:
578+
s3nd::volumes:
580579
- "/data:/data"
581580
- "/home:/home"
582-
s3daemon::env:
581+
s3nd::env:
583582
AWS_REGION: "lfa"
584583

585584
pi::config::reboot: false # XXX this should be removed when pi role/profile refactoring is complete

hieradata/role/auxtel-fp.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ classes:
88
- "profile::core::debugutils"
99
- "profile::core::nfsclient"
1010
- "profile::core::nfsserver"
11+
- "s3nd"
12+
13+
hosts::entries:
14+
sdfembs3.sdf.slac.stanford.edu:
15+
ip: "172.24.7.249"

hieradata/role/ccs-dc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ classes:
88
- "profile::core::debugutils"
99
- "profile::core::nfsclient"
1010
- "profile::core::sysctl::lhn"
11-
- "s3daemon"
1211

1312
profile::ccs::common::sysctls: false
1413

hieradata/role/comcam-fp.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ classes:
1010
- "profile::core::nfsclient"
1111
- "profile::core::nfsserver"
1212
- "profile::core::sysctl::lhn"
13+
- "s3nd"
1314

1415
profile::ccs::common::sysctls: false
1516

17+
hosts::entries:
18+
sdfembs3.sdf.slac.stanford.edu:
19+
ip: "172.24.7.249"
20+
1621
ccs_software::services:
1722
prod:
1823
- "comcam-daq-monitor"

hieradata/site/cp/cluster/auxtel-ccs.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
---
2-
s3daemon::instances:
2+
s3nd::instances:
33
cp-latiss:
4-
image: "%{alias('s3daemon_default_image')}"
5-
env:
6-
S3_ENDPOINT_URL: "https://s3.cp.lsst.org"
7-
S3DAEMON_PORT: 15570
8-
cp-latiss-s3nd:
94
image: "%{alias('s3nd_default_image')}"
105
env:
116
S3ND_ENDPOINT_URL: "https://s3.cp.lsst.org"
127
S3ND_PORT: 15571
138
sdfembs3-latiss:
14-
image: "%{alias('s3daemon_default_image')}"
15-
env:
16-
S3_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"
17-
S3DAEMON_PORT: 15580
18-
sdfembs3-latiss-s3nd:
199
image: "%{alias('s3nd_default_image')}"
2010
env:
2111
S3ND_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"

hieradata/site/cp/cluster/comcam-ccs.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
---
22
profile::ccs::monitoring::mrtg: true
33

4-
s3daemon::instances:
4+
s3nd::instances:
55
cp-comcam:
6-
image: "%{alias('s3daemon_default_image')}"
7-
env:
8-
S3_ENDPOINT_URL: "https://s3.cp.lsst.org"
9-
S3DAEMON_PORT: 15570
10-
cp-comcam-s3nd:
116
image: "%{alias('s3nd_default_image')}"
127
env:
138
S3ND_ENDPOINT_URL: "https://s3.cp.lsst.org"
149
S3ND_PORT: 15571
1510
sdfembs3-comcam:
16-
image: "%{alias('s3daemon_default_image')}"
17-
env:
18-
S3_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"
19-
S3DAEMON_PORT: 15580
20-
sdfembs3-comcam-s3nd:
2111
image: "%{alias('s3nd_default_image')}"
2212
env:
2313
S3ND_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"

hieradata/site/cp/cluster/lsstcam-ccs.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@ clustershell::groupmembers:
1313

1414
profile::ccs::monitoring::mrtg: true
1515

16-
s3daemon::instances:
16+
s3nd::instances:
1717
cp-lsstcam:
18-
image: "%{alias('s3daemon_default_image')}"
19-
env:
20-
S3_ENDPOINT_URL: "https://s3.cp.lsst.org"
21-
S3DAEMON_PORT: 15570
22-
S3DAEMON_HOST: "0.0.0.0" # allow connections from other nodes for testing
23-
cp-lsstcam-s3nd:
2418
image: "%{alias('s3nd_default_image')}"
2519
env:
2620
S3ND_ENDPOINT_URL: "https://s3.cp.lsst.org"
@@ -32,12 +26,6 @@ s3daemon::instances:
3226
S3ND_UPLOAD_TIMEOUT: "3s"
3327
S3ND_UPLOAD_TRIES: "5"
3428
sdfembs3-lsstcam:
35-
image: "%{alias('s3daemon_default_image')}"
36-
env: &sdfembs3
37-
S3_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"
38-
S3DAEMON_PORT: 15580
39-
S3DAEMON_HOST: "0.0.0.0" # allow connections from other nodes for testing
40-
sdfembs3-lsstcam-s3nd:
4129
image: "%{alias('s3nd_default_image')}"
4230
env: &sdfembss3nd
4331
S3ND_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"
@@ -50,11 +38,6 @@ s3daemon::instances:
5038
S3ND_UPLOAD_TIMEOUT: "4s"
5139
S3ND_UPLOAD_TRIES: "3"
5240
sdfembs3-lsstcam-test:
53-
image: "%{alias('s3daemon_default_image')}"
54-
env:
55-
<<: *sdfembs3
56-
S3DAEMON_PORT: 15590
57-
sdfembs3-lsstcam-test-s3nd:
5841
image: "%{alias('s3nd_default_image')}"
5942
env:
6043
<<: *sdfembss3nd

hieradata/site/ls/cluster/auxtel-ccs.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,13 @@ clustershell::groupmembers:
1919
#all: {group: "all", member: "@misc,@hcu"}
2020
all: {group: "all", member: "@misc"}
2121

22-
s3daemon::instances:
22+
s3nd::instances:
2323
ls-latiss:
24-
image: "%{alias('s3daemon_default_image')}"
25-
env:
26-
S3_ENDPOINT_URL: "https://s3.ls.lsst.org"
27-
S3DAEMON_PORT: 15570
28-
ls-latiss-s3nd:
2924
image: "%{alias('s3nd_default_image')}"
3025
env:
3126
S3ND_ENDPOINT_URL: "https://s3.ls.lsst.org"
3227
S3ND_PORT: 15571
3328
s3dfrgw-latiss:
34-
image: "%{alias('s3daemon_default_image')}"
35-
env:
36-
S3_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"
37-
S3DAEMON_PORT: 15580
38-
s3dfrgw-latiss-s3nd:
3929
image: "%{alias('s3nd_default_image')}"
4030
env:
4131
S3ND_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"

0 commit comments

Comments
 (0)