← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1735950] Re: ValueError: Old and New apt format defined with unequal values True vs False @ apt_preserve_sources_list

 

@Scott,

So it seems that curtin is always writing apt_preserve_sources_list:
True. To test this, I'm ensuring that MAAS never sends
apt_preserve_source_list (and this is reflected in the PR attached to
this branch).

With those changes, the resulting curtin config is:

http://paste.ubuntu.com/p/s8GsHRQMhX/

As you can see, we never set apt_preserve_source_list. Hoewver, the
deployed system results with:

ubuntu@guided-osprey:~$ cat /etc/cloud/cloud.cfg.d/curtin-preserve-sources.cfg 
{apt_preserve_sources_list: true}


So it seems it is curtin that's adding an old cloud-init config style.

** Also affects: curtin
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1735950

Title:
  ValueError: Old and New apt format defined with unequal values True vs
  False @ apt_preserve_sources_list

Status in cloud-init:
  Invalid
Status in curtin:
  New
Status in MAAS:
  Triaged
Status in MAAS 2.3 series:
  Won't Fix

Bug description:
  All nodes have these same failed events:

  Node post-installation failure - 'cloudinit' running modules for
  config

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

  
  Experiencing odd issues with the squid proxy not being reachable.

  From a deployed node that had the event errors.

  $ sudo cat /var/log/cloud-init.log | http://paste.ubuntu.com/26098787/
  $ sudo cat /var/log/cloud-init-output.log | http://paste.ubuntu.com/26098802/

  ubuntu@os-util-00:~$ sudo apt install htop
  sudo: unable to resolve host os-util-00
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following NEW packages will be installed:
    htop
  0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
  Need to get 76.4 kB of archives.
  After this operation, 215 kB of additional disk space will be used.
  Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 htop amd64 2.0.1-1ubuntu1
    Could not connect to 10.10.0.110:8000 (10.10.0.110). - connect (113: No route to host)
  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/h/htop/htop_2.0.1-1ubuntu1_amd64.deb  Could not connect to 10.10.0.110:8000 (10.10.0.110). - connect (113: No route to host)

  E: Unable to fetch some archives, maybe run apt-get update or try with
  --fix-missing?


  
  Not sure if these things are related (the proxy not being reachable, and the node event errors) .... something is not right.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1735950/+subscriptions