ceph-csi icon indicating copy to clipboard operation
ceph-csi copied to clipboard

rebase: use v0.17.0 of go-ceph library

Open humblec opened this issue 3 years ago • 2 comments

new version of go ceph is available and this commit make use of the same. Ref # https://github.com/ceph/go-ceph/releases/tag/v0.17.0

Signed-off-by: Humble Chirammal [email protected]

humblec avatar Aug 16 '22 13:08 humblec

@humblec CI is failing can you please check

Madhu-1 avatar Aug 17 '22 05:08 Madhu-1

The new APIs are causing the failure.. the go-ceph part of these APIs are "preview mode" ,

  internal/cephfs/core/metadata.go:86:12: fsa.RemoveMetadata undefined (type *"github.com/ceph/go-ceph/cephfs/admin".FSAdmin has no field or method RemoveMetadata) (typecheck)
	err = fsa.RemoveMetadata(s.FsName, s.SubvolumeGroup, s.VolID, key)
	          ^
internal/cephfs/core/snapshot_metadata.go:64:12: fsa.SetSnapshotMetadata undefined (type *"github.com/ceph/go-ceph/cephfs/admin".FSAdmin has no field or method SetSnapshotMetadata) (typecheck)
	err = fsa.SetSnapshotMetadata(s.FsName, s.SubvolumeGroup, s.VolID, s.SnapshotID, key, value)
	          ^
internal/cephfs/core/snapshot_metadata.go:83:12: fsa.RemoveSnapshotMetadata undefined (type *"github.com/ceph/go-ceph/cephfs/admin".FSAdmin has no field or method RemoveSnapshotMetadata) (typecheck)
	err = fsa.RemoveSnapshotMetadata(s.FsName, s.SubvolumeGroup, s.VolID, s.SnapshotID, key)

Ceph build's ceph_preview tag is enabled for our builds already, may be we need a different tag ceph_pre_{pacific,quincy}, ceph_main ?

Cc @nixpanic @pkalever

humblec avatar Aug 17 '22 09:08 humblec

Looks like the CephFS metadata functions are only valid for pre-Quincy versions? Not sure if Quincy requires other functions, or how it is done there. Maybe @pkalever knows.

nixpanic avatar Aug 17 '22 12:08 nixpanic

I think the reason we added those APIs as the preview was that the intended Ceph PRs introducing those metadata commands were still in master and not released in any Ceph release yet. Need to check if they were available in the latest release of Ceph and should move them to stable API sections in go-ceph.

Looks like the CephFS metadata functions are only valid for pre-Quincy versions? Not sure if Quincy requires other functions, or how it is done there. Maybe @pkalever knows.

Quincy and pre-quincy have the same commands and APIs, the original Quincy PRs are backported to the pacific and octopus.

pkalever avatar Aug 17 '22 12:08 pkalever

As in https://github.com/ceph/ceph-csi/pull/3308#issuecomment-1217773138 , I think one of the tags below should help . ceph_pre_{qunicy/pacific} or ceph_main

humblec avatar Aug 17 '22 12:08 humblec

I think the reason we added those APIs as the preview was that the intended Ceph PRs introducing those metadata commands were still in master and not released in any Ceph release yet. Need to check if they were available in the latest release of Ceph and should move them to stable API sections in go-ceph.

Looks like these metadata commands are targeted for Ceph - v18.0.0, which is not out yet!, we still need to wait on this!

pkalever avatar Aug 17 '22 13:08 pkalever

@nixpanic @pkalever as anticipated ceph_pre_quincy helps here. ptal .. thanks.

humblec avatar Aug 18 '22 04:08 humblec

rebase

☑️ Nothing to do

  • [X] -closed [:pushpin: rebase requirement]
  • [ ] any of:
    • [ ] #commits-behind>0 [:pushpin: rebase requirement]
    • [ ] -linear-history [:pushpin: rebase requirement]

mergify[bot] avatar Aug 18 '22 05:08 mergify[bot]

/retest ci/centos/k8s-e2e-external-storage/1.22

humblec avatar Aug 18 '22 08:08 humblec

/retest ci/centos/upgrade-tests-cephfs

humblec avatar Aug 18 '22 08:08 humblec

/retest ci/centos/mini-e2e/k8s-1.24

humblec avatar Aug 18 '22 08:08 humblec

/retest ci/centos/mini-e2e/k8s-1.24

humblec avatar Aug 18 '22 08:08 humblec

/retest ci/centos/mini-e2e-helm/k8s-1.22

humblec avatar Aug 18 '22 08:08 humblec

@mergifyio rebase

Rakshith-R avatar Aug 18 '22 08:08 Rakshith-R

rebase

✅ Branch has been successfully rebased

mergify[bot] avatar Aug 18 '22 08:08 mergify[bot]