[openstack-dev] [Murano] Murano agent development
Stan Lagun
slagun at mirantis.com
Tue Mar 24 10:39:04 UTC 2015
One trick that can be done to simplify agent development is to
a) configure it to listen to some specific queue and run it locally or on
VM (you can even run it from IDE under debugger) so that you can edit its
code in place
b) using code from agent.py write sample application that will send
execution plan to you agent
Sincerely yours,
Stan Lagun
Principal Software Engineer @ Mirantis
<slagun at mirantis.com>
On Tue, Mar 24, 2015 at 1:03 PM, Serg Melikyan <smelikyan at mirantis.com>
wrote:
> Hi Filip,
>
> Sure, murano-agent is just a python application, you can easily run
> this application locally (even in IDE like Pycharm with attached
> debugger). To send execution plan to the agent you need to publish
> execution plan to specified queue, results also will be published to
> the queue.
>
> murano-agent require configuration file for executing, you can build
> sample configuration file using following instruction: tox -e
> genconfig
>
> Please, take a look at example murano-agent configuration file that
> can be used to run it locally:
>
> [DEFAULT]
> # set location where obtained execution plans will be stored
> storage = /tmp/murano/plans
> debug = true
> verbose = true
>
> # credentials for rabbitmq
> [rabbitmq]
> host = localhost
> port = 5672
> login = guest
> password = guest
> virtual_host = /
>
> # with this routing key execution plans results will be published
> result_routing_key = <None>
> # to this exchange execution plans results will be published
> result_exchange = <None>
> # from this queue agent will take exection plans
> input_queue = <None>
>
> On Tue, Mar 24, 2015 at 11:59 AM, Filip Blaha <filip.blaha at hp.com> wrote:
> > Hello
> >
> > I would like to test and debug some new features of murano agent like
> chef
> > recipes.
> >
> > I would like to know how to develop murano agent? How to test and debug
> new
> > changes in agent code? Creating new image with every change and and test
> > deployment on devstack is time-consuming and not very comfortable. Is
> there
> > any shortcut for this development cycle?
> >
> > Thanks
> > Filip
> >
> >
> __________________________________________________________________________
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
> --
> Serg Melikyan, Senior Software Engineer at Mirantis, Inc.
> http://mirantis.com | smelikyan at mirantis.com
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150324/83f7da2f/attachment-0001.html>
More information about the OpenStack-dev
mailing list