[Openstack] Compute API behavior

2012-10-04 Thread Luis Gervaso
Hi,

I have found an use case which breaks the compute api. May be I'm not doing
the stuff in the right way. Anyway I want to share with you.

1. Supose I create a server with an image and flavor.

2. Then I delete the image or flavor.

3. Now, when I list the server the image/flavor associated with the server
is not found (actually the api returns a link to image/flavor that no
longer exists)

I think the link is not the correct way to store these info of a server.

The links (following HATEOAS) should be for actions performed on a server:
let's say reboot, pause, show console and so on ...

Cheers!

-- 
---
Luis Alberto Gervaso Martin
Woorea Solutions, S.L
CEO  CTO
mobile: (+34) 627983344
luis@ luis.gerv...@gmail.comwoorea.es
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Compute API behavior

2012-10-04 Thread Doug Davis

Agreed - the resources used to create a server should be copied into the
server's data if those resources can be deleted (or even modified
independently of the servers using them).

thanks
-Doug

STSM |  Standards Architect  |  IBM Software Group
(919) 254-6905  |  IBM 444-6905  |  d...@us.ibm.com
The more I'm around some people, the more I like my dog.



From:   Luis Gervaso l...@woorea.es
To: openstack@lists.launchpad.net,
Date:   10/04/2012 10:10 AM
Subject:[Openstack] Compute API behavior
Sent by:openstack-bounces+dug=us.ibm@lists.launchpad.net



Hi,

I have found an use case which breaks the compute api. May be I'm not doing
the stuff in the right way. Anyway I want to share with you.

1. Supose I create a server with an image and flavor.

2. Then I delete the image or flavor.

3. Now, when I list the server the image/flavor associated with the server
is not found (actually the api returns a link to image/flavor that no
longer exists)

I think the link is not the correct way to store these info of a server.

The links (following HATEOAS) should be for actions performed on a server:
let's say reboot, pause, show console and so on ...

Cheers!

--
---
Luis Alberto Gervaso Martin
Woorea Solutions, S.L
CEO  CTO
mobile: (+34) 627983344
l...@woorea.es
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp
inline: graycol.gif___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp