[Openstack] Question on nova disk injection...
    Russell Bryant 
    rbryant at redhat.com
       
    Tue Jun  5 21:50:02 UTC 2012
    
    
  
On 06/05/2012 05:42 PM, Joshua Harlow wrote:
> Hi all,
> 
> Just some questions that I had about how nova is doing disk injection
> and such.
> 
> I was noticing that it the main disk/api.py does a lot of tee, cat and
> similar commands. Is there any reason it couldn’t just use the standard
> python open and write data and such.
> 
> Is it because of sudo access (which is connected to rootwrap?), just
> wondering since it seems sort of odd that to write a file there a tee
> call has to be done with piped input, when python already has file
> operators and such...
Yes, if it is using run_as_root=True, then it has to be run with
nova-rootwrap.
-- 
Russell Bryant
    
    
More information about the Openstack
mailing list