Share server migration fails to reuse network allocations and use wrong vserver_name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Committed
|
Undecided
|
Sylvan Le Deunff |
Bug Description
ISSUE 1
=======
When performing a share server migration, if no new network is specified same allocations should be reused on destination share server.
But the code responsible to update existing allocations with new share_server_id seems to be missing here:
https:/
ISSUE 2
=======
The way share server name is retrieved in NetApp driver prevents doing another migration after the first one.
- NetApp driver determines the name of the source share server for a migration using templating (something like "os_{server_id}" by default).
- Migration of NetApp vserver with manila creates a new share_server entry in manila DB with a different server_id, but vserver still has the same name on NetApp cluster.
- Now the name "os_{server_id}" does not match "vserver_name" anymore.
- This breaks ability to migrate vserver a second time.
The problem occurs in those functions related to migration:
- _check_
- _migration_
And can be fixed by replacing templating by using backend_details stored in manila
- source_
description: | updated |
description: | updated |
description: | updated |
Changed in manila: | |
assignee: | nobody → Sylvan Le Deunff (sylvanld) |
tags: | added: migration share-migration |
Changed in manila: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: master /review. opendev. org/c/openstack /manila/ +/918297
Review: https:/