fail setup if the redis.conf is not able to be modified

Bug #1458058 reported by Raj Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Raj Reddy

Bug Description

as seen below we don't fail setup when we cannot modify redis.conf

2015-04-03 14:57:00:369912: [anushtaev@10.169.21.10] run: service redis-server stop
2015-04-03 14:57:00:370573: [anushtaev@10.169.21.10] out: Stopping redis-server: redis-server.
2015-04-03 14:57:00:407500: [anushtaev@10.169.21.10] out: rm: cannot remove ‘/var/run/redis/redis-server.pid’: Permission denied
2015-04-03 14:57:00:409797: [anushtaev@10.169.21.10] out:
2015-04-03 14:57:00:411275:
2015-04-03 14:57:00:424440: [anushtaev@10.169.21.10] run: sed -i -e '/^[ ]*bind/s/^/#/' /etc/redis/redis.conf
2015-04-03 14:57:00:424883: [anushtaev@10.169.21.10] out: sed: couldn't open temporary file /etc/redis/sed9CH6dR: Permission denied
2015-04-03 14:57:00:478631: [anushtaev@10.169.21.10] out:
2015-04-03 14:57:00:478982:
2015-04-03 14:57:00:479273: [anushtaev@10.169.21.10] run: service redis-server start
2015-04-03 14:57:00:479611: [anushtaev@10.169.21.10] out: Starting redis-server: touch: cannot touch ‘/var/run/redis/redis-server.pid’: Permission denied
2015-04-03 14:57:00:536840: [anushtaev@10.169.21.10] out:

Tags: analytics
Raj Reddy (rajreddy)
Changed in juniperopenstack:
importance: Undecided → Medium
assignee: nobody → Raj Reddy (rajreddy)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/13126
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/13126
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/d2d016dadc82804522593ef081bf0a5a2244a27c
Submitter: Zuul
Branch: master

commit d2d016dadc82804522593ef081bf0a5a2244a27c
Author: Raj Reddy <email address hidden>
Date: Mon Aug 17 17:46:49 2015 -0700

If provisioning of redis fails, we need to flag error and exit instead
of continuing.

Change-Id: Icdedd8c157e9452edf30e17424f74c93f5fc81e1
Closes-Bug: #1458058

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.