'nova-manage fixed list' fails if address is allocated
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): TRACE: File "/usr/bin/
(nova): TRACE: main()
(nova): TRACE: File "/usr/bin/
(nova): TRACE: fn(*argv)
(nova): TRACE: File "/usr/bin/
(nova): TRACE: mac_address = fixed_ip[
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return getattr(self, key)
(nova): TRACE: AttributeError: 'FixedIp' object has no attribute 'mac_address'
Related branches
- Brian Lamar (community): Approve
- Trey Morris (community): Approve
- Jason Kölker (community): Approve
- Devin Carlen (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedbin/nova-manage (+1/-1)
Changed in nova: | |
assignee: | nobody → Brian Waldon (bcwaldon) |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-3 |
Changed in nova: | |
milestone: | diablo-3 → 2011.3 |
status: | Fix Committed → Fix Released |
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 >------ ------- ------- - 04/meta- data/instance- id None:None 500 [Python-urllib/2.6] text/plain text/plain ec2.metadata [-] Failed to get metadata for ip: 192.168.100.72 ec2.metadata) : TRACE: Traceback (most recent call last): ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ api/ec2/ metadatarequest handler. py", line 78, in __call__ ec2.metadata) : TRACE: meta_data = self.cc. get_metadata( remote_ address) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ api/ec2/ cloud.py" , line 238, in get_metadata ec2.metadata) : TRACE: instance_ref = self.compute_ api.get_ all(ctxt, fixed_ip=address) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ compute/ api.py" , line 685, in get_all ec2.metadata) : TRACE: instances = self.db. fixed_ip_ get_instance( context, fixed_ip) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ db/api. py", line 386, in fixed_ip_ get_instance ec2.metadata) : TRACE: return IMPL.fixed_ ip_get_ instance( context, address) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ db/sqlalchemy/ api.py" , line 117, in wrapper ec2.metadata) : TRACE: return f(*args, **kwargs) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ db/sqlalchemy/ api.py" , line 817, in fixed_ip_ get_instance ec2.metadata) : TRACE: fixed_ip_ref = fixed_ip_ get_by_ address( context, address) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ db/sqlalchemy/ api.py" , line 117, in wrapper ec2.metadata) : TRACE: return f(*args, **kwargs) ec2.metadata) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ db/sqlalchemy/ api.py" , line 781, in fixed_ip_ get_by_ address ec2.metadata) : TRACE: raise exception. FixedIpNotFound ForAddress( address= address) ec2.metadata) : TRACE: FixedIpNotFound ForAddress: Fixed ip not found for address 192.168.100.72. ec2.metadata) : TRACE:
2011-07-19 11:03:04,944 INFO nova.api [-] 0.22962s 192.168.100.72 GET /2009-04-
2011-07-19 11:03:19,991 ERROR nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
----------------< 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"