Hi! Freebsd does not process openstack user-data: Openstack userdata have filename 'user_data' # ls /media/nuageinit/openstack/latest meta_data.json network_data.json user_data vendor_data.json vendor_data2.json but /usr/libexec/nuageinit try to open 'user-data' ``` f = io.open(path.."/user-data") ```
ah, I see, pure openstack have user_data while ec2 or ovhcloud's baremetal have user-data! I will make nuageinit try both!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=cde6642431bb0ca21aeebc7c521e99c681d31ffb commit cde6642431bb0ca21aeebc7c521e99c681d31ffb Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2024-06-27 08:30:07 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2024-06-27 08:32:14 +0000 nuageinit: check for both user_data and user-data openstack, ec2 and other implementation of cloudinit disagrees on the name of the file "user-data" or "user_data", test both and use the first found PR: 279876 libexec/nuageinit/nuageinit | 17 ++++++++++---- libexec/nuageinit/tests/nuageinit.sh | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-)
metadata too: # ls /media/nuageinit/ec2/latest meta-data.json user-data # ls /media/nuageinit/openstack/latest meta_data.json network_data.json user_data vendor_data.json vendor_data2.json
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=28094582f0a5b1e6cbded199a96dd4ad2773f989 commit 28094582f0a5b1e6cbded199a96dd4ad2773f989 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2024-06-27 08:30:07 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2024-09-03 07:05:24 +0000 nuageinit: check for both user_data and user-data openstack, ec2 and other implementation of cloudinit disagrees on the name of the file "user-data" or "user_data", test both and use the first found PR: 279876 (cherry picked from commit cde6642431bb0ca21aeebc7c521e99c681d31ffb) libexec/nuageinit/nuageinit | 17 ++++++++++---- libexec/nuageinit/tests/nuageinit.sh | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-)