andrijapanicsb opened a new issue, #8414:
URL: https://github.com/apache/cloudstack/issues/8414

   ACS 4.19 RC1
   - minor update
   
   
   listVmsForImport API states (based on the docs) that the username and 
password parameters are required (besides zoneid, host IP and hypervisor=KVM), 
while in reality, this API seems to connect to remote libvirt via TCP 
unauthenticated connections and lists stopped VMs.
   
   Using CMK if the "username" parameter is omitted - it gives error and says 
it's mandatory, 
   
   ```
   (localcloud)  > listVmsForImport 
zoneid=fbfd1039-ca49-436d-b17d-e03f39663047 hypervisor=KVM host=10.0.35.106
    Error: (HTTP 431, error code 4350) Username need to be provided.
   ```
   
   
   ...however any random username can be passed and it will work:
   
   ```
   (localcloud)  > listVmsForImport 
zoneid=fbfd1039-ca49-436d-b17d-e03f39663047 hypervisor=KVM host=10.0.35.106 
**username=aaaaaaaaaaaa**
   {
     "count": 1,
     "unmanagedinstance": [
       {
         "cpucorepersocket": -1,
         "disk": [
           {
             "capacity": 17179869184,
             "controller": "virtio",
             "datastorepath": "/var/lib/libvirt/images/MasteringKVM01.qcow2",
             "datastoretype": "file",
             "id": "0",
             "label": "vda",
             "position": 0
           },
           {
   ```
   
   If fixed, the docs also needs to be updated to remove the statement that the 
username/password are mandatory


-- 
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: commits-unsubscr...@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to