manager.py : _validate_instance_zone_for_dns_domain throwing AttributeError: 'NoneType' object has no attribute 'availability_zone' error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Justin Shepherd |
Bug Description
Using Devstack
*** USE MiniDNS driver ***
add instance_
*** CREATE PRIVATE DNS DOMAIN ***
stack@test:
stack@test:
+------
| domain | scope | project | availability_zone |
+------
| foo.org | private | None | nova |
+------
*** BOOT AN INSTANCE ***
stack@test:
** IMMEDIATELY GOES INTO ERROR STATE ***
The following is the error in nova-network
2013-06-13 19:18:44.632 ERROR nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
2013-06-13 19:18:44.632 TRACE nova.openstack.
Changed in nova: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-3 → 2013.2 |
Looks like nova.network. manager is calling db.dnsdomain_get and passing 'instance. availability_ zone' as the fqdn.
https:/ /github. com/openstack/ nova/blob/ master/ nova/network/ manager. py#L795- L800 /github. com/openstack/ nova/blob/ master/ nova/db/ sqlalchemy/ api.py# L924-L937
https:/
mysql -u root nova -e "select * from dns_domains" ------- ------- -+----- ------- +------ ------+ ------- --+---- -----+- ------- -+----- ------- ------- +------ ------+ ------- ------- -+----- ------- +------ ------+ ------- --+---- -----+- ------- -+----- ------- ------- +------ ------+ ------- ------- -+----- ------- +------ ------+ ------- --+---- -----+- ------- -+----- ------- ------- +------ ------+
+------
| created_at | updated_at | deleted_at | deleted | domain | scope | availability_zone | project_id |
+------
| 2013-06-13 19:17:44 | NULL | NULL | 0 | foo.org | private | nova | NULL |
+------
This wont work.. as the fqdn for the domain is 'foo.org' not 'nova'.