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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to