saltstack / saltstack/salt

[BUG] Salt minion complains that python-dateutil is not installed but it is

Open
#62,010 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Salt minion complains that python-dateutil is not installed but it is...

Salt Version:
Salt: 3004.1

Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.11.1
libgit2: Not Installed
M2Crypto: 0.35.2
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Nov 16 2020, 16:55:22)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.0.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4

System Versions:
dist: centos 7 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-1160.62.1.el7.x86_64
system: Linux
version: CentOS Linux 7 Core

I am getting these errors:

2022-04-29 16:38:25,710 [salt.utils.schedule:1043][ERROR ][11618] Missing python-dateutil. Ignoring job JOB1.
2022-04-29 16:38:26,720 [salt.utils.schedule:1043][ERROR ][11618] Missing python-dateutil. Ignoring job JOB2.
2022-04-29 16:38:26,721 [salt.utils.schedule:1043][ERROR ][11618] Missing python-dateutil. Ignoring job JOB1.

Not sure why this is happening. We have more than 400 minions and this is the only one that has that issue.

That server also has Nagios installed and it uses python2.. Maybe there is some kind of conflict? But I cannot find it...

Any ideas are greatly appreciated.

Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on Salt 3004.1 with Python 3.6.8 on CentOS 7, using the reported python-dateutil 2.8.2 environment. Start at the salt.utils.schedule error and compare the minion's dependency lookup with the interpreter that has dateutil installed; done means scheduled jobs are no longer ignored or the conflict is clearly diagnosed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.