tmetsch / occi-os

This is a clone and continuation of https://github.com/dizz/nova - it provides a python egg which can be easily deployed in OpenStack and will thereby add the 3rd party OCCI interface to OpenStack. For usage examples, see the OpenStack wiki.
Apache License 2.0
10 stars 23 forks source link

'module' object has no attribute 'get_instance_type_by_flavor_id' #58

Closed renebrandel closed 11 years ago

renebrandel commented 11 years ago

When i try to create a new Instance through curl it throws this issue

'module' object has no attribute 'get_instance_type_by_flavor_id'

CURL:

curl -v -X POST 141.52.208.91:8787/compute/ -H 'Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind"' -H 'Content-Type: text/occi' -H 'X-Auth-Token: '$KID -H 'Category: cirros-0-3-1-x86_64-uec; scheme="http://schemas.openstack.org/template/os#"; class="mixin"; title="This is an OS cirros-0.3.1-x86_64-uec VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl"; location="http://141.52.208.91:8787/cirros-0-3-1-x86_64-uec/"' -H 'Category: m1-xlarge; scheme="http://schemas.openstack.org/template/resource#"; class="mixin"; title="This is an openstack m1.xlarge flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl"; location="http://141.52.208.91:8787/m1-xlarge/"'

Creating a new VM works through Horizon, so i presume, that it might be an issue with occi.

alvarolopez commented 11 years ago

Which branch are you using? Could you try using the "master" branch?

renebrandel commented 11 years ago

it seems that the master branch fized it. i used to use the fix_security_terms branch, because at that time the master branch was not working. THANKS!