unable to install node due to failure unmounting /dev on node

Bug #1533846 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Medium
Unassigned

Bug Description

This error is preventing me from deploying a node using Xenial and MAAS 1.9 from maas/proposed:

Running command ['umount', '/tmp/tmp_56nq7e0/target/dev'] with allowed return codes [0] (shell=False, capture=False)
umount: /tmp/tmp_56nq7e0/target/dev: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
Traceback (most recent call last):
  File "/curtin/curtin/commands/main.py", line 208, in main
    ret = args.func(args)
  File "/curtin/curtin/commands/curthooks.py", line 724, in curthooks
    setup_grub(cfg, target)
  File "/curtin/curtin/commands/curthooks.py", line 354, in setup_grub
    util.install_packages(pkgs, target=target)
  File "/curtin/curtin/util.py", line 570, in install_packages
    aptopts=aptopts, target=target, env=env, allow_daemons=allow_daemons)
  File "/curtin/curtin/util.py", line 549, in run_apt_command
    apt_update(target, env=env, comment=' '.join(cmd))
  File "/curtin/curtin/util.py", line 515, in apt_update
    inchroot(update_cmd, env=env, retries=retries)
  File "/curtin/curtin/util.py", line 329, in __exit__
    do_umount(p)
  File "/curtin/curtin/util.py", line 221, in do_umount
    subp(['umount', mountpoint])
  File "/curtin/curtin/util.py", line 99, in subp
    return _subp(*args, **kwargs)
  File "/curtin/curtin/util.py", line 70, in _subp
    cmd=args)

I'm deploying using a Xenial image from today via the daily stream.

on my MAAS server I have:

maas 1.9.0+bzr4533-0ubuntu1~trusty1
maas-cert-server 0.2.13-0~43~ubuntu14.04.1
maas-cli 1.9.0+bzr4533-0ubuntu1~trusty1
maas-cluster-controller 1.9.0+bzr4533-0ubuntu1~trusty1
maas-common 1.9.0+bzr4533-0ubuntu1~trusty1
maas-dhcp 1.9.0+bzr4533-0ubuntu1~trusty1
maas-dns 1.9.0+bzr4533-0ubuntu1~trusty1
maas-proxy 1.9.0+bzr4533-0ubuntu1~trusty1
maas-region-controller 1.9.0+bzr4533-0ubuntu1~trusty1
maas-region-controller-min 1.9.0+bzr4533-0ubuntu1~trusty1
python-django-maas 1.9.0+bzr4533-0ubuntu1~trusty1
python-maas-client 1.9.0+bzr4533-0ubuntu1~trusty1
python-maas-provisioningserver 1.9.0+bzr4533-0ubuntu1~trusty1
curtin-common 0.1.0~bzr314-0ubuntu1
python-curtin 0.1.0~bzr314-0ubuntu1

Revision history for this message
Jeff Lane  (bladernr) wrote :

This is the curtin_userdata file from my maas server

#cloud-config
debconf_selections:
 maas: |
  {{for line in str(curtin_preseed).splitlines()}}
  {{line}}
  {{endfor}}
{{if third_party_drivers and driver}}
early_commands:
  {{py: key_string = ''.join(['\\x%x' % x for x in map(ord, driver['key_binary'])])}}
  driver_00_get_key: /bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg
  driver_01_add_key: ["apt-key", "add", "/tmp/maas-{{driver['package']}}.gpg"]
  driver_02_add: ["add-apt-repository", "-y", "deb {{driver['repository']}} {{node.get_distro_series()}} main"]
  driver_03_update_install: ["sh", "-c", "apt-get update --quiet && apt-get --assume-yes install {{driver['package']}}"]
  driver_04_load: ["sh", "-c", "depmod && modprobe {{driver['module']}}"]
{{endif}}
late_commands:
  maas: [wget, '--no-proxy', '{{node_disable_pxe_url|escape.shell}}', '--post-data', '{{node_disable_pxe_data|escape.shell}}', '-O', '/dev/null']
{{if third_party_drivers and driver}}
  driver_00_key_get: curtin in-target -- sh -c "/bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg"
  driver_02_key_add: ["curtin", "in-target", "--", "apt-key", "add", "/tmp/maas-{{driver['package']}}.gpg"]
  driver_03_add: ["curtin", "in-target", "--", "add-apt-repository", "-y", "deb {{driver['repository']}} {{node.get_distro_series()}} main"]
  driver_04_update_install: ["curtin", "in-target", "--", "apt-get", "update", "--quiet"]
  driver_05_install: ["curtin", "in-target", "--", "apt-get", "-y", "install", "{{driver['package']}}"]
  driver_06_depmod: ["curtin", "in-target", "--", "depmod"]
  driver_07_update_initramfs: ["curtin", "in-target", "--", "update-initramfs", "-u"]
{{endif}}

power_state:
  mode: reboot

{{if node.split_arch()[0] in {'i386', 'amd64'} }}
apt_mirrors:
  ubuntu_archive: http://{{main_archive_hostname}}/{{main_archive_directory}}
  ubuntu_security: http://{{main_archive_hostname}}/{{main_archive_directory}}
{{else}}
apt_mirrors:
  ubuntu_archive: http://{{ports_archive_hostname}}/{{ports_archive_directory}}
  ubuntu_security: http://{{ports_archive_hostname}}/{{ports_archive_directory}}
{{endif}}

{{if enable_http_proxy}}
{{if http_proxy }}
apt_proxy: {{http_proxy}}
{{else}}
apt_proxy: http://{{server_host}}:8000/
{{endif}}
{{endif}}

Revision history for this message
Scott Moser (smoser) wrote :
Changed in curtin:
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote : Fixed in Curtin 17.1

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
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.