目标:
1)弄清楚nova组件通过packstack安装后源码位置
2)确定nova组件服务启动路径
3)确定nova组件配置文件路径
0 whereis nova
[root@localhost www]# whereis nova
nova: /usr/bin/nova /etc/nova /usr/share/nova /usr/share/man/man1/nova.1.gz
1 确定nova组件代码位置
[root@localhost site-packages]# cd /usr/lib/python2.7/site-packages
[root@localhost site-packages]# ll|egrep "nova"
drwxr-xr-x. 28 root root 4096 Feb 19 19:31 nova
drwxr-xr-x. 2 root root 4096 Feb 19 19:31 nova-17.0.13-py2.7.egg-info
drwxr-xr-x. 3 root root 4096 Feb 19 11:26 novaclient
drwxr-xr-x. 2 root root 4096 Feb 19 11:26 python_novaclient-10.1.1-py2.7.egg-info
[root@localhost site-packages]# cd nova
[root@localhost nova]# ls
api cells crypto.py filters.pyc keymgr policy.pyo scheduler version.py
availability_zones.py cmd crypto.pyc filters.pyo loadables.py privsep service_auth.py version.pyc
availability_zones.pyc common crypto.pyo hacking loadables.pyc profiler.py service_auth.pyc version.pyo
availability_zones.pyo compute db hooks.py loadables.pyo profiler.pyc service_auth.pyo virt
baserpc.py conductor debugger.py hooks.pyc manager.py profiler.pyo servicegroup vnc
baserpc.pyc conf debugger.pyc hooks.pyo manager.pyc quota.py service.py volume
baserpc.pyo config.py debugger.pyo i18n.py manager.pyo quota.pyc service.pyc weights.py
block_device.py config.pyc exception.py i18n.pyc network quota.pyo service.pyo weights.pyc
block_device.pyc config.pyo exception.pyc i18n.pyo notifications rpc.py test.py weights.pyo
block_device.pyo console exception.pyo image objects rpc.pyc test.pyc wsgi.py
CA consoleauth exception_wrapper.py __init__.py pci rpc.pyo test.pyo wsgi.pyc
cache_utils.py context.py exception_wrapper.pyc __init__.pyc policies safe_utils.py utils.py wsgi.pyo
cache_utils.pyc context.pyc exception_wrapper.pyo __init__.pyo policy.py safe_utils.pyc utils.pyc
cache_utils.pyo context.pyo filters.py ipv6 policy.pyc safe_utils.pyo utils.pyo
2 nova组件服务启动路径
[root@localhost bin]# cd /usr/bin
[root@localhost bin]# ll|grep nova
lrwxrwxrwx. 1 root root 8 Feb 19 11:26 nova -> ./nova-2
lrwxrwxrwx. 1 root root 10 Feb 19 11:26 nova-2 -> ./nova-2.7
-rwxr-xr-x. 1 root root 156 Nov 1 2019 nova-2.7
-rwxr-xr-x. 1 root root 152 Oct 31 2019 nova-api
-rwxr-xr-x. 1 root root 161 Oct 31 2019 nova-api-metadata
-rwxr-xr-x. 1 root root 163 Oct 31 2019 nova-api-os-compute
-rwxr-xr-x. 1 root root 1911 Oct 31 2019 nova-api-wsgi
-rwxr-xr-x. 1 root root 156 Oct 31 2019 nova-compute
-rwxr-xr-x. 1 root root 158 Oct 31 2019 nova-conductor
-rwxr-xr-x. 1 root root 156 Oct 31 2019 nova-console
-rwxr-xr-x. 1 root root 160 Oct 31 2019 nova-consoleauth
-rwxr-xr-x. 1 root root 155 Oct 31 2019 nova-manage
-rwxr-xr-x. 1 root root 1893 Oct 31 2019 nova-metadata-wsgi
-rwxr-xr-x. 1 root root 2058 Oct 31 2019 nova-migration-wrapper
-rwxr-xr-x. 1 root root 159 Oct 31 2019 nova-novncproxy
-rwxr-xr-x. 1 root root 1915 Oct 31 2019 nova-placement-api
-rwxr-xr-x. 1 root root 155 Oct 31 2019 nova-policy
-rwxr-xr-x. 1 root root 157 Oct 31 2019 nova-rootwrap
-rwxr-xr-x. 1 root root 161 Oct 31 2019 nova-rootwrap-daemon
-rwxr-xr-x. 1 root root 158 Oct 31 2019 nova-scheduler
-rwxr-xr-x. 1 root root 155 Oct 31 2019 nova-status
-rwxr-xr-x. 1 root root 160 Oct 31 2019 nova-xvpvncproxy
3 nova组件配置文件路径
[root@localhost bin]# cd /etc/nova
[root@localhost nova]# ls
api-paste.ini migration nova.conf policy.json release rootwrap.conf
总结:
通过packstack安装的nova组件:
源码在: /usr/lib/python2.7/site-packages/nova
启动服务在: /usr/bin
配置文件在: /etc/nova
参考:
基于packstack安装queen版本的openstack