[pve-devel] pveproxy: I might have discovered a bug

Michael Rasmussen mir at datanom.net
Fri Jun 21 00:13:21 CEST 2013


Hi all,

Running this script from the command line on a node:
#!/usr/bin/perl

use PVE::Storage;
use Data::Dumper;
my $cfg = {
        ids => {omnios => {
                iscsiprovider => 'COMSTAR',
                portal => '172.16.2.2',
                pool => 'vMotion',
                type => 'zfs',
                },
        },
};

my $res = {};
$res = PVE::Storage::vdisk_list($cfg, 'omnios');

print Dumper($res);

Provides this output:
$VAR1 = {
          'omnios' => [
                        {
                          'format' => 'raw',
                          'name' => 'vm-107-disk-1',
                          'volid' => 'omnios:vm-107-disk-1',
                          'vmid' => '107',
                          'size' => '17179869184'
                        },
                        {
                          'format' => 'raw',
                          'name' => 'vm-107-disk-2',
                          'volid' => 'omnios:vm-107-disk-2',
                          'vmid' => '107',
                          'size' => 4294967296
                        },
                        {
                          'format' => 'raw',
                          'name' => 'vm-114-disk-1',
                          'volid' => 'omnios:vm-114-disk-1',
                          'vmid' => '114',
                          'size' => '21474836480'
                        },
                        {
                          'format' => 'raw',
                          'name' => 'vm-115-disk-1',
                          'volid' => 'omnios:vm-115-disk-1',
                          'vmid' => '115',
                          'size' => '21474836480'
                        },
                        {
                          'format' => 'raw',
                          'name' => 'vm-117-disk-1',
                          'volid' => 'omnios:vm-117-disk-1',
                          'vmid' => '117',
                          'size' => 4294967296
                        },
                        {
                          'format' => 'raw',
                          'name' => 'vm-128-disk-1',
                          'volid' => 'omnios:vm-128-disk-1',
                          'vmid' => '128',
                          'size' => '32212254720'
                        },
                        {
                          'format' => 'raw',
                          'name' => 'vm-129-disk-1',
                          'volid' => 'omnios:vm-129-disk-1',
                          'vmid' => '129',
                          'size' => '53687091200'
                        }
                      ]
        };

This is as expected.

Activating the content tab in the web gui for the same storages gives
a connection error. /var/log/pveproxy/access.log shows:

172.16.3.9 - root at pam [21/Jun/2013:00:07:06 +0200]
"GET /api2/json/nodes/esx1/storage/omnios/content HTTP/1.1" 500 -

Summary and permissions works as expected.

Any idea of what goes wrong here?
-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Did you know the University of Iowa closed down after someone stole the
book?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20130621/4e0344a2/attachment.sig>


More information about the pve-devel mailing list