Upgrade from maas 1.2 to maas 1.4 fails

Bug #1236572 reported by Adam Stokes
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)

Bug Description

When upgrading from maas 1.2 on precise to maas 1.4 from cloud-tools.archive.canonical.com there is no minimum version build depends on python-django.

This results in migration errors because of a new field that was introduced in django 14.

Changing password for user "maas_longpoll" ...
Changing password for user "maas_workers" ...
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 219, in execute
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.7/dist-packages/django/core/management/validation.py", line 35, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
  File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 64, in _populate
  File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 78, in load_app
    models = import_module('.models', app_name)
  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
  File "/usr/lib/python2.7/dist-packages/maasserver/models/__init__.py", line 41, in <module>
    from maasserver.models.bootimage import BootImage
  File "/usr/lib/python2.7/dist-packages/maasserver/models/bootimage.py", line 25, in <module>
    from maasserver.models.nodegroup import NodeGroup
  File "/usr/lib/python2.7/dist-packages/maasserver/models/nodegroup.py", line 31, in <module>
    from maasserver.models.nodegroupinterface import NodeGroupInterface
  File "/usr/lib/python2.7/dist-packages/maasserver/models/nodegroupinterface.py", line 21, in <module>
    from django.db.models import (
ImportError: cannot import name GenericIPAddressField

Setting a build depends on python-django to be >= 1.4 should fix this.

Related branches

no longer affects: maas
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 1.4+bzr1693+dfsg-0ubuntu1

maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low

  * New Upstream Release (LP: #1218526)
    - This new upstream release contains fixes and improvements of the
      features approved by the FFe above.
    - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
    - Fixes access of static images over http (LP: #1236544)
  * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
  * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
  * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
    to install maas-dhcp during an ISO install. (LP: #1236786)
 -- Andres Rodriguez <email address hidden> Fri, 04 Oct 2013 12:33:05 -0400

Changed in maas (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers