删除 Google Cloud Storage 对象导致 "Invalid argument" 和 "storage_class_update_time_nano" 错误

Deleting Google Cloud Storage object results in "Invalid argument" and "storage_class_update_time_nano" errors

我无法从我拥有的 Google Cloud Storage 存储桶中覆盖或删除特定对象。

gsutil rm 失败 BadRequestException: 400 Invalid argument:

% gsutil stat gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg
gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg:
    Creation time:          Fri, 07 Aug 2015 02:03:47 GMT
    Update time:            Fri, 17 Feb 2017 04:34:43 GMT
    Storage class:          STANDARD
    Content-Length:         46169
    Content-Type:           image/jpeg
    Metadata:               
        goog-reserved-file-mtime:1438913027
    Hash (crc32c):          UBUUbQ==
    Hash (md5):             fhU9YXjE7M6XRiT+05seeQ==
    ETag:                   CPiV3t7wlccCEAI=
    Generation:             1438913027083000
    Metageneration:         2
% gsutil rm -a gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg
Removing gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg#1438913027083000...
BadRequestException: 400 Invalid argument

GCP 控制台存储浏览器失败 Invalid argument (1 error) 和(深入挖掘)storage_class_update_time_nano must be positive

存储桶正在使用启用了对象级 ACL 的 Standard 存储 class(尽管我没有使用它们,并且我的帐户被列为相关对象的所有者) .存储桶没有保留策略,并且禁用了默认的基于事件的保留选项。它没有任何生命周期规则。

我可以删除存储桶中的其他对象。我怀疑这是 Google 方面的错误,尽管我无法在网上找到其他人遇到同样问题的报告(例如 Google returns 零结果对于 storage_class_update_time_nano 错误消息)。

现在已解决:一个 gsutil mv 命令在 2021 年 2 月 08 日早上失败了,当我 运行 四小时后再次执行它时它起作用了。

GCP issue that I filed 中,一位 Google 员工确认这是由回归引起的:

I can confirm that the issue was on the GCP side and related to a new change on GCS which was performed in the beggining of February.

Now I can see that the issue was rolled out and fixed.