← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2055245] Re: DHCP Option is not passed to VM via Cloud-init

 

this is a neutron bug not a nova one.

the behavior should not change between using the dhcp aganet and native
dhcp

** Also affects: neutron
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2055245

Title:
  DHCP Option is not passed to VM via Cloud-init

Status in neutron:
  New
Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Description
  ===========

  Nova-Metadata-API doesn't provide ipv4_dhcp type for OVN (native OVH
  DHCP feature, no DHCP agents) networks with dhcp_enabled but no
  default gateway.

  Problem seems to be in
  https://opendev.org/openstack/nova/src/branch/master/nova/network/neutron.py#L3617

  There is just an exception to networks without device_owner:
  network:dhcp where default gateway is used, which doesn't cover this
  case.

  Steps to reproduce
  ==================

  Create a OVN network in an environment where native DHCP feature is
  provided by ovn (no ml2/ovs DHCP Agents). In addition this network
  needs to have no default gateway enabled.

  Create VM in this network and observe the cloud-init process
  (network_data.json)

  Expected result
  ===============

  network_data.json
  (http://169.254.169.254/openstack/2018-08-27/network_data.json) should
  return something like:

  {
    "links": [
      {
        "id": "tapddc91085-96",
        "vif_id": "ddc91085-9650-4b7b-ad9d-b475bac8ec8b",
        "type": "ovs",
        "mtu": 1442,
        "ethernet_mac_address": "fa:16:3e:93:49:fa"
      }
    ],
    "networks": [
      {
        "id": "network0",
        "type": "ipv4_dhcp",
        "link": "tapddc91085-96",
        "network_id": "9f61a3a7-26d3-4013-b61d-12880b325ea9"
      }
    ],
    "services": []
  }

  Actual result
  =============

  {
    "links": [
      {
        "id": "tapddc91085-96",
        "vif_id": "ddc91085-9650-4b7b-ad9d-b475bac8ec8b",
        "type": "ovs",
        "mtu": 1442,
        "ethernet_mac_address": "fa:16:3e:93:49:fa"
      }
    ],
    "networks": [
      {
        "id": "network0",
        "type": "ipv4",
        "link": "tapddc91085-96",
        "ip_address": "10.0.0.40",
        "netmask": "255.255.255.0",
        "routes": [],
        "network_id": "9f61a3a7-26d3-4013-b61d-12880b325ea9",
        "services": []
      }
    ],
    "services": []
  }

  Environment
  ===========

  Openstack Zed with Neutron OVN feature enabled

  Nova: 26.2.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2055245/+subscriptions



References