openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #12693
file injection
I meet some problem when I test file inject
my command is :
nova boot --file /root/ss.ss=/root/.vimrc --key_name key1 --image
889331de-b4d3-4abf-bba9-264912290477 --flavor 1 h
I get this error in nova-compute.log
nova-rootwrap guestmount --rw -a
/var/lib/nova/instances/instance-0000006a/disk -m /dev/sda1 /tmp/tmp07W7nA
from (pid=8009) execute
/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/utils.py:176
2012-06-04 10:20:34 DEBUG nova.utils
[req-b8b97f06-7ca9-409a-95e5-d106edd6cdc1 5df498f423014fc594a1169a2c88e6fa
12b68a84fb674ab1b571fc3c1d4bb957] Running cmd (subprocess): sudo
nova-rootwrap mkdir -p /tmp/tmp07W7nA/root from (pid=8009) execute
/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/utils.py:176
2012-06-04 10:20:34 DEBUG nova.utils
[req-b8b97f06-7ca9-409a-95e5-d106edd6cdc1 5df498f423014fc594a1169a2c88e6fa
12b68a84fb674ab1b571fc3c1d4bb957] Running cmd (subprocess): sudo
nova-rootwrap tee /tmp/tmp07W7nA/root/ss.ss from (pid=8009) execute
/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/utils.py:176
2012-06-04 10:20:34 DEBUG nova.utils
[req-b8b97f06-7ca9-409a-95e5-d106edd6cdc1 5df498f423014fc594a1169a2c88e6fa
12b68a84fb674ab1b571fc3c1d4bb957] Running cmd (subprocess): sudo
nova-rootwrap fusermount -u /tmp/tmp07W7nA from (pid=8009) execute
/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/utils.py:176
2012-06-04 10:20:34 DEBUG nova.utils
[req-b8b97f06-7ca9-409a-95e5-d106edd6cdc1 5df498f423014fc594a1169a2c88e6fa
12b68a84fb674ab1b571fc3c1d4bb957] Result was 1 from (pid=8009) execute
/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/utils.py:192
2012-06-04 10:20:34 ERROR nova.compute.manager
[req-b8b97f06-7ca9-409a-95e5-d106edd6cdc1 5df498f423014fc594a1169a2c88e6fa
12b68a84fb674ab1b571fc3c1d4bb957] [instance:
6f438155-a975-482a-9fd2-5210d2e9ad5b] Instance failed to spawn
Tracepath.......................
OSError: [Errno 16] Device or resource busy: '/tmp/tmp07W7nA'
I don't know much about file inject, I haven't see any example command
about file inject, so I don't know which part of my command is wrong
PS: I can successfully inject ssh-key
Thanks
--
William Herry
====================
WilliamHerryChina@xxxxxxxxx