Cinder rootwrap: add a new command...
Hi,
While developing a Cinder Driver, I am trying to execute 'mkdir' command using rootwrap.
Following are the chagnes made: Added "mkdir: CommandFilter, mkdir, root" to /usr/share/cinder/rootwrap/volume.filters
Running "sudo cinder-rootwrap /etc/cinder/rootwrap.conf ['mkdir' '/tmp/test']" results in error: /usr/bin/cinder-rootwrap: Unauthorized command: [mkdir /tmp/test] (no filter matched)
self._execute(['mkdir', volumeDir], run_as_root=True) in the driver failing with error
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf ['mkdir', u'/tmp/vol-7264261a-b42a-413a-b608-93cb095396b9'] Exit code: 99 Stdout: '' Stderr: "/usr/bin/cinder-rootwrap: Unauthorized command: ['mkdir', u'/tmp/vol-7264261a-b42a-413a-b608-93cb095396b9'] (no filter matched)\n" to caller