When I started working on Open Stack, I had to investigate about the HA of the nova component. Unfortunatly the nova configuration needed a single ent...
分类:
数据库 时间:
2014-08-22 21:04:19
阅读次数:
527
正在看Nova API的代码, 仿照其中的REST 实现逻辑写了一个测试程序.
大概的调用顺序是: Python Delopy -- > MyRouter --> routes.middleware.RoutesMiddleware --> MyApplication --> MyController
和这个最简单的程序相比, Nova API 支持了更多的功能, 例如XML/JSON序列化...
OpenStack文件注入排错过程1)撰写功能模块1)因Centos7.0x64文件系统的特殊性(XFS),openztack.nova.virt.disk.api.vfs模块无法识别文件系统,故调用系统命令guestmount,撰写函数IPDB调试代码是否成功程序启动正常看到下面的日志,表示^_^,创建成功启动服务serviceopenstack..
分类:
其他好文 时间:
2014-08-21 19:42:35
阅读次数:
635
[root@linux-node2init.d]#chkconfigopenstack-neutron-linuxbridge-agenton[root@linux-node2init.d]#chkconfigopenstack-nova-computeon[root@linux-node1~]#novahost-list+---------------------------+-------------+----------+|host_name|service|zone|+----------------..
分类:
其他好文 时间:
2014-08-21 19:34:15
阅读次数:
229
作为个人学习笔记分享,有任何问题欢迎交流!
在openstack中创建虚拟机的底层实现是nova使用了libvirt,代码在nova/virt/libvirt/driver.py。
#image_meta:镜像的相关内容,#injected_files:要注入到VM的文件
#network_info:网络相关信息,block_device_info:磁盘相关信息
def spawn(sel...
分类:
其他好文 时间:
2014-08-20 16:28:42
阅读次数:
292
[root@athController~]#novalistERROR:Anunexpectederrorpreventedtheserverfromfulfillingyourrequest.(OperationalError)(1040,‘Toomanyconnections‘)NoneNone(HTTP500)解决办法:key_buffer=64Mmax_allowed_packet=16Mthread_stack=192Kthread_cache_size=8myisam-recover=B..
分类:
数据库 时间:
2014-08-20 10:35:46
阅读次数:
437
以Nova REST API为例, 你应该按照以下步骤来扩展 Nova REST API
(使用 类nova.api.openstack.compute.contrib.floating_ips.Floating_ips 作为例子)
1) 创建一个新的extension 子类. Extension子类应该派生于“nova.api.openstack.extensions Ext...
安装Nova[root@linux-node1src]#cd~[root@linux-node1~]#cd/usr/local/src/nova-2014.1[root@linux-node1nova-2014.1]#pythonsetup.pyinstall[root@linux-node1nova]#pwd/usr/local/src/nova-2014.1/etc/nova[root@linux-node1nova]#ll总用量48-rw-rw-r--11004100431204月1717:..
分类:
其他好文 时间:
2014-08-19 16:48:45
阅读次数:
340
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other....
分类:
其他好文 时间:
2014-08-18 10:51:34
阅读次数:
121
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
public class Solution {
public int totalNQueens(int n) {
...
分类:
其他好文 时间:
2014-08-18 10:49:54
阅读次数:
206