Bug 1557971

Summary: Collectd not re-using /var/run directory from overcloud node therefor ovs plugin fails to connect to db.sock of openswitch.
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: openstack-tripleo-heat-templatesAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: jschluet, marjones, mburns, mrunge, pkilambi, rhel-osp-director-maint
Target Milestone: betaKeywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.0.2-0.20180327213843.f25e2d8.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1558639 (view as bug list) Environment:
Last Closed: 2018-06-27 13:47:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1409858, 1409860, 1543864, 1558639    

Description Leonid Natapov 2018-03-19 12:01:33 UTC
Collectd not re-using /var/run directory  from overcloud node therefor ovs plugin fails to connect to db.sock of openswitch.



ovs plugin should connect to db.sock file located in the /var/ran/openswitch directory

The provlem is that collectd container doesn't include /var/ran/openswitch

It should re-use it from the overcloude node.

Comment 1 Matthias Runge 2018-03-19 13:07:20 UTC
collectd re-uses files from /var/run/openvswitch.

That is missing here: https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/collectd.yaml#L108

Comment 7 Leonid Natapov 2018-04-01 08:21:28 UTC
openstack-tripleo-heat-templates-8.0.2-0.20180327213843.f25e2d8.el7ost

Verified,

[root@controller-0 heat-admin]# docker exec -it collectd /bin/bash
()[root@controller-0 /]# cd /var/run
()[root@controller-0 run]# cd openvswitch/
()[root@controller-0 openvswitch]# ls -all
total 8
drwxr-xr-x. 2      997 1000 300 Apr  1 08:09 .
drwxr-xr-x. 1 collectd root  37 Apr  1 08:02 ..
srwxr-x---. 1      997 1000   0 Apr  1 08:09 br-ex.mgmt
srwxr-x---. 1      997 1000   0 Apr  1 07:33 br-ex.snoop
srwxr-x---. 1      997 1000   0 Apr  1 08:09 br-int.mgmt
srwxr-x---. 1      997 1000   0 Apr  1 08:09 br-int.snoop
srwxr-x---. 1      997 1000   0 Apr  1 08:09 br-isolated.mgmt
srwxr-x---. 1      997 1000   0 Apr  1 07:33 br-isolated.snoop
srwxr-x---. 1      997 1000   0 Apr  1 08:09 br-tun.mgmt
srwxr-x---. 1      997 1000   0 Apr  1 08:09 br-tun.snoop
srwxr-x---. 1      997 1000   0 Apr  1 07:32 db.sock
srwxr-x---. 1      997 1000   0 Apr  1 07:32 ovsdb-server.879.ctl
-rw-r--r--. 1      997 1000   4 Apr  1 07:32 ovsdb-server.pid
srwxr-x---. 1      997 1000   0 Apr  1 07:32 ovs-vswitchd.1030.ctl
-rw-r--r--. 1      997 1000   5 Apr  1 07:32 ovs-vswitchd.pid

Comment 11 errata-xmlrpc 2018-06-27 13:47:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:2086