atl / py-smartdc

Python SmartDataCenter CloudAPI connector
http://pythonhosted.org/smartdc/
MIT License
5 stars 13 forks source link

Request error header #12

Open ahelal opened 10 years ago

ahelal commented 10 years ago

Hi,

Hope that your still maintaining the code. I have an issue.

When an instances is created using "sdc.create_machine" and for some reason it failed and 409 is returned based on documentation that could be due to number of issues but the real issue will appear in the body of response but "raise_for_status" will only return status_code. Am i missing something ?

bbhoss commented 9 years ago

Hmm, I feel like I may be hitting this. Did you ever find out?

ahelal commented 9 years ago

bbhoss, I am not sure whats your use case. But for me we use ansible with joyent and we created an ansible module to provision/delete/start/stop vms. I did do a work around but had to remove it again. I passed verbose on to smartdc and catched the stderr. At the moment i just dump all the exception.

In any case we are planning to opensource most of our work i next couple of weeks if your interested.

bbhoss commented 9 years ago

I ended up doing the same thing, and have a pull request in here for it. I think dynamic inventory is still useful though.