Re: [openstack-dev] [Murano] Murano agent development

2015-03-24 Thread Serg Melikyan
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.bl...@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-requ...@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 | smelik...@mirantis.com

__
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


Re: [openstack-dev] [Murano] Murano agent development

2015-03-24 Thread Stan Lagun
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

sla...@mirantis.com

On Tue, Mar 24, 2015 at 1:03 PM, Serg Melikyan smelik...@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.bl...@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-requ...@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 | smelik...@mirantis.com

 __
 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

__
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


[openstack-dev] [Murano] Murano agent development

2015-03-24 Thread Filip Blaha

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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev