Activity log for bug #1722668

Date Who What changed Old value New value Message
2017-10-10 21:51:24 Scott Moser bug added bug
2017-10-10 21:51:40 Scott Moser summary Azure: bouncing of network device fails on artful Azure: bouncing of network device/publishing of hostname fails on artful
2017-10-10 21:53:06 Scott Moser bug task added cloud-init
2017-10-10 21:53:11 Scott Moser cloud-init: status New Confirmed
2017-10-10 21:53:14 Scott Moser cloud-init (Ubuntu): status New Confirmed
2017-10-10 21:53:17 Scott Moser cloud-init: importance Undecided Medium
2017-10-10 21:53:19 Scott Moser cloud-init (Ubuntu): importance Undecided Medium
2017-10-10 21:56:35 Scott Moser cloud-init (Ubuntu): importance Medium Critical
2017-10-10 21:56:48 Scott Moser cloud-init (Ubuntu): milestone ubuntu-17.10
2017-10-11 19:46:54 Scott Moser description Launch an instance on Azure (20171005.1) and I find in /var/log/cloud-init.log the following: 2017-10-10 21:16:25,598 - DataSourceAzure.py[WARNING]: Failed publishing hostname: Unexpected error while running command. Command: ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x'] Exit code: 127 Reason: - Stdout: - Stderr: - 2017-10-10 21:16:25,598 - util.py[WARNING]: handling set_hostname failed 2017-10-10 21:16:25,598 - util.py[DEBUG]: handling set_hostname failed Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 286, in bounce_network_with_azure_hostname prev_hostname=previous_hostname) File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 637, in perform_hostname_bounce 'env': env}) File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2238, in log_time ret = func(*args, **kwargs) File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1847, in subp cmd=args) cloudinit.util.ProcessExecutionError: Unexpected error while running command. Command: ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x'] Exit code: 127 Reason: - Stdout: - Stderr: - The command output is not captured, so we see in /var/log/cloud-init-output.log: + i=eth0 + x=0 + ifdown eth0 sh: 1: ifdown: not found + x=127 + ifup eth0 sh: 1: ifup: not found + x=127 + exit 127 This is not surprising, there is no 'ifup' or 'ifdown', so the attempt to "bounce" the network device in order to re-publish the hostname that has been set will fail. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: cloud-init 17.1-17-g45d361cb-0ubuntu1 ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3 Uname: Linux 4.13.0-12-generic x86_64 ApportVersion: 2.20.7-0ubuntu2 Architecture: amd64 CloudName: Azure Date: Tue Oct 10 21:45:09 2017 PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=C.UTF-8 SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: No upgrade log present (probably fresh install) user_data.txt: Launch an instance on Azure (20171005.1) and I find in /var/log/cloud-init.log the following: 2017-10-10 21:16:25,598 - DataSourceAzure.py[WARNING]: Failed publishing hostname: Unexpected error while running command. Command: ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x'] Exit code: 127 Reason: - Stdout: - Stderr: - 2017-10-10 21:16:25,598 - util.py[WARNING]: handling set_hostname failed 2017-10-10 21:16:25,598 - util.py[DEBUG]: handling set_hostname failed Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 286, in bounce_network_with_azure_hostname     prev_hostname=previous_hostname)   File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 637, in perform_hostname_bounce     'env': env})   File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2238, in log_time     ret = func(*args, **kwargs)   File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1847, in subp     cmd=args) cloudinit.util.ProcessExecutionError: Unexpected error while running command. Command: ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x'] Exit code: 127 Reason: - Stdout: - Stderr: - The command output is not captured, so we see in /var/log/cloud-init-output.log: + i=eth0 + x=0 + ifdown eth0 sh: 1: ifdown: not found + x=127 + ifup eth0 sh: 1: ifup: not found + x=127 + exit 127 This is not surprising, there is no 'ifup' or 'ifdown', so the attempt to "bounce" the network device in order to re-publish the hostname that has been set will fail. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: cloud-init 17.1-17-g45d361cb-0ubuntu1 ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3 Uname: Linux 4.13.0-12-generic x86_64 ApportVersion: 2.20.7-0ubuntu2 Architecture: amd64 CloudName: Azure Date: Tue Oct 10 21:45:09 2017 PackageArchitecture: all ProcEnviron:  TERM=xterm-256color  PATH=(custom, no user)  LANG=C.UTF-8  SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: No upgrade log present (probably fresh install) user_data.txt: Related bugs: * bug 1674685: hostname ddns update is not done on azure with built-in agent path. * bug 1574963: juju2 lxd launch hostname reverse lookup inconsistent
2017-10-17 12:37:53 Francis Ginther bug added subscriber Francis Ginther
2017-12-20 18:29:36 Chad Smith merge proposal linked https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/335465
2017-12-20 20:39:13 Scott Moser merge proposal linked https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/335470
2017-12-21 02:33:17 Scott Moser cloud-init: status Confirmed Fix Committed
2018-01-15 13:11:30 Launchpad Janitor cloud-init (Ubuntu): status Confirmed Fix Released
2018-02-22 22:33:18 Scott Moser cloud-init: status Fix Committed Fix Released
2023-05-11 06:51:05 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/3027