
----- Original Message -----
From: "Michael Pasternak" <mpastern@redhat.com> To: "Livnat Peer" <lpeer@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org>, "Simon Grinberg" <simon@redhat.com> Sent: Thursday, July 5, 2012 11:31:41 AM Subject: Re: [Engine-devel] Fwd: Problem in REST API handling/displaying of logical networks
On 07/05/2012 10:51 AM, Livnat Peer wrote:
Actually the API has the same concept as you suggest for storage >>>> domains. >>>> At the top level you don't have a status field, but under >>>> data >>>> center level, where it's valid then you get the status >>>> property. >>>> >>>> Same should go for networks. >>>> The status property should be added only where it's valid, >>>> in >>>> this >>>> case the cluster level sub-collection >> >> so sounds like we want to declare these properties >> deprecated to be >> able >> to remove them in a future version?
I guess so, The question is, are there other location where the status property (or any other property) exists at an irrelevant level. Unless we want to go into the effort of mapping them all now we probably need to define a concept and anything not complying to that is a bug that is allowed to be fixed without considering it as breaking the API.
Thoughts?
+1 I agree that this is a bug and I DO suggest we go into the effort of reviewing the other objects as well. This is too major to just fix this one, and wait until we bump into another one... Mike i see there a general consensus that this is a bug and the top level entity should be a DC network.
i disagree that <status> should be completely removed, instead as bug fix it should contain different members: ATTACHED|UNATTACHED (same concept we using in /api/storagedomains/xxx)
With storage domains attached/unattached is generally a 1:1 so it may make sense in a way. * not sure it's going to be in the future with shared read only export domain * It's probably wrong even today with ISO domain in case that the setup contains more then one DC. With Networks it fore may be attached to partial collection on clusters, de facto that will only say it is in uses by at least one cluster. So in both cases this is wrong, If you insist on maintaining this property the only valid values that I can see ATM is INUSE vs UNUSED. - This should be true both for storage domains and logical networks.
Can you please open a bug / update the existing bug to reflect that.
Thanks, Livnat
--
Michael Pasternak RedHat, ENG-Virtualization R&D _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel