Azure: Azure datasource needs to wait longer for SSH pubkey to be dropped by waagent
Bug #1717611 reported by
Paul Meyer
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Paul Meyer |
Bug Description
In Azure SSH pubkeys are transported in a certificate through the wireserver protocol. When cloud-init is configured to use waagent, which is the current default, cloud-init will wait maxwait=60 seconds for waagent to drop the .crt files corresponding to the fingerprint that was mentioned in the ovf-env.xml.
We've had a couple of cases where the wireserver was flaky from more than 1 minute during provisioning which yielded a user without password or keys. These VM's are not usable without further action, we would rather have cloud-init wait forever for these .crt files to be provided. Azure VM provisioning will timeout and kill the VM when provisioning takes too long.
Related branches
~paul-meyer/cloud-init:lp1717611
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Approve
-
Diff: 29 lines (+7/-3)1 file modifiedcloudinit/sources/DataSourceAzure.py (+7/-3)
Changed in cloud-init: | |
status: | New → Fix Committed |
assignee: | nobody → Paul Meyer (paul-meyer) |
importance: | Undecided → Medium |
description: | updated |
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Sep 14 10:52:27 vm0000TL cloud-init[1032]: 2017-09-14 10:52:22,886 - DataSourceAzure .py[WARNING] : Still missing files after 60 seconds: {'/var/ lib/waagent/ F87B398E4F6D838 5585D905BA9166B B0EACB1A98. crt'} .py[WARNING] : Did not find files, but going on: {'/var/ lib/waagent/ F87B398E4F6D838 5585D905BA9166B B0EACB1A98. crt'} .py[WARNING] : failed to convert the crt files to pubkey: ['/var/ lib/waagent/ F87B398E4F6D838 5585D905BA9166B B0EACB1A98. crt']
Sep 14 10:52:27 vm0000TL cloud-init[1032]: 2017-09-14 10:52:22,887 - DataSourceAzure
Sep 14 10:52:27 vm0000TL cloud-init[1032]: 2017-09-14 10:52:22,919 - DataSourceAzure