Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BucketStats: parsing time fails: cannot parse "0.000000" as "2006" #9

Open
jgraichen opened this issue Dec 22, 2023 · 1 comment
Open

Comments

@jgraichen
Copy link

When trying to load bucket stats, all I get is a time parsing error, for all buckets:

parsing time "0.000000" as "2006-01-02 15:04:05.000000": cannot parse "0.000000" as "2006"

Example:

		stats, err := aa.BucketStats(context.Background(), "", "")

My ceph version is Quincy (17).

@imunhatep
Copy link

Updating DateTime formats solves the issue. Ceph 18.x

// RadosTimeFormat - this is the most common rados time format
const RadosTimeFormat string = "2006-01-02T15:04:05.000000Z07:00"

// RadosBucketTimeFormat - used for bucket calls
const RadosBucketTimeFormat string = "2006-01-02T15:04:05.000000"

Error before changing format:

error="parsing time \"2024-07-24T12:10:49.619137Z\" as \"2006-01-02 15:04:05.000000\": cannot parse \"T12:10:49.619137Z\" as \" \""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants