← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1352105] [NEW] can not get network info from metadata server

 

Public bug reported:

I want to use cloudinit to get the network info and write it into the network configuration file,
but it failed because cloudinit didn't get the network info.
In the vm, I used curl to test the metadata as below
#curl http://169.254.169.254/openstack/latest/meta_data.json
the reponse info didn't contain network info.
See following code in nova/virt/netutils.py
        if subnet_v4:
            if subnet_v4.get_meta('dhcp_server') is not None:
                continue
It seems that when vm use  neutron dhcp, network info will be ignored in meta_data.json

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  can not get network info from metadata server

Status in OpenStack Compute (Nova):
  New

Bug description:
  I want to use cloudinit to get the network info and write it into the network configuration file,
  but it failed because cloudinit didn't get the network info.
  In the vm, I used curl to test the metadata as below
  #curl http://169.254.169.254/openstack/latest/meta_data.json
  the reponse info didn't contain network info.
  See following code in nova/virt/netutils.py
          if subnet_v4:
              if subnet_v4.get_meta('dhcp_server') is not None:
                  continue
  It seems that when vm use  neutron dhcp, network info will be ignored in meta_data.json

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


Follow ups

References