[Bug 1411371] Re: Use FQDN in apt-listchanges report

Dongxia Liu 1411371 at bugs.launchpad.net
Thu Nov 1 15:20:22 UTC 2018


I'm curious whether there is any update for this bug report.

apt-list changes sends email from vm with subject "apt-listchanges: changelogs for <hostname>". 
we have several labs and the hostname are same, I hope it can be configured to use FQDN, not hostname. With FQDN in the email subject, it's easier to identify the host's location and how important of this email is.

Thanks
Dong

** Tags added: watching

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt-listchanges in Ubuntu.
https://bugs.launchpad.net/bugs/1411371

Title:
  Use FQDN in apt-listchanges report

Status in apt-listchanges package in Ubuntu:
  New

Bug description:
  Really a WISHLIST item.

  I have many virtual machines running ubuntu/apache2 all with apt-
  listchanges installed, all named www.domain.com.  When I get my
  emailed reports the subject is "apt-listchanges: changelogs for www"
  for every single VM. Not very useful.

  It would be fair better for the subject to be "apt-listchanges:
  changelings for www.domain.com" (the FQDN for the host).

  apt-listchanges uses the following python code to set the hostname for
  the report

          hostname = commands.getoutput('hostname')

  I'd like to propose that the command be changed to

          hostname = commands.getoutput('hostname -f')

  Or a parameter set in /etc/apt/listchanges.conf

  Yes, I could change the hostname of the VM to the FQDN but the Debian
  reference <http://www.debian.org/doc/manuals/debian-
  reference/ch03.en.html#_the_hostname> says the hostname should not use
  the FQDN:

  3.5.5. The hostname

  The kernel maintains the system hostname. The init script in runlevel
  S which is symlinked to "/etc/init.d/hostname.sh" sets the system
  hostname at boot time (using the hostname command) to the name stored
  in "/etc/hostname". This file should contain only the system hostname,
  not a fully qualified domain name.

  I can do the coding/work, if I get guidance.

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-listchanges/+bug/1411371/+subscriptions



More information about the foundations-bugs mailing list