// Module included in the following assemblies:
//
// * registry/configuring_registry_storage-openstack-user-infrastructure.adoc

:_mod-docs-content-type: PROCEDURE
[id="registry-configuring-storage-openstack-user-infra_{context}"]
= Registry storage for {rh-openstack} with user-provisioned infrastructure

[role="_abstract"]
If the Registry Operator cannot create a Swift bucket, you must set up the storage medium manually and configure the settings in the registry custom resource (CR).

.Prerequisites

* A cluster on {rh-openstack-first} with user-provisioned infrastructure.
* To configure registry storage for {rh-openstack}, you need to provide Registry Operator
cloud credentials.
* For Swift on {rh-openstack} storage, the secret is expected to contain the following two keys:

** `REGISTRY_STORAGE_SWIFT_USERNAME`
** `REGISTRY_STORAGE_SWIFT_PASSWORD`

.Procedure

* Fill in the storage configuration in `configs.imageregistry.operator.openshift.io/cluster`:
+
[source,terminal]
----
$ oc edit configs.imageregistry.operator.openshift.io/cluster
----
+
.Example configuration
[source,yaml]
----
apiVersion: imageregistry.operator.openshift.io/v1
kind: Config
metadata:
  name: cluster
spec:
  storage:
    swift:
      container: <container_id>
----