Comment 8 for bug 1395896

Revision history for this message
Newell Jensen (newell-jensen) wrote : Re: [Bug 1395896] Re: Raises CannotConfigureDHCP when saving managedcluster interface.

No this was not running within an LXC machine. This was on my host
machine. I have not been able to reproduce this with the current code. I
will need to try and re-install that specific branch and see if I can
reproduce it.

On Tue, Feb 17, 2015 at 2:03 PM, Raphaël Badin <email address hidden>
wrote:

> @Newell: is this running from within a LXC machine by any chance?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1395896
>
> Title:
> Raises CannotConfigureDHCP when saving managedcluster interface.
>
> Status in MAAS:
> Triaged
>
> Bug description:
> Trunk (as of 11/24/2014) gives an "Internal server error." when trying
> to save a managed interface.
>
> This was performed on a fresh MAAS installation (from packages).
>
> Here is the relevant output from /var/log/maas/*.log:
>
> ==> /var/log/maas/maas-django.log <==
> return do_configure_dhcp(4, nodegroup, interfaces, ntp_server)
> File
> "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py",
> line 148, in wrapper
> return func(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/maasserver/dhcp.py", line 114,
> in do_configure_dhcp
> client(command, omapi_key=omapi_key, subnet_configs=subnets).wait(60)
> File "/usr/lib/python2.7/dist-packages/crochet/_eventloop.py", line
> 219, in wait
> result.raiseException()
> File "<string>", line 2, in raiseException
> CannotConfigureDHCP: DHCPv4 server failed to restart: stop: Unknown
> instance:
> start: Job failed to start
>
> ==> /var/log/maas/maas.log <==
> Nov 24 13:19:23 mc maas.tftp: [WARNING] No boot images have been
> imported from the region.
> Nov 24 13:15:21 mc maas.tftp: message repeated 2 times: [ [WARNING] No
> boot images have been imported from the region.]
> Nov 24 13:19:42 mc maas: [WARNING] Failed to create Network when
> adding/editing cluster interface eth0-eth0 with error [{'ip': [u'Network
> with this Ip already exists.'], 'name': [u'Network with this Name already
> exists.']}]. This is OK if it already exists.
> Nov 24 13:15:05 mc maas.tftp: [WARNING] No boot images have been
> imported from the region.
> Nov 24 13:19:47 mc maas.calls: [INFO] Starting task
> 'write_full_dns_config' with args: () {'zones':
> [<provisioningserver.dns.zoneconfig.DNSForwardZoneConfig object at
> 0x7f09b808d550>, <provisioningserver.dns.zoneconfig.DNSReverseZoneConfig
> object at 0x7f09b808dd90>], 'callback':
> provisioningserver.tasks.rndc_command([u'reload'], False), 'upstream_dns':
> None, 'trusted_networks': u'192.168.122.0/24;'}
> Nov 24 13:19:47 mc maas.calls: [INFO] Starting task 'rndc_command' with
> args: ([u'reload'], False) {}
> Nov 24 13:19:47 mc maas.calls: [INFO] Finished task 'rndc_command' with
> args: ([u'reload'], False) {}
> Nov 24 13:19:47 mc maas.calls: [INFO] Finished task
> 'write_full_dns_config' with args: () {'zones':
> [<provisioningserver.dns.zoneconfig.DNSForwardZoneConfig object at
> 0x7f09b808d550>, <provisioningserver.dns.zoneconfig.DNSReverseZoneConfig
> object at 0x7f09b808dd90>], 'callback':
> provisioningserver.tasks.rndc_command([u'reload'], False), 'upstream_dns':
> None, 'trusted_networks': u'192.168.122.0/24;'}
> Nov 24 13:19:43 mc maas.tftp: message repeated 55 times: [ [WARNING] No
> boot images have been imported from the region.]
> Nov 24 13:19:47 mc maas.dhcp: [ERROR] DHCPv4 server failed to restart
> (for network interfaces eth0): Command `sudo -n service maas-dhcpd restart`
> returned non-zero exit status 1:#012stop: Unknown instance: #012start: Job
> failed to start
>
> ==> /var/log/maas/pserv.log <==
> 2014-11-24 13:04:05-0800 [Uninitialized] ClusterClient connection
> established (HOST:IPv4Address(TCP, '127.0.0.1', 53178)
> PEER:IPv4Address(TCP, u'127.0.0.1', 51119))
> 2014-11-24 13:04:05-0800 [Uninitialized] ClusterClient connection
> established (HOST:IPv4Address(TCP, '127.0.0.1', 53178)
> PEER:IPv4Address(TCP, u'127.0.0.1', 51119))
> 2014-11-24 13:04:05-0800 [ClusterClient,client] Event-loop
> 'mc:pid=29867' authenticated.
> 2014-11-24 13:04:05-0800 [ClusterClient,client] Event-loop
> 'mc:pid=29867' authenticated.
> 2014-11-24 13:04:05-0800 [ClusterClient,client] Event-loop
> 'mc:pid=29866' authenticated.
> 2014-11-24 13:04:05-0800 [ClusterClient,client] Event-loop
> 'mc:pid=29866' authenticated.
> 2014-11-24 13:04:06-0800 [ClusterClient,client] Cluster
> '4c38247a-df7a-46ad-a696-a38d582abd34' registered (via mc:pid=29867).
> 2014-11-24 13:04:06-0800 [ClusterClient,client] Cluster
> '4c38247a-df7a-46ad-a696-a38d582abd34' registered (via mc:pid=29867).
> 2014-11-24 13:04:06-0800 [ClusterClient,client] Cluster
> '4c38247a-df7a-46ad-a696-a38d582abd34' registered (via mc:pid=29866).
> 2014-11-24 13:04:06-0800 [ClusterClient,client] Cluster
> '4c38247a-df7a-46ad-a696-a38d582abd34' registered (via mc:pid=29866).
>
>
> ubuntu@mc:~$ dpkg -l '*maas*'|cat
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version
> Architecture Description
>
> +++-=================================-===================================-============-===============================================================================
> ii maas 1.7.1+bzr3373-0ubuntu1
> all MAAS server all-in-one metapackage
> ii maas-cli 1.7.1+bzr3373-0ubuntu1
> all MAAS command line API tool
> ii maas-cluster-controller 1.7.1+bzr3373-0ubuntu1
> all MAAS server cluster controller
> ii maas-common 1.7.1+bzr3373-0ubuntu1
> all MAAS server common files
> ii maas-dhcp 1.7.1+bzr3373-0ubuntu1
> all MAAS DHCP server
> ii maas-dns 1.7.1+bzr3373-0ubuntu1
> all MAAS DNS server
> ii maas-proxy 1.7.1+bzr3373-0ubuntu1
> all MAAS Caching Proxy
> ii maas-region-controller 1.7.1+bzr3373-0ubuntu1
> all MAAS server complete region controller
> ii maas-region-controller-min 1.7.1+bzr3373-0ubuntu1
> all MAAS Server minimum region controller
> ii python-django-maas 1.7.1+bzr3373-0ubuntu1
> all MAAS server Django web framework
> ii python-maas-client 1.7.1+bzr3373-0ubuntu1
> all MAAS python API client
> ii python-maas-provisioningserver 1.7.1+bzr3373-0ubuntu1
> all MAAS server provisioning libraries
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1395896/+subscriptions
>