Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] helpers.py[DEBUG]: Running config-disk_setup using lock (<FileLock using file '/var/lib/cloud/instances/i-550232e2/sem
/config_disk_setup'>)
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] DataSourceEc2.py[DEBUG]: Unable to convert /dev/xvdf to a device
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Partitioning disks: {'/dev/xvdf': {'layout': [100], 'type': 'mbr', 'overwrite': False}}
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Creating new partition table/disk
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Checking values for /dev/xvdf definition
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Checking against default devices
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Checking if device /dev/xvdf is a valid device
Nov 18 17:37:23 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/bin/lsblk', '--pairs', '--output', 'NAME,TYPE,FSTYPE,LABEL', '/dev/xvdf', '--nodeps'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Checking if device layout matches
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/sbin/udevadm', 'settle'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/sbin/blockdev', '--rereadpt', '/dev/xvdf'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/sbin/udevadm', 'settle'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/sbin/sfdisk', '-l', '/dev/xvdf'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Checking if device is safe to partition
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/bin/lsblk', '--pairs', '--output', 'NAME,TYPE,FSTYPE,LABEL', '/dev/xvdf'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Creating partition on /dev/xvdf took 0.122 seconds
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[WARNING]: Failed partitioning operation#012'list' object has no attribute 'splitlines'
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Failed partitioning operation#012'list' object has no attribute 'splitlines'#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_disk_setup.py", line 57, in handle#012 func=mkpart, args=(disk, definition))#012 File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1875, in log_time#012 ret = func(*args, **kwargs)#012 File "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_disk_setup.py", line 684, in mkpart#012 if not overwrite and (is_disk_used(device) or is_filesystem(device)):#012 File "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_disk_setup.py", line 308, in is_disk_used#012 if len(use_count.splitlines()) > 1:#012AttributeError: 'list' object has no attribute 'splitlines'
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: setting up filesystems: [{'device': '/dev/xvdf', 'partition': 'any', 'label': 'None', 'overwrite': False, 'filesystem': 'ext4'}]
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] DataSourceEc2.py[DEBUG]: Unable to convert /dev/xvdf to a device
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Creating new filesystem.
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Checking /dev/xvdf against default devices
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Using the raw device to place filesystem None on
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: File system None will be created on /dev/xvdf
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Creating file system None on /dev/xvdf
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] cc_disk_setup.py[DEBUG]: Using cmd: /sbin/mkfs.ext4 /dev/xvdf -L None
Nov 18 17:37:24 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Running command ['/sbin/mkfs.ext4', '/dev/xvdf', '-L', 'None'] with allowed return codes [0] (shell=False, capture=True)
Nov 18 17:37:30 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Creating fs for /dev/xvdf took 6.674 seconds
Nov 18 17:37:30 ip-172-31-28-34 [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/i-550232e2/sem/config_mounts - wb: [420] 20 bytes
Nov 18 17:37:30 ip-172-31-28-34 [CLOUDINIT] helpers.py[DEBUG]: Running config-mounts using lock (<FileLock using file '/var/lib/cloud/instances/i-550232e2/sem/config_mounts'>)
#cloud-config
disk_setup:
/dev/xvdf:
type: 'mbr'
layout:
- 100
overwrite: false
fs_setup:
- label: None
filesystem: ext4
device: /dev/xvdf
partition: any
overwrite: false
mounts:
- [ xvdf1, /disk0 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.