Comment 5 for bug 2055784

Revision history for this message
Aldin Setiawan (just-humanz403) wrote :

i just try to patch it (or at least ignore the error)

```
nano +117 ./var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/api/placement.py
```

and then add&replace this code on line 117 until 121
```
        if 'MEMORY_MB' in usages.keys():
            p['memory_mb_used'] = usages['MEMORY_MB']
            p['memory_mb_reserved'] = inventories['MEMORY_MB']['reserved']
            p['memory_mb'] = inventories['MEMORY_MB']['total']
            p['memory_mb_ar'] = inventories['MEMORY_MB']['allocation_ratio']
            p['memory_mb_capacity'] = p['memory_mb_ar'] * p['memory_mb']
        else:
            continue
```

then restart the service
```
docker restart horizon
```

it's dirty but work