Release of cloud-init 22.2

hello,

Sorry for asking here in this forum, but I did not find any forums discussing the problem I met with.

I have downloaded and installed Ubuntu 18.04.6 Server

batman@bat-image:~$ lsb_release -r
Release:	18.04
batman@bat-image:~$ 

The problem is, I have got error message when I check the “cloud-init schema --system”, and I think this somehow related to the failure of VM deployment in Openstack, when I use the Ubuntu 18.04.6 image as base.

Could you please help me how to fixed this?

I would like to highlight, below described problem does not in Ubuntu 20.X, but for other reasons, I cannot use newer Ubuntu than 18.04.6.

Below please find some details.

batman@bat-image:~$ sudo cloud-init schema --system
Error:
Cloud config schema errors: users.0: {'gecos': 'batman', 'groups': {'sudo', 'dip', 'lxd', 'cdrom', 'adm', 'plugdev'}, 'lock_passwd': False, 'name': 'batman', 'passwd': '$6$fh5h17OAjISEUjmk$djgw1CD0KzK16hEmEZbkNUhHAYD10NMcS0NkTsYgsoobwCGmneYvjLH8LrO8XEry59jJ7l4TYlB1PF6QaMWqu/', 'shell': '/bin/bash'} is not valid under any of the given schemas
batman@bat-image:~$  

The version of cloud-init:

batman@bat-image:~$ cloud-init -v
/usr/bin/cloud-init 22.2-0ubuntu1~18.04.3
batman@bat-image:~$

The users defined in the /etc/cloud/cloud.cfg:

system_info:
   # This will affect which distro class gets used
   distro: ubuntu
   # Default user name + that default users groups (if added/used)
   default_user:
     name: ubuntu
     lock_passwd: True
     gecos: Ubuntu
     groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
     sudo: ["ALL=(ALL) NOPASSWD:ALL"]
     shell: /bin/bash

Thanks for your help,
/Robi