Merge lp:~blake-rouse/maas/external-dhcp-model into lp:~maas-committers/maas/trunk

Proposed by Blake Rouse
Status: Merged
Approved by: Blake Rouse
Approved revision: no longer in the source branch.
Merged at revision: 4875
Proposed branch: lp:~blake-rouse/maas/external-dhcp-model
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 82 lines (+40/-2)
4 files modified
src/maasserver/migrations/builtin/maasserver/0028_update_default_vlan_on_interface_and_subnet.py (+2/-2)
src/maasserver/migrations/builtin/maasserver/0049_add_external_dhcp_present_to_vlan.py (+35/-0)
src/maasserver/models/vlan.py (+2/-0)
src/maasserver/websockets/handlers/tests/test_vlan.py (+1/-0)
To merge this branch: bzr merge lp:~blake-rouse/maas/external-dhcp-model
Reviewer Review Type Date Requested Status
Newell Jensen (community) Approve
Review via email: mp+291013@code.launchpad.net

Commit message

Add external_dhcp_present to the VLAN model.

To post a comment you must log in.
Revision history for this message
Newell Jensen (newell-jensen) :
review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :
Download full text (1.0 MiB)

The attempt to merge lp:~blake-rouse/maas/external-dhcp-model into lp:maas failed. Below is the output from the failed tests.

Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:2 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial InRelease [95.6 kB]
Hit:3 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 95.6 kB in 0s (201 kB/s)
Reading package lists...
sudo DEBIAN_FRONTEND=noninteractive apt-get -y \
    --no-install-recommends install apache2 archdetect-deb authbind bash bind9 bind9utils build-essential bzr-builddeb chromium-browser chromium-chromedriver curl daemontools debhelper dh-apport dh-systemd distro-info dnsutils firefox freeipmi-tools git gjs ipython isc-dhcp-common libjs-angularjs libjs-jquery libjs-jquery-hotkeys libjs-yui3-full libjs-yui3-min libpq-dev make nodejs-legacy npm postgresql pxelinux python3-all python3-apt python3-bson python3-convoy python3-coverage python3-crochet python3-cssselect python3-curtin python3-dev python3-distro-info python3-django python3-django-nose python3-django-piston3 python3-dnspython python3-docutils python3-formencode python3-hivex python3-httplib2 python3-jinja2 python3-jsonschema python3-lxml python3-mock python3-netaddr python3-netifaces python3-oauth python3-oauthlib python3-openssl python3-paramiko python3-petname python3-pexpect python3-psycopg2 python3-pyinotify python3-pyparsing python3-pyvmomi python3-requests python3-seamicroclient python3-setuptools python3-simplestreams python3-sphinx python3-tempita python3-twisted python3-txtftp python3-tz python3-yaml python3-zope.interface python-bson python-crochet python-django python-django-piston python-djorm-ext-pgarray python-formencode python-lxml python-netaddr python-netifaces python-pocket-lint python-psycopg2 python-tempita python-twisted python-yaml socat syslinux-common tgt ubuntu-cloudimage-keyring wget xvfb
Reading package lists...
Building dependency tree...
Reading state information...
apache2 is already the newest version (2.4.18-1ubuntu1).
archdetect-deb is already the newest version (1.117ubuntu1).
authbind is already the newest version (2.1.1+nmu1).
bash is already the newest version (4.3-14ubuntu1).
bind9 is already the newest version (1:9.10.3.dfsg.P4-5).
bind9utils is already the newest version (1:9.10.3.dfsg.P4-5).
build-essential is already the newest version (12.1ubuntu2).
curl is already the newest version (7.47.0-1ubuntu2).
debhelper is already the newest version (9.20160115ubuntu3).
dh-apport is already the newest version (2.20.1-0ubuntu1).
dh-systemd is already the newest version (1.29ubuntu1).
distro-info is already the newest version (0.14build1).
dnsutils is already the newest version (1:9.10.3.dfsg.P4-5).
firefox is already the newest version (45.0.1+build1-0ubuntu1).
freeipmi-tools is already the newest version (1.4.11-1ubuntu1).
git is already the newest version (1:2.7.4-0ubuntu1).
isc-dhcp-common is already the newest version (4.3.3-5ubuntu11).
libjs-angularjs is already the newest version (1.2.28-1ubuntu2).
libjs-jquery is already the newest versi...

Revision history for this message
Newell Jensen (newell-jensen) wrote :

Finally!

