kohrar commented on issue #6795:
URL: https://github.com/apache/cloudstack/issues/6795#issuecomment-1270406012

   The problem seems to be that the UI code doesn't include `listall=true` in 
the `listVolumes` API call so it's not getting any volumes. When I click on 
'take VM volume snapshot', this is the HTTP request that gets generated:
   
   ```
   GET 
/client/api/?virtualMachineId=a1691e94-14ec-4207-a9cf-8689c5f18a4f&command=listVolumes&response=json
 HTTP/1.1
   ```
   
   Running the same command via `cmk` shows the same behavior, where the result 
is empty unless `listall=true` is included.
   ```
   (localcloud) 🐱 > list volumes 
virtualmachineid=a1691e94-14ec-4207-a9cf-8689c5f18a4f filter=id,size,state
   (localcloud) 🐱 >
   
   (localcloud) 🐱 > list volumes 
virtualmachineid=a1691e94-14ec-4207-a9cf-8689c5f18a4f listall=true 
filter=id,size,state
   count = 3
   volume:
   +--------------------------------------+---------------+-------+
   |                  ID                  |     SIZE      | STATE |
   +--------------------------------------+---------------+-------+
   | ff6014c3-6689-4b15-b651-d62068e804b0 | 2199023255552 | Ready |
   | 0b9f07e5-5758-4a60-9059-cc0c2c76a9bf |  536870912000 | Ready |
   | 6f835800-9b44-49ae-a6e6-abb744295a87 |   32212254720 | Ready |
   +--------------------------------------+---------------+-------+
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to