incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Clift <jcl...@redhat.com>
Subject Re: [jira] Updated: (DTACLOUD-24) Broken Image + Internal Server Error given for Deltacloud Core "Instance States"
Date Thu, 24 Feb 2011 13:30:32 GMT
On 24/02/2011, at 8:00 AM, Michal Fojtik wrote:
<snip>
>>> When running "deltacloudd -i mock", then using a browser to view the "Instance
States" page in:
>>> http://localhost:3001/api/instance_states
>>> There is a broken image displayed in the middle of the page, just under the "Instance
States" heading.
>>> (see attached screenshot)
>>> Getting the URL of the broken image, it is:
>>> http://localhost:3001/api/instance_states?format=png
>>> Browsing directly to that URL gives an "Internal Server Error", and the deltacloudd
command line output shows:
>>> *******************************************************
>>> Errno::EPIPE - Broken pipe:
> 
> This error means that you don't have 'dot' installed. I think it's part of 'graphviz'
package in Fedora.
> At some point we should replace this dependency with some Ruby code, or just generate
SVG image...

Yep, that fixed it.  According to the graphviz website, it's available for both OSX and Windows.

Installed it on OSX, and voila, the graphs appear.  Haven't tried Windows (yet).

I wonder if it would be a reasonable workaround in the meantime, to include a png image in
the gem that
says (in English for now): "To see generated graphics, you'll need to install the graphviz
package".

Then, instead of deltacloud-core doing the "Internal Server Error" thing when it doesn't find
graphviz,
it could instead just read that image file and output it.
Mime
View raw message