Re: Error removing snapshot schedule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This worked perfectly. Thank you!

-jeremy

> On Wednesday, Feb 23, 2022 at 8:52 PM, Venky Shankar <vshankar@xxxxxxxxxx (mailto:vshankar@xxxxxxxxxx)> wrote:
> On Thu, Feb 24, 2022 at 8:00 AM Jeremy Hansen <jeremy@xxxxxxxxxx> wrote:
> >
> > Can’t figure out what I’m doing wrong. Is there another way to remove a snapshot schedule?
> >
> > [ceph: root@cephn1 /]# ceph fs snap-schedule status / / testfs
> > {"fs": "testfs", "subvol": null, "path": "/", "rel_path": "/", "schedule": "1h", "retention": {}, "start": "2022-02-22T20:08:30", "created": "2022-02-23T04:08:46", "first": "2022-02-24T01:08:30", "last": "2022-02-24T02:08:30", "last_pruned": null, "created_count": 2, "pruned_count": 0, "active": true}
> > ===
> > {"fs": "testfs", "subvol": null, "path": "/", "rel_path": "/", "schedule": "1h", "retention": {}, "start": "2022-02-23T04:30:00", "created": "2022-02-23T04:15:45", "first": "2022-02-24T00:30:00", "last": "2022-02-24T01:30:00", "last_pruned": "2022-02-24T01:30:00", "created_count": 2, "pruned_count": 1, "active": true}
> > [ceph: root@cephn1 /]# ceph fs snap-schedule remove / 1h 2022-02-23T04:30:00 / testfs
>
> Could you try:
>
> ceph fs snap-schedule remove / 1h 2022-02-23T04:30:00 --fs testfs
>
> The "/" before the file system name is optional. We should clear that
> in the docs.
>
> > Error EINVAL: Traceback (most recent call last):
> > File "/usr/share/ceph/mgr/mgr_module.py", line 1386, in _handle_command
> > return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
> > File "/usr/share/ceph/mgr/mgr_module.py", line 397, in call
> > return self.func(mgr, **kwargs)
> > File "/usr/share/ceph/mgr/snap_schedule/module.py", line 149, in snap_schedule_rm
> > abs_path = self.resolve_subvolume_path(fs, subvol, path)
> > File "/usr/share/ceph/mgr/snap_schedule/module.py", line 37, in resolve_subvolume_path
> > fs, subvol)
> > File "/usr/share/ceph/mgr/mgr_module.py", line 1770, in remote
> > args, kwargs)
> > ImportError: Module not found
> >
> > -jeremy
> >
> > > On Tuesday, Feb 22, 2022 at 8:36 PM, Jeremy Hansen <jeremy@xxxxxxxxxx (mailto:jeremy@xxxxxxxxxx)> wrote:
> > > Ceph Pacific 16.2.7 using podman containers for orchestration on Rocky Linux 8.5
> > >
> > > I’m able to add schedules, but trying to remove them, or even use the remove command at all results in a python barf.
> > >
> > > [root@cephn1 ~]# cephadm shell
> > > [ceph: root@cephn1 /]# ceph fs snap-schedule status / / testfs
> > > {"fs": "testfs", "subvol": null, "path": "/", "rel_path": "/", "schedule": "1h", "retention": {}, "start": "2022-02-22T20:08:30", "created": "2022-02-23T04:08:46", "first": null, "last": null, "last_pruned": null, "created_count": 0, "pruned_count": 0, "active": true}
> > > ===
> > > {"fs": "testfs", "subvol": null, "path": "/", "rel_path": "/", "schedule": "1h", "retention": {}, "start": "2022-02-23T04:30:00", "created": "2022-02-23T04:15:45", "first": null, "last": null, "last_pruned": null, "created_count": 0, "pruned_count": 0, "active": true}
> > > (failed reverse-i-search)`remve': ceph fs snap-schedule ^Cmove
> > > [ceph: root@cephn1 /]# ceph fs snap-schedule remove / 1h 2022-02-22T20:08:30 / testfs
> > > Error EINVAL: Traceback (most recent call last):
> > > File "/usr/share/ceph/mgr/mgr_module.py", line 1386, in _handle_command
> > > return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
> > > File "/usr/share/ceph/mgr/mgr_module.py", line 397, in call
> > > return self.func(mgr, **kwargs)
> > > File "/usr/share/ceph/mgr/snap_schedule/module.py", line 149, in snap_schedule_rm
> > > abs_path = self.resolve_subvolume_path(fs, subvol, path)
> > > File "/usr/share/ceph/mgr/snap_schedule/module.py", line 37, in resolve_subvolume_path
> > > fs, subvol)
> > > File "/usr/share/ceph/mgr/mgr_module.py", line 1770, in remote
> > > args, kwargs)
> > > ImportError: Module not found
> > >
> > > [ceph: root@cephn1 /]# ceph fs snap-schedule remove
> > > Error EINVAL: Traceback (most recent call last):
> > > File "/usr/share/ceph/mgr/mgr_module.py", line 1386, in _handle_command
> > > return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
> > > File "/usr/share/ceph/mgr/mgr_module.py", line 397, in call
> > > return self.func(mgr, **kwargs)
> > > File "/usr/share/ceph/mgr/snap_schedule/module.py", line 150, in snap_schedule_rm
> > > self.client.rm_snap_schedule(use_fs, abs_path, repeat, start)
> > > File "/usr/share/ceph/mgr/snap_schedule/fs/schedule_client.py", line 51, in f
> > > func(self, fs, schedule_or_path, *args)
> > > File "/usr/share/ceph/mgr/snap_schedule/fs/schedule_client.py", line 274, in rm_snap_schedule
> > > Schedule.rm_schedule(db, path, schedule, start)
> > > File "/usr/share/ceph/mgr/snap_schedule/fs/schedule.py", line 278, in rm_schedule
> > > if len(row) == 0:
> > > TypeError: object of type 'NoneType' has no len()
> > >
> > >
> > >
> > > Seems like a python version thing, but how do I get around that since this is a container?
> > >
> > > Thanks
> > > -jeremy
> > >
> > >
> > >
> > >
> >
> > _______________________________________________
> > ceph-users mailing list -- ceph-users@xxxxxxx
> > To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
>
>
> --
> Cheers,
> Venky
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux