Upgrade from 1.5 to 1.9 fails in network migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Attempted to upgrade Trusty from 1.5 to 1.9.
Please see the output below.
jenkins@
[sudo] password for jenkins:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
avahi-daemon avahi-utils erlang-asn1 erlang-base erlang-corba erlang-crypto
erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit
erlang-ic erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon
erlang-parsetools erlang-percept erlang-public-key erlang-
erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
erlang-webtool erlang-xmerl libavahi-core7 libdaemon0 libjs-raphael
libnss-mdns libodbc1 libsctp1 lksctp-tools pwgen python-amqp python-amqplib
python-anyjson python-billiard python-celery python-cl python-dateutil
python-iscpy python-kombu python-lockfile python-mailer python-memcache
python-oops python-oops-amqp python-oops-datedir-repo python-oops-twisted
python-oops-wsgi python-txamqp python-txlongpoll rabbitmq-server
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
squid-deb-proxy
The following NEW packages will be installed:
libjs-angularjs maas-proxy
The following packages have been kept back:
linux-generic linux-headers-
The following packages will be upgraded:
maas maas-cli maas-cluster-
maas-
python-
11 upgraded, 2 newly installed, 1 to remove and 3 not upgraded.
Need to get 2,542 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Fetched 2,542 kB in 1s (2,255 kB/s)
Preconfiguring packages ...
(Reading database ... 76605 files and directories currently installed.)
Preparing to unpack .../python-
Unpacking python-
Preparing to unpack .../maas-
maas-cluster-celery stop/waiting
maas-pserv stop/waiting
Obsolete conffile /etc/maas/
Saving as /etc/maas/
Obsolete conffile /etc/maas/
Saving as /etc/maas/
Moving obsolete conffile /etc/init/
Moving obsolete conffile /etc/init/
Moving obsolete conffile /etc/maas/
Moving obsolete conffile /etc/maas/
Moving obsolete conffile /etc/maas/
Moving obsolete conffile /etc/maas/
Moving obsolete conffile /etc/maas/
Moving obsolete conffile /etc/maas/
Moving obsolete conffile /etc/maas/
Unpacking maas-cluster-
Preparing to unpack .../maas-
* Stopping web server apache2 *
Unpacking maas-region-
Preparing to unpack .../maas-
Unpacking maas-dns (1.9.0~
* Stopping domain name service... bind9 waiting for pid 953 to die
giving up on pid 953 with kill -0; trying -9
* Starting domain name service... bind9 [ OK ]
Preparing to unpack .../maas-
* Stopping web server apache2 *
maas-txlongpoll stop/waiting
maas-region-celery stop/waiting
Obsolete conffile /etc/maas/
Saving as /etc/maas/
Moving obsolete conffile /etc/init/
Moving obsolete conffile /etc/init/
Obsolete conffile /etc/maas/
Saving as /etc/maas/
Moving obsolete conffile /etc/maas/
Unpacking maas-region-
dpkg: warning: unable to delete old directory '/var/log/
dpkg: warning: unable to delete old directory '/var/log/maas': Directory not empty
Preparing to unpack .../python-
Unpacking python-django-maas (1.9.0~
Preparing to unpack .../maas-
Unpacking maas-cli (1.9.0~
Preparing to unpack .../python-
Unpacking python-maas-client (1.9.0~
Preparing to unpack .../maas-
Unpacking maas-common (1.9.0~
Preparing to unpack .../maas-
maas-dhcp-server stop/waiting
Moving obsolete conffile /etc/init/
Unpacking maas-dhcp (1.9.0~
Selecting previously unselected package libjs-angularjs.
Preparing to unpack .../libjs-
Unpacking libjs-angularjs (1.2.11-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
(Reading database ... 77568 files and directories currently installed.)
Removing squid-deb-proxy (0.8.6ubuntu1) ...
squid-deb-proxy stop/waiting
Selecting previously unselected package maas-proxy.
(Reading database ... 77563 files and directories currently installed.)
Preparing to unpack .../maas-
Unpacking maas-proxy (1.9.0~
Preparing to unpack .../maas_
Unpacking maas (1.9.0~
Processing triggers for ureadahead (0.100.0-16) ...
Setting up python-maas-client (1.9.0~
Setting up python-
Setting up maas-cli (1.9.0~
Setting up maas-common (1.9.0~
Setting up maas-dhcp (1.9.0~
Installing new version of config file /etc/apparmor.
maas-dhcpd start/running, process 3058
maas-dhcpd6 stop/pre-start, process 3106
Removing obsolete conffile /etc/init/
Setting up libjs-angularjs (1.2.11-1) ...
Setting up maas-proxy (1.9.0~
squid3 stop/waiting
maas-proxy start/running, process 3198
Setting up python-django-maas (1.9.0~
Processing triggers for ureadahead (0.100.0-16) ...
Setting up maas-cluster-
Installing new version of config file /etc/logrotate.
Installing new version of config file /etc/sudoers.
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
maas-clusterd start/running, process 3388
Removing obsolete conffile /etc/init/
Removing obsolete conffile /etc/init/
Removing obsolete conffile /etc/maas/
Removing obsolete conffile /etc/maas/
Removing obsolete conffile /etc/maas/
Removing obsolete conffile /etc/maas/
Removing obsolete conffile /etc/maas/
Removing obsolete conffile /etc/maas/
Removing obsolete conffile /etc/maas/
Setting up maas-region-
Installing new version of config file /etc/logrotate.
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
Installing new version of config file /etc/maas/
rsyslog stop/waiting
rsyslog start/running, process 3525
* Stopping web server apache2 *
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Considering dependency proxy for proxy_wstunnel:
Module proxy already enabled
Enabling module proxy_wstunnel.
To activate the new configuration, you need to run:
service apache2 restart
Module expires already enabled
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.30.100. Set the 'ServerName' directive globally to suppress this message
maas-regiond start/running
Removing obsolete conffile /etc/init/
Removing obsolete conffile /etc/init/
Removing obsolete conffile /etc/maas/
Processing triggers for ureadahead (0.100.0-16) ...
Setting up maas-dns (1.9.0~
* Stopping domain name service... bind9 waiting for pid 2384 to die
* Starting domain name service... bind9 [ OK ]
Setting up maas-region-
* Stopping web server apache2 *
* Restarting PostgreSQL 9.3 database server [ OK ]
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Synced:
> django.contrib.auth
> django.
> django.
> django.
> django.
> django.
> piston
> south
Not synced (use migrations):
- maasserver
- metadataserver
(use ./manage.py migrate to migrate these)
Running migrations for maasserver:
- Migrating forwards to 0182_initial_
> metadataserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
> maasserver:
Error in migration: maasserver:
Traceback (most recent call last):
File "/usr/sbin/
main()
File "/usr/sbin/
run()
File "/usr/sbin/
management.
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
ignore_ghosts = ignore_ghosts,
File "/usr/lib/
success = migrator.
File "/usr/lib/
result = migrator.
File "/usr/lib/
result = self.migrate(
File "/usr/lib/
result = self.run(migration)
File "/usr/lib/
return self.run_
File "/usr/lib/
migration_
File "/usr/lib/
return (lambda: direction(orm))
File "/usr/lib/
network.name, existing_
File "/usr/lib/
invalid_
NameError: global name 're' is not defined
Related branches
- Mike Pontillo (community): Approve
-
Diff: 9 lines (+2/-0)1 file modifiedsrc/maasserver/migrations/0119_migrate_invalid_network_names.py (+2/-0)
- Andres Rodriguez (community): Approve
- Diff: 0 lines
no longer affects: | maas (Ubuntu) |
Changed in maas: | |
milestone: | none → 1.9.0 |
importance: | Undecided → Critical |
Changed in maas: | |
status: | New → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |