Import of sca apps fails
Bug #1267731 reported by
Michael Nelson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Directory |
Fix Released
|
Medium
|
Michael Nelson |
Bug Description
Haw reported a nagios alert [1] for apps.ubuntu.com, failing to import the sca apps:
$ tail /srv/uwc.
2014-01-10 00:00:12,356 - webcatalog.
UnboundLocalError: local variable 'app' referenced before assignment
Based on that, the bug is pretty obvious in import_
Related branches
lp:~michael.nelson/ubuntu-webcatalog/1267731-import-sca-apps-error
- Martin Albisetti (community): Approve
-
Diff: 254 lines (+191/-3)5 files modifiedsrc/webcatalog/forms.py (+1/-1)
src/webcatalog/management/commands/import_sca_apps.py (+6/-1)
src/webcatalog/migrations/0030_application_debtags_to_textfield.py (+174/-0)
src/webcatalog/models/applications.py (+1/-1)
src/webcatalog/tests/test_commands.py (+9/-0)
tags: | added: canonical-webops-uwc |
Changed in ubuntu-webcatalog: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
Changed in ubuntu-webcatalog: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-webcatalog: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I ran a local import using the production sca data, and the actual error (which we should handle) is that the deb_tags field is longer than expected for an app, due to every whitelist country being selected: https:/ /pastebin. canonical. com/102770/