Failed to get existing Workspace with Openstack swift backend

I’m trying to use ‘swift’ as a backend for terraform remote state, but actually having troubles to initialize it.

backend "swift" {
  container = "terraform-state"
  archive_container = "terraform-state-archive"
  cloud = "openstack"

but got this error:

Error: Failed to get existing workspaces: Expected HTTP response code [201 202 204] when accessing [PUT], but got 412 instead
│ {"Code":"PreconditionFailed","BucketName":"terraform-state","RequestId":"tx0000000000000007983c7-00621f393e-6b886c6c-default","HostId":"6b886c6c-default-default"}