Bucket created with "--retention 0" shows 720h retention

Hi!
Using InfluxDB 2.7.

Creating bucket like this:

 % influx bucket create \
  --name <name> \
  --org <org> \
  --shard-group-duration 8d \
  --retention 0

ID			Name	Retention	Shard group duration	Organization ID		Schema Type
<id>	<name>	720h0m0s	192h0m0s		<org_id>	implicit

It shows 720h retention. By documentation, is shall set infinite retention - influx bucket list | InfluxDB OSS 2.7 Documentation

How can I set infinite retention in this case?

@chudsaviet,
Hello!
Welcome!
Hmm that is so odd. The max retention for Cloud is 30d. Just to verify you’re using oss right? I wonder if that’s a byproduct of setting the shard group duration. If you create a bucket with infinite retention policy without setting the shard group duration do you get the same error?
Thanks

You are right, it’s a byproduct of setting shard group duration.
If I set any shard group duration, retention=0 results in 720h.

% influx bucket create \
  --name test \
  --org <org> \
  --retention 0

ID			Name	Retention	Shard group duration	Organization ID		Schema Type
<>	test	infinite	168h0m0s		<>	implicit
% influx bucket create \
  --name test2 \
  --org <> \
  --shard-group-duration 1d \
  --retention 0

ID			Name	Retention	Shard group duration	Organization ID		Schema Type
<>	test2	720h0m0s	24h0m0s			<>	implicit

It’s an Influxdb OSS instance, runs as a Docker container influxdb, version 2.7-alpine.
Downloaded at the day I have created the question.
Image sha256:8db7e93350a803792acdc854e88e8d32904b7c888ae022daaaf03de056bf0f48

Client is influxdb-cli installed from Mac Homebrew,

 % influx version
Influx CLI 2.7.3 (git: 8b962c7e75) build_date: 2023-04-28T14:22:49Z