Koushik,

I just tested in 4.3-forward branch.

This is an API bug, not UI bug.

(1) "virtualmachine" object returned by deployVirtualMachine API, 
queryAsyncJobResult API does NOT include name, displayname, zonename, state 
property.

http://10.215.3.26:8080/client/api?command=deployVirtualMachine&response=json&sessionkey=VNgYVcCAnpqZE%2B4wqX9M3SIpSDQ%3D&zoneid=20d44407-ca39-4506-90ea-97105d02bf8b&templateid=2aa1dfaa-8864-11e3-8fd5-3c970e739c3e&hypervisor=XenServer&serviceofferingid=27f17c9c-e4e8-4c3c-874f-41d9759db9e9&networkids=e80c1282-692f-42bd-a910-009c46379685&displayname=aaa&name=aaa&_=1390949661491
{
    "deployvirtualmachineresponse": {
        "id": "7729de44-4f1f-41d8-9315-b6276a20e74b",
        "jobid": "c0d54fe0-dcbf-4b40-8494-559050edf6ce"
    }
}

http://10.215.3.26:8080/client/api?command=queryAsyncJobResult&jobId=c0d54fe0-dcbf-4b40-8494-559050edf6ce&response=json&sessionkey=VNgYVcCAnpqZE%2B4wqX9M3SIpSDQ%3D&_=1390949871921
{
    "queryasyncjobresultresponse": {
        "accountid": "2b84d6c0-8864-11e3-8fd5-3c970e739c3e",
        "userid": "2b8511b2-8864-11e3-8fd5-3c970e739c3e",
        "cmd": "org.apache.cloudstack.api.command.user.vm.DeployVMCmd",
        "jobstatus": 1,
        "jobprocstatus": 0,
        "jobresultcode": 0,
        "jobresulttype": "object",
        "jobresult": {
            "virtualmachine": {
                "id": "7729de44-4f1f-41d8-9315-b6276a20e74b",
                "domainid": "2b818452-8864-11e3-8fd5-3c970e739c3e",
                "created": "2014-01-28T14:54:14-0800",
                "haenable": false,
                "zoneid": "20d44407-ca39-4506-90ea-97105d02bf8b",
                "hostid": "b3d14a6a-89c7-4f5e-8587-3501e85c1b05",
                "hostname": "xs-jessica",
                "templateid": "2aa1dfaa-8864-11e3-8fd5-3c970e739c3e",
                "templatename": "CentOS 5.6(64-bit) no GUI (XenServer)",
                "templatedisplaytext": "CentOS 5.6(64-bit) no GUI (XenServer)",
                "passwordenabled": false,
                "serviceofferingid": "27f17c9c-e4e8-4c3c-874f-41d9759db9e9",
                "serviceofferingname": "Medium Instance",
                "cpunumber": 1,
                "cpuspeed": 1000,
                "memory": 1024,
                "guestosid": "2aaa019e-8864-11e3-8fd5-3c970e739c3e",
                "rootdevicetype": "ROOT",
                "securitygroup": [],
                "nic": [
                    {
                        "id": "2013cdfe-a4aa-4fd0-8253-d4eba82809df",
                        "networkid": "e80c1282-692f-42bd-a910-009c46379685",
                        "networkname": "deployvm-network1",
                        "netmask": "255.255.255.0",
                        "gateway": "10.1.1.1",
                        "ipaddress": "10.1.1.28",
                        "isolationuri": "vlan://1061",
                        "broadcasturi": "vlan://1061",
                        "traffictype": "Guest",
                        "type": "Isolated",
                        "isdefault": true,
                        "macaddress": "02:00:0d:3d:00:01"
                    }
                ],
                "hypervisor": "XenServer",
                "instancename": "i-2-3-VM",
                "tags": [],
                "affinitygroup": [],
                "displayvm": true,
                "isdynamicallyscalable": true,
                "jobid": "c0d54fe0-dcbf-4b40-8494-559050edf6ce",
                "jobstatus": 0
            }
        },
        "created": "2014-01-28T14:54:14-0800",
        "jobid": "c0d54fe0-dcbf-4b40-8494-559050edf6ce"
    }
}

(2) "virtualmachine" object returned by listVirtualMachines API does NOT 
include name, displayname, zonename, state property.

http://10.215.3.26:8080/client/api?command=listVirtualMachines&id=7729de44-4f1f-41d8-9315-b6276a20e74b&response=json&sessionkey=VNgYVcCAnpqZE%2B4wqX9M3SIpSDQ%3D&_=1390951014560

{
    "listvirtualmachinesresponse": {
        "count": 1,
        "virtualmachine": [
            {
                "id": "7729de44-4f1f-41d8-9315-b6276a20e74b",
                "domainid": "2b818452-8864-11e3-8fd5-3c970e739c3e",
                "created": "2014-01-28T14:54:14-0800",
                "haenable": false,
                "zoneid": "20d44407-ca39-4506-90ea-97105d02bf8b",
                "hostid": "b3d14a6a-89c7-4f5e-8587-3501e85c1b05",
                "hostname": "xs-jessica",
                "templateid": "2aa1dfaa-8864-11e3-8fd5-3c970e739c3e",
                "templatename": "CentOS 5.6(64-bit) no GUI (XenServer)",
                "templatedisplaytext": "CentOS 5.6(64-bit) no GUI (XenServer)",
                "passwordenabled": false,
                "serviceofferingid": "27f17c9c-e4e8-4c3c-874f-41d9759db9e9",
                "serviceofferingname": "Medium Instance",
                "cpunumber": 1,
                "cpuspeed": 1000,
                "memory": 1024,
                "cpuused": "3.12%",
                "networkkbsread": 0,
                "networkkbswrite": 0,
                "diskkbsread": 0,
                "diskkbswrite": 0,
                "diskioread": 0,
                "diskiowrite": 0,
                "guestosid": "2aaa019e-8864-11e3-8fd5-3c970e739c3e",
                "rootdevicetype": "ROOT",
                "securitygroup": [],
                "nic": [
                    {
                        "id": "2013cdfe-a4aa-4fd0-8253-d4eba82809df",
                        "networkid": "e80c1282-692f-42bd-a910-009c46379685",
                        "networkname": "deployvm-network1",
                        "netmask": "255.255.255.0",
                        "gateway": "10.1.1.1",
                        "ipaddress": "10.1.1.28",
                        "isolationuri": "vlan://1061",
                        "broadcasturi": "vlan://1061",
                        "traffictype": "Guest",
                        "type": "Isolated",
                        "isdefault": true,
                        "macaddress": "02:00:0d:3d:00:01"
                    }
                ],
                "hypervisor": "XenServer",
                "instancename": "i-2-3-VM",
                "tags": [],
                "affinitygroup": [],
                "displayvm": true,
                "isdynamicallyscalable": true
            }
        ]
    }
}


Jessica

-----Original Message-----
From: Koushik Das 
Sent: Monday, January 27, 2014 1:44 AM
To: <dev@cloudstack.apache.org>
Cc: Jessica Wang
Subject: Re: VM instance view UI is broken in 4.3-forward

The only UI related commit I see is 81a83b5b31f0a237ae56449c60350160915f28f8.
List VM API is working fine.

On 27-Jan-2014, at 2:26 PM, Koushik Das <koushik....@citrix.com> wrote:

> I noticed that VM instance view is broken in UI. It works fine in 4.3 branch. 
> It worked till commit d31fa09c7e5bb04fcc4594c0352d9b91171e9d1a.
> 
> -Koushik

Reply via email to