Robert, Can you please attach logs?
cloud-init collect-logs
The 'persist_instance_data' in DataSource tries to accomodate for this.
it uses util.json_dumps which uses json_serialize_default.
Here is an example:
$ python3 -c 'from cloudinit import util; print(util.json_dumps({"bin": open("/dev/urandom", "rb").read(8)}))' { "bin": "ci-b64:doWuT19jT3g=" }
Notice that the dump adds 'ci-b64' in front of the value.
I'm guessing that there is a differnce in python versions that is causing a problem.
Please attach logs. thanks.
Robert,
Can you please attach logs?
cloud-init collect-logs
The 'persist_ instance_ data' in DataSource tries to accomodate for this.
it uses util.json_dumps which uses json_serialize_ default.
Here is an example:
$ python3 -c 'from cloudinit import util; print(util. json_dumps( {"bin": open("/ dev/urandom" , "rb").read(8)}))' doWuT19jT3g= "
{
"bin": "ci-b64:
}
Notice that the dump adds 'ci-b64' in front of the value.
I'm guessing that there is a differnce in python versions that is causing a problem.
Please attach logs.
thanks.