[2.2] Adding custom image with ddxz filetype seems to think it is root-tgz

Bug #1682251 reported by Andres Rodriguez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Данило Шеган

Bug Description

I added a custom image like this:

maas admin boot-resources create name=customcore16 title="Custom Ubuntu Core test" architecture='amd64/generic' filetype=ddxz content@=curtin-ubuntu-core-16-pc-amd64.img.xz

And during the deployment process, this happened:

curtin: Installation started. (0.1.0~bzr480-0ubuntu1~ubuntu16.04.1)
--2017-04-12 21:31:20-- http://192.168.122.2:5248/images/custom/amd64/generic/customcore16/uploaded/root-tgz
Connecting to 192.168.122.2:5248... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-04-12 21:31:20 ERROR 404: Not Found.

tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Unexpected error while running command.
Command: ['sh', '-cf', 'wget "$1" --progress=dot:mega -O - |smtar -C "$2" --xattrs --xattrs-include=* -Sxpf - --numeric-owner', '--', 'http://192.168.122.2:5248/images/custom/amd64/generic/customcore16/uploaded/root-tgz', '/tmp/tmpxmixd1rx/target']
Exit code: 2
Reason: -
Stdout: ''
Stderr: ''
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'extract']
Exit code: 3
Reason: -
Stdout: --2017-04-12 21:31:20-- http://192.168.122.2:5248/images/custom/amd64/generic/customcore16/uploaded/root-tgz
        Connecting to 192.168.122.2:5248... connected.
        HTTP request sent, awaiting response... 404 Not Found
        2017-04-12 21:31:20 ERROR 404: Not Found.

        tar: This does not look like a tar archive
        tar: Exiting with failure status due to previous errors
        Unexpected error while running command.
        Command: ['sh', '-cf', 'wget "$1" --progress=dot:mega -O - |smtar -C "$2" --xattrs --xattrs-include=* -Sxpf - --numeric-owner', '--', 'http://192.168.122.2:5248/images/custom/amd64/generic/customcore16/uploaded/root-tgz', '/tmp/tmpxmixd1rx/target']
        Exit code: 2
        Reason: -
        Stdout: ''
        Stderr: ''

Stderr: ''

Related branches

Changed in maas:
milestone: none → 2.2.0rc2
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Paul Larson (pwlars) wrote :

I think for this to work, the custom osystem driver would have to be taught about ddxz. Right now it checks for a file that exists called "root-dd" and if it doesn't find it, it assumes it is root-tgz

Changed in maas:
status: Triaged → In Progress
status: In Progress → Triaged
Changed in maas:
milestone: 2.2.0rc2 → 2.2.0rc3
Lee Trager (ltrager)
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
Changed in maas:
assignee: Lee Trager (ltrager) → Данило Шеган (danilo)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 2.2.0rc3 → 2.2.0rc4
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.