You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am trying to cache grains of a minion and read it over HTTP API. It works as expected when I try with CLI command, but I kepp getting same error with HTTP API.
Setup
We run salt master in a docker container with following config:
Passed invalid arguments: fetch() missing 1 required positional argument: 'key'
Usage:
Fetch data from a salt.cache bank.
CLI Example:
.. code-block:: bash
salt-run cache.fetch
cloud/active/ec2/myec2 myminion cachedir=/var/cache/salt/
Expected behavior
Have the same successful result as step 4 on step 5.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3003Dependency Versions:
cffi: 1.14.4cherrypy: unknowndateutil: 2.8.1docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 2.10.1libgit2: 1.1.0M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.2msgpack-pure: Not Installedmysql-python: Not Installedpycparser: 2.17pycrypto: Not Installedpycryptodome: 3.9.8pygit2: 1.6.1Python: 3.7.12 (default, Sep 8 2021, 02:04:31)python-gnupg: 0.4.4PyYAML: 5.3.1PyZMQ: 18.0.1smmap: Not Installedtimelib: 0.2.4Tornado: 4.5.3ZMQ: 4.3.1System Versions:
dist: alpine 3.13.6locale: UTF-8machine: x86_64release: 5.4.129-63.229.amzn2.x86_64system: Linuxversion: Alpine Linux 3.13.6
Additional context
I can use HTTP API without any problem except for this case. I tried different payloads with the request, it didn't matter I always got the same response:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description
I am trying to cache grains of a minion and read it over HTTP API. It works as expected when I try with CLI command, but I kepp getting same error with HTTP API.
Setup
We run salt master in a docker container with following config:
Steps to Reproduce the behavior
cache.grains
function targeting the new minion to cache grainscachedir
on localfs (in my case it is/var/cache/salt
)salt-run cache.fetch
command to fetch cached grains (in my casesalt-run cache.fetch minions/temp-0572/data grains
temp-0572 being the minion id)Then see the request failed with following error:
Expected behavior
Have the same successful result as step 4 on step 5.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
I can use HTTP API without any problem except for this case. I tried different payloads with the request, it didn't matter I always got the same response:
The text was updated successfully, but these errors were encountered: