Page MenuHomeVyOS Platform

Cloud-init not running userdata runcmd
Closed, ResolvedPublicBUG

Description

Scripts and runcmd commands passed into cloud-init via userdata are not getting run.
I suspect the issue is in the cloud-init config template (https://github.com/vyos/vyos-cloud-init/blob/current/config/cloud.cfg.tmpl). While runcmd is under cloud_final_modules, I've found nothing in userdata will get run unless you also include the scripts-user module.

Details

Difficulty level
Easy (less than an hour)
Version
1.2.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

If someone can confirm I'm linking to the correct github repo (there are two cloud init ones under vyos), I could submit a pull request for this. @syncer, @Unicron?

syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.
zsdc claimed this task.
zsdc added a subscriber: zsdc.

This was resolved via:
https://github.com/vyos/vyos-cloud-init/commit/1607eec32641ad93ea211e447336b3366c28de06
https://github.com/vyos/vyos-cloud-init/commit/3980057ce140ea6896cd3f7cd4299cfd29cf234a

Feel free to reopen the task if there is something more, not covered by newly available tools.