Activity log for bug #1911227

Date Who What changed Old value New value Message
2021-01-12 17:21:02 Dan Watkins bug added bug
2021-01-12 17:21:07 Dan Watkins cloud-init: status New Triaged
2021-01-12 17:21:11 Dan Watkins cloud-init: importance Undecided Medium
2021-01-12 17:21:49 Dan Watkins summary cc_seed_random: unexpectedly appends cloud's random_seed to specified seed cc_seed_random: unexpectedly appends cloud's random_seed to specified seed data
2021-01-12 17:26:45 Dan Watkins description The test_seed_random_data test specifies this user-data: #cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed and asserts that that is the exact content of /root/seed. If we're using a datasource which sets random_seed in its metadata (i.e. Azure and OpenStack, at least), this test fails: cc_seed_random will _append_ the cloud's random_seed to the given data before writing it out. To be clear, the bug here is that this is unexpected: we do not document this behaviour. I can't think of a compelling case for not behaving in this way: more entropy is good, and we have write_files if users really do want to write out exact content to a path. The test_seed_random_data test specifies this user-data: #cloud-config random_seed:   data: 'MYUb34023nD:LFDK10913jk;dfnk:Df'   encoding: raw   file: /root/seed and asserts that that is the exact content of /root/seed. If we're using a datasource which sets random_seed in its metadata (i.e. Azure and OpenStack, at least), this test fails: cc_seed_random will _append_ the cloud's random_seed to the given data before writing it out. To be clear, the bug here is that this is unexpected: we do not document this behaviour. I can't think of a compelling case for not behaving in this way: more entropy is good, and we have write_files if users really do want to write out exact content to a path. The TestSeedRandomData.test_seed_random_data integration test assumes the "exact writing" behaviour, so will also need to be updated.
2021-01-12 18:18:25 Dan Watkins cloud-init: status Triaged In Progress
2021-01-13 15:33:06 Dan Watkins cloud-init: status In Progress Fix Released
2023-05-12 11:19:57 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/3827