Skip to content

cloud-init password sets to wrong value, when DNS config changed #1768

Open
@CRASH-Tech

Description

@CRASH-Tech

Describe the bug
Can't login to VM after cloud-init DNS config changed. But some password hash present in /etc/shadow.
It's OK when using user_data_file_id, but fails when use user_account.
If after problem I manually set password via Proxmox GUI and reboot VM - I can login again.
All checks in ubuntu 22.04(cloudimg)

To Reproduce
Steps to reproduce the behavior:

  1. Create a resource 'proxmox_virtual_environment_vm' with user password
  2. Check ssh login - OK
  3. Change DNS config in cloud-init (vm reboots)
  4. Check ssh login - FAIL
  • Single or clustered Proxmox: cluster
  • Proxmox version: 8.3.3
  • Provider version: 0.70.0
  • Terraform/OpenTofu version: v1.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    • Status

      📥 Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions