Saturday, August 01, 2020

Re: salt_minion from salt-2018.3.3p4 OpenBSD 6.7-stable returns Python ValueError

I did new VM with 6.7-current without swap.

salt_minion is run without any errors by 'rcctl -d start salt_minion' and reports ok, but actually no python-3.8, no salt is run according to ps. /var/log/salt/minon is clean too.

After testing I can conclude salt 3001 minion can't run without swap as salt's previous version.

Martin

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, July 27, 2020 5:21 AM, Jasper Lievisse Adriaanse <j@jasper.la> wrote:

&gt; I think this was never really tested. Do you have a chance to use salt 3001 on this machine? As I recall there having been changes related to your particular issue.
&gt;
&gt; Cheers,
&gt;
&gt; ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
&gt;
&gt; jasper
&gt;
&gt; &gt; On 26 Jul 2020, at 23:50, Martin martingot@protonmail.com wrote:
&gt; &gt; Yes, this OpenBSD 6.7 VM has no swap configured at all. Can it be used without any swap aria?
&gt; &gt; Martin
&gt; &gt; ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
&gt; &gt; On Sunday, July 26, 2020 6:06 PM, Jasper Lievisse Adriaanse j@jasper.la wrote:
&gt; &gt;
&gt; &gt; &gt; &gt; &gt; On 26 Jul 2020, at 10:39, Martin martingot@protonmail.com wrote:
&gt; &gt; &gt; &gt; &gt; I try to connect salt_minions from VMs to host machine. VMM guests are OpenBSD 6.7-stable. salt-2018.3.3p4 has been installed from packages. After salt_minions configuring I run:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; rcctl -d start salt_minion
&gt; &gt; &gt; &gt; ===========================
&gt; &gt; &gt; &gt; Traceback (most recent call last):
&gt; &gt; &gt; &gt; File "/usr/local/bin/salt-minion", line 26, in <module>
&gt; &gt; &gt; &gt; salt_minion()
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/scripts.py", line 173, in salt_minion
&gt; &gt; &gt; &gt; import salt.cli.daemons
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/cli/daemons.py", line 48, in <module>
&gt; &gt; &gt; &gt; import salt.utils.parsers
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/utils/parsers.py", line 27, in <module>
&gt; &gt; &gt; &gt; import salt.config as config
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/config/init.py", line 98, in <module>
&gt; &gt; &gt; &gt; _DFLT_IPC_WBUFFER = _gather_buffer_space() * .5
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/config/init.py", line 91, in _gather_buffer_space
&gt; &gt; &gt; &gt; grains = salt.grains.core._memdata(os_data)
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/grains/core.py", line 570, in _memdata
&gt; &gt; &gt; &gt; grains.update(_bsd_memdata(osdata))
&gt; &gt; &gt; &gt; File "/usr/local/lib/python2.7/site-packages/salt/grains/core.py", line 491, in _bsd_memdata
&gt; &gt; &gt; &gt; grains.['swap_total'] = int(swap_total) // 1024 // 1024
&gt; &gt; &gt; &gt; ValueError: invalid literal for int() with base 10: 'no'
&gt; &gt; &gt; &gt; doing _rc_rm_runfile
&gt; &gt; &gt; &gt; (failed)
&gt; &gt; &gt; &gt; Does anybody stuck with it before?
&gt; &gt; &gt; &gt; Martin
&gt; &gt; &gt;
&gt; &gt; &gt; Hi Martin,
&gt; &gt; &gt; Do your VMs have no swap configured?
&gt; &gt; &gt; Jsaper

</module></module></module></module></j@jasper.la>

No comments:

Post a Comment