'nova-manage fixed list' fails if address is allocated

Bug #812487 reported by Brian Waldon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Brian Waldon

Bug Description

With a single fixed ip allocated (192.168.0.11), I get the following output from 'nova-manage fixed list':

root@nova1:~# nova-manage fixed list
network IP address MAC address hostname host
192.168.0.0/25 192.168.0.0 None None None
192.168.0.0/25 192.168.0.1 None None None
192.168.0.0/25 192.168.0.2 None None None
192.168.0.0/25 192.168.0.3 None None None
192.168.0.0/25 192.168.0.4 None None None
192.168.0.0/25 192.168.0.5 None None None
192.168.0.0/25 192.168.0.6 None None None
192.168.0.0/25 192.168.0.7 None None None
192.168.0.0/25 192.168.0.8 None None None
192.168.0.0/25 192.168.0.9 None None None
192.168.0.0/25 192.168.0.10 None None None
Command failed, please check log for more info

Here is the output from the log:

root@nova1:~# tailf /var/log/nova/nova-manage.log
(nova): TRACE: File "/usr/bin/nova-manage", line 1309, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/usr/bin/nova-manage", line 1298, in main
(nova): TRACE: fn(*argv)
(nova): TRACE: File "/usr/bin/nova-manage", line 521, in list
(nova): TRACE: mac_address = fixed_ip['mac_address']['address']
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/models.py", line 74, in __getitem__
(nova): TRACE: return getattr(self, key)
(nova): TRACE: AttributeError: 'FixedIp' object has no attribute 'mac_address'

Related branches

Brian Waldon (bcwaldon)
Changed in nova:
assignee: nobody → Brian Waldon (bcwaldon)
status: New → In Progress
Revision history for this message
noja (nosookja) wrote :

I have same problem.

in addition that there is other problem in nova-api
when i run instance, i can't get metadata from nova-api server
but it works well before.
i'm using FlatDHCPManager, network is 10.10.1.0/24

------------< nova-api.log >---------------------
2011-07-19 11:03:04,944 INFO nova.api [-] 0.22962s 192.168.100.72 GET /2009-04-04/meta-data/instance-id None:None 500 [Python-urllib/2.6] text/plain text/plain
2011-07-19 11:03:19,991 ERROR nova.api.ec2.metadata [-] Failed to get metadata for ip: 192.168.100.72
(nova.api.ec2.metadata): TRACE: Traceback (most recent call last):
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/metadatarequesthandler.py", line 78, in __call__
(nova.api.ec2.metadata): TRACE: meta_data = self.cc.get_metadata(remote_address)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/cloud.py", line 238, in get_metadata
(nova.api.ec2.metadata): TRACE: instance_ref = self.compute_api.get_all(ctxt, fixed_ip=address)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/api.py", line 685, in get_all
(nova.api.ec2.metadata): TRACE: instances = self.db.fixed_ip_get_instance(context, fixed_ip)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/api.py", line 386, in fixed_ip_get_instance
(nova.api.ec2.metadata): TRACE: return IMPL.fixed_ip_get_instance(context, address)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py", line 117, in wrapper
(nova.api.ec2.metadata): TRACE: return f(*args, **kwargs)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py", line 817, in fixed_ip_get_instance
(nova.api.ec2.metadata): TRACE: fixed_ip_ref = fixed_ip_get_by_address(context, address)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py", line 117, in wrapper
(nova.api.ec2.metadata): TRACE: return f(*args, **kwargs)
(nova.api.ec2.metadata): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py", line 781, in fixed_ip_get_by_address
(nova.api.ec2.metadata): TRACE: raise exception.FixedIpNotFoundForAddress(address=address)
(nova.api.ec2.metadata): TRACE: FixedIpNotFoundForAddress: Fixed ip not found for address 192.168.100.72.
(nova.api.ec2.metadata): TRACE:
----------------< nova-api.log >----------------

and, the interface(eth1) added in bridge(br100) interface doesn't up automatically
so, i have to up it manually
for, example "ifconfig eth1 up"

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
status: Fix Committed → Fix Released
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.