# Unable to Attach a Volume With Error "libvirtError: XML error: invalid secret uuid

## Problem

When attaching a new volume to an existing instance, the following error is observed in the *pf9-ostackhost* log located at */var/log/pf9/ostackhost.log*

{% tabs %}
{% tab title="None" %}

```none
ERROR nova.virt.libvirt.driver [...] [instance: 701a918f-7aaf-4530-9d4e-a4e94c74fbc9] Failed to attach volume at mountpoint: /dev/sdb: libvirtError: XML error: invalid secret uuid 'http://images.platform9.com/centos-7.1-cloudinit.qcow2'
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All versions
* Nova
* Cinder
* Ceph

## Cause

The error observed is due to an incorrect *Cinder* configuration.

## Resolution

1. Check the *Nova* configuration file located at */opt/pf9/etc/nova/conf.d/nova\_override.conf.*

{% tabs %}
{% tab title="None" %}

```none
# less /opt/pf9/etc/nova/conf.d/nova_override.conf | grep rbdimages_type = rbdimages_rbd_pool = cinderimages_rbd_ceph_conf = /etc/ceph/ceph.confrbd_user = cinderrbd_secret_uuid = 0c3b58a3-a22e-4aa1-a917-999e13baa489
```

{% endtab %}
{% endtabs %}

2. Check the *Cinder* configuration file located under */opt/pf9/etc/pf9-cindervolume-base/conf.d* on the *Cinder* nodes.

{% tabs %}
{% tab title="None" %}

```none
Cinder-node01 ~ $ less /opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder_override.conf | grep rbd_secret_uuidrbd_secret_uuid = http://images.platform9.com/centos-7.1-cloudinit.qcow2
```

{% endtab %}
{% endtabs %}

3. Modify the ***rbd\_secret\_uuid*** in the *Cinder* configuration to match what is observed in *Nova* config.

{% tabs %}
{% tab title="None" %}

```none
Cinder-node01 ~ $ less /opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder_override.conf | grep rbd_secret_uuidrbd_secret_uuid = 0c3b58a3-a22e-4aa1-a917-999e13baa489
```

{% endtab %}
{% endtabs %}

4. Restart the ***pf9-cindervolume-base*** service for the changes to take effect.

{% tabs %}
{% tab title="None" %}

```none
sudo service pf9-cindervolume-base restart
```

{% endtab %}
{% endtabs %}
