[Bug 1012999] New: salt pkg.latest raises exception if package is not availible
http://bugzilla.opensuse.org/show_bug.cgi?id=1012999 Bug ID: 1012999 Summary: salt pkg.latest raises exception if package is not availible Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: fschreiner@suse.com QA Contact: qa-bugs@suse.de CC: tampakrap@opensuse.org Found By: --- Blocker: --- ############################################################################### # /srv/salt/top.sls ############################################################################### base: '*': - non-existant-package ############################################################################### # /srv/salt/non-existant-package.sls ############################################################################### Install common packages: pkg.latest: - name: does-not-exist ############################################################################### # salt versions ############################################################################### student4-master:/srv/salt # salt \* pkg.version salt student4-minion1: 2016.11.0-4.1 student4-master: 2016.11.0-4.1 student4-minion2: 2016.11.0-4.1 ############################################################################### # used repos ############################################################################### student4-master:/srv/salt # zypper ls -u|grep salt 4 | systemsmanagement-saltstack | systemsmanagement-saltstack | Ja | ( ) Nein | Nein | rpm-md | http://download.opensuse.org/repositories/system smanagement:/saltstack:/testing/openSUSE_Leap_42.1/ ############################################################################### # salt pkg.latest raises exception if package is not availible ############################################################################### student4-master:/srv/salt # salt \* state.apply student4-minion1: ---------- ID: Install common packages Function: pkg.latest Name: does-not-exist Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/state.py", line 1744, in call **cdata['kwargs']) File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1702, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/salt/states/pkg.py", line 1903, in latest if not cur[pkg]: KeyError: 'does-not-exist' Started: 09:16:40.939220 Duration: 10861.113 ms Changes: Summary for student4-minion1 ------------ Succeeded: 0 Failed: 1 ------------ Total states run: 1 Total run time: 10.861 s student4-master: ---------- ID: Install common packages Function: pkg.latest Name: does-not-exist Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/state.py", line 1744, in call **cdata['kwargs']) File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1702, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/salt/states/pkg.py", line 1903, in latest if not cur[pkg]: KeyError: 'does-not-exist' Started: 09:16:41.003231 Duration: 11739.069 ms Changes: Summary for student4-master ------------ Succeeded: 0 Failed: 1 ------------ Total states run: 1 Total run time: 11.739 s student4-minion2: ---------- ID: Install common packages Function: pkg.latest Name: does-not-exist Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/state.py", line 1744, in call **cdata['kwargs']) File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1702, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/salt/states/pkg.py", line 1903, in latest if not cur[pkg]: KeyError: 'does-not-exist' Started: 10:16:41.296056 Duration: 12990.123 ms Changes: Summary for student4-minion2 ------------ Succeeded: 0 Failed: 1 ------------ Total states run: 1 Total run time: 12.990 s ERROR: Minions returned with non-zero exit code -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1012999 Theo Chatzimichos <tchatzimichos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|tampakrap@opensuse.org |bmaryniuk@suse.com, | |kkaempf@suse.com, | |mrueckert@suse.com, | |tchatzimichos@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com