compose_curtin_network_preseed breaks installation of all other operating systems

Bug #1373103 reported by Blake Rouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Jeroen T. Vermeulen

Bug Description

Interface configuration is OS specific, this needs to be limited to Ubuntu for the moment. Currently this is ran no matter the OS, which breaks all other os installation.

This is deploying CentOS:

chroot: failed to run command '/usr/local/bin/maas_configure_interfaces.py': No such file or directory
Unexpected error while running command.
Command: ['curtin', 'in-target', '--', '/usr/local/bin/maas_configure_interfaces.py', '--update-interfaces', '--name-interfaces']
Exit code: 127
Reason: -
Stdout: ''
Stderr: ''
2014-09-23 20:02:29,971 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [3]
2014-09-23 20:02:29,972 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2014-09-23 20:02:29,973 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed

Related branches

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Thanks for reporting this — it comes as a bit of a shock because interface configuration was already limited to Ubuntu. The config to install that script is included on all operating systems and the command to run it is included on all operating systems, but the script does nothing if the operating system install it sees is not Ubuntu.

So apparently the combination of installing a file through Curtin and then executing it through Curtin is Ubuntu-specific in some way. It's understandable that Windows gives us some trouble, because it won't have /usr/local/bin. But CentOS..?

Changed in maas:
status: Triaged → In Progress
milestone: none → 1.7.0
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.