RGW: Using Lua script to monitor storage class put operations

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

 



I have a lua script that read Storageclass header of any put request (as I understand):
local function isempty(input)
  return input == nil or input == ''
end

if Request.RGWOp == 'put_obj' then
  RGWDebugLog("Put_Obj with StorageClass: " .. Request.HTTP.StorageClass )
end

Then apply the script:
radosgw-admin script put --infile=storage_class.lua --context=preRequest

Then put an object using boto3:
s3.Object(bucket, 'test-object').put(Body="0"*100, ACL='public-read', StorageClass='COLD')

But I can't find any log about it in radosgw log?
grep -i Lua /var/log/ceph/ceph-client.rgw.ceph1.log

Anyone have any ideal? Thanks
_______________________________________________
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