Hostbill and vmWare vCloud Director

Started by baba, February 27, 2014, 07:50:47 AM

baba

Hello,
anyone tried the module?
I'm trying to use it with vCloud Director 5.5 but i can't connect to it. I fill the form and the module says me "Error:" without any indication...
Anyone?
Thanks

elliott

I get exactly the same thing. The module is completely broken as far as I can tell.

Another scam "supported" module it seems.

baba

The error, on vcloud director, is:
2014-03-06 11:00:37,083 | DEBUG    | VsmEventListener-10.253.3.252 | EventListener                  | Event -1 received with event code : 210.001 |
2014-03-06 11:00:37,084 | DEBUG    | VsmEventListener-10.253.3.252 | EventListener                  | Event code 210.001 will be handled by class com.vmware.vcloud.fabric.nsm.event.handlers.KeepAliveEventHandler  |
2014-03-06 11:00:38,168 | DEBUG    | pool-jetty-81             | CustomExceptionMapper          | No ThrowableConverter found for exception class 'java.lang.IllegalArgumentException' |
2014-03-06 11:00:38,177 | DEBUG    | pool-jetty-81             | JaxRsDispatcherServlet         | Successfully completed request |

elliott

So I've done some testing with wireshark and a REST api tool, and the issue it seems is a misformed header Hostbill sends in its HTTP GET request to /api/versions

on Line 65 of \includes\modules\Hosting\VCloud\lib\VMware\MyCurlClient.php:
                $this->curl->headers['Accept']=VMware_VCloud_SDK_Constants::VCLOUD_ACCEPT_HEADER .  ';' .   'version=' . $this->apiVersion;
 
For whatever reason, apiVersion is returning null and being omitted from the header request.
 
If I change it to a hard-coded 5.5:
                $this->curl->headers['Accept']=VMware_VCloud_SDK_Constants::VCLOUD_ACCEPT_HEADER .  ';' .   'version=5.5';
 
and use username format admin@System when connecting, it works fine.
 

Hope this helps! I've emailed Kris about this but I won't be suprised if nothing gets done about it.

baba