[openstack-dev] [tripleo] odl deployment failed due to opendaylight websocket config in haproxy
Moshe Levi
moshele at mellanox.com
Sun Dec 31 08:56:41 UTC 2017
Hi,
So I did some investigation and it seem that the problem is with puppet-opendaylight.
The was a change to allow configure the ip address for the web sockets which uses restconf.cfg<https://git.opendaylight.org/gerrit/#/c/64242/1/restconf/sal-rest-connector-config/src/main/resources/initial/restconf.cfg> config file see [1].
This change was backport to nitrogen as well.
The carbon change for allowing configure websocket ip address is different [2] and uses 10-rest-connector.xml<https://git.opendaylight.org/gerrit/#/c/64602/7/restconf/sal-rest-connector-config/src/main/resources/initial/10-rest-connector.xml>.
In the puppet opendaylight the change that was introduce is according to carbon to create 10-rest-connector.xml<https://git.opendaylight.org/gerrit/#/c/64602/7/restconf/sal-rest-connector-config/src/main/resources/initial/10-rest-connector.xml>.
I create a patch that configure the restconf.cfg<https://git.opendaylight.org/gerrit/#/c/64242/1/restconf/sal-rest-connector-config/src/main/resources/initial/restconf.cfg> [4]. I tested and it solve my issue. It should be backport to nitrogen as well.
[1] - https://git.opendaylight.org/gerrit/#/c/64242
[2] - https://git.opendaylight.org/gerrit/#/c/64602/
[3] - https://git.opendaylight.org/gerrit/#/c/64775/
[4] - https://git.opendaylight.org/gerrit/#/c/66777/
From: Janki Chhatbar [mailto:jankihc91 at gmail.com]
Sent: Wednesday, December 27, 2017 6:33 AM
To: OpenStack Development Mailing List (not for usage questions) <openstack-dev at lists.openstack.org>; Moshe Levi <moshele at mellanox.com>
Subject: Re: [openstack-dev] [tripleo] odl deployment failed due to opendaylight websocket config in haproxy
Hi Moshe
There is a corresponding ODL patch [1]. To verify if the rpm you are using has it, see if 10-rest-connector.xml<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.opendaylight.org%2Fgerrit%2F%23%2Fc%2F64602%2F7%2Frestconf%2Fsal-rest-connector-config%2Fsrc%2Fmain%2Fresources%2Finitial%2F10-rest-connector.xml&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=%2FK0hyyD8yOx%2BhZNBA8j8k6qpoNXTvArOCk8CO%2FaVa40%3D&reserved=0> has a line "<websocket-address><ip></websocket-address>"
[1]. https://git.opendaylight.org/gerrit/#/c/64602/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.opendaylight.org%2Fgerrit%2F%23%2Fc%2F64602%2F&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=NLNE%2BjsILG6Q2111Mn7RLqUAjTMcQQHZvIQNRiFwSik%3D&reserved=0>
On Tue, Dec 26, 2017 at 4:29 PM, Moshe Levi <moshele at mellanox.com<mailto:moshele at mellanox.com>> wrote:
Hi all,
When I try to deploy tripleo with opendaylight oxygen release (we did a private build for master) it failed with haproxy failing
that it can't bind the opendaylight_ws: cannot bind socket see [1]. This is failing all the deployment as the haproxy is down.
The opendaylight_ws was introduced in this commit https://github.com/openstack/puppet-tripleo/commit/bc3feec75f8dc1bac6691ce8cd05a37c27aa5e42<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenstack%2Fpuppet-tripleo%2Fcommit%2Fbc3feec75f8dc1bac6691ce8cd05a37c27aa5e42&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=dDxT%2FzvezgY%2ByExVNiLDsPq4eh21gXZnr7WnUllrIDc%3D&reserved=0>
If I will try to deploy with puppet-tripleo before that commit everything is passing and working.
Any Idea how to fix this? Maybe we should revert https://github.com/openstack/puppet-tripleo/commit/bc3feec75f8dc1bac6691ce8cd05a37c27aa5e42<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenstack%2Fpuppet-tripleo%2Fcommit%2Fbc3feec75f8dc1bac6691ce8cd05a37c27aa5e42&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=dDxT%2FzvezgY%2ByExVNiLDsPq4eh21gXZnr7WnUllrIDc%3D&reserved=0> ?
Deployment works fine with this patch.
[1] -
Dec 26 10:32:56 localhost systemd: Starting HAProxy Load Balancer...
Dec 26 10:32:57 localhost haproxy-systemd-wrapper: [WARNING] 359/103257 (20629) : parsing [/etc/haproxy/haproxy.cfg:141] : 'option httplog' not usable with proxy 'nova_metadata' (needs 'mode http'). Falling back to 'option tcplog'.
Dec 26 10:32:57 localhost haproxy[20629]: Proxy cinder started.
Dec 26 10:32:57 localhost haproxy-systemd-wrapper: [WARNING] 359/103257 (20629) : Setting tune.ssl.default-dh-param to 1024 by default, if your workload permits it you should set it to at least 2048. Please set a value >= 1024 to make this warning disappear.
Dec 26 10:32:57 localhost haproxy-systemd-wrapper: [ALERT] 359/103257 (20629) : Starting proxy opendaylight_ws: cannot bind socket [172.16.2.11:8185<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2F172.16.2.11%3A8185&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=jzlQoiNBJISasoL2yEuFg5hs2%2BZ8TtJDhuZKTsyT9sg%3D&reserved=0>]
Dec 26 10:32:57 localhost haproxy-systemd-wrapper: [ALERT] 359/103257 (20629) : Starting proxy opendaylight_ws: cannot bind socket [192.168.24.7:8185<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2F192.168.24.7%3A8185&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=1Taklqxm64AqIerpXgnhI6phsoM932ywqmhFHoCr%2BoY%3D&reserved=0>]
Dec 26 10:32:57 localhost haproxy[20629]: Proxy glance_api started.
Thanks,
Moshe
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2FOpenStack-dev-request%40lists.openstack.org%3Fsubject%3Aunsubscribe&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=0wRSc09lVkRx4%2ByFVVwEkOGVDQdVcowMBCtzjfgJgkQ%3D&reserved=0>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.openstack.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopenstack-dev&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=q0PjbS5KGcHx8GJOHjru0MWLuRfisLieZeVBphDPIP4%3D&reserved=0>
--
Thanking you
Janki Chhatbar
OpenStack | Docker | SDN
simplyexplainedblog.wordpress.com<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsimplyexplainedblog.wordpress.com&data=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309&sdata=L1hQ5LVbdolj%2BKqF3XgmPGZCq1iESpSj7RdkKHykIHo%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20171231/d8b0ed09/attachment.html>
More information about the OpenStack-dev
mailing list