Re: Ceph Object Gateway and lua scripts

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

 



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@xxxxxxxxxxx> 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@xxxxxxxxxx> 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@xxxxxxxxxxx> 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@xxxxxxx
>>> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>>>
>>>
>
> *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@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