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
```
i just try to patch it (or at least ignore the error)
``` kolla/venv/ lib/python3. 10/site- packages/ openstack_ dashboard/ api/placement. py
nano +117 ./var/lib/
```
and then add&replace this code on line 117 until 121
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']['allocatio n_ratio' ]
p[ 'memory_ mb_capacity' ] = p['memory_mb_ar'] * p['memory_mb']
continue
```
if 'MEMORY_MB' in usages.keys():
else:
```
then restart the service
```
docker restart horizon
```
it's dirty but work