The error log:
2017-06-15 15:16:23,852 - util.py[DEBUG]: Running command ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x'] with allowed return codes [0] (shel l=False, capture=False) 2017-06-15 15:16:23,864 - util.py[DEBUG]: publishing hostname took 0.012 seconds (0.01) 2017-06-15 15:16:23,864 - 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-06-15 15:16:23,879 - util.py[WARNING]: handling set_hostname failed 2017-06-15 15:16:23,883 - util.py[DEBUG]: handling set_hostname failed Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/sources/DataSourceAzure.py", line 277, in bounce_network_with_azure_hostname prev_hostname=previous_hostname) File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/sources/DataSourceAzure.py", line 555, in perform_hostname_bounce 'env': env}) File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/util.py", line 2243, in log_time ret = func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/util.py", line 1852, in subp cmd=args) 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: - 2017-06-15 15:16:23,932 - util.py[DEBUG]: Running command ['hostname', u'honzhanclvm'] with allowed return codes [0] (shell=False, capture=True)
The error log:
2017-06-15 15:16:23,852 - util.py[DEBUG]: Running command ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x'] with allowed return codes [0] (shel .py[WARNING] : Failed publishing hostname: Unexpected error while running command. lib/python2. 7/site- packages/ cloud_init- 0.7.9-py2. 7.egg/cloudinit /sources/ DataSourceAzure .py", line 277, in bounce_ network_ with_azure_ hostname hostname= previous_ hostname) lib/python2. 7/site- packages/ cloud_init- 0.7.9-py2. 7.egg/cloudinit /sources/ DataSourceAzure .py", line 555, in perform_ hostname_ bounce lib/python2. 7/site- packages/ cloud_init- 0.7.9-py2. 7.egg/cloudinit /util.py" , line 2243, in log_time lib/python2. 7/site- packages/ cloud_init- 0.7.9-py2. 7.egg/cloudinit /util.py" , line 1852, in subp nError: Unexpected error while running command.
l=False, capture=False)
2017-06-15 15:16:23,864 - util.py[DEBUG]: publishing hostname took 0.012 seconds (0.01)
2017-06-15 15:16:23,864 - DataSourceAzure
Command: ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x']
Exit code: 127
Reason: -
Stdout: -
Stderr: -
2017-06-15 15:16:23,879 - util.py[WARNING]: handling set_hostname failed
2017-06-15 15:16:23,883 - util.py[DEBUG]: handling set_hostname failed
Traceback (most recent call last):
File "/usr/local/
prev_
File "/usr/local/
'env': env})
File "/usr/local/
ret = func(*args, **kwargs)
File "/usr/local/
cmd=args)
ProcessExecutio
Command: ['sh', '-xc', 'i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x']
Exit code: 127
Reason: -
Stdout: -
Stderr: -
2017-06-15 15:16:23,932 - util.py[DEBUG]: Running command ['hostname', u'honzhanclvm'] with allowed return codes [0] (shell=False, capture=True)