← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1868232] Re: underscores should be stripped from hostnames generated for apt config

 

** Changed in: cloud-init
       Status: In Progress => Fix Committed

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu)
       Status: New => Fix Committed

** Also affects: cloud-init (Ubuntu Focal)
   Importance: Undecided
       Status: Fix Committed

-- 
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/1868232

Title:
  underscores should be stripped from hostnames generated for apt config

Status in cloud-init:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Fix Committed
Status in cloud-init source package in Focal:
  Fix Committed

Bug description:
  In a ticket filed in the Ubuntu RT instance we were made aware of an
  issue where if a cloud is configured with an “_” in the region name,
  cloud-init will generate an apt configuration that also includes that
  “_” in the name.

  So for example if the region name is zone_01, apt will be configured
  to use zone_01.clouds.archive.ubuntu.com.

  On Friday March 13th we deployed some new archive servers on 18.04
  using Apache 2.4.29-1ubuntu4.13. This version of apache has more
  strict protocol options than previous versions, per
  https://httpd.apache.org/docs/2.4/mod/core.html#httpprotocoloptions
  and the result is that a request to zone_01.clouds.archive.ubuntu.com
  returns a 400 Bad Request.

  Could cloud-init be updated to remove non-permitted characters
  including “_” per https://tools.ietf.org/html/rfc3986#section-3.2.2 ?

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


References