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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Martin Got
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:

# rcctl -d start salt_minion

Traceback (most recent call last):
 File "/usr/local/bin/salt-minion", line 26, in <module>
   salt_minion()
 File "/usr/local/lib/python2.7/site-packages/salt/scripts.py", line 173, in salt_minion
   import salt.cli.daemons
 File "/usr/local/lib/python2.7/site-packages/salt/cli/daemons.py", line 48, in <module>
   import salt.utils.parsers
 File "/usr/local/lib/python2.7/site-packages/salt/utils/parsers.py", line 27, in <module>
   import salt.config as config
 File "/usr/local/lib/python2.7/site-packages/salt/config/__init__.py", line 98, in <module>
   _DFLT_IPC_WBUFFER = _gather_buffer_space() * .5
 File "/usr/local/lib/python2.7/site-packages/salt/config/__init__.py", line 91, in _gather_buffer_space
   grains = salt.grains.core._memdata(os_data)
 File "/usr/local/lib/python2.7/site-packages/salt/grains/core.py", line 570, in _memdata
   grains.update(_bsd_memdata(osdata))
 File "/usr/local/lib/python2.7/site-packages/salt/grains/core.py", line 491, in _bsd_memdata
   grains.['swap_total'] = int(swap_total) // 1024 // 1024
ValueError: invalid literal for int() with base 10: 'no'
doing _rc_rm_runfile
(failed)

Does anybody stuck with it before?

Martin

Reply | Threaded
Open this post in threaded view
|

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

Martin Got
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 <[hidden email]> 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 [hidden email] 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 [hidden email] wrote:
&gt; &gt;
&gt; &gt; &gt; &gt; &gt; On 26 Jul 2020, at 10:39, Martin [hidden email] 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></[hidden email]>