$ dpkg -l | grep curtin
ii curtin-common 0.1.0~bzr470-0ubuntu1~16.04.1 all Library and tools for curtin installer
ii python3-curtin 0.1.0~bzr470-0ubuntu1~16.04.1 all Library and tools for curtin installer
Installation log:
$ maas admin node-results read system_id=xr36pd result_type=1 | grep "\"data\"" | cut -d"\"" -f4 | base64 --decode
curtin: Installation started. (0.1.0~bzr470-0ubuntu1~16.04.1)
Failed to exclusively open path: /dev/sda1
Traceback (most recent call last):
File "/curtin/curtin/block/__init__.py", line 773, in exclusive_open
fd = os.open(path, os.O_RDWR | os.O_EXCL)
OSError: [Errno 16] Device or resource busy: '/dev/sda1'
Device holders with exclusive access: []
Device mounts: ['/dev/sda1 /media/root-ro ext4 ro,relatime,data=ordered 0 0']
[Errno 16] Device or resource busy: '/dev/sda1'
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: Failed to exclusively open path: /dev/sda1
Traceback (most recent call last):
File "/curtin/curtin/block/__init__.py", line 773, in exclusive_open
fd = os.open(path, os.O_RDWR | os.O_EXCL)
OSError: [Errno 16] Device or resource busy: '/dev/sda1'
Device holders with exclusive access: []
Device mounts: ['/dev/sda1 /media/root-ro ext4 ro,relatime,data=ordered 0 0']
[Errno 16] Device or resource busy: '/dev/sda1'
Most of these failures have been on EFI machines, but at least one was on a BIOS machine. They're all configured for flat partitions, not LVM or bcache. The above output is for a system on my home network for which I'm using a local mirror, but I've seen failures on a MAAS server in 1SS that uses us.archive.ubuntu.com.
Curtin version information:
$ dpkg -l | grep curtin 0ubuntu1~ 16.04.1 all Library and tools for curtin installer 0ubuntu1~ 16.04.1 all Library and tools for curtin installer
ii curtin-common 0.1.0~bzr470-
ii python3-curtin 0.1.0~bzr470-
Installation log:
$ maas admin node-results read system_id=xr36pd result_type=1 | grep "\"data\"" | cut -d"\"" -f4 | base64 --decode bzr470- 0ubuntu1~ 16.04.1) curtin/ block/_ _init__ .py", line 773, in exclusive_open data=ordered 0 0'] curtin/ block/_ _init__ .py", line 773, in exclusive_open data=ordered 0 0']
curtin: Installation started. (0.1.0~
Failed to exclusively open path: /dev/sda1
Traceback (most recent call last):
File "/curtin/
fd = os.open(path, os.O_RDWR | os.O_EXCL)
OSError: [Errno 16] Device or resource busy: '/dev/sda1'
Device holders with exclusive access: []
Device mounts: ['/dev/sda1 /media/root-ro ext4 ro,relatime,
[Errno 16] Device or resource busy: '/dev/sda1'
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: Failed to exclusively open path: /dev/sda1
Traceback (most recent call last):
File "/curtin/
fd = os.open(path, os.O_RDWR | os.O_EXCL)
OSError: [Errno 16] Device or resource busy: '/dev/sda1'
Device holders with exclusive access: []
Device mounts: ['/dev/sda1 /media/root-ro ext4 ro,relatime,
[Errno 16] Device or resource busy: '/dev/sda1'
Stderr: ''
Curtin machine config:
$ maas admin machine get-curtin-config xr36pd sources_ list: false nessus. rodsbooks. com/ubuntu/ 172.24. 124.1:8000/ nessus. rodsbooks. com/ubuntu/ datasources multiselect MAAS
Success.
Machine-readable output follows:
apt:
preserve_
primary:
- arches:
- default
uri: http://
proxy: http://
security:
- arches:
- default
uri: http://
debconf_selections:
maas: 'cloud-init cloud-init/
cloud-init cloud-init/ maas-metadata- url string http:// 172.24. 124.1:5240/ MAAS/metadata/
cloud-init cloud-init/ maas-metadata- credentials string oauth_consumer_ key=EUDbzueWEvE Uz3XsUS& oauth_token_ key=Y3MUmumkezR CgtTM93& oauth_token_ secret= zuseqQu9bvTHSBJ N3wwDphFskTpff2 FU
cloud-init cloud-init/ local-cloud- config string apt:\n preserve_ sources_ list: nessus. rodsbooks. com/ubuntu/\n proxy: 172.24. 124.1:8000/\n security:\n - arches: [default]\n uri: http:// nessus. rodsbooks. com/ubuntu/\napt_preserve_ sources_ list: napt_proxy: http:// 172.24. 124.1:8000/\nmanage_etc_hosts: false\nmanual_ cache_clean: nreporting: \n maas: {consumer_key: EUDbzueWEvEUz3XsUS, endpoint: ''http:// 172.24. 124.1:5240/ MAAS/metadata/ status/ xr36pd' ',\n token_key: CgtTM93, token_secret: zuseqQu9bvTHSBJ N3wwDphFskTpff2 FU,\n type: \nsystem_ info:\n package_mirrors:\n - arches: [i386, amd64]\n failsafe: archive. ubuntu. com/ubuntu' ', security: ''http:// security. ubuntu. com/ubuntu' '}\n search:\n primary: nessus. rodsbooks. com/ubuntu/ '']\n security: [''http:// nessus. rodsbooks. com/ubuntu/ '']\n - ports.ubuntu. com/ubuntu- ports'', ports.ubuntu. com/ubuntu- ports''}\n search:\n primary: ports.ubuntu. com/ubuntu- ports'']\n security: [''http:// ports.ubuntu. com/ubuntu- ports'']\n
false\n primary:\n - arches: [default]\n uri: http://
http://
true\
true\
Y3MUmumkezR
webhook}
{primary: ''http://
[''http://
arches: [default]\n failsafe: {primary: ''http://
security: ''http://
[''http://
' 172.24. 124.1:5240/ MAAS/metadata/ latest/ by-id/xr36pd/ commands: 172.24. 124.1:5240/ MAAS/metadata/ status/ xr36pd N3wwDphFskTpff2 FU 7e2c-44f1- b8b6-a0b80d076e a3 93d7-43a1- a9a6-a558a1e199 85 a8a9-49fb- 943d-9da8c588b5 ba d0bd-42eb- bb2e-858a4922e5 f8
install:
log_file: /tmp/install.log
post_files:
- /tmp/install.log
kernel:
mapping: {}
package: linux-generic
late_commands:
maas:
- wget
- --no-proxy
- http://
- --post-data
- op=netboot_off
- -O
- /dev/null
network:
config:
- id: enp0s25
mac_address: f0:92:1c:5e:1e:70
mtu: 1500
name: enp0s25
subnets:
- type: dhcp4
type: physical
- address:
- 172.24.124.1
search:
- maas
type: nameserver
version: 1
network_commands:
builtin:
- curtin
- net-meta
- custom
partitioning_
builtin:
- curtin
- block-meta
- custom
reporting:
maas:
consumer_key: EUDbzueWEvEUz3XsUS
endpoint: http://
token_key: Y3MUmumkezRCgtTM93
token_secret: zuseqQu9bvTHSBJ
type: webhook
storage:
config:
- grub_device: true
id: sda
model: FUJITSU MHV2060B
name: sda
ptable: gpt
serial: NW84T6A2A9LH
type: disk
wipe: superblock
- device: sda
flag: boot
id: sda-part1
name: sda-part1
number: 1
offset: 4194304B
size: 536870912B
type: partition
uuid: 2be68d8b-
wipe: superblock
- device: sda
id: sda-part2
name: sda-part2
number: 2
size: 59466842112B
type: partition
uuid: b3a1130f-
wipe: superblock
- fstype: fat32
id: sda-part1_format
label: efi
type: format
uuid: 80bd9766-
volume: sda-part1
- fstype: ext4
id: sda-part2_format
label: root
type: format
uuid: 49ec0137-
volume: sda-part2
- device: sda-part2_format
id: sda-part2_mount
path: /
type: mount
- device: sda-part1_format
id: sda-part1_mount
path: /boot/efi
type: mount
version: 1
Most of these failures have been on EFI machines, but at least one was on a BIOS machine. They're all configured for flat partitions, not LVM or bcache. The above output is for a system on my home network for which I'm using a local mirror, but I've seen failures on a MAAS server in 1SS that uses us.archive. ubuntu. com.