From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id D97736C0CB for ; Sun, 21 Feb 2021 18:47:16 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CC23528A16 for ; Sun, 21 Feb 2021 18:47:16 +0100 (CET) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B888D28A09 for ; Sun, 21 Feb 2021 18:47:15 +0100 (CET) Received: by mail-wm1-x32e.google.com with SMTP id i7so6414631wmb.0 for ; Sun, 21 Feb 2021 09:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=odiso-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=BNxLmEADc6AMcfjWdDQ2hkibhs0pB8X3xrOD1VmrHO0=; b=wxUMYbrDW3lFE2zeLWk8SEsdNkvw3fp0KUsEkMKPHIK0HNktoj508E8V72NgzxqtLR XFIKNaFNvErn5nMOG6lIzgcwMWLS+ODIMwws6jkfsqtrEjyg2yDG2Yldk1kAp+KHlZgx 6t4bGTClvpa5LH4LKkE/AtFQ6IALzMCK2ree73wEp9ZnefVNQifQeZ2Jv679EaisTpA9 Eshi1r16yExmGDJ6CxaihfYiBxue9YBFjY7xWG1z4XbRQn5nW6NuFRuZs3YRERIwFhUN IxrIywsgKnZXtU7cEndixj6oWwyHo+iNEX2N7B5/aw9KvkK6/oaWtx+8l09UgCbZ4r4M 6hMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=BNxLmEADc6AMcfjWdDQ2hkibhs0pB8X3xrOD1VmrHO0=; b=kbPIcsYujDfbJp3FYXibamQNPIbRUpBORI1P+P2e7WEp4mgssBCkuNEgzfV9udKJJn I21x7JhMd1Eyjh1gbwBACgvmrgLvf9Or0dDots01WCKTdFO7+LvTujjr1iyczI9htIXl PXpQTlZPNkGCG1s/qk2V0VI/jsWIbkvkG/tEyyjy9MsIWWYjsA7R0aZfPBq4fyStJdbR XaRqnlbOa7zcyY4tt0afUnHJALTsFclYSA5zUji/9/KfE8jBLEle5hWWzrIY1uaP9LDL NerunQxAVMjwqRp+YjG1vCQAps3QGo8+nKnmLhPwtXge48wGvyomUuNVlltfvzjy7upJ 7/xg== X-Gm-Message-State: AOAM5336hapyOWGDPu4+FMm2bUG0RxGpHHNBgMv5H9CyQ+/36cwq8Ate 3cZkNiujOe7kxgu2W+mfo6T3yP6InhXkX29x X-Google-Smtp-Source: ABdhPJwRIq7dXTGx2w527P5mBfIVtPeHXyOf5F3EjAqEpxbpAgQsQDv21meY8uJCedvJW+P0oLvEow== X-Received: by 2002:a05:600c:210f:: with SMTP id u15mr308492wml.119.1613929629183; Sun, 21 Feb 2021 09:47:09 -0800 (PST) Received: from ?IPv6:2a0a:1580:0:1::100c? (ovpn1.odiso.net. [2a0a:1580:2000::3f]) by smtp.gmail.com with ESMTPSA id f14sm20848586wmg.28.2021.02.21.09.47.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 09:47:08 -0800 (PST) Message-ID: From: aderumier@odiso.com To: pve-devel Date: Sun, 21 Feb 2021 18:47:06 +0100 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.117 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] cloudinit: question about cloudinit pending values && hostname/mac address changes X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2021 17:47:16 -0000 Hi, I have some question about cloudinit hotplug pending values. Currently, when vm is running, we keep cloudinit specific values (ipconfigX, dns, ssh,...) in pending until we regenerate image manually. But some other change, like vm name (use for hostname), or nic mac address . (use to match interface in config nodrive format), are not keeped as pending. Why don't we simply auto regenerate the cloudinit config drive after changes? (and don't use pending values like "pending cdrom generation"). Anyway, when vm is offline, we don't have pending state at all, and config drive is generated only after at vmstart. Also, currently, to regenerated the iso, we need 2 api call, 1 to remove cdrom , 1 to replug cdrom with new config. I really would like to be able to change cloud-init config like lxc, simply update values, and get them auto apply. What do you think about it ?