Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-1328

Metadata Service in openstack is broken with ODL Integration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • Magnesium
    • None
    • dhcpservice, neutronvpn
    • None

      Issue:

      I have installed stable/queens using openstack-ansible on Ubuntu with ODL + OVS.

      I have created an instance with cirros image(since it has pre-set pwd i am able to login through console and ssh), I can ping to external gateway and even Google DNS(8.8.8.8) but it is not able to reach metadata server.
      So i am not able to create instance with any other OS as it is not getting password or SSH keys.

       

      Observations:

      1. If private network doesnot have an interface connected to router then metadata service works, meaning instances will receive the cloud config.
      2. When private network is not connected to router, then static route for 169.254.169.254 will have nexthop as 10.0.0.2 which is present in dhcp namespace.
      3. When private network is connected to router, then static route for 169.254.169.254 will have nexthop as 10.0.0.1 which is ip of router interface connected to private network.

      Workaround:

      1. In /etc/neutron/dhcp_agent.ini add "force_metadata = True"
      2. Restart neutron-dhcp-agent service

      Then things will start working.
      After these changes dhcp agent will send route 169.254.169.254/32 with nexthop as 10.0.0.2 and cloud-init works.

      Since router namespace is not created after integrating with odl, should this route point to nexthop in dhcp namespace?

       

      Kindly provide the fix for this issue.

            ShivashankarChitragar Shivashankar Chitragar
            ShivashankarChitragar Shivashankar Chitragar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: