Ask Your Question
0

[kolla-ansible] Cinder-Backup (NFS) fails with AttributeError

asked 2019-02-15 07:44:47 -0500

Sadarex gravatar image

Hi,

the cinder-backup feature fails in our current installation.

  • Openstack: kolla-ansible with current rocky release (source)
  • Cinder-Backend: NFS
  • Cinder_Backup-Backend: NFS

When i start a backup via CLI i get the following error(s). Looked up via Kibana:

Exception during message handling: AttributeError: 'Snapshot' object has no attribute '_context'
Traceback (most recent call last):

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
    res = self.dispatcher.dispatch(message)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
    result = func(ctxt, **new_args)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/manager.py", line 4308, in get_backup_device
    self.driver.get_backup_device(ctxt, backup))

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/driver.py", line 1159, in get_backup_device
    context, backup)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/driver.py", line 1200, in _get_backup_volume_temp_volume
    context, volume)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/driver.py", line 1307, in _create_temp_cloned_volume
    temp_vol_ref.destroy()

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/driver.py", line 1302, in _create_temp_cloned_volume
    model_update = self.create_cloned_volume(temp_vol_ref, volume)

  File "<decorator-gen-505>", line 2, in create_cloned_volume

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/coordination.py", line 151, in _synchronized
    return f(*a, **k)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1682, in create_cloned_volume
    return self._create_cloned_volume(volume, src_vref)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1051, in _create_cloned_volume
    self._create_snapshot(temp_snapshot)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1436, in _create_snapshot
    new_snap_path)

  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1449, in _create_snapshot_online
    context = snapshot._context

AttributeError: 'Snapshot' object has no attribute '_context'
2019-02-15 13:57:13.218 7 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2019-02-15 13:57:13.218 7 ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
2019-02-15 13:57:13.218 7 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2019-02-15 13:57:13.218 7 ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
2019-02-15 13:57:13.218 7 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2019-02-15 13:57:13.218 7 ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-15 08:02:11 -0500

Sadarex gravatar image

I got the backup to work:

  • stopping instance
  • changing the status of the volume from in-use to "available"
  • start backup

Is this an expected behavior?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-02-15 07:44:47 -0500

Seen: 32 times

Last updated: Feb 15