Juan Hernandez has posted comments on this change. Change subject: restapi: Foreman host provider ......................................................................
Patch Set 6: (5 comments) http://gerrit.ovirt.org/#/c/33969/6//COMMIT_MSG Commit Message: Line 3: AuthorDate: 2014-10-09 16:19:08 +0200 Line 4: Commit: Juan Hernandez <juan.hernan...@redhat.com> Line 5: CommitDate: 2014-10-16 13:10:54 +0200 Line 6: Line 7: restapi: Foreman host provider > do we need to mention "satellite" somewhere? I don't think so. Why would we need that? Doesn't the integration work with standalone Foreman? Line 8: Line 9: This patch adds the resources for the Foreman host providers. The Line 10: representation of the resource will look like this: Line 11: Line 5: CommitDate: 2014-10-16 13:10:54 +0200 Line 6: Line 7: restapi: Foreman host provider Line 8: Line 9: This patch adds the resources for the Foreman host providers. The > not specifically foreman.. I'd remove the "foreman" from all those verbs. j As far I can tell the backend modelling implementation of this is completely tied to the way foreman organizes things. So the "Foreman" prefix is ok. If we ever have another host provider we can extract common factor. Line 10: representation of the resource will look like this: Line 11: Line 12: GET /foremanhostproviders Line 13: <foreman_host_providers> Line 31: <property> Line 32: <name>prop2</name> Line 33: <value>value2</myvalue> Line 34: </property> Line 35: </properties> > I'm not familiar with such option to add properties to the providers.. It is there in the backend, if it isn't used by the Foreman integration I will remove it from this provider. Line 36: </foreman_host_provider> Line 37: Line 38: The providers collection will support listing, getting, adding, and Line 39: removing providers, with the usual methods. Line 38: The providers collection will support listing, getting, adding, and Line 39: removing providers, with the usual methods. Line 40: Line 41: The provider resource will support getting, deleting and updating the provider, Line 42: with the usual methods. In addition it will support the "testconnectivity" and > same sentence twice.. or collection and resource are two different things Collections handle multiple objects, resources handle only one object. Actually a collection is an specialliazed resource. So they are different. Line 43: "importcertificates" operation. The first is used to check the connectivity Line 44: with the external provider: Line 45: Line 46: POST /foremanhostproviders/{provider:id}/testconnectivity Line 97: <mac>52:54:00:1a:65:40</mac> Line 98: <subnet_name>...</subnet_name> Line 99: <last_report>...</last_report> Line 100: </foreman_discovered_host> Line 101: > ^ don't we need to have an api to add the discovered\provisioned hosts (whi Yes. It is unfortunate that this is implemented as "AddVds" in the backend. I will add a "provision" operation to discovered hosts. Line 102: For host groups: Line 103: Line 104: GET /foremanhostproviders/{provider:id}/hostgroups Line 105: <foreman_host_groups> -- To view, visit http://gerrit.ovirt.org/33969 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2144125f00822263dc68da881eb3180c4cd6b237 Gerrit-PatchSet: 6 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches