openstack通过kolla-ansible添加一个计算节点,并部署后,发现控制节点上无法发现新加的计算节点,
在控制节点的 nova_scheduler、nova_api容器上执行发现计算节点也于事无补
nova-manage cell_v2 discover_hosts --verbose
再查看 nova配置,也是配置了自动发现节点
cat /etc/kolla/nova-api/nova.conf
[scheduler]
max_attempts = 10
discover_hosts_in_cells_interval = 60
最后把新加的计算节点主要重启,嘿嘿,这次控制节点上发现了
openstack hypervisor list
kolla-ansible添加FWaas后,horizon-dashboad异常,查看tail -f /var/lib/docker/volumes/kolla_logs/_data/horizon/horizon.log日志发现:
OfflineGenerationError: You have offline compression enabled but key "380b34b7d024ab6fa42dd45c1c53886c" is missing from offline manifest. You may need to run "python manage.py compress"
这是关于django压缩静态文件出现异常
解决方法:
docker exec -it horizon /bin/bash
python /var/lib/kolla/venv/bin/manage.py collectstatic
Type 'yes' to continue, or 'no' to cancel:yes # 这里输入yes 或者用 python /var/lib/kolla/venv/bin/manage.py collectstatic --noinput
python manage.py compress --force
如果还是没有解决,则关闭COMPRESS压缩功能
vi /etc/kolla/horizon/local_settings
设置 COMPRESS_OFFLINE = False
重启horizon容器