[LU-16626] Don't use or check for python2 for lustre-zfs-dkms rpm Created: 09/Mar/23  Updated: 19/Oct/23  Resolved: 22/Mar/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.16.0
Fix Version/s: Lustre 2.16.0, Lustre 2.15.4

Type: Bug Priority: Minor
Reporter: Jian Yu Assignee: Alex Deiter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-16657 installing kmod-lustre-osd-zfs failed... Resolved
is related to LU-17061 Python2 references in lustre-client-d... Open
is related to LU-16242 Self-built lustre-client-dkms require... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   
2023-03-09T04:43:04 trevis-99vm3 - Yum installing lustre-osd-zfs...
2023-03-09T04:43:04 trevis-99vm3 - Attempt 1
2023-03-09T04:43:06 trevis-99vm3 - yum install completed: out=[Updating Subscription Management repositories.
Last metadata expiration check: 0:12:10 ago on Thu 09 Mar 2023 04:30:56 AM UTC.
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
] err=[Error: 
 Problem: conflicting requests
  - nothing provides /usr/bin/python2 needed by lustre-all-dkms-2.15.54_62_g7bc5c20-1.el9.noarch
  - nothing provides kernel-debuginfo-common-x86_64 needed by lustre-all-dkms-2.15.54_62_g7bc5c20-1.el9.noarch
  - nothing provides /usr/bin/python2 needed by lustre-zfs-dkms-2.15.54_62_g7bc5c20-1.el9.noarch
] status=[pid 10915 exit 1]

https://testing.whamcloud.com/test_sets/fc1e57ba-4aff-43b3-bf14-4ab2bf4ecb69



 Comments   
Comment by Jian Yu [ 09/Mar/23 ]
lustre/scripts/zfsobj2fid:1:#!/usr/bin/env python2
Comment by Jian Yu [ 09/Mar/23 ]

Hi Deiter,
Could you please help with this?
I'm not sure if just changing python2 to python3 in the shebang line in lustre/scripts/zfsobj2fid works.

Comment by Gerrit Updater [ 09/Mar/23 ]

"Alex Deiter <alex.deiter@gmail.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50241
Subject: LU-16626 build: remove python2 dependencies
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ca45e33b8846e0cedca393109b4f846b53133824

Comment by Alex Deiter [ 09/Mar/23 ]

Hello yujian,

Please review: https://review.whamcloud.com/c/fs/lustre-release/+/50241

Thank you!

Comment by Jian Yu [ 09/Mar/23 ]

Thank you, Alex.

Comment by Gerrit Updater [ 21/Mar/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50241/
Subject: LU-16626 build: remove python2 dependencies
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 404a1e827b0a9d86864695c8699e1ca076be6c9d

Comment by Peter Jones [ 22/Mar/23 ]

Landed for 2.16

Comment by Gerrit Updater [ 23/Jun/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51426
Subject: LU-16626 build: remove python2 dependencies
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: c1c2850089fd5fb04f883be45fee3ebb4b67496c

Comment by Gerrit Updater [ 19/Oct/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51426/
Subject: LU-16626 build: remove python2 dependencies
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 53f40033ccf9eeb4155b18f4046f33b19252aa18

Generated at Sat Feb 10 03:28:38 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.