[15:16] Quark: try changing "primary-group" to "primary_group"? Also try validating the user-data in cloud-init to see what it says? [15:17] Data validation passes. [15:17] also did the cloud-init.log show anything? [15:18] No, just the cloud-init-output.log had the error. [15:18] strange, check the cloud-init.log for when it does user creation to see what it shows [15:18] Let me try changing that primary-group (that's a typo there). [15:20] it its a Subiquity issue, rather than cloud-init, then the best place to discuss it would be the #ubuntu-server channel [22:20] Is it possible to create a directory with cloud-init? [22:34] bahamat: not with write_files; so runcmd it has to be; or if it needs to happen very early, bootcmd [22:37] meena: Ok, thanks. I'm trying to do an nfs mount and the directory I want to use doesn't exist. [23:31] bahamat: according to the documentation, cc_mount creates directories that don't exist first [23:33] bahamat: so, if it doesn't, I'd call that a bug [23:33] Hmm. Well, my nfs mount isn't being configured. [23:34] Here's the cloud config I'm using: https://gist.github.com/bahamat/01db41644b3885c3f1fdc3b0be1241b1 [23:34] Can you provide a pastie with a snipped? [23:35] Ops, we typed at the same time. :-D [23:35] :-D [23:36] Running the mount command manually mounts the share, so that part is working. [23:38] Running `cloud-init schema --config-file=user-data --annotate` renders `E1: Additional properties are not allowed ('mount' was unexpected)` [23:40] Oh, mounts. [23:40] Damn. [23:41] OK, let's give this another shot. [23:47] *most* directives are in plural… except runcmd and bootcmd… and, let's not get into details about consistency [23:50] bahamat: your cloud-config content is not valid [23:51] it is "mounts:", not "mount:" [23:52] ah, ok, you noticed ;-) [23:52] Yeah, thanks though :-) [23:52] you could validate the YAML to check via "cloud-init schema" command [23:52] I don't use cloud-init a lot myself, but I have a lot of users who do, so I provide examples for them. Hopefully working ones :-) [23:54] The weird thing is that I thought I had, and it returned no errors. [23:55] But later validating it again showed both that "mount" should be "mounts", and that fields 4 and 5 need to be strings, not numbers (which, that one is kind of annoying, because they *are* numbers) [23:55] also "mounts" runs in cloud-init "init" stage whereas "packages:" runs in cloud-init "final" stage and so the mount will be attempted BEFORE the nfs-common package is installed [23:56] So there's no way to do this then... [23:56] unless I install the package via bootcmd or something. [23:56] runcmd as meena suggested? [23:58] bahamat: "fields 4 and 5 need to be strings, not numbers" - you mean fields 5 & 6? the cloud-init is YAML and that's why they need to be quoted as otherwise a number "0" or beginning with "0" will not be treated as a decimal 0 [23:59] Oh, that's right, it's octal.