Bug 1798244

Summary: Stratis devices should inhabit an existing root directory path
Product: Red Hat Enterprise Linux 8 Reporter: Dennis Keefe <dkeefe>
Component: stratisdAssignee: John Baublitz <jbaublitz>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact: bilhar
Priority: unspecified    
Version: 8.4CC: amulhern, bgurney, bilhar, dkeefe, guazhang, rhandlin
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.2.0 Doc Type: Enhancement
Doc Text:
.Stratis filesystem symlink paths have changed With this enhancement, Stratis filesystem symlink paths have changed from `/stratis/_<stratis-pool>_/_<filesystem-name>_` to `/dev/stratis/_<stratis-pool>_/_<filesystem-name>_`. Consequently, all existing Stratis symlinks must be migrated to utilize the new symlink paths. Use the included `stratis_migrate_symlinks.sh` migration script or reboot your system to update the symlink paths. If you manually changed the `systemd` unit files or the `/etc/fstab` file to automatically mount Stratis filesystems, you must update them with the new symlink paths. [NOTE] If you do not update your configuration with the new Stratis symlink paths, or if you temporarily disable the automatic mounts, the boot process might not complete the next time you reboot or start your system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:58:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennis Keefe 2020-02-04 22:21:42 UTC
Description of problem:
Stratis currently creates a directory of /stratis when stratisd is started. 
This is in opposition to the Filesystem Hierarchy Standard.  Also, /stratis
requires special selinux permission, and the root path of stratis may prevent
other products and applications from access the artifacts created by stratis, such as, containers and SilverBlue. 

Version-Release number of selected component (if applicable):
stratisd 2.0.1

How reproducible:
Install stratisd and start service

Steps to Reproduce:
1. yum -y install stratisd 
2. systemctl enable stratisd; systemctl start straisd
3. ls /

Actual results:
The results show that there is a stratis directory in root

Expected results:
Stratis directory should be located in an existing root directory, such as, /dev


Additional info:
https://github.com/stratis-storage/project/issues/95

Comment 2 mulhern 2020-07-14 17:20:20 UTC
Upstream https://github.com/stratis-storage/project/issues/95.

Comment 5 guazhang@redhat.com 2020-12-15 12:40:01 UTC
Hi

test pass with stratisd-2.3.0 

[root@hpe-dl360pgen8-08 ~]# rpm -qa |grep stratis
stratisd-2.3.0-2.el8.x86_64
stratis-cli-2.3.0-2.el8.noarch
[root@hpe-dl360pgen8-08 ~]# stratis pool list
Name                   Total Physical   Properties
test2   10 GiB / 37.63 MiB / 9.96 GiB      ~Ca,~Cr
[root@hpe-dl360pgen8-08 ~]# ls /stratis
ls: cannot access '/stratis': No such file or directory
[root@hpe-dl360pgen8-08 ~]# ls  /dev/stratis
ls: cannot access '/dev/stratis': No such file or directory
[root@hpe-dl360pgen8-08 ~]# stratis fs  create test2 fs1
[root@hpe-dl360pgen8-08 ~]# ls /dev/stratis/test2/fs1 
/dev/stratis/test2/fs1

lsblk
sdc                                                                                       8:32   0    10G  0 disk    
`-stratis-1-private-127f6a267d564fb385c68195895339be-physical-originsub                 253:3    0    10G  0 stratis 
  |-stratis-1-private-127f6a267d564fb385c68195895339be-flex-thinmeta                    253:4    0    16M  0 stratis 
  | `-stratis-1-private-127f6a267d564fb385c68195895339be-thinpool-pool                  253:7    0    10G  0 stratis 
  |   `-stratis-1-127f6a267d564fb385c68195895339be-thin-fs-ee2ac7626cda4300b3296897eff1bc6d
  |                                                                                     253:8    0     1T  0 stratis /root/aa
  |-stratis-1-private-127f6a267d564fb385c68195895339be-flex-thindata                    253:5    0    10G  0 stratis 
  | `-stratis-1-private-127f6a267d564fb385c68195895339be-thinpool-pool                  253:7    0    10G  0 stratis 
  |   `-stratis-1-127f6a267d564fb385c68195895339be-thin-fs-ee2ac7626cda4300b3296897eff1bc6d
  |                                                                                     253:8    0     1T  0 stratis /root/aa
  `-stratis-1-private-127f6a267d564fb385c68195895339be-flex-mdv                         253:6    0    16M  0 stratis

Comment 11 Dennis Keefe 2021-05-05 12:07:24 UTC
Agreed with changes

Comment 15 errata-xmlrpc 2021-05-18 15:58:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (stratis-cli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1901