cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandan Purushothama (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7957) [Automation] After Assigning a VM to a Different Account - PrimaryStorageTotal value of the Different Account is not Updated properly
Date Fri, 21 Nov 2014 00:55:34 GMT
Chandan Purushothama created CLOUDSTACK-7957:
------------------------------------------------

             Summary: [Automation] After Assigning a VM to a Different Account - PrimaryStorageTotal
value of the Different Account is not Updated properly
                 Key: CLOUDSTACK-7957
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7957
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Automation
    Affects Versions: 4.5.0
            Reporter: Chandan Purushothama
            Priority: Critical
             Fix For: 4.5.0



*Steps to Reproduce:*

1. Create an Account. Observe the primarystoragetotal Information:

{noformat}
{
    primarystorageavailable: u'Unlimited',
    domain: u'ROOT',
    domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
    vpclimit: u'Unlimited',
    iplimit: u'Unlimited',
    volumelimit: u'Unlimited',
    memorytotal: 0,
    secondarystorageavailable: u'Unlimited',
    vmtotal: 0,
    cputotal: 0,
    vpctotal: 0,
    id: u'40f4c89b-2964-4c54-9aff-5e537faee4f9',
    cpuavailable: u'Unlimited',
    snapshotlimit: u'Unlimited',
    networklimit: u'Unlimited',
    iptotal: 0,
    volumetotal: 0,
    projectlimit: u'Unlimited',
    state: u'enabled',
    networktotal: 0,
    accounttype: 2,
    networkavailable: u'Unlimited',
    primarystoragetotal: 0,
    templatelimit: u'Unlimited',
    snapshottotal: 0,
    templateavailable: u'Unlimited',
    vmlimit: u'Unlimited',
    vpcavailable: u'Unlimited',
    memoryavailable: u'Unlimited',
    secondarystoragetotal: 0,
    templatetotal: 0,
    projecttotal: 0,
    user: [
        {
            username: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-ECMKAT',
            account: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-ECMKAT',
            domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
            firstname: u'test',
            created: u'2014-11-19T14: 24: 52+0000',
            lastname: u'test',
            domain: u'ROOT',
            id: u'3108696d-5bb2-43e4-a5dc-9b7e095e5e6d',
            iscallerchilddomain: False,
            state: u'enabled',
            accounttype: 2,
            email: u'test-account@test.com',
            isdefault: False,
            accountid: u'40f4c89b-2964-4c54-9aff-5e537faee4f9'
        }
    ],
    groups: [
        
    ],
    projectavailable: u'Unlimited',
    isdefault: False,
    primarystoragelimit: u'Unlimited',
    secondarystoragelimit: u'Unlimited',
    volumeavailable: u'Unlimited',
    name: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-ECMKAT',
    vmavailable: u'Unlimited',
    ipavailable: u'Unlimited',
    memorylimit: u'Unlimited',
    cpulimit: u'Unlimited',
    snapshotavailable: u'Unlimited'
}
{noformat}

2. Deploy a VM from the default template (2 GB Size) with a disk offering of 2GB. Observe
primarystoragetotal Information of the account as 4GB.

{noformat}
{
    primarystorageavailable: u'Unlimited',
    domain: u'ROOT',
    domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
    vpclimit: u'Unlimited',
    iplimit: u'Unlimited',
    volumelimit: u'Unlimited',
    memorytotal: 128,
    secondarystorageavailable: u'Unlimited',
    vmtotal: 1,
    cputotal: 1,
    vpctotal: 0,


    id: u'40f4c89b-2964-4c54-9aff-5e537faee4f9',
    networkavailable: u'Unlimited',
    snapshotlimit: u'Unlimited',
    networklimit: u'Unlimited',
    iptotal: 1,
    volumetotal: 2,
    projectlimit: u'Unlimited',
    state: u'enabled',
    networktotal: 1,
    sentbytes: 0,
    accounttype: 2,

    receivedbytes: 0,
    cpuavailable: u'Unlimited',
    primarystoragetotal: 4,
    templatelimit: u'Unlimited',
    snapshottotal: 0,
    templateavailable: u'Unlimited',
    vmlimit: u'Unlimited',
    vpcavailable: u'Unlimited',
    memoryavailable: u'Unlimited',

    secondarystoragetotal: 0,
    templatetotal: 0,
    projecttotal: 0,


















    vmrunning: 1,
    groups: [
        
    ],
    projectavailable: u'Unlimited',
    isdefault: False,
    primarystoragelimit: u'Unlimited',
    secondarystoragelimit: u'Unlimited',
    volumeavailable: u'Unlimited',
    name: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-ECMKAT',
    vmavailable: u'Unlimited',
    ipavailable: u'Unlimited',
    memorylimit: u'Unlimited',
    cpulimit: u'Unlimited',
    snapshotavailable: u'Unlimited',
    user: [
        {
            username: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-ECMKAT',
            account: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-ECMKAT',
            domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
            firstname: u'test',
            created: u'2014-11-19T14: 24: 52+0000',
            lastname: u'test',
            domain: u'ROOT',
            id: u'3108696d-5bb2-43e4-a5dc-9b7e095e5e6d',
            iscallerchilddomain: False,
            state: u'enabled',
            accounttype: 2,
            email: u'test-account@test.com',
            isdefault: False,
            accountid: u'40f4c89b-2964-4c54-9aff-5e537faee4f9'
        }
    ]
}
]
{noformat}

