Comment 1 for bug 1697815

Revision history for this message
Hongjiang Zhang (redriver) wrote :

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)