← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1842752] [NEW] Additional traceback in logs when using DataSourceOpenStackLocal on Oracle

 

Public bug reported:

With the introduction of DHCP classless static route parsing in our
ephemeral DHCP code, we've started seeing an additional traceback on
Oracle during DataSourceOpenStackLocal:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 760, in find_source
    if s.update_metadata([EventType.BOOT_NEW_INSTANCE]):
  File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 649, in update_metadata
    result = self.get_data()
  File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 273, in get_data
    return_value = self._get_data()
  File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOpenStack.py", line 130, in _get_data
    with EphemeralDHCPv4(self.fallback_interface):
  File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 57, in __enter__
    return self.obtain_lease()
  File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 106, in obtain_lease
    ephipv4.__enter__()
  File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 773, in __enter__
    self._bringup_static_routes()
  File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 827, in _bringup_static_routes
    ['dev', self.interface], capture=True)
  File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2069, in subp
    cmd=args)
cloudinit.util.ProcessExecutionError: Unexpected error while running command.
Command: ['ip', '-4', 'route', 'add', '0.0.0.0/0', 'via', '10.0.0.1', 'dev', 'ens3']
Exit code: 2
Reason: -
Stdout: 
Stderr: RTNETLINK answers: File exists

This happens because the routes that are being applied have already been
applied during iSCSI root configuration in the initramfs.  There is no
functional regression as a result; DataSourceOpenstack runs during the
network phase and performs instance configuration as expected.

(This is Low priority because it has limited impact, and we will soon be
transitioning to use DataSourceOracle in Ubuntu, which does not exhibit
this issue.)

** Affects: cloud-init
     Importance: Low
         Status: Triaged

-- 
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/1842752

Title:
  Additional traceback in logs when using DataSourceOpenStackLocal on
  Oracle

Status in cloud-init:
  Triaged

Bug description:
  With the introduction of DHCP classless static route parsing in our
  ephemeral DHCP code, we've started seeing an additional traceback on
  Oracle during DataSourceOpenStackLocal:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 760, in find_source
      if s.update_metadata([EventType.BOOT_NEW_INSTANCE]):
    File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 649, in update_metadata
      result = self.get_data()
    File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 273, in get_data
      return_value = self._get_data()
    File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOpenStack.py", line 130, in _get_data
      with EphemeralDHCPv4(self.fallback_interface):
    File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 57, in __enter__
      return self.obtain_lease()
    File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 106, in obtain_lease
      ephipv4.__enter__()
    File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 773, in __enter__
      self._bringup_static_routes()
    File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 827, in _bringup_static_routes
      ['dev', self.interface], capture=True)
    File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2069, in subp
      cmd=args)
  cloudinit.util.ProcessExecutionError: Unexpected error while running command.
  Command: ['ip', '-4', 'route', 'add', '0.0.0.0/0', 'via', '10.0.0.1', 'dev', 'ens3']
  Exit code: 2
  Reason: -
  Stdout: 
  Stderr: RTNETLINK answers: File exists

  This happens because the routes that are being applied have already
  been applied during iSCSI root configuration in the initramfs.  There
  is no functional regression as a result; DataSourceOpenstack runs
  during the network phase and performs instance configuration as
  expected.

  (This is Low priority because it has limited impact, and we will soon
  be transitioning to use DataSourceOracle in Ubuntu, which does not
  exhibit this issue.)

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


Follow ups