RE: Changing way to invoke novaclient api in nds-webservice rest api


Hi Lengyue,

I'm going to reply a couple of the items here, so I'm copying some of your original text from the original thread below.

>
> I am kinda confused about what we are seeking for in the new method.
>

I believe from our discussion this morning, the concern is that the current implementation introduces some unnecessary complexity, as Kacper mentioned last week, as well as creating some points of fragility that are either extra edge cases that we need to account for, or functionality that we actively have to build out support for, such as custom parsing of the messages that would be passed back from the other process.

The goal with refactoring at this stage is to simplify by removing those edge cases and eliminating the extra custom work.

In the near term, I think the decision was to go ahead and leverage the work that we have started and refactor to use pkgcloud or some other existing SDK.

>
> It seems like there are no suspend and resume instance api in pkgcloud.
>

I believe you are correct, from what I have seen so far. I have done a bit of digging, and can't seem to find if there was a design decision made, or if it was a decision due to commonality, or if it is simply just not implemented yet. If we need the extra functionality, we have several options, including simply directly calling the REST endpoint ourselves.

http://developer.openstack.org/api-ref-compute-v2.1.html#os-multiple-create-v2.1

My $0.02. Hope that helps!

Mario-





From: owner-discuss@xxxxxxxxxxxxxxxxxxxxxxx [owner-discuss@xxxxxxxxxxxxxxxxxxxxxxx] on behalf of Lengyue Chen [lchen95@xxxxxxxxxxxx]
Sent: Monday, July 20, 2015 5:15 PM
To: discuss@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Changing way to invoke novaclient api in nds-webservice rest api

It seems like there are no suspend and resume instance api in pkgcloud. 

On Mon, Jul 20, 2015 at 4:08 PM, Lengyue Chen <lchen95@xxxxxxxxxxxx> wrote:
Here is the document of novaclient REST api:

Here is a reference of how to invoke novaclient api in pckcloud:



On Mon, Jul 20, 2015 at 3:57 PM, Lengyue Chen <lchen95@xxxxxxxxxxxx> wrote:
Hi all

We are going to change the way to invoke novaclient api in nds-webservice rest api and we need to talk about which one is better. 

I have found three ways to invoke novaclient api. The first one is to put all open stack management logics (create, suspend, resume,destroy lab) into a python script and execute that script in node.js and it is the way we are currently deploying. The second one is to invoke the novaclient REST api via jQuery call in node.js. The third one is to using a node.js SDK called pkgcloud to invoke the  novaclient api.

I am kinda confused about what we are seeking for in the new method. I am currently working on adding more error catching logics to improve the robustness of the current method (using the python script) and I do want to hear from you guys, since you all have more experiences than me, to decide which method we want to switch to.

Best
Zeo    





Other Mailing lists | Author Index | Date Index | Subject Index | Thread Index