openvstorage / framework-alba-plugin

The Framework ALBA plugin extends the OpenvStorage GUI with functionality to manage ASDs (Alternate Storage Daemon) and Seagate Kinetic drives.
Other
2 stars 3 forks source link

[Unstable] BACKEND role is no longer added #607

Closed JeffreyDevloo closed 6 years ago

JeffreyDevloo commented 6 years ago

Problem description

After adding a role, the backend role is no longer applied to the partition Snippet of the old initialize_disk:

        if node.storagerouter is not None:
            DiskController.sync_with_reality(storagerouter_guid=node.storagerouter_guid)
            for disk in node.storagerouter.disks:
                if set(disk.aliases).intersection(set(added_disks)):
                    partition = disk.partitions[0]
                    if DiskPartition.ROLES.BACKEND not in partition.roles:
                        partition.roles.append(DiskPartition.ROLES.BACKEND)
                        partition.save()
JeffreyDevloo commented 6 years ago

Fixed by https://github.com/openvstorage/framework-alba-plugin/pull/610, https://github.com/openvstorage/framework-alba-plugin/pull/609 Packaged in openvstorage-backend-core_1.13.0-dev.1535384397.483aec4-1_amd64.deb

JeffreyDevloo commented 6 years ago

Released in https://github.com/openvstorage/framework-alba-plugin/releases/tag/1.13.0