Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lun: try to recovery the config from the LIO #254

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Mar 7, 2022

  1. lun: try to recovery the config from the LIO

    If the LIO exists but the config doesn't, it will only add a disk
    item with "created":
    
    "rbd/blockX1": {
        "created": "2022/02/22 11:23:12",
    }
    
    We can recovery the config from LIO instead of just append a corrupted
    disk item.
    
    In all the other fail path we should delete the corrupted disk
    item.
    
    Signed-off-by: Xiubo Li <xiubli@redhat.com>
    lxbsz committed Mar 7, 2022
    Configuration menu
    Copy the full SHA
    f0674af View commit details
    Browse the repository at this point in the history
  2. common: add update_sub_item support

    We can update the sub item only for 'disks'
    
    Signed-off-by: Xiubo Li <xiubli@redhat.com>
    lxbsz committed Mar 7, 2022
    Configuration menu
    Copy the full SHA
    fc5a0c1 View commit details
    Browse the repository at this point in the history
  3. common: try to update LIO device's size

    When one gateway have recovered the config from the rbd image and
    LIO device, the image size may have changed, so in other gateways
    we need to update the size in LIO device.
    
    Signed-off-by: Xiubo Li <xiubli@redhat.com>
    lxbsz committed Mar 7, 2022
    Configuration menu
    Copy the full SHA
    237cc1c View commit details
    Browse the repository at this point in the history