Activity log for bug #1021810

Date Who What changed Old value New value Message
2012-07-06 16:46:46 Byron McCollum bug added bug
2012-07-06 16:49:17 Byron McCollum description Bug 754900 fixes a long standing issue of not deleting from fixed_ips when a network is deleted. However, the manner in which it "deletes" a fixed_ip (by setting the deleted column to true) is inconsistent with how the network is deleted (by actually deleting the record). Running `nova-manage fixed list` does not seem to honor the deleted column of fixed_ips, and proceeds to complain about the non-existent network. The networks table has a deleted column, but it doesn't seem to be used. For the sake of audit-ability (hence the deleted column), shouldn't deleting a network just marked it as deleted, and all tools modified to honor the deleted state? If audit-ability is handled in another manner, shouldn't the fixed_ips records be deleted, as the associated network is? Step to reproduce: $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 10.0.19.0/24 None 10.0.19.3 None None 100 tenant1 99658bf1-f2fc-46ce-9adf-83bd7f7cdb72 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage network modify 10.0.19.0/24 --disassociate-project $ sudo nova-manage network delete 10.0.19.0/24 $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage fixed list network IP address hostname host Command failed, please check log for more info 2012-07-06 11:04:31 CRITICAL nova [req-1de63acb-5a4b-40f0-9aee-53e86806dbee None None] Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Traceback (most recent call last): 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1746, in <module> 2012-07-06 11:04:31 TRACE nova main() 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1733, in main 2012-07-06 11:04:31 TRACE nova fn(*fn_args, **fn_kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 584, in list 2012-07-06 11:04:31 TRACE nova fixed_ip['network_id']) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in network_get 2012-07-06 11:04:31 TRACE nova return IMPL.network_get(context, network_id) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper 2012-07-06 11:04:31 TRACE nova return f(*args, **kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1933, in network_get 2012-07-06 11:04:31 TRACE nova raise exception.NetworkNotFound(network_id=network_id) 2012-07-06 11:04:31 TRACE nova NetworkNotFound: Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Versions: Ubuntu - 12.04 LTS Nova - 2012.1+stable~20120612-3ee026e-0ubuntu1.1 Bug 754900 fixes a long standing issue of not deleting from fixed_ips when a network is deleted. However, the manner in which it "deletes" a fixed_ip (by setting the deleted column to true) is inconsistent with how the network is deleted (by actually deleting the record). Running `nova-manage fixed list` does not seem to honor the deleted column of fixed_ips, and proceeds to complain about the non-existent network. The networks table has a deleted column, but it doesn't seem to be used. For the sake of audit-ability (hence the deleted column), shouldn't deleting a network just marke it as deleted, and all tools modified to honor the deleted state? If audit-ability is handled in another manner, shouldn't the fixed_ips records be deleted, as the associated network is? Step to reproduce: $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 10.0.19.0/24 None 10.0.19.3 None None 100 tenant1 99658bf1-f2fc-46ce-9adf-83bd7f7cdb72 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage network modify 10.0.19.0/24 --disassociate-project $ sudo nova-manage network delete 10.0.19.0/24 $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage fixed list network IP address hostname host Command failed, please check log for more info 2012-07-06 11:04:31 CRITICAL nova [req-1de63acb-5a4b-40f0-9aee-53e86806dbee None None] Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Traceback (most recent call last): 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1746, in <module> 2012-07-06 11:04:31 TRACE nova main() 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1733, in main 2012-07-06 11:04:31 TRACE nova fn(*fn_args, **fn_kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 584, in list 2012-07-06 11:04:31 TRACE nova fixed_ip['network_id']) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in network_get 2012-07-06 11:04:31 TRACE nova return IMPL.network_get(context, network_id) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper 2012-07-06 11:04:31 TRACE nova return f(*args, **kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1933, in network_get 2012-07-06 11:04:31 TRACE nova raise exception.NetworkNotFound(network_id=network_id) 2012-07-06 11:04:31 TRACE nova NetworkNotFound: Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Versions: Ubuntu - 12.04 LTS Nova - 2012.1+stable~20120612-3ee026e-0ubuntu1.1
2012-07-06 16:49:31 Byron McCollum description Bug 754900 fixes a long standing issue of not deleting from fixed_ips when a network is deleted. However, the manner in which it "deletes" a fixed_ip (by setting the deleted column to true) is inconsistent with how the network is deleted (by actually deleting the record). Running `nova-manage fixed list` does not seem to honor the deleted column of fixed_ips, and proceeds to complain about the non-existent network. The networks table has a deleted column, but it doesn't seem to be used. For the sake of audit-ability (hence the deleted column), shouldn't deleting a network just marke it as deleted, and all tools modified to honor the deleted state? If audit-ability is handled in another manner, shouldn't the fixed_ips records be deleted, as the associated network is? Step to reproduce: $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 10.0.19.0/24 None 10.0.19.3 None None 100 tenant1 99658bf1-f2fc-46ce-9adf-83bd7f7cdb72 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage network modify 10.0.19.0/24 --disassociate-project $ sudo nova-manage network delete 10.0.19.0/24 $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage fixed list network IP address hostname host Command failed, please check log for more info 2012-07-06 11:04:31 CRITICAL nova [req-1de63acb-5a4b-40f0-9aee-53e86806dbee None None] Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Traceback (most recent call last): 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1746, in <module> 2012-07-06 11:04:31 TRACE nova main() 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1733, in main 2012-07-06 11:04:31 TRACE nova fn(*fn_args, **fn_kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 584, in list 2012-07-06 11:04:31 TRACE nova fixed_ip['network_id']) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in network_get 2012-07-06 11:04:31 TRACE nova return IMPL.network_get(context, network_id) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper 2012-07-06 11:04:31 TRACE nova return f(*args, **kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1933, in network_get 2012-07-06 11:04:31 TRACE nova raise exception.NetworkNotFound(network_id=network_id) 2012-07-06 11:04:31 TRACE nova NetworkNotFound: Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Versions: Ubuntu - 12.04 LTS Nova - 2012.1+stable~20120612-3ee026e-0ubuntu1.1 Bug 754900 fixes a long standing issue of not deleting from fixed_ips when a network is deleted. However, the manner in which it "deletes" a fixed_ip (by setting the deleted column to true) is inconsistent with how the network is deleted (by actually deleting the record). Running `nova-manage fixed list` does not seem to honor the deleted column of fixed_ips, and proceeds to complain about the non-existent network. The networks table has a deleted column, but it doesn't seem to be used. For the sake of audit-ability (hence the deleted column), shouldn't deleting a network just mark it as deleted, and all tools modified to honor the deleted state? If audit-ability is handled in another manner, shouldn't the fixed_ips records be deleted, as the associated network is? Step to reproduce: $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 10.0.19.0/24 None 10.0.19.3 None None 100 tenant1 99658bf1-f2fc-46ce-9adf-83bd7f7cdb72 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage network modify 10.0.19.0/24 --disassociate-project $ sudo nova-manage network delete 10.0.19.0/24 $ sudo nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 2 10.1.19.0/24 None 10.1.19.3 None None 101 tenant2 dd660168-81b8-4b6f-b054-a5d1b8d5b293 $ sudo nova-manage fixed list network IP address hostname host Command failed, please check log for more info 2012-07-06 11:04:31 CRITICAL nova [req-1de63acb-5a4b-40f0-9aee-53e86806dbee None None] Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Traceback (most recent call last): 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1746, in <module> 2012-07-06 11:04:31 TRACE nova main() 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 1733, in main 2012-07-06 11:04:31 TRACE nova fn(*fn_args, **fn_kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/bin/nova-manage", line 584, in list 2012-07-06 11:04:31 TRACE nova fixed_ip['network_id']) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in network_get 2012-07-06 11:04:31 TRACE nova return IMPL.network_get(context, network_id) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper 2012-07-06 11:04:31 TRACE nova return f(*args, **kwargs) 2012-07-06 11:04:31 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1933, in network_get 2012-07-06 11:04:31 TRACE nova raise exception.NetworkNotFound(network_id=network_id) 2012-07-06 11:04:31 TRACE nova NetworkNotFound: Network 1 could not be found. 2012-07-06 11:04:31 TRACE nova Versions: Ubuntu - 12.04 LTS Nova - 2012.1+stable~20120612-3ee026e-0ubuntu1.1
2012-07-14 02:06:15 Byron McCollum bug task added nova (Ubuntu)
2012-07-17 18:55:08 Tong Li bug added subscriber Tong Li
2012-07-17 18:55:22 Launchpad Janitor nova (Ubuntu): status New Confirmed
2012-07-18 14:54:07 Mark McLoughlin nova: importance Undecided Medium
2012-07-18 14:54:11 Mark McLoughlin nova: status New Confirmed
2012-07-18 15:27:16 OpenStack Infra nova: status Confirmed In Progress
2012-07-18 15:27:16 OpenStack Infra nova: assignee Tong Li (litong01)
2012-07-20 19:23:59 OpenStack Infra nova: status In Progress Fix Committed
2012-08-16 07:35:44 Thierry Carrez nova: status Fix Committed Fix Released
2012-08-16 07:35:44 Thierry Carrez nova: milestone folsom-3
2012-08-21 19:50:30 Chuck Short nova (Ubuntu): status Confirmed Fix Released
2012-09-27 15:27:30 Thierry Carrez nova: milestone folsom-3 2012.2