Comment 10 for bug 1401190

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1401190] Re: curtin makes assumptions about partition names on all devices

On Sat, Mar 5, 2016 at 3:56 AM, Rob Sanderson <email address hidden>
wrote:

> Hi,
>
> I'm still seeing this issue on Xenial.
>
> root@maas1:~# cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=16.04
> DISTRIB_CODENAME=xenial
> DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)"
> root@maas1:~# uname -a
> Linux maas1 4.4.0-6-generic #21-Ubuntu SMP Tue Feb 16 20:32:27 UTC 2016
> x86_64 x86_64 x86_64 GNU/Linux
> root@maas1:~# dpkg -l|grep curtin
> ii curtin-common 0.1.0~bzr359-0ubuntu1 all
> Library and tools for curtin installer
> ii python3-curtin 0.1.0~bzr359-0ubuntu1 all
> Library and tools for curtin installer
>
> I have tried with the default curtin_userdata and have also tried:
>
> partitioning_commands:
> builtin: curtin block-meta custom
>
> storage:
> version: 1
> config:
> - id: nvme0n1
> type: disk
> ptable: msdos
>

If you don't specify a 'serial': or 'path' then curtin will attempt to
deduce the path via the id.

Can you try adding:

 path: /dev/nvme0

If that is indeed the path to the device.

> - id: nvme0n1p1
> type: partition
> number: 1
> size: 128GB
> device: nvme0n1
> flag: boot
> - id: nvme0n1p1_root
> type: format
> fstype: ext4
> volume: nvme0n1p1
> - id: nvme0n1p1_mount
> type: mount
> path: /
> device: nvme0n1p1_root
>
> The error is as follows:
>
> + exec curtin --install-deps install --config=configs/config-000.cfg
> --config=configs/config-001.cfg --config=configs/config-002.cfg
> --config=configs/config-003.cfg --config=configs/config-004.cfg
> http://10.10.4.221:5248/images/ubuntu/amd64/generic/trusty/release/root-tgz
> Error: /dev/sda: unrecognised disk label
> Error: /dev/sda: unrecognised disk label
> Error: /dev/sdb: unrecognised disk label
> Error: /dev/sdb: unrecognised disk label
> Error: /dev/sdc: unrecognised disk label
> Error: /dev/sdc: unrecognised disk label
> An error occured handling 'nvme0n1-part1_format': ValueError -
> '/dev/nvme0n11': no such file or directory
> '/dev/nvme0n11': no such file or directory
> Installation failed with exception: Unexpected error while running command.
> Command: ['curtin', 'block-meta', 'custom']
> Exit code: 3
> Reason: -
> Stdout: "Error: /dev/sda: unrecognised disk label\nError: /dev/sda:
> unrecognised disk label\nError: /dev/sdb: unrecognised disk label\nError:
> /dev/sdb: unrecognised disk label\nError: /dev/sdc: unrecognised disk
> label\nError: /dev/sdc: unrecognised disk label\nAn error occured handling
> 'nvme0n1-part1_format': ValueError - '/dev/nvme0n11': no such file or
> directory\n'/dev/nvme0n11': no such file or directory\n"
> Stderr: ''
> Unexpected error while running command.
> Command: ['curtin', 'block-meta', 'custom']
> Exit code: 3
> Reason: -
> Stdout: "Error: /dev/sda: unrecognised disk label\nError: /dev/sda:
> unrecognised disk label\nError: /dev/sdb: unrecognised disk label\nError:
> /dev/sdb: unrecognised disk label\nError: /dev/sdc: unrecognised disk
> label\nError: /dev/sdc: unrecognised disk label\nAn error occured handling
> 'nvme0n1-part1_format': ValueError - '/dev/nvme0n11': no such file or
> directory\n'/dev/nvme0n11': no such file or directory\n"
> Stderr: ''
>
> --
> You received this bug notification because you are subscribed to curtin
> in Ubuntu.
> Matching subscriptions: curtin-bugs, curtin-bugs-all
> https://bugs.launchpad.net/bugs/1401190
>
> Title:
> curtin makes assumptions about partition names on all devices
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/curtin/+bug/1401190/+subscriptions
>