Last modified: 2014-05-28 20:09:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62068, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60068 - UnboundLocalError: local variable 'status' referenced before assignment
UnboundLocalError: local variable 'status' referenced before assignment
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Deployment systems (Other open bugs)
wmf-deployment
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-15 04:26 UTC by Ori Livneh
Modified: 2014-05-28 20:09 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ori Livneh 2014-01-15 04:26:48 UTC
err: /Stage[main]/Role::Logstash/Deployment::Target[elasticsearchplugins]/Exec[deployment_target_deploy_all]: Failed to call refresh: salt-call deploy.sync_all returned 1 instead of one of [0] at /etc/puppet/modules/deployment/manifests/target.pp:35
notice: Finished catalog run in 57.37 seconds


root@logstash1003:~# salt-call deploy.sync_all
[ERROR   ] An un-handled exception was caught by salt's global exception handler:
UnboundLocalError: local variable 'status' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
    salt_call()
  File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 77, in salt_call
    client.run()
  File "/usr/lib/pymodules/python2.7/salt/cli/__init__.py", line 303, in run
    caller.run()
  File "/usr/lib/pymodules/python2.7/salt/cli/caller.py", line 135, in run
    ret = self.call()
  File "/usr/lib/pymodules/python2.7/salt/cli/caller.py", line 78, in call
    ret['return'] = func(*args, **kwargs)
  File "/var/cache/salt/minion/extmods/modules/deploy.py", line 154, in sync_all
    stats[repo]["deploy.checkout"] = __salt__['deploy.checkout'](repo)
  File "/var/cache/salt/minion/extmods/modules/deploy.py", line 347, in checkout
    return {'status': status, 'repo': repo, 'dependencies': depstats}
UnboundLocalError: local variable 'status' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
    salt_call()
  File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 77, in salt_call
    client.run()
  File "/usr/lib/pymodules/python2.7/salt/cli/__init__.py", line 303, in run
    caller.run()
  File "/usr/lib/pymodules/python2.7/salt/cli/caller.py", line 135, in run
    ret = self.call()
  File "/usr/lib/pymodules/python2.7/salt/cli/caller.py", line 78, in call
    ret['return'] = func(*args, **kwargs)
  File "/var/cache/salt/minion/extmods/modules/deploy.py", line 154, in sync_all
    stats[repo]["deploy.checkout"] = __salt__['deploy.checkout'](repo)
  File "/var/cache/salt/minion/extmods/modules/deploy.py", line 347, in checkout
    return {'status': status, 'repo': repo, 'dependencies': depstats}
UnboundLocalError: local variable 'status' referenced before assignment
Comment 1 Ori Livneh 2014-01-15 04:32:08 UTC
Alarmingly, Puppet did not fail the next time around; it just didn't attempt to re-execute.
Comment 2 Gerrit Notification Bot 2014-03-19 03:29:05 UTC
Change 119232 had a related patch set uploaded by BryanDavis:
Ensure that status is always defined in deploy.checkout

https://gerrit.wikimedia.org/r/119232
Comment 3 Gerrit Notification Bot 2014-04-05 18:52:37 UTC
Change 119232 merged by Ori.livneh:
Ensure that status is always defined in deploy.checkout

https://gerrit.wikimedia.org/r/119232

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links