3. Create a new Account. Observe the primarystoragetotal value of the Account

{noformat}
{
    primarystorageavailable: u'Unlimited',
    domain: u'ROOT',
    domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
    vpclimit: u'Unlimited',
    iplimit: u'Unlimited',
    volumelimit: u'Unlimited',
    memorytotal: 0,
    secondarystorageavailable: u'Unlimited',
    vmtotal: 0,
    cputotal: 0,
    vpctotal: 0,
    id: u'ed1f13c5-b544-4e1e-a5f2-fba55c6f8100',
    cpuavailable: u'Unlimited',
    snapshotlimit: u'Unlimited',
    networklimit: u'Unlimited',
    iptotal: 0,
    volumetotal: 0,
    projectlimit: u'Unlimited',
    state: u'enabled',
    networktotal: 0,
    accounttype: 2,
    networkavailable: u'Unlimited',
    primarystoragetotal: 0,
    templatelimit: u'Unlimited',
    snapshottotal: 0,
    templateavailable: u'Unlimited',
    vmlimit: u'Unlimited',
    vpcavailable: u'Unlimited',
    memoryavailable: u'Unlimited',
    secondarystoragetotal: 0,
    templatetotal: 0,
    projecttotal: 0,
    user: [
        {
            username: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-RC0MJ9',
            account: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-RC0MJ9',
            domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
            firstname: u'test',
            created: u'2014-11-19T14: 24: 57+0000',
            lastname: u'test',
            domain: u'ROOT',
            id: u'4f30bf67-0d8b-42f6-b8d0-938716e932c6',
            iscallerchilddomain: False,
            state: u'enabled',
            accounttype: 2,
            email: u'test-account@test.com',
            isdefault: False,
            accountid: u'ed1f13c5-b544-4e1e-a5f2-fba55c6f8100'
        }
    ],
    groups: [
        
    ],
    projectavailable: u'Unlimited',
    isdefault: False,
    primarystoragelimit: u'Unlimited',
    secondarystoragelimit: u'Unlimited',
    volumeavailable: u'Unlimited',
    name: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-RC0MJ9',
    vmavailable: u'Unlimited',
    ipavailable: u'Unlimited',
    memorylimit: u'Unlimited',
    cpulimit: u'Unlimited',
    snapshotavailable: u'Unlimited'
}
{noformat}

4. Assign a the deployed VM to the newly created Account. Observe the primarystoragetotal
value of the new Account. It is 2 instead of 4

{noformat}
{
    primarystorageavailable: u'Unlimited',
    domain: u'ROOT',
    domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
    vpclimit: u'Unlimited',
    iplimit: u'Unlimited',
    volumelimit: u'Unlimited',
    memorytotal: 128,
    secondarystorageavailable: u'Unlimited',
    vmtotal: 1,
    cputotal: 1,
    vpctotal: 0,
    id: u'ed1f13c5-b544-4e1e-a5f2-fba55c6f8100',
    cpuavailable: u'Unlimited',
    snapshotlimit: u'Unlimited',
    networklimit: u'Unlimited',
    iptotal: 0,
    volumetotal: 2,
    projectlimit: u'Unlimited',
    state: u'enabled',
    networktotal: 1,
    accounttype: 2,
    networkavailable: u'Unlimited',
    primarystoragetotal: 2,
    templatelimit: u'Unlimited',
    snapshottotal: 0,
    templateavailable: u'Unlimited',
    vmlimit: u'Unlimited',
    vpcavailable: u'Unlimited',
    memoryavailable: u'Unlimited',
    vmstopped: 1,
    secondarystoragetotal: 0,
    templatetotal: 0,
    projecttotal: 0,
    user: [
        {
            username: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-RC0MJ9',
            account: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-RC0MJ9',
            domainid: u'd32d07d4-6fe6-11e4-8b15-0e412070d892',
            firstname: u'test',
            created: u'2014-11-19T14: 24: 57+0000',
            lastname: u'test',
            domain: u'ROOT',
            id: u'4f30bf67-0d8b-42f6-b8d0-938716e932c6',
            iscallerchilddomain: False,
            state: u'enabled',
            accounttype: 2,
            email: u'test-account@test.com',
            isdefault: False,
            accountid: u'ed1f13c5-b544-4e1e-a5f2-fba55c6f8100'
        }
    ],
    groups: [
    ],
    projectavailable: u'Unlimited',
    isdefault: False,
    primarystoragelimit: u'Unlimited',
    secondarystoragelimit: u'Unlimited',
    volumeavailable: u'Unlimited',
    name: u'test-a-TestVolumeLimits-test_assign_vm_different_account_1_root_domain_admin-RC0MJ9',
    vmavailable: u'Unlimited',
    ipavailable: u'Unlimited',
    memorylimit: u'Unlimited',
    cpulimit: u'Unlimited',
    snapshotavailable: u'Unlimited'
}
]

{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message