question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] sysctl.present broken in FreeBSD

See original GitHub issue
          ID: security.jail.sysvipc_allowed
    Function: sysctl.present
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/local/lib/python3.7/site-packages/salt/state.py", line 2154, in call
                  *cdata["args"], **cdata["kwargs"]
                File "/usr/local/lib/python3.7/site-packages/salt/loader.py", line 2085, in wrapper
                  return f(*args, **kwargs)
                File "/usr/local/lib/python3.7/site-packages/salt/states/sysctl.py", line 117, in present
                  update = __salt__["sysctl.persist"](name, value, config, ignore)
              TypeError: persist() takes from 2 to 3 positional arguments but 4 were given

Looks like it was broken by this https://github.com/saltstack/salt/pull/55719 since the author of that commit didn’t do any testing or review on any platform other than linux.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
aricommented, Jun 28, 2020

Well, if it were me I’d revert the whole of the patch that broke it so that author could rewrite it a safe way without assuming that Linux is the only operating system. I don’t understand why this feature would be added at all to the generic sysctl.py codebase. What problem did it solve, why does it exist, what does it do?

2reactions
asomerscommented, Sep 30, 2020

That’s an untenable situation. Separately maintaining that change will be maintenance-intensive. Why won’t you simply revert the change that introduced the breakage?

Read more comments on GitHub >

github_iconTop Results From Across the Web

247627 – sysutils/py-salt: sysctl.present broken
Revert upstream PR that broke sysctl.persist on FreeBSD (12.40 KB, patch) 2020-06-29 21:32 UTC, Alan Somers, koobs: maintainer-approval+
Read more >
197695 – Fix broken KERN_PROC_FILEDESC sysctl
Bug 197695 - Fix broken KERN_PROC_FILEDESC sysctl ... a method of retrieving a current canonical path for a currently open file descriptor.
Read more >
230498 – Fatal trap 12: page fault while in kernel mode in ...
We have seen a repeatable kernel panic that seems to originate from a sysctl route table dump (as used in netstat -r) This...
Read more >
11.16 Using and Debugging FreeBSD ACPI
The ACPI driver has a very flexible debugging facility. It allows you to specify a set of subsystems as well as the level...
Read more >
freebsd-bugs
Dec 8 bugzilla-noreply@fr [Bug 268241] broken handling of icmp needfrag ... Nov 29 bugzilla-noreply@fr [Bug 267169] Build of recent -CURRENT fails with ext ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found