NetApp 和 S3 put-bucket-lifecycle-configuration 与 JSON 文件始终返回 MalformedXML

问题描述 投票:0回答:1

我们的 S3 Bucket 存储网格出现问题! 当我们尝试在 S3 上放置生命周期配置时,我们总是遇到相同的错误:

An error occurred (MalformedXML) when calling the PutBucketLifecycleConfiguration operation: Invalid XML node or node is at wrong location.

有时,当 JSON 文件不好时,我们会出错,他会尝试这样帮助我们:

Error parsing parameter '--lifecycle-configuration': Invalid JSON: Expecting ',' delimiter: line 3 column 17 (char 30) JSON received:

但是,当我们清除 JSON 文件并尝试放置 Licecycle 配置时,我们总是遇到相同的错误:

An error occurred (MalformedXML) when calling the PutBucketLifecycleConfiguration operation: Invalid XML node or node is at wrong location.

我搜索了又搜索,但没有找到解决我问题的答案...

有问题的 JSON 文件可以在下面找到:

{
    "Rules": [
        {
            "ID": "rule1",
            "Expiration": {
                "ExpiredObjectDeleteMarker": true
            },
            "NoncurrentVersionExpiration": {
                "NewerNoncurrentVersions": 10,
                "NoncurrentDays": 30
            },
            "Status": "Enabled"
        }
    ]
}

如果有人有问题或有想法来解决我的问题,欢迎您!!!

amazon-web-services amazon-s3 netapp
1个回答
0
投票

检查https://docs.netapp.com/us-en/storagegrid-115/s3/operations-on-buckets.html

它指出“StorageGRID 不支持这些操作:

  • 中止不完整的分段上传
  • 过期对象删除标记
  • 过渡”
© www.soinside.com 2019 - 2024. All rights reserved.