Bug 249118 - net/cloud-init misses rc.d/cloudconfig
Summary: net/cloud-init misses rc.d/cloudconfig
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-04 21:20 UTC by Emmanuel Thomé
Modified: 2020-09-16 08:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (andrey)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Thomé 2020-09-04 21:20:29 UTC
py37-cloud-init-20.2_1 here, on 12.1-RELEASE

The file /usr/local/etc/rc.d/cloudconfig seems to be missing.

Yet, cloudconfig is referenced from both /usr/local/etc/rc.d/cloudinit and /usr/local/etc/rc.d/cloudfinal

rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
[...]
rcorder: requirement `cloudconfig' in file `/usr/local/etc/rc.d/cloudfinal' has no providers.
[...]

This seems to be caused by ports r476024 :

https://reviews.freebsd.org/rP476024

which moves the cloudconfig init script out of sight, before packaging. I suspect that this could be a bug.

The outcome for me is that the modules of the "config" step of cloud-init (e.g., runcmd, among others) are not run.

If I grab the upstream cloud-init-20.2/sysvinit/freebsd/ script and put it in rc.d/cloudconfig, things work as expected.
Comment 1 Andrey Fesenko 2020-09-05 16:18:24 UTC
Thanks for the post, strange copying, need to remove it from the Makefile

> @cd ${WRKSRC} && ${MV} sysvinit/freebsd/cloudconfig config/cloud.cfg

Soon I will test and update to 20.3 and fix it there.
Comment 2 Emmanuel Thomé 2020-09-16 08:41:05 UTC
(In reply to Andrey Fesenko from comment #1)

You might want to consider https://github.com/canonical/cloud-init/pull/567 which just got merged into cloud-init master, and is relevant to freebsd as well. (it's not in 20.3)