Ceph Object Gateway and lua scripts
Hi, We're currently testing out lua scripting in the Ceph Object Gateway (Radosgw). Ceph version: 17.2.5 We've tried a simple experiment with the simple lua script which is based on the documentation (see fixed width text below). However, the issue we're having is that we can't find the log messages anywhere. We've searched the entire jourrnalctl database as well as raised the debug level on the radosgw by setting debug_rgw to 20 on the running daemon. Any help welcome :) function print_object(msg, object) RGWDebugLog(" Title: " .. msg) RGWDebugLog(" Name: " .. object.Name) RGWDebugLog(" Instance: " .. object.Instance) RGWDebugLog(" Id: " .. object.Id) RGWDebugLog(" Size: " .. object.Size) RGWDebugLog(" MTime: " .. object.MTime) end RGWDebugLog("This is a log message!") Request.Log() if Request.CopyFrom then print_object("copy from", Request.CopyFrom.Object) if Request.CopyFrom.Object then print_object("copy from-object" ,Request.CopyFrom.Object) end end if Request.Object then print_object("Object" ,Request.Object) end Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.
Hi Thomas, I think you found a crash when using the lua "CopyFrom" field. Opened a tracker: https://tracker.ceph.com/issues/59381 Will fix SASP and keep you updated. Yuval On Wed, Apr 5, 2023 at 6:58 PM Thomas Bennett <thomas@sarao.ac.za> wrote:
Hi,
We're currently testing out lua scripting in the Ceph Object Gateway (Radosgw).
Ceph version: 17.2.5
We've tried a simple experiment with the simple lua script which is based on the documentation (see fixed width text below).
However, the issue we're having is that we can't find the log messages anywhere. We've searched the entire jourrnalctl database as well as raised the debug level on the radosgw by setting debug_rgw to 20 on the running daemon.
Any help welcome :)
function print_object(msg, object) RGWDebugLog(" Title: " .. msg) RGWDebugLog(" Name: " .. object.Name) RGWDebugLog(" Instance: " .. object.Instance) RGWDebugLog(" Id: " .. object.Id) RGWDebugLog(" Size: " .. object.Size) RGWDebugLog(" MTime: " .. object.MTime) end
RGWDebugLog("This is a log message!")
Request.Log() if Request.CopyFrom then print_object("copy from", Request.CopyFrom.Object) if Request.CopyFrom.Object then print_object("copy from-object" ,Request.CopyFrom.Object) end end
if Request.Object then print_object("Object" ,Request.Object) end
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Thanks Yuval. From your email I've confirmed that it's not the logging that is broken - it's the CopyFrom is causing an issue :) I've got some other example Lua scripts working now. Kind regards, Thomas On Sun, 9 Apr 2023 at 11:41, Yuval Lifshitz <ylifshit@redhat.com> wrote:
Hi Thomas,I think you found a crash when using the lua "CopyFrom" field.Opened a tracker: https://tracker.ceph.com/issues/59381Will <https://tracker.ceph.com/issues/59381Will> fix SASP and keep you updated.YuvalOn Wed, Apr 5, 2023 at 6:58 PM Thomas Bennett <thomas@sarao.ac.za> wrote:Hi,We're currently t
<https://za.report.cybergraph.mimecast.com/alert-details/?dep=gNvGpJ2HHW%2FgGKb2cEfe0A%3D%3DXSEHgbMo2U6IbqFdTQvo4Kd%2FDF6gJagHdW2k%2BAG3d9x4MXqxU3wFkGxLwQiLO5IGzNLl2KqNolOlGnMtmnH1MBDDffJcKf5bIk2ickC%2F%2BlGmtGrpYiSMEy1zRTvWpn882BdBNA60Pf%2Bs84bt4zlMKs%2FxJcFtoBRWdKZe4MHn8XEjYjcwg7LYRfHsMJewVWHIoKeOgQNgG2Jix1798ThqwFv9BwlmQhO9QEpuJ%2F1hsTJkK%2FTz7XHuxFKkC9V%2F6DSTzP97wnE1qBUova8Z4wM1t2hEccRf2jFxlcqsexechZ8p7lTKWJ8h%2FF9QW5m%2Bn5zgx%2FBFOFyIEXJkBKPuEa%2B%2F%2Bs6jtsyqprw85xW3boTIDqa97XXoh5frwFMbxgOQk9g3rfg9XYL%2BWrXgbZ0zGunI47Jy1ls%2BqgEjpfzR0DMMaD0BBButW95wk7p3rwtTk37BPSJwhdyneD6BujYExdxMoIOHr1CdxcFBar4kfJzRt%2Bebbf9Oww8jIbJDeeatPwBosYI8Bji2Iu%2FN3IvvkWSNdFrnPM4MmXUrc5kY0rRKKcz%2FjaukDmCy5L1CP9zm6GK1XjYv2r66PrLiqmL6CVAHn3gt48TO2TR%2Fl12Qg0pA6X12MoA6uw5ySF7GO%2FrnHEHKd5FMhZM0p%2F5lJGvizqEH7pEwGXWqetOOr8wuRA9sq7purYi29LGyUx4W%2FBAikaHW> Hi Thomas, I think you found a crash when using the lua "CopyFrom" field. Opened a tracker: https://tracker.ceph.com/issues/59381 <https://tracker.ceph.com/issues/59381>
Will fix SASP and keep you updated.
Yuval
On Wed, Apr 5, 2023 at 6:58 PM Thomas Bennett <thomas@sarao.ac.za> wrote:
Hi,
We're currently testing out lua scripting in the Ceph Object Gateway (Radosgw).
Ceph version: 17.2.5
We've tried a simple experiment with the simple lua script which is based on the documentation (see fixed width text below).
However, the issue we're having is that we can't find the log messages anywhere. We've searched the entire jourrnalctl database as well as raised the debug level on the radosgw by setting debug_rgw to 20 on the running daemon.
Any help welcome :)
function print_object(msg, object) RGWDebugLog(" Title: " .. msg) RGWDebugLog(" Name: " .. object.Name) RGWDebugLog(" Instance: " .. object.Instance) RGWDebugLog(" Id: " .. object.Id) RGWDebugLog(" Size: " .. object.Size) RGWDebugLog(" MTime: " .. object.MTime) end
RGWDebugLog("This is a log message!")
Request.Log() if Request.CopyFrom then print_object("copy from", Request.CopyFrom.Object) if Request.CopyFrom.Object then print_object("copy from-object" ,Request.CopyFrom.Object) end end
if Request.Object then print_object("Object" ,Request.Object) end
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.
It is a simple fix. you can have a look here: https://github.com/ceph/ceph/pull/50975 will backport to reef so it will be in the next release. On Tue, Apr 11, 2023 at 2:48 PM Thomas Bennett <thomas@sarao.ac.za> wrote:
Thanks Yuval. From your email I've confirmed that it's not the logging that is broken - it's the CopyFrom is causing an issue :)
I've got some other example Lua scripts working now.
Kind regards, Thomas
On Sun, 9 Apr 2023 at 11:41, Yuval Lifshitz <ylifshit@redhat.com> wrote:
Hi Thomas, I think you found a crash when using the lua "CopyFrom" field. Opened a tracker: https://tracker.ceph.com/issues/59381
Will fix SASP and keep you updated.
Yuval
On Wed, Apr 5, 2023 at 6:58 PM Thomas Bennett <thomas@sarao.ac.za> wrote:
Hi,
We're currently testing out lua scripting in the Ceph Object Gateway (Radosgw).
Ceph version: 17.2.5
We've tried a simple experiment with the simple lua script which is based on the documentation (see fixed width text below).
However, the issue we're having is that we can't find the log messages anywhere. We've searched the entire jourrnalctl database as well as raised the debug level on the radosgw by setting debug_rgw to 20 on the running daemon.
Any help welcome :)
function print_object(msg, object) RGWDebugLog(" Title: " .. msg) RGWDebugLog(" Name: " .. object.Name) RGWDebugLog(" Instance: " .. object.Instance) RGWDebugLog(" Id: " .. object.Id) RGWDebugLog(" Size: " .. object.Size) RGWDebugLog(" MTime: " .. object.MTime) end
RGWDebugLog("This is a log message!")
Request.Log() if Request.CopyFrom then print_object("copy from", Request.CopyFrom.Object) if Request.CopyFrom.Object then print_object("copy from-object" ,Request.CopyFrom.Object) end end
if Request.Object then print_object("Object" ,Request.Object) end
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
*Disclaimer*
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.
participants (2)
-
Thomas Bennett
-
Yuval Lifshitz