部署CloudFoundry可能遇到的问题
1. Bosh 报告 OpenStack API Request Entity Too Large error
解决办法,修改/etc/nova/api-paste.conf文件,添加limits属性
[python] view plaincopy
- [filter:ratelimit]
- paste.filter_factory = nova.api.openstack.compute.limits:RateLimitingMiddleware.factory
- limits =(POST, "*", .*, 50, MINUTE);(POST, "*/servers", ^/servers, 50, DAY);(PUT, "*", .*, 50, MINUTE);(GET, "*changes-since*", .*changes-since.*, 30, MINUTE);(DELETE, "*", .*, 100, MINUTE)
2. Bosh 报告无法创建虚拟机,查看nova日志发现 “disk with libguestfs (could not parse /etc/fstab or empty file))”错误
解决方法:修改/etc/nova/nova.conf里的libvirt_inject_partition的默认值(-1自动检测)为固定值1
[python] view plaincopy
- libvirt_inject_partition=1
[python] view plaincopy
- # service openstack-nova-compute restart
时间: 2024-12-24 13:03:05