Skip to content

GAP | NSFS | Versioning | List Object Version - Always Returns IsLatest true #7372

@shirady

Description

@shirady

Environment info

  • NooBaa Version: current master (5.14)
  • Platform: Rancher Desktop 1.19.0 (VM and cluster)

Actual behavior

  1. We always return IsLatest true.

Expected behavior

  1. Only the latest version should return IsLatest true.

Steps to reproduce

General Settings:

  1. Change the configuration of NSFS Versioning to be Enabled in file config.js and change config.NSFS_VERSIONING_ENABLED to true.
  2. Deploy noobaa system on minikube (Based on the instructions here - the steps of ‘Build images’ and ‘Deploy noobaa’).
    Note: nb is an alias that runs the local operator from build/_output/bin (alias created by devenv).
  3. Deploy NSFS on minikube (Based on the instructions here).

Steps:

  1. Enabling versioning
    aws --endpoint-url=https://localhost:12443 --no-verify-ssl s3api put-bucket-versioning --bucket fs1-jenia-bucket --versioning-configuration Status=Enabled
  2. Put an object twice
    s3-nb-user-1 aws --endpoint-url=https://localhost:12443 --no-verify-ssl s3api put-object --bucket fs1-jenia-bucket --key fish.txt --body <some_txt_file>
    s3-nb-user-1 aws --endpoint-url=https://localhost:12443 --no-verify-ssl s3api put-object --bucket fs1-jenia-bucket --key fish.txt --body <some_txt_file>
  3. List object versions:
    aws --endpoint-url=https://localhost:12443 --no-verify-ssl s3api list-object-versions --bucket fs1-jenia-bucket

More information - Screenshots / Logs / Other output

Noobaa output:
Screenshot 2023-07-02 at 16 58 36

AWS output:
Screenshot 2023-07-02 at 17 09 36

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions