-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: A password is being set for the default cloud-init user when cipassword
is not-defined or null
#1097
Comments
Just saw that also.. Below is the command copied from the "Cluster log" tab:
Let me know if more information is required. |
I spent some time on this and found the following. See the file: https://github.com/Telmate/proxmox-api-go/blob/032717b543a596ebae3013da4cda592052a02d17/proxmox/config_qemu_cloudinit.go#L131 if config.UserPassword != nil {
params["cipassword"] = *config.UserPassword
} When a new cloud-init config is created, UserPassword field is set to a pointer to an empty string ( What's interesting, there is another check for if config.Username != nil && *config.Username != "" {
params["ciuser"] = *config.Username
} So I guess we should add the same to the UserPassword field condition. I tried to set TF state still has @Tinyblargon could you please have another look here? I can make a PR into the |
Found some time and raised the PR there :) |
When adding a
cloud-init
configuration drive, a password is automatically generated and set for the default user. The attributecipassword
is not set, and setting the value tonull
does not remedy the issue.Code Example
Log/Output
The VM config from PVE node:
The text was updated successfully, but these errors were encountered: