Nova does not pick up on dhcp_domain from Quantum

Bug #1198767 reported by Robert Brown (rjbrown99)
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Incomplete
Undecided
Unassigned

Bug Description

I'm using Grizzly with the RedHat RDO packages.

I am using Quantum networking with the following in /etc/quantum/dhcp_agent.ini:
dhcp_domain=mydomain.com

This works properly and sets the correct domain for new Nova instances which obtain their hostname and domain via dhcp. However, if you ask the Metadata service for the hostname it returns with 'novalocal'.

curl http://169.254.169.254/openstack/2012-08-10/meta_data.json

{"uuid": "12345long_string", "availability_zone": "nova", "hostname": "smov0001.novalocal", "launch_index": 0, "public_keys": {"mykey": "ssh-rsa longkeygoeshere <email address hidden>\n"}, "name": "smov0001"}

I looked into why that might be happening, and it seems that in Nova's network/manager.py it has the following stanza:

    cfg.StrOpt('dhcp_domain',
               default='novalocal',
               help='domain to use for building the hostnames'),

So, essentially if you only place your custom dhcp_domain setting in Quantum's dhcp_agent.ini file it won't be picked up by Nova. If you ALSO place dhcp_domain=mydomain.com in nova.conf, the metadata service will return with the correct mydomain.com setting.

This was non-obvious to me and created issues with cloud-init and orchestration. I'm not sure of the best way to address this but at the very least it's a documentation bug. Ideally Nova should be smart enough to know I am using Quantum networking and pick up the setting from there.

Tags: network
Revision history for this message
Robert Brown (rjbrown99) (rjbrown99) wrote :
description: updated
Matt Riedemann (mriedem)
tags: added: network
Revision history for this message
Joe Gordon (jogo) wrote :

Grizzly has been 'end of life'ed is this bug still valid?

Changed in nova:
status: New → Invalid
status: Invalid → New
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.