[Bug 1089501] New: salt-call --local network.default_route throws exception
http://bugzilla.suse.com/show_bug.cgi?id=1089501 Bug ID: 1089501 Summary: salt-call --local network.default_route throws exception Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Critical Priority: P5 - None Component: Kubic Assignee: kubic-bugs@opensuse.org Reporter: kukuk@suse.com QA Contact: qa-bugs@suse.de CC: rbrown@suse.com Found By: --- Blocker: --- In the Kubic logs I found: [ERROR ] Function network.default_route in mine_functions failed to execute So I tried: # salt-call --local network.default_route [ERROR ] An un-handled exception was caught by salt's global exception handler: AttributeError: module 'salt.ext' has no attribute 'ipaddress' Traceback (most recent call last): File "/usr/bin/salt-call", line 11, in <module> salt_call() File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 400, in salt_call client.run() File "/usr/lib/python3.6/site-packages/salt/cli/call.py", line 57, in run caller.run() File "/usr/lib/python3.6/site-packages/salt/cli/caller.py", line 134, in run ret = self.call() File "/usr/lib/python3.6/site-packages/salt/cli/caller.py", line 212, in call ret['return'] = func(*args, **kwargs) File "/usr/lib/python3.6/site-packages/salt/modules/network.py", line 1662, in default_route _routes = routes() File "/usr/lib/python3.6/site-packages/salt/modules/network.py", line 1619, in routes routes_ = _ip_route_linux() File "/usr/lib/python3.6/site-packages/salt/modules/network.py", line 518, in _ip_route_linux address_mask = convert_cidr(comps[0]) File "/usr/lib/python3.6/site-packages/salt/modules/network.py", line 1143, in convert_cidr network_info = salt.ext.ipaddress.ip_network(cidr) AttributeError: module 'salt.ext' has no attribute 'ipaddress' This works fine on SLES12 SP3. salt is the latest from https://build.opensuse.org/package/show/systemsmanagement:saltstack:testing/... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 Thorsten Kukuk <kukuk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 Thorsten Kukuk <kukuk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kubic-bugs@opensuse.org |salt-maintainers@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 http://bugzilla.suse.com/show_bug.cgi?id=1089501#c1 --- Comment #1 from Thorsten Kukuk <kukuk@suse.com> --- Created attachment 767091 --> http://bugzilla.suse.com/attachment.cgi?id=767091&action=edit salt-import-ipaddress.patch Proposed fix. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 Jochen Breuer <jbreuer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jbreuer@suse.com Assignee|salt-maintainers@suse.de |jbreuer@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 http://bugzilla.suse.com/show_bug.cgi?id=1089501#c2 --- Comment #2 from Jochen Breuer <jbreuer@suse.com> --- I've opened a PR upstream: https://github.com/saltstack/salt/pull/47232 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 http://bugzilla.suse.com/show_bug.cgi?id=1089501#c3 --- Comment #3 from Jochen Breuer <jbreuer@suse.com> --- SRs for products:next and products:testing: * https://build.opensuse.org/request/show/602520 * https://build.opensuse.org/request/show/602516 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089501 http://bugzilla.suse.com/show_bug.cgi?id=1089501#c4 Jochen Breuer <jbreuer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Jochen Breuer <jbreuer@suse.com> --- Closing this as fixed, since SRs got accepted this morning. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com