On Tue, Apr 5, 2016 at 1:53 PM, <email address hidden> wrote:

> The proposal to merge lp:~blake-rouse/maas/external-dhcp-model into
> lp:maas has been updated.
>
> Status: Approved => Merged
>
> For more details, see:
>
> https://code.launchpad.net/~blake-rouse/maas/external-dhcp-model/+merge/291013
> --
> You are reviewing the proposed merge of
> lp:~blake-rouse/maas/external-dhcp-model into lp:maas.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/migrations/builtin/maasserver/0028_update_default_vlan_on_interface_and_subnet.py'
2--- src/maasserver/migrations/builtin/maasserver/0028_update_default_vlan_on_interface_and_subnet.py 2016-02-10 20:24:35 +0000
3+++ src/maasserver/migrations/builtin/maasserver/0028_update_default_vlan_on_interface_and_subnet.py 2016-04-05 20:13:22 +0000
4@@ -20,11 +20,11 @@
5 migrations.AlterField(
6 model_name='interface',
7 name='vlan',
8- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='maasserver.VLAN', default=maasserver.models.interface.get_default_vlan),
9+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='maasserver.VLAN', default=0),
10 ),
11 migrations.AlterField(
12 model_name='subnet',
13 name='vlan',
14- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='maasserver.VLAN', default=maasserver.models.subnet.get_default_vlan),
15+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='maasserver.VLAN', default=0),
16 ),
17 ]
18
19=== added file 'src/maasserver/migrations/builtin/maasserver/0049_add_external_dhcp_present_to_vlan.py'
20--- src/maasserver/migrations/builtin/maasserver/0049_add_external_dhcp_present_to_vlan.py 1970-01-01 00:00:00 +0000
21+++ src/maasserver/migrations/builtin/maasserver/0049_add_external_dhcp_present_to_vlan.py 2016-04-05 20:13:22 +0000
22@@ -0,0 +1,35 @@
23+# -*- coding: utf-8 -*-
24+from __future__ import unicode_literals
25+
26+from django.db import (
27+ migrations,
28+ models,
29+)
30+import django.db.models.deletion
31+import maasserver.models.interface
32+import maasserver.models.subnet
33+
34+
35+class Migration(migrations.Migration):
36+
37+ dependencies = [
38+ ('maasserver', '0048_add_subnet_allow_proxy'),
39+ ]
40+
41+ operations = [
42+ migrations.AddField(
43+ model_name='vlan',
44+ name='external_dhcp_present',
45+ field=models.BooleanField(default=False, editable=False),
46+ ),
47+ migrations.AlterField(
48+ model_name='interface',
49+ name='vlan',
50+ field=models.ForeignKey(to='maasserver.VLAN', on_delete=django.db.models.deletion.PROTECT, default=maasserver.models.interface.get_default_vlan),
51+ ),
52+ migrations.AlterField(
53+ model_name='subnet',
54+ name='vlan',
55+ field=models.ForeignKey(to='maasserver.VLAN', on_delete=django.db.models.deletion.PROTECT, default=maasserver.models.subnet.get_default_vlan),
56+ ),
57+ ]
58
59=== modified file 'src/maasserver/models/vlan.py'
60--- src/maasserver/models/vlan.py 2016-03-28 13:54:47 +0000
61+++ src/maasserver/models/vlan.py 2016-04-05 20:13:22 +0000
62@@ -162,6 +162,8 @@
63
64 dhcp_on = BooleanField(default=False, editable=True)
65
66+ external_dhcp_present = BooleanField(default=False, editable=False)
67+
68 primary_rack = ForeignKey(
69 'RackController', null=True, blank=True, editable=True,
70 related_name='+')
71
72=== modified file 'src/maasserver/websockets/handlers/tests/test_vlan.py'
73--- src/maasserver/websockets/handlers/tests/test_vlan.py 2016-03-28 13:54:47 +0000
74+++ src/maasserver/websockets/handlers/tests/test_vlan.py 2016-04-05 20:13:22 +0000
75@@ -32,6 +32,7 @@
76 "updated": dehydrate_datetime(vlan.updated),
77 "created": dehydrate_datetime(vlan.created),
78 "dhcp_on": vlan.dhcp_on,
79+ "external_dhcp_present": vlan.external_dhcp_present,
80 "primary_rack": vlan.primary_rack,
81 "secondary_rack": vlan.secondary_rack,
82 "subnet_ids": sorted([