You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/04/03 21:52:55 UTC

[GitHub] resmo opened a new issue #2525: details not in listVirtualMachines response

resmo opened a new issue #2525: details not in listVirtualMachines response 
URL: https://github.com/apache/cloudstack/issues/2525
 
 
   <!---
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these html comments.
   -->
   
   ##### ISSUE TYPE
   <!--- Pick one below and delete the rest -->
    * [X] Bug Report
    * [ ] Enhancement
    * [ ] Feature Idea
    * [ ] Documentation Report
   
   ##### COMPONENT NAME
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   ~~~
   4.11
   ~~~
   
   ##### CONFIGURATION
   <!---
   Information about the configuration, e.g. basic network, advanced networking, etc.
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!---
   Information about the environment if relevant
   -->
   N/A
   
   ##### SUMMARY
   <!--- Explain the problem briefly -->
   listVirtualMachines does not return `details` as doc says.
   
   ##### STEPS TO REPRODUCE
   <!---
   For bugs, show exactly how to reproduce the problem, using a minimal test-case.
   For new features, show how the feature would be used.
   -->
   
   <!--- Paste example playbooks or commands between quotes below -->
   ```yaml
   cs listVirtualMachines id=d949e443-9bc8-4399-9e09-842bbb395cae --region simulator    
   ```
   
   <!--- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!--- What did you expect to happen when running the steps above? -->
   
   the resource details as below should be included in listVirtualMachines response, as the documentation of the API says or the API doc should be updated.
   ~~~
   cs listResourceDetails resourcetype=uservm resourceid=d949e443-9bc8-4399-9e09-842bbb395cae --region=simulator     
   {
     "count": 3, 
     "resourcedetail": [
       {
         "fordisplay": true, 
         "key": "foo", 
         "resourceid": "5", 
         "resourcetype": "UserVm", 
         "value": "bar"
       }, 
       {
         "fordisplay": true, 
         "key": "Message.ReservedCapacityFreed.Flag", 
         "resourceid": "5", 
         "resourcetype": "UserVm", 
         "value": "false"
       }, 
       {
         "fordisplay": true, 
         "key": "SSH.PublicKey", 
         "resourceid": "5", 
         "resourcetype": "UserVm", 
         "value": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCalaJdHI7bK4qsCMSqJ1iq7K4YuHyjlkahPuSsbMrZInN2Mo1ehjieILocEITo8ck+rFkC4NHc6mvUDF3gdUZmWKpWYfc5eKsymOHgk05Nv1e+1TjvKGWaZprisUFXD+52PkQ6DcAZUDYw1yufxGfufYuK3WWzDHriSBIiaDEcgw== \n"
       }
     ]
   }
   ~~~
   
   ##### ACTUAL RESULTS
   <!--- What actually happened? -->
   
   <!--- Paste verbatim command output between quotes below -->
   ~~~
   {
     "count": 1, 
     "virtualmachine": [
       {
         "account": "admin", 
         "affinitygroup": [
           {
             "account": "admin", 
             "id": "2d41d761-6d4e-400a-9f26-cc0d5ef6f884", 
             "name": "ansible-test-titan-10437836-ag"
           }
         ], 
         "cpunumber": 1, 
         "cpuspeed": 500, 
         "cpuused": "10%", 
         "created": "2018-03-31T18:07:13+0000", 
         "diskioread": 0, 
         "diskiowrite": 0, 
         "diskkbsread": 0, 
         "diskkbswrite": 0, 
         "displayname": "ansible-test-titan-10437836-display-1", 
         "displayvm": true, 
         "domain": "ROOT", 
         "domainid": "1f1d6aa1-4b9a-11e7-8fea-0242ac110003", 
         "guestosid": "1ef0010d-4b9a-11e7-8fea-0242ac110003", 
         "haenable": false, 
         "hostid": "41adc5d5-3b6a-4035-9913-7b14fa099c1f", 
         "hostname": "SimulatedAgent.db961dea-4e46-48c6-983e-566712333810", 
         "hypervisor": "Simulator", 
         "id": "d949e443-9bc8-4399-9e09-842bbb395cae", 
         "instancename": "i-2-5-VM", 
         "isdynamicallyscalable": false, 
         "keypair": "ansible-test-titan-10437836-sshkey", 
         "memory": 512, 
         "memoryintfreekbs": 0, 
         "memorykbs": 0, 
         "memorytargetkbs": 0, 
         "name": "ansible-test-titan-10437836-vm-1", 
         "networkkbsread": 148668416, 
         "networkkbswrite": 74334208, 
         "nic": [
           {
             "broadcasturi": "vlan://untagged", 
             "gateway": "60.147.41.1", 
             "id": "8bee0927-6506-4a18-93bc-ccce070714a2", 
             "ipaddress": "60.147.41.246", 
             "isdefault": true, 
             "macaddress": "06:ce:d4:00:01:f2", 
             "netmask": "255.255.255.0", 
             "networkid": "6f4007a0-ddba-4cdf-ac34-c9c0e5f049b8", 
             "networkname": "guestNetworkForBasicZone", 
             "secondaryip": [], 
             "traffictype": "Guest", 
             "type": "Shared"
           }
         ], 
         "ostypeid": 142, 
         "passwordenabled": false, 
         "rootdeviceid": 0, 
         "rootdevicetype": "ROOT", 
         "securitygroup": [
           {
             "account": "admin", 
             "egressrule": [], 
             "id": "abcdb1a7-4795-4aff-82a9-ca4347b017fd", 
             "ingressrule": [], 
             "name": "ansible-test-titan-10437836-sg", 
             "tags": [], 
             "virtualmachineids": []
           }
         ], 
         "serviceofferingid": "a9ad69ae-391d-43ba-97a8-5f33b78a955d", 
         "serviceofferingname": "Small Instance", 
         "state": "Running", 
         "tags": [], 
         "templatedisplaytext": "CentOS 5.6 (64-bit) no GUI (Simulator)", 
         "templateid": "4f4c3063-4b9a-11e7-8fea-0242ac110003", 
         "templatename": "CentOS 5.6 (64-bit) no GUI (Simulator)", 
         "userid": "1f1daf4d-4b9a-11e7-8fea-0242ac110003", 
         "username": "admin", 
         "zoneid": "ab54814a-b8b9-4889-ae76-cae19c0c843f", 
         "zonename": "Sandbox-simulator-basic"
       }
     ]
   }
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services