源码位置:
/usr/lib/python2.7/dist-packages/nova
/usr/share/pyshared/nova/
数据库表模型:
nova/db/sqlalchemy/models.py
目录文件结构:
文件夹
1.api
2.auth
3.CA
4.cert
5.cloudpipe
6.common
7.compa
8.compute
9.console
10.consoleauth
11.db 详见转载:Nova-DB分析 地址: http://blog.youkuaiyun.com/washli2001/article/details/8479685
12.image
13.ipv6
14.local 国际化语言,./zh_CN/LC_MESSAGES/nova.po 汉化文件
15.netword
16.notifier
17.objectstore
18.openstack
19.rootwrap
20.rpc
21.scheduler
22.testing
23.tests
24.virt
25.vnc
26.wolume
文件
1.block_device.py
2.context.py
3.crypto.py
4.exception.py
5.flags.py
6.__init__.py
7.manager.py
8.policy.py
9.quota.py 系统面板默认配额在该文件中写死,数据库表quotas没有找到
10.service.py nova服务 ,启动 kill 停止 启动的时候查看数据库有没有该服务,没用新建def start(self):
vcs_string = version.version_string_with_vcs()
LOG.audit(_('Starting %(topic)s node (version %(vcs_string)s)'),
{'topic': self.topic, 'vcs_string': vcs_string})
utils.cleanup_file_locks()
self.manager.init_host()
self.model_disconnected = False
ctxt = context.get_admin_context()
try:
service_ref = db.service_get_by_args(ctxt,
self.host,
self.binary)
self.service_id = service_ref['id']
except exception.NotFound:
self._create_service_ref(ctxt)
但是有一次计算节点安装完在数据库services查看不到记录,在控制节点用
nova-manage service list查看不到该计算节点,重启没有,手工添加数据库表数据娥没有用。最后的解决办法是apt-get remove去掉计算节点的服务,然后apt-get install重新安装,配置文件不用重新设置即可
11.test.py
12.utils.py
13.version.py
14.wsi.py