stack.sh on Ubuntu failed when trying to restart redis service

Bug #1405147 reported by Ilya Tyaptin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Ilya Tyaptin

Bug Description

When we install devstack with ceilometer and use redis for ceilometer coordination (CEILOMETER_COORDINATION_URL is redis url) then command sudo /usr/sbin/service redis restart are failed[1]. It happens because in ubuntu service are named as redis-server.

[1] Traceback:
 + sudo /usr/sbin/service redis restart
2014-12-23 10:59:56.088 | redis: unrecognized service
2014-12-23 10:59:56.090 | + exit_trap
2014-12-23 10:59:56.090 | + local r=1
2014-12-23 10:59:56.090 | ++ jobs -p
2014-12-23 10:59:56.092 | + jobs=
2014-12-23 10:59:56.092 | + [[ -n '' ]]
2014-12-23 10:59:56.092 | + kill_spinner
2014-12-23 10:59:56.092 | + '[' '!' -z '' ']'
2014-12-23 10:59:56.092 | + [[ 1 -ne 0 ]]
2014-12-23 10:59:56.092 | + echo 'Error on exit'
2014-12-23 10:59:56.092 | Error on exit
2014-12-23 10:59:56.092 | + [[ -z /home/ubuntu/logs ]]
2014-12-23 10:59:56.093 | + /home/ubuntu/devstack/tools/worlddump.py -d /home/ubuntu/logs
2014-12-23 10:59:56.156 | + exit 1

Ilya Tyaptin (ityaptin)
Changed in devstack:
assignee: nobody → Ilya Tyaptin (ityaptin)
Dina Belova (dbelova)
Changed in devstack:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/143652

Changed in devstack:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/143652
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=fe5164aeef1c3fab581272201e4e21f8821e8784
Submitter: Jenkins
Branch: master

commit fe5164aeef1c3fab581272201e4e21f8821e8784
Author: Ilya Tyaptin <email address hidden>
Date: Tue Dec 23 14:53:43 2014 +0400

    Fix redis service restarting for Ceilometer

    In Ubuntu redis service is named as redis-server. So in this
    patchset different restarting for this service at different
    OSes have been added.

    Change-Id: I406e3556c7b9a2bef8277f34862375c5ffd3888e
    Closes-bug: #1405147

Changed in devstack:
status: In Progress → Fix Released
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.