Invalid cloud-config provided warning but still works -- how to remove?

Bug #1977818 reported by kimsia sim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

I get an invalid cloud-config warning despite everything working as expected.

This is the question i asked in superuser https://superuser.com/questions/1725127/invalid-config-for-cloud-init-but-apparently-still-works-how-do-i-remove-the

the cloud provider is DigitalOcean

this is not the full config

#cloud-config
package_update: true
package_upgrade: true
users:
  - name: sammy
    ssh-authorized-keys:
      - ssh-rsa abcd...
      - ssh-rsa efgh...
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    groups: sudo
    shell: /bin/bash

See attached for the logs

Revision history for this message
kimsia sim (kimsia) wrote :
summary: - Invalid cloud-config provided
+ Invalid cloud-config provided warning but still works -- how to remove?
Revision history for this message
James Falcon (falcojr) wrote :

If you look at the docs (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#users-and-groups), the key name is ssh_authorized_keys rather than ssh-authorized-keys. The latter is deprecated, though it looks like a deprecation warning was missed.

This should work with no warnings:

#cloud-config
package_update: true
package_upgrade: true
users:
  - name: sammy
    ssh_authorized_keys:
      - ssh-rsa abcd
      - ssh-rsa efgh

Changed in cloud-init:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
kimsia sim (kimsia) wrote :

Thank you. I will try this out and come back to confirm later.

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.