文件注入技术之guestmount 排错之道
OpenStack文件注入排错过程 1)撰写功能模块 1)因Centos 7.0 x64文件系统的特殊性(XFS),openztack.nova.virt.disk.api.vfs模块无法识别文件系统,故调用系统命令guestmount,撰写函数 IPDB调试代码是否成功 程序启动正常 看到下面的日志,表示^_^,创建成功 启动服务service openstack-nova-compute restart 2)如果我用ipdb/usr/bin/nova-compute--config-file=/etc/nova.conf就很OK 3)细心研究发现,guestmount之后的目录是root权限 [root@athControllereb9a4714-448a-4a2c-a9ee-53227b811753]#ll total9300 -rw-rw----1novanova0Aug2015:32console.log -rw-r--r--1novanova9437184Aug2015:34disk -rw-r--r--1novanova198656Aug2015:32disk.local...