rootwrap: update ln --symbolic filter for FS and FC type volume drivers
rootwrap: update ln --symbolic filter for FS and FC type volume drivers

Cinder change I03f8cae05cc117e14f7482115de685fc9f3fa54a sets the
'encrypted' key for all cinder volume drivers connection_info. When run
through the encrypted volume tests in Tempest, this hits the encryption
providers in Nova that fail for certain types of volume drivers, like
file system and fibre channel, due to the rootwrap filter not matching.

This change updates the symbolic link rootwrap filter so it works with
file system and fibre channel type volume backends rather than just
iSCSI.

The /dev/mapper/ prefix is always set in the encryptor modules, so that
can remain as before.

The symbolic link path is a complete wildcard, however, because the file
system volume backends all have a configurable option for the mount path
prefix, which defaults to $state_path/mnt but may not be that value.

An example call for NFS:

ln --symbolic --force \
/dev/mapper/volume-f5684ecc-959f-4de8-8d62-a8adf4bdb4cc \
/opt/stack/data/nova/mnt/21dd48babac42ae884d1192b8697a041/\
volume-f5684ecc-959f-4de8-8d62-a8adf4bdb4cc

An example call for fibre channel:

ln --symbolic --force \
/dev/mapper/pci-0000:06:00.0-fc-0x5006016508603f9f-lun-151 \
/dev/disk/by-path/pci-0000:06:00.0-fc-0x5006016508603f9f-lun-151

This change also updates the sg_info and sgscan entries to reference the
correct module since those are not called from nova.virt.libvirt.volume
anymore.

Closes-Bug: #1470142
Related-Bug: #1440227

Change-Id: I181b594a3119f7ad74c595fc7059d521079b1d74

openstack/nova,alaski/nova,shail2810/nova,apporc/nova,dims/nova,barnsnake351/nova,klmitch/nova,scripnichenko/nova,varunarya10/nova_test_latest,klmitch/nova,iuliat/nova,LoHChina/nova,LoHChina/nova,ted-gould/nova,zaina/nova,CEG-FYP-OpenStack/scheduler,zzicewind/nova,iuliat/nova,isyippee/nova,ruslanloman/nova,devendermishrajio/nova_test_latest,mahak/nova,rajalokan/nova,edulramirez/nova,rajalokan/nova,vmturbo/nova,whitepages/nova,Juniper/nova,zhimin711/nova,sebrandon1/nova,jianghuaw/nova,takeshineshiro/nova,dims/nova,raildo/nova,CCI-MOC/nova,Francis-Liu/animated-broccoli,mmnelemane/nova,sebrandon1/nova,phenoxim/nova,shail2810/nova,zzicewind/nova,gooddata/openstack-nova,phenoxim/nova,cernops/nova,j-carpentier/nova,JioCloud/nova_test_latest,NeCTAR-RC/nova,JianyuWang/nova,sebrandon1/nova,klmitch/nova,mikalstill/nova,rahulunair/nova,mikalstill/nova,JianyuWang/nova,rajalokan/nova,akash1808/nova_test_latest,alaski/nova,vmturbo/nova,akash1808/nova_test_latest,rahulunair/nova,CEG-FYP-OpenStack/scheduler,Juniper/nova,nikesh-mahalka/nova,zhimin711/nova,fnordahl/nova,mmnelemane/nova,openstack/nova,TwinkleChawla/nova,vmturbo/nova,yosshy/nova,mahak/nova,noironetworks/nova,cloudbase/nova,TwinkleChawla/nova,edulramirez/nova,bigswitch/nova,cyx1231st/nova,MountainWei/nova,cernops/nova,rajalokan/nova,bigswitch/nova,nikesh-mahalka/nova,cloudbase/nova,hanlind/nova,JioCloud/nova_test_latest,j-carpentier/nova,Juniper/nova,vmturbo/nova,BeyondTheClouds/nova,Francis-Liu/animated-broccoli,NeCTAR-RC/nova,devendermishrajio/nova,apporc/nova,klmitch/nova,whitepages/nova,devendermishrajio/nova_test_latest,cernops/nova,zaina/nova,ted-gould/nova,felixma/nova,varunarya10/nova_test_latest,watonyweng/nova,watonyweng/nova,noironetworks/nova,fnordahl/nova,mikalstill/nova,devendermishrajio/nova,openstack/nova,mahak/nova,felixma/nova,gooddata/openstack-nova,jianghuaw/nova,barnsnake351/nova,cyx1231st/nova,cloudbase/nova,rahulunair/nova,gooddata/openstack-nova,Juniper/nova,isyippee/nova,yosshy/nova,jianghuaw/nova,BeyondTheClouds/nova,scripnichenko/nova,hanlind/nova,ruslanloman/nova,MountainWei/nova,CCI-MOC/nova,takeshineshiro/nova,raildo/nova,jianghuaw/nova,BeyondTheClouds/nova,hanlind/nova,gooddata/openstack-nova