New Question
0

cloudbase-init for windows instances on Rackspace Windows server 2008 R2

asked 2015-08-17 12:36:49 +0200

kaizersose gravatar image

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/late...data.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/late...data.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/late...data.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/late...data.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/late...data.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/late...data.json ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-09-29 00:05:10 +0200

Hello kaizersose,

For future posts with long traces/logs, please use a paste service like sprunge.us, pastebin.com or paste.openstack.org to make the log parsing more easier. As you can see in the logs, you're using in the instance a configuration ISO drive as metadata provider and the service was unable to extract it correctly through the bsdtar utility (and that's why the userdata plugins won't reach your script content), so maybe something it's scrambled in your installation or you don't have the appropiate MSI installer with the used architecture.

Please provide more details about the windows instance type/version you're using and also try with one of the continuous (beta) installers that suits you best: http://www.cloudbase.it/cloud-init-wi...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-08-17 12:36:49 +0200

Seen: 757 times

Last updated: Sep 29 '15