Edit KVM Host page takes 5 minutes to render.

I dont know why but this page takes from 3-5 minutes to render and it gives no errors.

server-manager/list_kvms.cgi

Status: 
Closed (fixed)

Comments

What is the status of your VM when visiting this page - is it up, down, or is the host system down?

this problem occurs when I :

  • choose HOST SYSTEMS from the left menu in cloudmin
  • choose KVM HOST SYSTEMS from the submenu
  • click the SYSTEM HOSTNAME from the KVM Host Systems page

    eg:

    http://cloudminmaster:10000/server-manager/edit_kvm.cgi?id=1365171404208090

    I immediately see capture 1.

    I waited 6 minutes 13 seconds and then saw capture 2.

  • also the state of vms does not seem to make any difference, but usually some up some down.

    So I had a look at the code used here, and found that the only potentially slow operation is looking up the IP addresses of VMs based on their hostnames. Can your Cloudmin master system resolve the names of all your VMs?

    The next release of Cloudmin won't perform these lookups, as we don't actually need them in order to figure out which IPs are in use, as that data has already been collected.

    I think so, most if not all are in the local dns, but I will wait for next version of cloudmin, and see if it speeds up - Thanks, Oh, which version would this be? F

    That will be version 7.3.

    Let me know if you'd like to try a beta release to confirm this fix.

    THanks, I think I will wait tho, im a bit paranoid to try any beta/risky stuff this while my backups are not working right

    ok, I think that by setting up my DNS to use a local domain of .virtual for VMs and .hardware for Physical system and setting each hostname for my VMs to use it, I have made everything worse in terms of GUI being slow. Currently I have each *.serv file using

    hostname mymv.virtual shortname myvm.virtual

    Perhaps this is causing cloudmin to require a DNS lookup for every host every time? Maybe I should undo all of this and striclty use IP addresses?

    Do you have a DNS domain that Cloudmin creates records in form new VMs? If so, and if your master system is configured to use its own DNS server in resolv.conf , lookups should be fast.

    On the other hand if you are creating DNS entries for VMs manually and the master is slow or unable to resolve them, you may run into this kind of issue.

    My Cloudmin Master SMVMHOST is hosting bind for these domains each HOST is configured to use the SMVMHOST as its only DNS server Bind is configured to forward unknowns to a real DNS server The problem was a nameserver inside the firewall that could not see my domains listed in resolve.conf BEFORE my cloudmin master. THanks its super speedy again :D F

    Automatically closed -- issue fixed for 2 weeks with no activity.