Re: [openstack-dev] [tripleo] odl deployment failed due to opendaylight websocket config in haproxy

2017-12-31 Thread Moshe Levi
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:jankih...@gmail.com]
Sent: Wednesday, December 27, 2017 6:33 AM
To: OpenStack Development Mailing List (not for usage questions) 
<openstack-dev@lists.openstack.org>; Moshe Levi <mosh...@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=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309=%2FK0hyyD8yOx%2BhZNBA8j8k6qpoNXTvArOCk8CO%2FaVa40%3D=0>
 has a line ""



[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=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309=NLNE%2BjsILG6Q2111Mn7RLqUAjTMcQQHZvIQNRiFwSik%3D=0>

On Tue, Dec 26, 2017 at 4:29 PM, Moshe Levi 
<mosh...@mellanox.com<mailto:mosh...@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=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309=dDxT%2FzvezgY%2ByExVNiLDsPq4eh21gXZnr7WnUllrIDc%3D=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=02%7C01%7Cmoshele%40mellanox.com%7C3f265f35ab734eeccb5a08d54ce2fb98%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636499460131485309=dDxT%2FzvezgY%2ByExVNiLDsPq4eh21gXZnr7WnUllrIDc%3D=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.prot

Re: [openstack-dev] [tripleo] odl deployment failed due to opendaylight websocket config in haproxy

2017-12-26 Thread Janki Chhatbar
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

has a line ""



[1]. https://git.opendaylight.org/gerrit/#/c/64602/

On Tue, Dec 26, 2017 at 4:29 PM, Moshe Levi  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
>
> 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 ?
>

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


-- 
Thanking you

Janki Chhatbar
OpenStack | Docker | SDN
simplyexplainedblog.wordpress.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-dev] [tripleo] odl deployment failed due to opendaylight websocket config in haproxy

2017-12-26 Thread Moshe Levi
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
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
 ?

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