Bug 1201237 - Redis can't shutdown properly when listening on other that 0.0.0.0 or 127.0.0.1
Summary: Redis can't shutdown properly when listening on other that 0.0.0.0 or 127.0.0.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: redis
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Haïkel Guémar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-12 11:53 UTC by Yanis Guenane
Modified: 2015-05-27 16:24 UTC (History)
3 users (show)

Fixed In Version: redis-2.8.19-2.fc21
Clone Of:
Environment:
Last Closed: 2015-05-26 21:29:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Yanis Guenane 2015-03-12 11:53:13 UTC
Description of problem:

Redis doesn't shutdown properly when not bound on 0.0.0.0 or 127.0.0.1

Version-Release number of selected component (if applicable):

rhel7
redis-2.8.19-1.el7.x86_64

How reproducible:

always

Steps to Reproduce:
1. start redis
2. systemctl stop redis
3.systemctl status -l redis

Actual results:

[root@openstack2 ~]# systemctl status -l redis
redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled)
  Drop-In: /etc/systemd/system/redis.service.d
           └─limit.conf
   Active: failed (Result: exit-code) since Thu 2015-03-12 11:50:52 UTC; 7s ago
  Process: 20875 ExecStop=/usr/bin/redis-shutdown (code=exited, status=1/FAILURE)
  Process: 20858 ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no (code=exited, status=0/SUCCESS)
 Main PID: 20858 (code=exited, status=0/SUCCESS)

Mar 12 11:50:35 openstack2 systemd[1]: Starting Redis persistent key-value database...
Mar 12 11:50:35 openstack2 systemd[1]: Started Redis persistent key-value database.
Mar 12 11:50:52 openstack2 systemd[1]: Stopping Redis persistent key-value database...
Mar 12 11:50:52 openstack2 redis-shutdown[20875]: Could not connect to Redis at 127.0.0.1:6379: Connection refused
Mar 12 11:50:52 openstack2 systemd[1]: redis.service: control process exited, code=exited status=1
Mar 12 11:50:52 openstack2 systemd[1]: Stopped Redis persistent key-value database.
Mar 12 11:50:52 openstack2 systemd[1]: Unit redis.service entered failed state.

Expected results:

redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled)
  Drop-In: /etc/systemd/system/redis.service.d
           └─limit.conf
   Active: inactive (dead) since Thu 2015-03-12 11:52:16 UTC; 2s ago
  Process: 20979 ExecStop=/usr/bin/redis-shutdown (code=exited, status=0/SUCCESS)
 Main PID: 20906 (code=exited, status=0/SUCCESS)
Mar 12 11:51:38 openstack2 systemd[1]: Started Redis persistent key-value database.
Mar 12 11:52:16 openstack2 systemd[1]: Stopping Redis persistent key-value database...
Mar 12 11:52:16 openstack2 systemd[1]: Stopped Redis persistent key-value database.

Comment 1 Haïkel Guémar 2015-03-12 13:59:33 UTC
redis-shutdown fails in configuration with multiple networks, will fix it.
Thanks for reporting !

Comment 2 Fedora Update System 2015-03-31 14:47:00 UTC
redis-2.8.19-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/redis-2.8.19-2.fc21

Comment 3 Fedora Update System 2015-03-31 14:56:16 UTC
redis-2.8.19-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/redis-2.8.19-2.fc22

Comment 4 Fedora Update System 2015-03-31 15:41:34 UTC
redis-2.8.19-2.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/redis-2.8.19-2.el7

Comment 5 Fedora Update System 2015-04-01 01:59:47 UTC
Package redis-2.8.19-2.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing redis-2.8.19-2.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-1520/redis-2.8.19-2.el7
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-05-26 21:29:36 UTC
redis-2.8.19-2.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-05-27 16:11:29 UTC
redis-2.8.19-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-05-27 16:24:55 UTC
redis-2.8.19-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.