Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot extend ID 'redis-server-clean' in 'base:redis.server.clean'. It is not part of the high state. #94

Open
golimix opened this issue Oct 18, 2022 · 0 comments
Labels

Comments

@golimix
Copy link

golimix commented Oct 18, 2022

salt version report

Salt Version:
          Salt: 3005.1

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.10 (default, Jun 22 2022, 20:18:18)
  python-gnupg: 0.4.5
        PyYAML: 5.3.1
         PyZMQ: 20.0.0
         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-126-generic
        system: Linux
       version: Ubuntu 20.04 focal

redis state works fine

sudo salt 'app' state.sls redis
app:
----------
          ID: install-redis
    Function: pkg.installed
        Name: redis-server
      Result: True
     Comment: All specified packages are already installed
     Started: 17:41:31.159161
    Duration: 16.001 ms
     Changes:
----------
          ID: redis_config
    Function: file.managed
        Name: /etc/redis/redis.conf
      Result: True
     Comment: File /etc/redis/redis.conf is in the correct state
     Started: 17:41:31.177212
    Duration: 57.645 ms
     Changes:
----------
          ID: redis_service
    Function: service.running
        Name: redis-server
      Result: True
     Comment: The service redis-server is already running
     Started: 17:41:31.235464
    Duration: 18.743 ms
     Changes:
----------
          ID: redis_overcommit_memory
    Function: sysctl.present
        Name: vm.overcommit_memory
      Result: True
     Comment: Sysctl value vm.overcommit_memory = 1 is already set
     Started: 17:41:31.255109
    Duration: 2.953 ms
     Changes:

Summary for app
------------
Succeeded: 4
Failed:    0
------------
Total states run:     4
Total run time:  95.342 ms

state redis clean doesn't work fine

 sudo salt 'app' state.sls redis.clean

app:
    Data failed to compile:
----------
    Cannot extend ID 'redis-server-clean' in 'base:redis.server.clean'. It is not part of the high state.
This is likely due to a missing include statement or an incorrectly typed ID.
Ensure that a state with an ID of 'redis-server-clean' is available
in environment 'base' and to SLS 'redis.server.clean'
ERROR: Minions returned with non-zero exit code

show_sls

sudo salt 'app' state.show_sls redis.clean
app:
    ----------
    redis-server-clean:
        ----------
        __env__:
            base
        __sls__:
            redis.server.clean
        pkg:
            |_
              ----------
              name:
                  redis-server
            - removed
            |_
              ----------
              order:
                  10001
    redis-server-service-clean:
        ----------
        __env__:
            base
        __sls__:
            redis.server.clean
        service:
            |_
              ----------
              name:
                  redis-server
            |_
              ----------
              enable:
                  False
            |_
              ----------
              require_in:
                  |_
                    ----------
                    user:
                        redis-server-clean
                  |_
                    ----------
                    file:
                        redis-server-clean
            - dead
            |_
              ----------
              order:
                  10000
@golimix golimix added the bug label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant