Failed to save Xen Host

Okay, so I'm totally bewildered here.

I'm in the process of moving my hosting infrastructure from one colocation site to another. In the process I moved my cloudmin installation. It's set up on the Dom0 of a server, and it works fine on that particular server to set up Xen virtual DomU instances on that server. All well and good.

Now -- I'm trying to ge this cloudmin instance (version 3.8) to manage my other Xen servers. When I try to register them as Xen hosts, it just says "Failed to save Xen Host:" --- and give absolutely no other error message that I can find. Usually when I've seen this it also says WHY it failed to save the host, and that's always been for a good reason. But at the moment I don't even much know how to proceed from there --

Status: 
Closed (fixed)

Comments

Try editing your /etc/webmin/config file, and adding the line error_stack=1 , then re-trying to add the Xen host. That will show a more detailed error message that will let us work out exactly what the cause is ..

Okay --- Now I get this:

Failed to save Xen host : Call Stack Trace File Line Function /usr/libexec/webmin/server-manager/images-lib.pl 1213 WebminCore::error /usr/libexec/webmin/server-manager/save_xen.cgi 107 server_manager::parse_host_images_cache_table (eval 71) 6 (eval) /usr/libexec/webmin/miniserv.pl 2146 (eval) /usr/libexec/webmin/miniserv.pl 754 miniserv::handle_request

Ok, I see now - this means that in the "System image cache" section, you didn't enter a value for the "Maximum image cache size".

I can't find any such section -- where is it?

I think there used to be such a section before I upgraded to 3.8 -- but now I can't find it.

Ah .. that may explain it.

Is the Xen host you are adding also the Cloudmin master system?

No -- i'ts a different system. The cloudmin master system works fine, I just can't add any other systems in for xen management.

Ok, I see it now .. this is a Cloudmin bug in 3.8 :-(

The fix is to edit the file /usr/libexec/webmin/server-manager/edit_xen.cgi and change the block on lines 165 to 167 from :

if ($xen->{'id'}) {
        &show_host_images_cache_table($xen, "xen");
        }

to just :

&show_host_images_cache_table($xen, "xen");

The 3.9 release will include this fix ..

Oh that's MUCCCHHH BETTER!!!

Thanks!

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