hi, i am trying to pass some string to a file using the following user_data:
rem cmd
echo kuku > c:\temp\kukareku.txt
however the file is not created. here is the log:
2015-08-16 14:13:53.757 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:13:56.457 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.httpservice.HttpService' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:13:56.628 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:13:56.628 1264 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\network.py:35 2015-08-16 14:13:56.721 1264 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\network.py:35 2015-08-16 14:13:56.737 1264 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\network.py:35 2015-08-16 14:13:56.737 1264 DEBUG cloudbaseinit.utils.network [-] Setting gateway for host: 169.254.169.254 checkmetadataiproute C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\network.py:60 2015-08-16 14:13:57.688 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:70 2015-08-16 14:14:18.842 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:70 2015-08-16 14:14:43.881 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:70 2015-08-16 14:15:08.918 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:70 2015-08-16 14:15:33.957 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:70 2015-08-16 14:15:58.994 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:70 2015-08-16 14:16:20.023 1264 DEBUG cloudbaseinit.metadata.services.httpservice [-] Metadata not found at URL 'http://169.254.169.254/' load C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:56 2015-08-16 14:16:20.023 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.configdrive.ConfigDriveService' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:16:20.117 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:16:20.210 1264 DEBUG cloudbaseinit.metadata.services.osconfigdrive.windows [-] Looking for Config Drive in VFAT filesystems getconfigdrivefiles C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\osconfigdrive\windows.py:162 2015-08-16 14:16:20.210 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:16:20.289 1264 WARNING cloudbaseinit.utils.windows.vfat [-] Could not retrieve label for VFAT drive path '\\.\PHYSICALDRIVE0' 2015-08-16 14:16:20.289 1264 WARNING cloudbaseinit.utils.windows.vfat [-] mlabel failed with error "init :: sector size (190) not a small power of two\r\nCannot initialize '::'\r\nC:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\bin\mlabel: Cannot initialize drive\r\n" 2015-08-16 14:16:20.319 1264 WARNING cloudbaseinit.utils.windows.vfat [-] Could not retrieve label for VFAT drive path '\\.\PHYSICALDRIVE1' 2015-08-16 14:16:20.319 1264 WARNING cloudbaseinit.utils.windows.vfat [-] mlabel failed with error "init :: non DOS media\r\nCannot initialize '::'\r\nC:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\bin\mlabel: Cannot initialize drive\r\n" 2015-08-16 14:16:20.335 1264 WARNING cloudbaseinit.utils.windows.vfat [-] Could not retrieve label for VFAT drive path '\\.\PHYSICALDRIVE2' 2015-08-16 14:16:20.335 1264 WARNING cloudbaseinit.utils.windows.vfat [-] mlabel failed with error "init :: non DOS media\r\nCannot initialize '::'\r\nC:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\bin\mlabel: Cannot initialize drive\r\n" 2015-08-16 14:16:20.335 1264 DEBUG cloudbaseinit.metadata.services.osconfigdrive.windows [-] Looking for Config Drive in raw HDDs getconfigdrivefiles C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\osconfigdrive\windows.py:166 2015-08-16 14:16:20.335 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:16:20.351 1264 DEBUG cloudbaseinit.metadata.services.osconfigdrive.windows [-] ISO9660 disk found on raw HDD: \.\PHYSICALDRIVE2 extractisodiskfile C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\osconfigdrive\windows.py:136 2015-08-16 14:16:20.444 1264 ERROR cloudbaseinit.metadata.factory [-] Failed to load metadata service 'cloudbaseinit.metadata.services.configdrive.ConfigDriveService' 2015-08-16 14:16:20.444 1264 ERROR cloudbaseinit.metadata.factory [-] Failed to execute "bsdtar" from path "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe" with exit code: -1073741515
2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory Traceback (most recent call last): 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\factory.py", line 50, in getmetadataservice 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory if service.load(): 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\configdrive.py", line 58, in load 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory checkvfat=CONF.configdrivevfat) 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\osconfigdrive\windows.py", line 168, in getconfigdrivefiles 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory targetpath) 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\osconfigdrive\windows.py", line 191, in _getconfdrivefromrawhdd 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory self.extractisofiles(osutils, isofilepath, targetpath) 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\osconfigdrive\windows.py", line 126, in extractisofiles 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory 'out': out, 'err': err}) 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory CloudbaseInitException: Failed to execute "bsdtar" from path "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe" with exit code: -1073741515 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory 2015-08-16 14:16:20.444 1264 TRACE cloudbaseinit.metadata.factory 2015-08-16 14:16:20.444 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.ec2service.EC2Service' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:16:20.460 1264 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:26 2015-08-16 14:16:20.460 1264 DEBUG cloudbaseinit.metadata.services.ec2service [-] Getting metadata from: http://169.254.169.254/2009-04-04/meta-data/local-hostname _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\ec2service.py:74 2015-08-16 14:16:45.513 1264 DEBUG cloudbaseinit.metadata.services.ec2service [-] Getting metadata from: http://169.254.169.254/2009-04-04/meta-data/local-hostname getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\ec2service.py:74 2015-08-16 14:17:10.552 1264 DEBUG cloudbaseinit.metadata.services.ec2service [-] Getting metadata from: http://169.254.169.254/2009-04-04/meta-data/local-hostname getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\ec2service.py:74 2015-08-16 14:17:35.589 1264 DEBUG cloudbaseinit.metadata.services.ec2service [-] Getting metadata from: http://169.254.169.254/2009-04-04/meta-data/local-hostname getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\ec2service.py:74