From owner-freebsd-ports@freebsd.org Mon Nov 16 07:11:53 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BB73C2D522C for ; Mon, 16 Nov 2020 07:11:53 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (mailserver.netfence.it [78.134.96.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CZKy0116qz4gwJ for ; Mon, 16 Nov 2020 07:11:51 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (mailserver.netfence.it [78.134.96.152]) (authenticated bits=0) by soth.netfence.it (8.16.1/8.16.1) with ESMTPSA id 0AG7BkGt009265 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 16 Nov 2020 08:11:46 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host mailserver.netfence.it [78.134.96.152] claimed to be alamar.ventu To: christer.edwards@gmail.com, freebsd-ports@freebsd.org From: Andrea Venturoli Subject: Minion not working anymore after update to 12.2 Message-ID: Date: Mon, 16 Nov 2020 08:11:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.83 X-Rspamd-Queue-Id: 4CZKy0116qz4gwJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 78.134.96.152 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-3.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[78.134.96.152:from]; R_SPF_ALLOW(-0.20)[+ip4:78.134.96.152]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; SPAMHAUS_ZRD(0.00)[78.134.96.152:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:35612, ipnet:78.134.0.0/17, country:IT]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 07:11:53 -0000 Hello. A minion of mine stopped connecting to the master after I upgraded it to 12.2. Error follows: > ... > [DEBUG ] Connecting to master. Attempt 1 of 1 > [ERROR ] An un-handled exception was caught by salt's global exception handler: > KeyError: 'inet' > Traceback (most recent call last): > File "/usr/local/bin/salt-call", line 11, in > load_entry_point('salt==3002', 'console_scripts', 'salt-call')() > File "/usr/local/lib/python3.7/site-packages/salt/scripts.py", line 449, in salt_call > client.run() > File "/usr/local/lib/python3.7/site-packages/salt/cli/call.py", line 48, in run > caller = salt.cli.caller.Caller.factory(self.config) > File "/usr/local/lib/python3.7/site-packages/salt/cli/caller.py", line 55, in factory > return ZeroMQCaller(opts, **kwargs) > File "/usr/local/lib/python3.7/site-packages/salt/cli/caller.py", line 320, in __init__ > super().__init__(opts) > File "/usr/local/lib/python3.7/site-packages/salt/cli/caller.py", line 80, in __init__ > self.minion = salt.minion.SMinion(opts) > File "/usr/local/lib/python3.7/site-packages/salt/minion.py", line 935, in __init__ > io_loop.run_sync(lambda: self.eval_master(self.opts, failed=True)) > File "/usr/local/lib/python3.7/site-packages/salt/ext/tornado/ioloop.py", line 459, in run_sync > return future_cell[0].result() > File "/usr/local/lib/python3.7/site-packages/salt/ext/tornado/concurrent.py", line 249, in result > raise_exc_info(self._exc_info) > File "", line 4, in raise_exc_info > File "/usr/local/lib/python3.7/site-packages/salt/ext/tornado/gen.py", line 309, in wrapper > yielded = next(result) > File "/usr/local/lib/python3.7/site-packages/salt/minion.py", line 804, in eval_master > opts.update(resolve_dns(opts)) > File "/usr/local/lib/python3.7/site-packages/salt/minion.py", line 209, in resolve_dns > if not opts["ipv6"] > KeyError: 'inet' > Traceback (most recent call last): > File "/usr/local/bin/salt-call", line 11, in > load_entry_point('salt==3002', 'console_scripts', 'salt-call')() > File "/usr/local/lib/python3.7/site-packages/salt/scripts.py", line 449, in salt_call > client.run() > File "/usr/local/lib/python3.7/site-packages/salt/cli/call.py", line 48, in run > caller = salt.cli.caller.Caller.factory(self.config) > File "/usr/local/lib/python3.7/site-packages/salt/cli/caller.py", line 55, in factory > return ZeroMQCaller(opts, **kwargs) > File "/usr/local/lib/python3.7/site-packages/salt/cli/caller.py", line 320, in __init__ > super().__init__(opts) > File "/usr/local/lib/python3.7/site-packages/salt/cli/caller.py", line 80, in __init__ > self.minion = salt.minion.SMinion(opts) > File "/usr/local/lib/python3.7/site-packages/salt/minion.py", line 935, in __init__ > io_loop.run_sync(lambda: self.eval_master(self.opts, failed=True)) > File "/usr/local/lib/python3.7/site-packages/salt/ext/tornado/ioloop.py", line 459, in run_sync > return future_cell[0].result() > File "/usr/local/lib/python3.7/site-packages/salt/ext/tornado/concurrent.py", line 249, in result > raise_exc_info(self._exc_info) > File "", line 4, in raise_exc_info > File "/usr/local/lib/python3.7/site-packages/salt/ext/tornado/gen.py", line 309, in wrapper > yielded = next(result) > File "/usr/local/lib/python3.7/site-packages/salt/minion.py", line 804, in eval_master > opts.update(resolve_dns(opts)) > File "/usr/local/lib/python3.7/site-packages/salt/minion.py", line 209, in resolve_dns > if not opts["ipv6"] > KeyError: 'inet' I tracked it down to interface em1 being without an IP address (since it has vlan childs). This was not a problem on 12.1. I have other hosts with a similar setup that I have yet to upgrade: when I'll be able, I'll see if they all show the problem or not. I have INET6 commented in the kernel config. Meanwhile, is this something I should report as a FreeBSD bug or upstream? Any workaround? bye & Thanks av.