New Question

ConfigDrive specify paths to user-data

asked 2018-05-24 22:16:38 +0300

lordchariot gravatar image

updated 2018-05-24 22:17:42 +0300

I have a system where the [meta|user]-data is stored on the root of an ISO. I have no control over directory structure or filenames of the data.


Cloudbaseinit is able to find and read the files, and copy them:

DEBUG [-] Metadata copied to folder: 'C:\\Windows\\TEMP\\tmp8cdo0gm5'

but subsequently the files cannot be found and used because the paths are looking for them in the openstack\latest\ directory.

ERROR   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\services\", line 80, in _get_data
ERROR     with open(norm_path, 'rb') as stream:
ERROR FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Windows\\TEMP\\tmp8cdo0gm5\\openstack\\latest\\meta_data.json'

Is there a way to explicitly specify the directory and file names?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2018-05-25 20:07:34 +0300

lordchariot gravatar image

I was able to add the NoCloud patches in the Python. I does, indeed, work the way I expected. How long until this patch is merged?

edit flag offensive delete link more

answered 2018-05-25 10:46:19 +0300

avladu gravatar image


Cloudbase-init supports the following metadata formats: Azure, OpenStack, CloudStack, EC2, MAAS and Open Nebula.

What metadata format are you using?

"explicitly specify the directory and file names" -> the main problem is not the paths themselves, but the format the metadata has.

According to, you might be using NoCloud metadata format. Is this true? Currently, there is a work in progress patch to add support for it:

Thank you,
Adrian Vladu

edit flag offensive delete link more


The cloud we are using is Oracle's Ravello. The meta-data files are in regular #cloud-config YAML format. When used on a Linux box, we do use the NoCloud data source. I assumed that by restricting the metadata_serices to ConfigDriveService and config_drive_types to ISO, that would behave the same.

lordchariot gravatar imagelordchariot ( 2018-05-25 17:18:10 +0300 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2018-05-24 22:16:38 +0300

Seen: 62 times

Last updated: May 25