ska-sa / katdal

Data access library for the MeerKAT radio telescope
BSD 3-Clause "New" or "Revised" License
12 stars 13 forks source link

SPR1-2990, SPR1-3007: Change underscores in S3 bucket names to dashes #370

Closed ludwigschwardt closed 1 year ago

ludwigschwardt commented 1 year ago

Before 19 December 2018 the MeerKAT Ceph archive had underscores in its S3 bucket names, even though it was in violation of the S3 spec. Since October 2023 the archive runs a stricter version of Ceph and those older buckets were renamed to use dashes / hyphens instead. The metadata in the corresponding RDB files still refer to bucket names with underscores though.

Use the S3ChunkStore.make_url method as a centralised tool to build URLs from paths, fixing the underscores in the bucket names in the process. All store URLs should emanate from this method.

Some alternatives I considered:

This fixes #368.