[Openstack] upgrade icehouse to juno: horizon network topology view broken

Don Waterloo don.waterloo at gmail.com
Tue Oct 21 07:16:24 UTC 2014


On 21 October 2014 02:54, Don Waterloo <don.waterloo at gmail.com> wrote:
>
> in network_topology/views.py:
>     def _quota_exceeded(self, quota):
>         usages = quotas.tenant_quota_usages(self.request)
>         available = usages[quota]['available'] <<<<<<<<<<
>         return available <= 0
>
> line 107, in _quota_exceeded#012    available = usages[quota]['available']#012KeyError: 'available'
>
> is being thrown


Yes indeed, the quota is coming back as {} for networks. I'm not sure why.

{"metadata_items": {"quota": 128}, "server_groups": {"quota": 10},
"volumes": {"available": 10, "used": 0, "quota": 10}, "gigabytes":
{"available": 1000, "used": 0, "quota": 1000}, "backup_gigabytes":
{"quota": 1000}, "ram": {"available": 512000, "used": 0, "quota":
512000}, "key_pairs": {"quota": 100}, "instances": {"available": 1000,
"used": 0, "quota": 1000}, "snapshots": {"available": 10, "used": 0,
"quota": 10}, "backups": {"quota": 10}, "networks": {},
"security_groups": {"available": inf, "quota": inf},
"injected_file_content_bytes": {"quota": 10240},
"server_group_members": {"quota": 10}, "floating_ips": {"available":
inf, "used": 0, "quota": inf}, "injected_files": {"quota": 5},
"cores": {"available": 1000, "used": 0, "quota": 1000},
"injected_file_path_bytes": {"quota": 255}}

if i look in the db, i see that there is a line for 'network', but not
'networks'.

mysql> select * from quotas where tenant_id =
'4c4f696dbb054c24b30b32562ba624f2';
+--------------------------------------+----------------------------------+---------------------+-------+
| id                                   | tenant_id
   | resource            | limit |
+--------------------------------------+----------------------------------+---------------------+-------+
| 258e17fa-dd8e-43c0-a6c2-64025ae57562 |
4c4f696dbb054c24b30b32562ba624f2 | subnet              |    -1 |
| 37480fc0-4ca8-4a29-90f3-dac5f9675533 |
4c4f696dbb054c24b30b32562ba624f2 | network             |    -1 |
| 48799355-2d38-4fe0-9882-91fb5e9d34bc |
4c4f696dbb054c24b30b32562ba624f2 | port                |    -1 |
| 922a7f29-1c21-47f8-9b33-5ed34f68fc00 |
4c4f696dbb054c24b30b32562ba624f2 | security_group      |    10 |
| 9fcf0745-7651-4eff-b274-b67be40a6364 |
4c4f696dbb054c24b30b32562ba624f2 | security_group_rule |   100 |
| c7454ce1-08e0-4ae8-bce2-816c90b7ddc8 |
4c4f696dbb054c24b30b32562ba624f2 | floatingip          |    50 |
| f9e744ce-b91b-4853-b66f-405e08c1a705 |
4c4f696dbb054c24b30b32562ba624f2 | router              |    -1 |
+--------------------------------------+----------------------------------+---------------------+-------+

the other items there are from 'nova quota show'

Why would my 'networks' be {} in the above?




More information about the Openstack mailing list