[Hyper-V][Azure]ifdown/ifup fail to run on FreeBSD
Bug #1697815 reported by
Hongjiang Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Hongjiang Zhang |
Bug Description
An error was found when cloud-init running on FreeBSD, even it does not impact the functionality. There is an error in /var/log/
Related branches
~redriver/cloud-init:fix-ifdown-for-frbsd-on-Azure
- Server Team CI bot: Approve (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 16 lines (+5/-0)1 file modifiedcloudinit/sources/DataSourceAzure.py (+5/-0)
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Hongjiang Zhang (redriver) |
To post a comment you must log in.
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)