← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1712851] [NEW] cloudinit can`t mount configdrive partition

 

Public bug reported:

image for Ironic builded that way:
DIB_CLOUD_INIT_DATASOURCES="Ec2, ConfigDrive, OpenStack" disk-image-create -o baremetal-$DISTRO_NAME-$DIB_RELEASE $DISTRO_NAME baremetal bootloader -p linux-image-generic-lts-xenial

config-drive partition is created by default ironic coreos images:
root@ubuntu:~# lsblk  -f
NAME   FSTYPE  LABEL           MOUNTPOINT
sda    ext4    cloudimg-rootfs
└─sda1 iso9660 config-2


cloudinit.log:
2017-08-24 18:48:50,130 - util.py[DEBUG]: Running command ['mount', '-o', 'ro,sync', '/dev/sda1', '/tmp/tmpN_ixJ1'] with allowed return codes [0] (shell=False, capture=True)
2017-08-24 18:48:50,203 - util.py[DEBUG]: Recursively deleting /tmp/tmpN_ixJ1
2017-08-24 18:48:50,203 - cloud-init[DEBUG]: No local datasource found


I try command by hand:
root@ubuntu:~# mount -o ro,sync /dev/sda1 /mnt
mount: /dev/sda1 already mounted or /mnt busy

I modify command by hand:
root@ubuntu:~# mount -o loop,ro,sync /dev/sda1 /mnt ### mount successful

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Affects: ironic-python-agent
     Importance: Undecided
         Status: New

** Also affects: ironic-python-agent
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1712851

Title:
  cloudinit can`t mount configdrive partition

Status in cloud-init:
  New
Status in ironic-python-agent:
  New

Bug description:
  image for Ironic builded that way:
  DIB_CLOUD_INIT_DATASOURCES="Ec2, ConfigDrive, OpenStack" disk-image-create -o baremetal-$DISTRO_NAME-$DIB_RELEASE $DISTRO_NAME baremetal bootloader -p linux-image-generic-lts-xenial

  config-drive partition is created by default ironic coreos images:
  root@ubuntu:~# lsblk  -f
  NAME   FSTYPE  LABEL           MOUNTPOINT
  sda    ext4    cloudimg-rootfs
  └─sda1 iso9660 config-2

  
  cloudinit.log:
  2017-08-24 18:48:50,130 - util.py[DEBUG]: Running command ['mount', '-o', 'ro,sync', '/dev/sda1', '/tmp/tmpN_ixJ1'] with allowed return codes [0] (shell=False, capture=True)
  2017-08-24 18:48:50,203 - util.py[DEBUG]: Recursively deleting /tmp/tmpN_ixJ1
  2017-08-24 18:48:50,203 - cloud-init[DEBUG]: No local datasource found

  
  I try command by hand:
  root@ubuntu:~# mount -o ro,sync /dev/sda1 /mnt
  mount: /dev/sda1 already mounted or /mnt busy

  I modify command by hand:
  root@ubuntu:~# mount -o loop,ro,sync /dev/sda1 /mnt ### mount successful

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1712851/+subscriptions


Follow ups