1.6.0.14: "Create new tasking" modal hangs on "Loading, please wait..." if the host has no image
-
Just ran into something odd after upgrading to 1.6.0.14. I wanted to capture an image from a host that had no image assigned yet, clicked Capture in the host’s Tasks tab, and the “Create new tasking” modal just sat there on “Loading, please wait…” for good. No error, nothing.
It took me a while to work out what was going on. The Apache access log shows the request coming back with a 400:
GET /fog/management/index.php?node=host&sub=deploy&id=607&type=2 -> 400From a quick look at
HostManagement::deploy()it seems to throw “Assigned image is invalid” when the host has no valid image, so I’m guessing that’s what the 400 says, but the modal never shows it.Setting an image in the host’s General tab fixed it right away. It would be nice if the modal showed the error, or if Deploy/Capture were greyed out when there’s no image, because from the UI it just looks like the page is broken.