Monday, 2021-11-29

holtgreweHi. openstack.cloud.server does not support putting files into the configdrive, does it? I tried to add this locally but got stuck. The python client puts in the result of `io.open(path, 'rb')` which cannot be JSON serialized and thus not easily be pushed through Ansible...15:37
sshnaidmholtgrewe, can you show an example of what you're doing?15:43
holtgrewesshnaidm, I want to do the equivalent of this here: https://docs.openstack.org/nova/queens/user/config-drive.html#enable-and-access-the-configuration-drive and pass in /etc/network/interfaces15:44
holtgreweI can set `config_drive: true` in `openstack.cloud.server` which generates the config drive correctly but I cannot override any file inside.15:45
sshnaidmholtgrewe, probably it's not implemented, I didn't try it before..15:46
holtgrewesshnaidm, I tried to add this. However, looking at the python openstack client, you need to pass in a dict {"/path/to/file": io.open("path/to/local/file", "rb") }15:46
holtgrewesshnaidm, And if you try to do this then ansible tries to serialize the result of io.open() through to JSON which does not work.15:47
sshnaidmholtgrewe, you can put a patch and probably we can find out something15:48
holtgrewesshnaidm, OK, thanks15:51
opendevreviewManuel Holtgrewe proposed openstack/ansible-collections-openstack master: Adding "files/config_drive_files" to server module.  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/81965716:16
*** holtgrewe is now known as holtgrewe^away16:19
holtgrewe^awaysshnaidm, let me know if you need anything else16:19
*** sshnaidm is now known as sshnaidm|afk16:22

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!