Getting error is "invalid.Sizemustbebetween0and16793600" when I select date from date options

asked 2015-08-16 00:00:45 -0500

neelabhsingh gravatar image

I have installed ceilometer in openstack. In Resource Usage panel, in stats tab there are some selection option, when I select period='other' then date to and date from appears. When I select date, it gives following error failed: exception: BSONObjsize: -286331154(0xEEEEEEEE)isinvalid.Sizemustbebetween0and16793600(16MB)Firstelement: _id: ObjectId('55c5b926e138230fb7202e32')(HTTP500)(Request-ID: req-3e7ce66b-a251-47ea-99d7-9e3fa3da6b0a

InternalServerError: commandSON([
    ('mapreduce',
    u'meter'),
    ('map',
    'function(){
        \nvarperiod=86400*1000;\nvarperiod_first=1437066157*1000;\nvarperiod_start=period_first\n+(Math.floor(newDate(this.timestamp.getTime()\n-period_first)/period)\n*period);\n\nvaraggregate={

        };\n\nemit(period_start,
        {
            unit: this.counter_unit,
            \naggregate: aggregate,
            \ncount: NumberInt(1),
            max: this.counter_volume,
            sum: this.counter_volume,
            acount: NumberInt(1),
            asum: this.counter_volume,
            min: this.counter_volume,
            \ngroupby: null,
            \nduration_start: this.timestamp,
            \nduration_end: this.timestamp,
            \nperiod_start: newDate(period_start),
            \nperiod_end: newDate(period_start+period)
        })\n
    }'),
    ('finalize',
    '\nfunction(key,
    value){
        \nvalue.avg=value.asum/value.acount;\nvalue.duration=(value.duration_end-value.duration_start)/1000;\nvalue.period=NumberInt(86400);\nreturnvalue;\n
    }'),
    ('reduce',
    '\nfunction(key,
    values){
        \n\nvarres={
            unit: values[
                0
            ].unit,
            \naggregate: values[
                0
            ].aggregate,
            \ncount: values[
                0
            ].count,
            max: values[
                0
            ].max,
            sum: values[
                0
            ].sum,
            acount: values[
                0
            ].acount,
            asum: values[
                0
            ].asum,
            min: values[
                0
            ].min,
            \ngroupby: values[
                0
            ].groupby,
            \nperiod_start: values[
                0
            ].period_start,
            \nperiod_end: values[
                0
            ].period_end,
            \nduration_start: values[
                0
            ].duration_start,
            \nduration_end: values[
                0
            ].duration_end
        };\nfor(vari=1;i<values.length;i++){
            \nres.count=NumberInt(res.count+values[
                i
            ].count);if(values[
                i
            ].max>res.max){
                res.max=values[
                    i
                ].max;
            }res.sum+=values[
                i
            ].sum;res.acount=NumberInt(res.acount+values[
                i
            ].acount);res.asum+=values[
                i
            ].asum;if(values[
                i
            ].min<res.min){
                res.min=values[
                    i
                ].min;
            }\nif(values[
                i
            ].duration_start<res.duration_start)\nres.duration_start=values[
                i
            ].duration_start;\nif(values[
                i
            ].duration_end>res.duration_end)\nres.duration_end=values[
                i
            ].duration_end;\nif(values[
                i
            ].period_start<res.period_start)\nres.period_start=values[
                i
            ].period_start;\nif(values[
                i
            ].period_end>res.period_end)\nres.period_end=values[
                i
            ].period_end;
        }\nreturnres;\n
    }\n'),
    ('query',
    {
        'timestamp': {
            '$lte': datetime.datetime(2015,
            8,
            15,
            17,
            2,
            37,
            288468),
            '$gte': datetime.datetime(2015,
            7,
            16,
            17,
            2,
            37,
            288468)
        },
        'counter_name': u'instance',
        'project_id': u'eb68d14be910469db12bec3098964b45'
    }),
    ('out',
    {
        'inline': 1
    })failed: exception: BSONObjsize: -286331154(0xEEEEEEEE)isinvalid.Sizemustbebetween0and16793600(16MB)Firstelement: _id: ObjectId('55c5b926e138230fb7202e32')(HTTP500)(Request-ID: req-3e7ce66b-a251-47ea-99d7-9e3fa3da6b0a
])
edit retag flag offensive close merge delete