跳转到主内容

无法通过 awscli 在 11.5 中创建对象锁定分段,但可能在 11.4 中创建

Views:
1
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

适用场景

NetApp StorageGRID

问题描述

尝试在 StorageGRID 11.4 中使用 AWS 命令行界面创建启用了对象锁定的存储分段时,不会返回任何错误。在 StorageGRID 11.5 中创建相同的时,它将返回错误。
 
StorageGRID 11.4 :

<user>@<nodename>:~>
aws --profile <profile name>  --endpoint-url <endpoint url> s3api create-bucket --bucket<bucketname> --object-lock-enabled-for-bucket
{
   "Location": "/<location>"
}

2022-02-08 09:20:18,064 - MainThread -
urllib3.connectionpool - DEBUG - <endpoint>"PUT /<bucketname> HTTP/1.1" 200 0

StorageGRID 11.5 :

<user<@<nodename>:~> aws --profile <profile name>  --endpoint-url
<endpoint url> s3api create-bucket --bucket <bucketname> --object-lock-enabled-for-bucket

An error occurred
(InvalidRequest) when calling the CreateBucket operation: S3 Object Lock has not been enabled for the grid. Contact your
StorageGRID administrator to enable this setting.


2022-02-08 09:16:48,399 - MainThread - urllib3.connectionpool - DEBUG -
<endpoint>"PUT /<bucketname> HTTP/1.1" 400 290

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.