14 Commits

Author SHA1 Message Date
Frédéric Guillot
a180ee30f8 Move all exception objects in the same place
- Follow what other OpenStack projects are doing
- Respect the OpenStack guidelines about import
- Remove common packages

Change-Id: I4a3f598537ed5f54edab79471d074a46fa99ab52
2016-10-07 14:49:08 -04:00
Nguyen Hung Phuong
90bb67ffb6 Clean imports in code
In some part in the code we import objects.
In the Openstack style guidelines they recommend to import only
modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I58b2dab1a46128893648630edba615e2592040ac
2016-08-25 17:14:29 -04:00
Frédéric Guillot
3a458da2cb Add API endpoint to fetch an entity (#25)
* Add API endpoint to fetch an entity

* Move logic to outside of the API
2016-07-13 14:13:55 -04:00
Marx314
87de8d1f0d HEAD method to obtain whatever an entity exist or not (#19) 2016-05-30 17:13:05 -04:00
Marx314
a81c0554b5 Modify api to support edition of closed entity 2016-05-18 12:05:09 -04:00
Paul Millette
00f5d6994b Handle API response errors (#14)
Assert that exception message is not empty
Added voluptuous
2016-05-03 15:15:49 -04:00
Frederic Guillot
173ba69d79 Do not ignore silently compute.instance.delete.end events when the entity is not created
- When events are received in the wrong order, instance delete are not taken into consideration
- There is already a mechanism that send messages to the retry queue
- This fix check the existence of the entity before doing the database update
- This fix send to the retry queue messages with entity not found
2016-04-26 10:00:19 -04:00
Marx314
b013e96aff flake8 now automated (#5)
* flake8 now automated
* 120 chars max, auto-reformat intellij
2016-04-15 07:49:15 -04:00
Frederic Guillot
e4ab5ba5d1 Rename exceptions filename to avoid camelCase 2016-04-14 14:49:43 -04:00
Frederic Guillot
af6a5c763b Convert the code to PEP8 2016-04-14 13:48:24 -04:00
Frederic Guillot
c535514f4d Replace legacy API endpoint 2016-04-13 16:30:57 -04:00
Maxime Belanger
21f8f3b16c Fixed instance rebuild that did not take image os_type meta into account 2016-04-05 10:28:04 -04:00
Frederic Guillot
b817a17aa6 Fixes some PEP8 and minor stuff 2016-03-25 11:52:20 -04:00
Frederic Guillot
27abb148bd First opensource commit 2016-03-25 11:30:58 -04:00