Comment 10 for bug 1801364

Revision history for this message
Eric Lafontaine (elafontaine) wrote :

I'm trying to understand how this bug is considered fixed by the following commit; https://git.launchpad.net/cloud-init/commit/?id=067516d7

We have resolved the issue by just not base64 decoding;
- if 'random_seed' in metadata:
- random_seed = metadata['random_seed']
- try:
- metadata['random_seed'] = base64.b64decode(random_seed)
- except (ValueError, TypeError) as e:
- raise BrokenMetadata("Badly formatted metadata"
- " random_seed entry: %s" % e)

Could somebody help me with some information about why we try to get the random_seed and interpret it?

I can't figure it out; the commit where this was added was the same as the initial Openstack. Openstack documentation doesn't say if we should be injecting this somewhere either.