contrail-config-nodemgr fails to run keyspace-repair if running under systemd

Bug #1803339 reported by Sergey Matov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
In Progress
Undecided
Sergey Matov

Bug Description

If contrail-nodemgr serving config database running under systemd it fails to access /var/log/cassandra/ dir while creating repair-*.log file. Following trace observed

Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: 11/13/2018 02:39:25 PM [contrail-config-nodemgr]: Add uve <ntw03, 1> in the [ObjectDatabaseInfo:CassandraStatusUVE] map
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: Traceback (most recent call last):
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: File "/usr/bin/contrail-cassandra-repair", line 116, in <module>
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: main()
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: File "/usr/bin/contrail-cassandra-repair", line 111, in main
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: ret = repair(options)
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: File "/usr/bin/contrail-cassandra-repair", line 24, in repair
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: with open(keyspace_repair_running, "w"):
Nov 13 14:39:25 ntw03 contrail-nodemgr[51]: IOError: [Errno 13] Permission denied: '/var/log/cassandra/repair-config_db_uuid-running'

Sergey Matov (smatov)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/47671
Submitter: Sergey Matov (<email address hidden>)

Sergey Kreys (skreys)
summary: - contrail-database-nodemgr failed to run keyspace-repair if running under
+ contrail-config-nodemgr fails to run keyspace-repair if running under
systemd
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers