Hi wangzhh,

we had several discussions about having plugins for API, for example
we could branch CF Broker API to the plugin instead of having it as
part of murano. Unfortunately we didn't found many use-cases at that
time, so we didn't proceed further from just talking about that.

Can you share your use-case for extending API?

P.S. I think it's better to discuss this topic in separate thread from
discussion about bundles.

On Wed, Mar 23, 2016 at 8:56 PM, 王正浩 <wang...@awcloud.com> wrote:
> Thanks a lot!
> And I have another question.
> When I extend API, I find it's a little inconvenient. Does it a good idea
> to use stevedore? In this way, all the API are considered as plugins.
>
> We can extend API like this:
> 1.Add a namespace like
> murano.api.v1.extensions =
>     test = murano.api.v1.extensions.test:testAPI
> to set.cfg.
> 2.Add a file named test.py and imply the class testAPI
>
> ------------------ Original ------------------
> From:  "Serg Melikyan"<smelik...@mirantis.com>;
> Date:  Thu, Mar 24, 2016 07:24 AM
> To:  "OpenStack Development Mailing
> List"<OpenStack-dev@lists.openstack.org>;
> Cc:  "王正浩"<wang...@awcloud.com>;
> Subject:  [murano] HowTo: Compose a local bundle file
>
> Hi wangzhh,
>
> You can use python-muranoclient in order to download bundle from
> apps.openstack.org and then use it somewhere else for the import:
>
> murano bundle-save app-servers
>
> you can find more about this option in corresponding spec [0].
>
> Generally local bundle is not different from the remote one, you can
> take a look at the same bundle [1] internals. If you will download
> this file and then will try to execute:
>
> murano bundle-import ./app-servers.bundle
>
> murano will try to find all mentioned packages in the local folder
> before going to apps.openstack.org.
>
> References:
> [0]
> http://specs.openstack.org/openstack/murano-specs/specs/liberty/bundle-save.html
> [1] http://storage.apps.openstack.org/bundles/app-servers.bundle
>
> On Wed, Mar 23, 2016 at 1:48 AM, 王正浩 <wang...@awcloud.com> wrote:
>>
>> Hi Serg Melikyan!
>>   I'm a programmer of China. And I have a question about Application
>> Servers Bundle (bundle)
>> https://apps.openstack.org/#tab=murano-apps&asset=Application%20Servers%20Bundle
>>   I want to import a bundle across a local bundle file. Could you tell me
>> how  to create a bundle file? Is there any doc explain it?
>>   Thanks!
>>
>>
>>
>>
>> ------------------
>> --
>> Best Regards,
>> wangzhh
>
>
>
>
> --
> Serg Melikyan



-- 
Serg Melikyan, Development Manager at Mirantis, Inc.
http://mirantis.com | smelik...@mirantis.com | +1 (650) 440-8979

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to