[Bug 1401190] Re: curtin makes assumptions about partition names on all devices
Ryan Harper
1401190 at bugs.launchpad.net
Mon Mar 7 20:30:02 UTC 2016
On Mon, Mar 7, 2016 at 2:15 PM, Rob Sanderson <1401190 at bugs.launchpad.net>
wrote:
> Hi Ryan,
>
> Here you go
>
> /var/lib/cloud/instance/scripts/part-001 extract
>
> cd curtin
>
> cat configs/config-000.cfg
> #cloud-config
> …
> ...
> partitioning_commands:
> builtin: [curtin, block-meta, custom]
> storage:
> config:
> - {id: nvme0n1, name: nvme0n1, path: /dev/nvme0n1, ptable: gpt, type:
> disk, wipe: superblock}
> - {device: nvme0n1, id: nvme0n1p1, name: nvme0n1p1, number: 'p1',
> offset: 4194304B, size: 128026935296B, type: partition, wipe: superblock}
> - {fstype: ext4, id: nvme0n1p1_format, label: 'rootfs', type: format,
> path: /dev/nvme0n1p1, volume: nvme0n1p1}
> version: 1
>
> bin/curtin --showtrace --install-deps install
> --config=configs/config-000.cfg
> http://10.10.4.221:5248/images/ubuntu/amd64/generic/trusty/release/root-tgz
> Creating new GPT entries.
> The operation has completed successfully.
> An error occured handling 'nvme0n1p1': IOError - [Errno 2] No such file or
> directory: '/sys/block/nvme0n1/nvme0n1None/size'
> Traceback (most recent call last):
> File "/home/ubuntu/curtin/curtin/commands/main.py", line 209, in main
> ret = args.func(args)
> File "curtin/commands/block_meta.py", line 62, in block_meta
> meta_custom(args)
> File "curtin/commands/block_meta.py", line 1083, in meta_custom
> handler(command, storage_config_dict)
> File "curtin/commands/block_meta.py", line 565, in partition_handler
> with open(os.path.join(previous_partition, "size"), "r") as fp:
> IOError: [Errno 2] No such file or directory:
> '/sys/block/nvme0n1/nvme0n1None/size'
> [Errno 2] No such file or directory: '/sys/block/nvme0n1/nvme0n1None/size'
> Installation failed with exception: Unexpected error while running command.
> Command: ['curtin', 'block-meta', 'custom']
> Exit code: 3
> Reason: -
> Stdout: 'Creating new GPT entries.\nThe operation has completed
> successfully.\nAn error occured handling \'nvme0n1p1\': IOError - [Errno 2]
> No such file or directory:
> \'/sys/block/nvme0n1/nvme0n1None/size\'\nTraceback (most recent call
> last):\n File "/home/ubuntu/curtin/curtin/commands/main.py", line 209, in
> main\n ret = args.func(args)\n File "curtin/commands/block_meta.py",
> line 62, in block_meta\n meta_custom(args)\n File
> "curtin/commands/block_meta.py", line 1083, in meta_custom\n
> handler(command, storage_config_dict)\n File
> "curtin/commands/block_meta.py", line 565, in partition_handler\n with
> open(os.path.join(previous_partition, "size"), "r") as fp:\nIOError: [Errno
> 2] No such file or directory:
> \'/sys/block/nvme0n1/nvme0n1None/size\'\n[Errno 2] No such file or
> directory: \'/sys/block/nvme0n1/nvme0n1None/size\'\n'
> Stderr: ''
> Traceback (most recent call last):
> File "/home/ubuntu/curtin/curtin/commands/main.py", line 209, in main
> ret = args.func(args)
> File "curtin/commands/install.py", line 399, in cmd_install
> raise e
>
OK, no need to let you continue to debug getting curtin partition handling
to learn about NVME.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to curtin in Ubuntu.
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
More information about the Ubuntu-server-bugs
mailing list