Azure / azure-linux-extensions

Linux Virtual Machine Extensions for Azure
Apache License 2.0
309 stars 255 forks source link

[VMAccess extension] VMAccess extension can't add ed25519 ssh public key on azure portal for ubuntu 24.04 #1998

Open wbypai opened 4 days ago

wbypai commented 4 days ago

Ubuntu 24.04.1 LTS

add ssh-ed25519 in authorized_keys for ubuntu2404, success on azure portal Image

waagent.log

2024/11/19 09:46:43 VMAccess started to handle. 2024/11/19 09:46:43 [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] cwd is /var/lib/waagent/Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8 2024/11/19 09:46:43 [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] Change log file to /var/log/azure/Microsoft.OSTCExtensions.VMAccessForLinux/extension.log 2024-11-19T09:46:45.174745Z INFO ExtHandler [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] Command: extension_shim.sh -c ./vmaccess.py -e [stdout] 2024/11/19 09:46:43 [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] Current sequence number, 7, is not greater than the sequence number of the most recent executed configuration. Exiting... [stderr] /var/lib/waagent/Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8/./vmaccess.py:333: SyntaxWarning: invalid escape sequence '\s' pattern = '^{0}\s'.format(user_name) /var/lib/waagent/Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8/./vmaccess.py:385: SyntaxWarning: invalid escape sequence '\s' if re.search("red\s?hat", os_name, re.IGNORECASE): 2024-11-19T09:46:45.176343Z INFO ExtHandler ExtHandler Downloading extension manifest 2024-11-19T09:46:45.262962Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Target handler state: enabled [etag_6651346418787353852] 2024-11-19T09:46:45.263474Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] [Enable] current handler state is: enabled 2024-11-19T09:46:45.263599Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Update settings file: 1.settings 2024-11-19T09:46:45.263818Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Requested extension state: enabled 2024-11-19T09:46:45.264094Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Enable extension: [bin/run-command-shim enable] 2024-11-19T09:46:45.264380Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Executing command: /var/lib/waagent/Microsoft.CPlat.Core.RunCommandLinux-1.0.5/bin/run-command-shim enable with environment variables: {"AZURE_GUEST_AGENT_UNINSTALL_CMD_EXIT_CODE": "NOT_RUN", "AZURE_GUEST_AGENT_EXTENSION_PATH": "/var/lib/waagent/Microsoft.CPlat.Core.RunCommandLinux-1.0.5", "AZURE_GUEST_AGENT_EXTENSION_VERSION": "1.0.5", "AZURE_GUEST_AGENT_WIRE_PROTOCOL_ADDRESS": "168.63.129.16", "ConfigSequenceNumber": "1", "AZURE_GUEST_AGENT_EXTENSION_SUPPORTED_FEATURES": "[{\"Key\": \"ExtensionTelemetryPipeline\", \"Value\": \"1.0\"}]"}

only has ssh-rsa in authorized_keys

Image