openvstorage / framework

The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Other
27 stars 23 forks source link

Partition information not completely displayed #1155

Closed JeffreyDevloo closed 7 years ago

JeffreyDevloo commented 7 years ago

Problem description

I've added two partitions to my /dev/sdd disks:

Disk /dev/sdd: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  25.0GB  25.0GB  ext4         logical
 2      25.0GB  50.0GB  25.0GB  ext4         logical

And the DAL has picked them up in a rescan:

In [6]: for d in DiskList.get_disks():
    if d.name =='sdd' and d.storagerouter.guid == '8ab55e5a-38ca-4a2b-8787-f5574489cdcd':
        for p in d.partitions:
            print p
   ...:             
{
    "size": 25000148992, 
    "roles": [], 
    "offset": 25000148992, 
    "disk_guid": "c1f5b5bc-2f5b-48e5-a59a-912e75b8eb9c", 
    "state": "OK", 
    "filesystem": null, 
    "usage": [], 
    "mountpoint": null, 
    "folder": null, 
    "guid": "0fc70630-7ac3-4491-8cee-046e01c03146", 
    "aliases": [
        "/dev/disk/by-partlabel/logical", 
        "/dev/disk/by-id/ata-QEMU_HARDDISK_d0f51db0-a59c-11e6-a-part2", 
        "/dev/disk/by-path/pci-0000:00:06.0-ata-4-part2"
    ]
}
{
    "size": 24999100416, 
    "roles": [], 
    "offset": 1048576, 
    "disk_guid": "c1f5b5bc-2f5b-48e5-a59a-912e75b8eb9c", 
    "state": "OK", 
    "filesystem": "ext4", 
    "usage": [], 
    "mountpoint": null, 
    "folder": null, 
    "guid": "95b7b14e-5337-4812-8e70-52ea2e65ef11", 
    "aliases": [
        "/dev/disk/by-id/ata-QEMU_HARDDISK_d0f51db0-a59c-11e6-a-part1", 
        "/dev/disk/by-path/pci-0000:00:06.0-ata-4-part1"
    ]
}

However in the GUI only one was displayed: selection_057

Further debugging points out that the problem is html-based:

for(var i = 0; i < self.partitions().length; i++){
 part = self.partitions()[i]
 console.log(part.guid() + ' '+ part.offset() + ' ' + part.size() + ' ' + part.filesystem());
}
VM20617:3 95b7b14e-5337-4812-8e70-52ea2e65ef11 1.00 MiB 23.28 GiB ext4
VM20617:3 0fc70630-7ac3-4491-8cee-046e01c03146 23.28 GiB 23.28 GiB null

Reproduction whilst keeping cache on

The information listed above is also present when the problem occurs. Inspecting the DOM revealed that there is only one

present for the partitions. This means that the other partition hasn't been loaded into the DOM.

Additional information

During debugging, the issue fixed itself after 5 minutes. I could reproduce this issue twice so far. Opening the debugger with disabling cache while debugger is open resolves the issue.

Temporary solution

Clean browser cache. (by pressing ctrl+R in chrome for instance)

Packages

- openvstorage                         2.7.5-rev.4273.d9bb7fb-1        amd64        openvStorage
- openvstorage-backend                 1.7.5-rev.811.c1b83e6-1         amd64        openvStorage Backend plugin
- openvstorage-backend-core            1.7.5-rev.811.c1b83e6-1         amd64        openvStorage Backend plugin core
- openvstorage-backend-webapps         1.7.5-rev.811.c1b83e6-1         amd64        openvStorage Backend plugin Web Applications
- openvstorage-core                    2.7.5-rev.4273.d9bb7fb-1        amd64        openvStorage core
- openvstorage-hc                      1.7.5-rev.811.c1b83e6-1         amd64        openvStorage Backend plugin HyperConverged
- openvstorage-sdm                     1.6.5-rev.423.713f250-1         amd64        Open vStorage Backend ASD Manager
- openvstorage-webapps                 2.7.5-rev.4273.d9bb7fb-1        amd64        openvStorage Web Applications
khenderick commented 7 years ago

Fixed by #1383, packaged on dev in openvstorage-2.7.11-dev.1485771651.d559f2f

khenderick commented 7 years ago

openvstorage-2.7.11.1

pploegaert commented 7 years ago

VALIDATION OK