[SRU] Package fails to install when the default route is through an aliased/tagged interface

Bug #1350235 reported by Raphaël Badin on 2014-07-30
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Critical
Gavin Panella
1.5
Critical
Gavin Panella
1.6
Critical
Gavin Panella
maas (Ubuntu)
Undecided
Unassigned
Trusty
Critical
Greg Lutostanski

Bug Description

[Impact]
 * Cannot install maas-region-controller if the default inet route is through an aliased interface.

[Testcase]
 * Install maas-region-controller when the default inet route goes through an aliased interface

[Regression Potential]
 * Minimal; updated regexes to determine interface names -- new tests added that pass for both non-aliased and aliased interfaces. Also installed with non-aliased interface and succeeded.

No handlers could be found for logger "metadataserver"
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
    self._setup(name)
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 128, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/share/maas/maas/settings.py", line 73, in <module>
    DEFAULT_MAAS_URL = compose_URL_on_IP("http:///", guess_server_address())
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/__init__.py", line 893, in compose_URL_on_IP
    if IPAddress(host).version == 6:
  File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 315, in __init__
    'address from %r' % addr)
netaddr.core.AddrFormatError: failed to detect a valid IP address from None

The source of the failure is that the default route goes through an aliased interface.

Related branches

Raphaël Badin (rvb) on 2014-07-30
Changed in maas:
assignee: nobody → Gavin Panella (allenap)
description: updated
Changed in maas:
status: Triaged → Fix Committed
milestone: none → 1.6.1
Raphaël Badin (rvb) on 2014-07-30
summary: - Package fails to install when the default route is through an aliased
- interface
+ Package fails to install when the default route is through an
+ aliased/tagged interface
Changed in maas:
milestone: 1.6.1 → none
status: Fix Committed → Fix Released
description: updated
summary: - Package fails to install when the default route is through an
+ [SRU] Package fails to install when the default route is through an
aliased/tagged interface
Chris J Arges (arges) on 2014-09-02
Changed in maas (Ubuntu):
status: New → Fix Released
Changed in maas (Ubuntu Trusty):
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → Greg Lutostanski (lutostag)
milestone: none → trusty-updates

Hello Raphaël, or anyone else affected,

Accepted maas into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/maas/1.5.4+bzr2294-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Andres Rodriguez (andreserl) wrote :

We've verified this and things work as expected.

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 1.5.4+bzr2294-0ubuntu1.1

---------------
maas (1.5.4+bzr2294-0ubuntu1.1) trusty-proposed; urgency=medium

  * Add hardware enablement for armhf/keystone (LP: #1350103)
 -- Greg Lutostanski <email address hidden> Thu, 18 Sep 2014 16:43:56 -0500

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

Other bug subscribers