← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1845252] Re: Azure data source assumes network is driven via dhcpclient

 

Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3451

** Bug watch added: github.com/canonical/cloud-init/issues #3451
   https://github.com/canonical/cloud-init/issues/3451

** Changed in: cloud-init
       Status: Triaged => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1845252

Title:
  Azure data source assumes network is driven via dhcpclient

Status in cloud-init:
  Expired

Bug description:
  The Azure data source assumes that the network is set up by
  dhcpclient. During cloud-init initialization the following traceback
  is generated:

  Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/DataSourceAzure.py", line 668, in _negotiate
      fabric_data = metadata_func()
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 36, in impl
      return func(*args, **kwargs)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 458, in get_metadata_from_fabric
      return shim.register_with_azure_and_fetch_data(pubkey_info=pubkey_info)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 36, in impl
      return func(*args, **kwargs)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 393, in register_with_azure_and_fetch_data
      'http://{0}/machine/?comp=goalstate'.format(self.endpoint))
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 272, in endpoint
      self.dhcpoptions)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 36, in impl
      return func(*args, **kwargs)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 374, in find_endpoint
      fallback_lease_file)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 36, in impl
      return func(*args, **kwargs)
    File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/azure.py", line 300, in _get_value_from_leases_file
      content = util.load_file(fallback_lease_file)
    File "/usr/lib/python3.6/site-packages/cloudinit/util.py", line 1359, in load_file
      with open(fname, 'rb') as ifh:
  FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/dhcp/dhclient.eth0.leases'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1845252/+subscriptions



References