← Back to team overview

openstack team mailing list archive

Re: Question on nova disk injection...

 

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


Follow ups

References