Ask Your Question
0

murano deploy environment fails when using haproxy [closed]

asked 2016-10-18 05:25:24 -0500

mickt gravatar image

updated 2016-10-18 09:52:38 -0500

I can deploy environments when not using HA but not when using HA. Configuration seems correct as in it is using VIP etc. Anyone have any ideas?

socket.error: [Errno 111] ECONNREFUSED

murano.conf:

[DEFAULT]
debug = True
log_dir = /var/log/kolla/murano
rabbit_host = <VIP>
rabbit_userid = openstack
rabbit_password = ***

[engine]
workers = 2

[database]
connection = mysql+pymysql://murano:***@<VIP>:3306/murano
max_retries = -1

[keystone_authtoken]
auth_uri = http://<VIP>:5001
auth_url = http://<VIP>:35357
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = murano
password = ***
admin_tenant_name = service
admin_user = murano
admin_password = ***
memcache_security_strategy = ENCRYPT
memcache_secret_key = 53CwiQZxmwLTSN7G3sy4pB0sR3tbYcxvgZWgVS9d
memcached_servers = <HOST1>:11211,<HOST2>:11211

[murano]
url = http://<VIP>:8082
endpoint_type = internalURL

[oslo_messaging_rabbit]
rabbit_userid = openstack
rabbit_password = ***
rabbit_ha_queues = true
rabbit_hosts = <HOST1>:5672,<HOST2>:5672

[oslo_messaging_notifications]
driver = messagingv2
topics = notifications

[rabbitmq]
host = <VIP>
login = openstack
password = ***

murano log:

2016-10-18 08:17:26.409 19 ERROR murano.common.engine [-]
socket.error: [Errno 111] ECONNREFUSED
Traceback (most recent call last):
File "/tmp/murano-packages-cache/io.murano/0.0.0/541799700a9b45ecbf99128d2c628bd7/Classes/Environment.yaml", line 102:9
    $.applications.pselect($.deploy())
File "/tmp/murano-packages-cache/com.example.apache.ApacheHttpServer/0.0.0/1c85645a47a44e70bf9acd664a33a414/Classes/Apa.ApacheHttpServer
    $.instance.deploy()
File "/tmp/murano-packages-cache/io.murano/0.0.0/541799700a9b45ecbf99128d2c628bd7/Classes/resources/Instance.yaml", lin
    $.agent.prepare()
File "/var/lib/kolla/venv/lib/python2.7/site-packages/murano/dsl/helpers.py", line 51 in method evaluate
    return value(context)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/murano/dsl/yaql_expression.py", line 85 in method __call__
    return self._parsed_expression.evaluate(context=context)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/expressions.py", line 165 in method evaluate
    return self(utils.NO_VALUE, context, self.engine)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/expressions.py", line 156 in method __call__
    return super(Statement, self).__call__(receiver, context, engine)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/expressions.py", line 37 in method __call__
    return context(self.name, engine, receiver, context)(*self.args)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
    data_context, use_convention, function_filter)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/runner.py", line 49 in method call
    name, all_overloads, engine, receiver, data_context, args, kwargs)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/runner.py", line 117 in method choose_overload
    args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/runner.py", line 117 in method <genexpr>
    args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/runner.py", line 113 in method <lambda>
    and not isinstance(arg, expressions.Constant))
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/expressions.py", line 37 in method __call__
    return context(self.name, engine, receiver, context)(*self.args)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
    data_context, use_convention, function_filter)
File "/var/lib/kolla/venv/lib ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mickt
close date 2016-10-20 03:47:50.379752

Comments

As i can see in the first glance, your config files does not match with the file provided by kolla. Rabbitmq and keystone config is wrong. Rabbitmq is a list of hosts, not a VIP.

https://github.com/openstack/kolla/bl...

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-10-18 09:56:37 -0500 )edit

That configuration does not work in my environment.

mickt gravatar imagemickt ( 2016-10-18 10:40:17 -0500 )edit

If configuration is not working, can you fill a bug in https://bugs.launchpad.net/kolla/+fil... ?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-10-19 01:51:36 -0500 )edit

Anyway, error messages are related due a missconfiguration of rabbitmq.

File "/var/lib/kolla/venv/lib/python2.7/site-packages/amqp/transport.py", line 95 in method __init__
    raise socket.error(last_err)

Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-10-19 01:52:47 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-20 03:45:59 -0500

mickt gravatar image

Looks like murano and haproxy are using different ports.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-18 05:25:24 -0500

Seen: 164 times

Last updated: Oct 20 '16