irods S3 plugin ARCHIVE_NAMING_POLICY configuration differs per irods server

Hi, 

I have two irods servers configured, one as provider and one as consumer. Also, the s3 plugin is configured in both servers and the s3 credentials area available for the two servers.

The S3 resource is configured  with ARCHIVE_NAMING_POLICY=decoupled; however, the provider server still uses ARCHIVE_NAMING_POLICY=consistent, which can be evidenced when checking the S3 path of the data object and the S3 data object DATA_PATH is in sync with the S3 bucket file path. This seems to be a bug in the S3 plugin. 

I’ve managed to reproduce this issue when:
1. Irods provider and consumer are installed in different servers

2. Both servers have S3 plugin installed
3. Do an iput -R S3Resource from each server

4. Check the DATA_PATH of the uploaded files with ils -L

The environment where I’ve tested:

SO: Centos 7.9

root# cat /etc/*-release
CentOS Linux release 7.9.2009 (Core)
NAME=”CentOS Linux”
VERSION=”7 (Core)”
ID=”centos”
ID_LIKE=”rhel fedora”
VERSION_ID=”7″
PRETTY_NAME=”CentOS Linux 7 (Core)”
ANSI_COLOR=”0;31″
CPE_NAME=”cpe:/o:centos:centos:7″
HOME_URL=”www.centos.org/
BUG_REPORT_URL=”bugs.centos.org/

CENTOS_MANTISBT_PROJECT=”CentOS-7″
CENTOS_MANTISBT_PROJECT_VERSION=”7″
REDHAT_SUPPORT_PRODUCT=”centos”
REDHAT_SUPPORT_PRODUCT_VERSION=”7″

CentOS Linux release 7.9.2009 (Core)
CentOS Linux release 7.9.2009 (Core)

root# rpm -qa | grep -E “irods|postgres”
irods-externals-clang-runtime6.0-0-1.0-1.x86_64
postgresql15-server-15.4-1PGDG.rhel7.x86_64
irods-rule-engine-plugin-python-4.2.12.0-1.x86_64
irods-externals-boost1.67.0-0-1.0-1.x86_64
irods-runtime-4.2.12-1.x86_64
irods-sudo-microservices-4.2.12_1.0.0-1.x86_64
irods-externals-fmt6.1.2-1-1.0-1.x86_64
irods-externals-nanodbc2.13.0-1-1.0-1.x86_64
postgresql15-libs-15.4-1PGDG.rhel7.x86_64
postgresql11-libs-11.21-1PGDG.rhel7.x86_64
postgresql-odbc-09.03.0100-2.el7.x86_64
irods-resource-plugin-s3-4.2.12.0-1.x86_64
irods-externals-libarchive3.3.2-1-1.0-1.x86_64
postgresql15-contrib-15.4-1PGDG.rhel7.x86_64
irods-server-4.2.12-1.x86_64
irods-externals-libs3c0e278d2-0-1.0-1.x86_64
irods-externals-zeromq4-14.1.6-0-1.0-1.x86_64
irods-icommands-4.2.12-1.x86_64
postgresql11-odbc-16.00.0000-1PGDG.rhel7.x86_64
irods-uu-microservices-4.2.12_0.8.2-2.x86_64
irods-externals-avro1.9.0-0-1.0-1.x86_64
postgresql15-15.4-1PGDG.rhel7.x86_64
irods-database-plugin-postgres-4.2.12-1.x86_64

Thanks for your help

Read more here: Source link