Description of problem: ======================= Unable to schedule snapshots as snapshot scheduler is failing in python3 with the below error - Traceback (most recent call last): File "/usr/sbin/snap_scheduler.py", line 941, in <module> sys.exit(main(sys.argv[1:])) File "/usr/sbin/snap_scheduler.py", line 851, in main initLogger() File "/usr/sbin/snap_scheduler.py", line 153, in initLogger logfile = os.path.join(process.stdout.read()[:-1], SCRIPT_NAME + ".log") File "/usr/lib64/python3.6/posixpath.py", line 94, in join genericpath._check_arg_types('join', a, *p) File "/usr/lib64/python3.6/genericpath.py", line 151, in _check_arg_types raise TypeError("Can't mix strings and bytes in path components") from None TypeError: Can't mix strings and bytes in path components Version-Release number of selected component (if applicable): ============================================================= glusterfs-6.0-30.el8rhgs.x86_64 How reproducible: ================= Always Steps to Reproduce: =================== 1.Create a volume and start the volume , mount and run IO's 2.To schedule a snapshot enable cluster.enable-shared-storage gluster volume set all cluster.enable-shared-storage enable 3.Set - setsebool -P cron_system_cronjob_use_shares on 4.Run snap_scheduler.py init Fails with the below error [root@rhsqa2 yum.repos.d]# snap_scheduler.py init Traceback (most recent call last): File "/usr/sbin/snap_scheduler.py", line 941, in <module> sys.exit(main(sys.argv[1:])) File "/usr/sbin/snap_scheduler.py", line 851, in main initLogger() File "/usr/sbin/snap_scheduler.py", line 153, in initLogger logfile = os.path.join(process.stdout.read()[:-1], SCRIPT_NAME + ".log") File "/usr/lib64/python3.6/posixpath.py", line 94, in join genericpath._check_arg_types('join', a, *p) File "/usr/lib64/python3.6/genericpath.py", line 151, in _check_arg_types raise TypeError("Can't mix strings and bytes in path components") from None TypeError: Can't mix strings and bytes in path components Actual results: ============== Fail to run "snap_scheduler.py init" Expected results: ================= This should pass Additional info: =============== [root@rhsqa3 sbin]# rpm -qa|grep gluster glusterfs-6.0-30.el8rhgs.x86_64 glusterfs-api-6.0-30.el8rhgs.x86_64 glusterfs-debuginfo-6.0-30.el8rhgs.x86_64 glusterfs-events-6.0-30.el8rhgs.x86_64 glusterfs-libs-6.0-30.el8rhgs.x86_64 glusterfs-client-xlators-6.0-30.el8rhgs.x86_64 glusterfs-cli-6.0-30.el8rhgs.x86_64 python3-gluster-6.0-30.el8rhgs.x86_64 glusterfs-fuse-6.0-30.el8rhgs.x86_64 glusterfs-rdma-6.0-30.el8rhgs.x86_64 glusterfs-devel-6.0-30.el8rhgs.x86_64 glusterfs-server-6.0-30.el8rhgs.x86_64 glusterfs-geo-replication-6.0-30.el8rhgs.x86_64 [root@rhsqa3 sbin]# gluster v status Status of volume: gluster_shared_storage Gluster process TCP Port RDMA Port Online Pid ------------------------------------------------------------------------------ Brick rhsqa1.lab.eng.blr.redhat.com:/var/li b/glusterd/ss_brick 49157 0 Y 3182 Brick rhsqa2.lab.eng.blr.redhat.com:/var/li b/glusterd/ss_brick 49157 0 Y 1880 Brick rhsqa3.lab.eng.blr.redhat.com:/var/li b/glusterd/ss_brick 49155 0 Y 32383 Self-heal Daemon on localhost N/A N/A Y 32714 Self-heal Daemon on rhsqa1.lab.eng.blr.redh at.com N/A N/A Y 29185 Self-heal Daemon on rhsqa4.lab.eng.blr.redh at.com N/A N/A Y 5105 Self-heal Daemon on rhsqa2.lab.eng.blr.redh at.com N/A N/A Y 2122 Task Status of Volume gluster_shared_storage ------------------------------------------------------------------------------ There are no active volume tasks Status of volume: replica-vol-ssl Gluster process TCP Port RDMA Port Online Pid ------------------------------------------------------------------------------ Brick rhsqa1.lab.eng.blr.redhat.com:/bricks /brick0/rep1 49152 0 Y 28312 Brick rhsqa2.lab.eng.blr.redhat.com:/bricks /brick0/rep1 49152 0 Y 1294 Brick rhsqa3.lab.eng.blr.redhat.com:/bricks /brick2/rep1 49152 0 Y 24564 Brick rhsqa1.lab.eng.blr.redhat.com:/bricks /brick1/rep2 49153 0 Y 28333 Brick rhsqa2.lab.eng.blr.redhat.com:/bricks /brick1/rep2 N/A N/A N N/A Brick rhsqa4.lab.eng.blr.redhat.com:/bricks /brick1/rep2 N/A N/A N N/A Snapshot Daemon on localhost 49153 0 Y 28947 Self-heal Daemon on localhost N/A N/A Y 32714 Quota Daemon on localhost N/A N/A Y 7660 Snapshot Daemon on rhsqa1.lab.eng.blr.redha t.com 49154 0 Y 12965 Self-heal Daemon on rhsqa1.lab.eng.blr.redh at.com N/A N/A Y 29185 Quota Daemon on rhsqa1.lab.eng.blr.redhat.c om N/A N/A Y 29860 Snapshot Daemon on rhsqa4.lab.eng.blr.redha t.com 49153 0 Y 18662 Self-heal Daemon on rhsqa4.lab.eng.blr.redh at.com N/A N/A Y 5105 Quota Daemon on rhsqa4.lab.eng.blr.redhat.c om N/A N/A Y 5126 Snapshot Daemon on rhsqa2.lab.eng.blr.redha t.com 49154 0 Y 16235 Self-heal Daemon on rhsqa2.lab.eng.blr.redh at.com N/A N/A Y 2122 Quota Daemon on rhsqa2.lab.eng.blr.redhat.c om N/A N/A Y 15444 Task Status of Volume replica-vol-ssl ------------------------------------------------------------------------------ There are no active volume tasks [root@rhsqa3 sbin]# gluster v info Volume Name: gluster_shared_storage Type: Replicate Volume ID: 498ec502-9874-4a3a-b772-cfbe13dbbd32 Status: Started Snapshot Count: 0 Number of Bricks: 1 x 3 = 3 Transport-type: tcp Bricks: Brick1: rhsqa1.lab.eng.blr.redhat.com:/var/lib/glusterd/ss_brick Brick2: rhsqa2.lab.eng.blr.redhat.com:/var/lib/glusterd/ss_brick Brick3: rhsqa3.lab.eng.blr.redhat.com:/var/lib/glusterd/ss_brick Options Reconfigured: transport.address-family: inet storage.fips-mode-rchecksum: on nfs.disable: on performance.client-io-threads: off cluster.enable-shared-storage: enable Volume Name: replica-vol-ssl Type: Distributed-Replicate Volume ID: a87474d9-db3b-414c-afac-a1489d821795 Status: Started Snapshot Count: 1 Number of Bricks: 2 x 3 = 6 Transport-type: tcp Bricks: Brick1: rhsqa1.lab.eng.blr.redhat.com:/bricks/brick0/rep1 Brick2: rhsqa2.lab.eng.blr.redhat.com:/bricks/brick0/rep1 Brick3: rhsqa3.lab.eng.blr.redhat.com:/bricks/brick2/rep1 Brick4: rhsqa1.lab.eng.blr.redhat.com:/bricks/brick1/rep2 Brick5: rhsqa2.lab.eng.blr.redhat.com:/bricks/brick1/rep2 Brick6: rhsqa4.lab.eng.blr.redhat.com:/bricks/brick1/rep2 Options Reconfigured: features.barrier: disable features.uss: on features.quota-deem-statfs: on features.inode-quota: on features.quota: on client.ssl: on server.ssl: on auth.ssl-allow: rhsqa1.lab.eng.blr.redhat.com,rhsqa2.lab.eng.blr.redhat.com,rhsqa3.lab.eng.blr.redhat.com,rhsqa4.lab.eng.blr.redhat.com,rhsqa5.lab.eng.blr.redhat.com,rhsqa8.lab.eng.blr.redhat.com,rhs-client21.lab.eng.blr.redhat.com transport.address-family: inet storage.fips-mode-rchecksum: on nfs.disable: on performance.client-io-threads: off cluster.enable-shared-storage: enable Note - This is a SSL enabled setup , but seeing the same behaviour in other setup also