Skip to content

[BUG] 3002.6 redis_cache.py and redis_return.py break in clustered mode #60272

Closed

Description

@major0

Description
redis_cache.py and redis_return.py attempt to import StrictRedisCluster from the redis-py-cluster package when in cluster mode.

>>> from rediscluster import StrictRedisCluster
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'StrictRedisCluster' from 'rediscluster' (/home/mark.ferrell/.local/lib/python3.8/site-packages/rediscluster/__init__.py)

The appropriate class is RedisCluster. See: https://redis-py-cluster.readthedocs.io/en/master/

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
$ salt --versions-report
Salt Version:
          Salt: 3002.6
 
Dependency Versions:
          cffi: Not Installed
      cherrypy: unknown
      dateutil: 2.7.3
     docker-py: Not Installed
         gitdb: 2.0.6
     gitpython: 3.0.7
        Jinja2: 2.10.1
       libgit2: 0.28.3
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 0.6.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: Not Installed
      pycrypto: 2.6.1
  pycryptodome: 3.6.1
        pygit2: 1.0.3
        Python: 3.8.5 (default, Jan 27 2021, 15:41:15)
  python-gnupg: 0.4.5
        PyYAML: 5.3.1
         PyZMQ: 18.1.1
         smmap: 2.0.5
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.2
 
System Versions:
          dist: ubuntu 20.04 focal
        locale: utf-8
       machine: aarch64
       release: 5.4.0-1038-aws
        system: Linux
       version: Ubuntu 20.04 focal

Activity

  1. added
    bug
    on May 28, 2021
  2. changed the title [-][BUG] redis_cache.py and redis_return.py break in clustered mode[/-] [+][BUG] 3002.6 redis_cache.py and redis_return.py break in clustered mode[/+] on Jun 1, 2021
  3. s0undt3ch commented on Jun 28, 2021

    @s0undt3ch
    Contributor

    Valid issue, the imports need to be fixed.

  4. added
    severity-critical
    and removed on Jun 28, 2021
  5. added this to the Approved milestone on Jun 28, 2021
  6. added
    severity-high
    Silicon v3004.0
    and removed
    severity-critical
    on Jun 28, 2021
  7. modified the milestones: Approved, Silicon on Jun 28, 2021
  8. modified the milestones: Silicon, Approved on Aug 9, 2021
  9. removed
    Silicon v3004.0
    on Oct 20, 2021
  10. added a commit that references this issue on Nov 18, 2021
    b8e7e61
  11. waynew commented on Nov 18, 2021

    @waynew
    Contributor

    Fixed this in my cache api tests 👍

  12. major0 commented on Nov 22, 2021

    @major0
    ContributorAuthor

    When is this going to be released?

  13. major0 commented on Nov 22, 2021

    @major0
    ContributorAuthor

    Confirmed these changes work on our redis cluster installation.

  14. waynew commented on Mar 2, 2022

    @waynew
    Contributor

    Changes should make it into the Phosphorus release

  15. added a commit that references this issue on Apr 8, 2022
    deeeaa3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugseverity-high

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions