Update git submodules

* Update cinder from branch 'master'
  to c2f9c84aa6960651790bd0f5d68185bbd58708d4
  - Merge "NFS: Update connection info on online snap create"
  - NFS: Update connection info on online snap create
    
    The NFS snapshot creation for an attached volume requires interaction
    between Nova and Cinder, and a new qcow2 file is used after the
    attachment completes.
    
    This means that the connection properties stored in the Attachment is no
    longer valid, as it is pointing to the old qcow2 file, so if Nova tries
    to use that attachment it will start writing on the old qcow2 file.
    
    A flow showing this issue is:
    
    - Attach NFS volume
    - Create snapshot
    - Hard reboot
    
    After that the VM will start using the base image, breaking the qcow2
    chain.
    
    If we delete the snapshot in the meantime, then the VM will fail to
    reboot.
    
    This patch fixes this inconsistency by updating the connection info
    field inside the remotefs driver.
    
    We usually prefer that drivers don't to touch the DB, directly or
    indirectly (using OVOs), but in this case we are using OVOs methods
    instead of the usual model update on the volume manager because there
    are cases in the driver where a snapshot is created (cloning via
    snapshot) and we have to update the attachment without the manager, as
    it is unaware that a temporary snapshot is being created.
    
    Besides that main reason there are other less critical reasons to do the
    attachment update in the driver:
    
    - Smaller code change
    - Easier to backport
    - Limit change impact on other areas (better for backport)
    - The snapshot_create model update code in the manager does not support
      updating attachments.
    - There are cases in the cinder volume manager where the model update
      values returned by snapshot_create are not being applied.
    
    Snapshot deletion belonging to in-use volumes are not affected by this
    issue because we only do block commit when the snapshot file we are
    deleting is not the active file.  In _delete_snapshot_online:
    
            if utils.paths_normcase_equal(info['active_file'],
                                          info['snapshot_file']):
    
    Closes-Bug: #1860913
    Change-Id: I62fcef3169dcb9f4363a5344af4b2711edfef632
This commit is contained in:
Zuul 2021-07-22 20:40:39 +00:00 committed by Gerrit Code Review
parent 8306b8a341
commit c4fe823438
1 changed files with 1 additions and 1 deletions

2
cinder

@ -1 +1 @@
Subproject commit b80f7c47bce186a5e710fec36bf63fd8fbab42e0
Subproject commit c2f9c84aa6960651790bd0f5d68185bbd58708d4