Server with MAAS 2.3 installed where the nodes can be commissioned without problems. However, when deploying an ubuntu image I got the following errors.


Nodes -> Events

Node post-installation failure - 'cloudinit' running modules for config
Node post-installation failure - 'cloudinit' running config-apt-configure with frequency once-per-instance

I can login into the nodes, install package without errors, ping and traceroute other DNS servers.



sudo cloud-init status --long status:

> error time: Thu, 21 Jun 2018
> 19:39:41 +0000 detail: ('apt-configure', ValueError('Old and New apt
> format defined with unequal values True vs False @
> apt_preserve_sources_list',))

file: cloud-init.log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/", line 792, in _run_modules
  File "/usr/lib/python3/dist-packages/cloudinit/", line 54, in run
    return, functor, args, freq, clear_on_fail)
  File "/usr/lib/python3/dist-packages/cloudinit/", line 187, in run
    results = functor(*args)
  File "/usr/lib/python3/dist-packages/cloudinit/config/", line 274, in handle
    ocfg = convert_to_v3_apt_format(ocfg)
  File "/usr/lib/python3/dist-packages/cloudinit/config/", line 759, in convert_to_v3_apt_format
    cfg = convert_v2_to_v3_apt_format(cfg)
  File "/usr/lib/python3/dist-packages/cloudinit/config/", line 725, in convert_v2_to_v3_apt_format
ValueError: Old and New apt format defined with unequal values True vs False @ apt_preserve_sources_list

I have tried different approach to solve the problem without success.

I don't know what is wrong. Any help is more than welcome.


up vote 0 down vote accepted

The link provides the solution:

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.