Steps to reproduce: 1. Set up Toaster in managed mode making sure you create a superuser for Django auth when prompted 2. Start Toaster in managed mode and visit localhost:8000/admin in your browser 3. Log in using the superuser credentials you created in step 1 4. In the Site administration page, click on "Layer sources" 5. In the "Select layer source to change" page click the "add layer source" button in the top right hand corner The page throws this error: Environment: Request Method: GET Request URL: http://localhost:8000/admin/orm/layersource/add/ Django Version: 1.6 Python Version: 2.7.6 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.humanize', 'orm', 'toastermain', 'south', 'bldviewer', 'toastergui', 'bldcontrol') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 114. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper 430. return self.admin_site.admin_view(view)(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view 99. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func 52. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner 198. return view(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper 29. return bound_func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view 99. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func 25. return func(self, *args2, **kwargs2) File "/usr/local/lib/python2.7/dist-packages/django/db/transaction.py" in inner 339. return func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in add_view 1144. form = ModelForm(initial=initial) File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in __init__ 302. self.instance = opts.model() File "/home/yocto/master/bitbake/lib/toaster/orm/models.py" in __call__ 625. return obj.get_object() File "/home/yocto/master/bitbake/lib/toaster/orm/models.py" in get_object 672. raise Exception("Unknown LayerSource type. If you added a new layer source type, fill out all code stubs.") Exception Type: Exception at /admin/orm/layersource/add/ Exception Value: Unknown LayerSource type. If you added a new layer source type, fill out all code stubs.
This patch submitted for bug 7618 https://lists.yoctoproject.org/pipermail/toaster/2015-May/002061.html also seems to fix this one
Should be fixed by this http://cgit.openembedded.org/bitbake/commit/?id=308b5529d4e183d550221864bfdbefd31cc23705
Verified on master: 5170177719a93a69cc6c7c1218b3f26eed82d6e0