schemaList.append(mySchema) UnboundLocalError: local variable 'mySchema' referenced before assignment

Bug #1022663 reported by Charlie Schluting ☃
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
New
Undecided
Unassigned

Bug Description

I created a storage-aggregation.conf file, with the following:
[default]
xFilesFactor = 0

With that, carbon-cache fails to start:
  File "/opt/graphite/lib/carbon/storage.py", line 186, in loadAggregationSchemas
    schemaList.append(mySchema)
UnboundLocalError: local variable 'mySchema' referenced before assignment

If I add:
pattern = ^.*$

...it works. I didn't notice the docs say pattern was required -- is it intended to be required?

Thanks much!
 -Charlie

Revision history for this message
Nicholas Leskiw (nleskiw) wrote :

If you look at the storage-aggregation.conf.example file, you'll see that all of them have a pattern.
We strongly recommend using the examples as a base, and altering them to fit your needs rather than writing a new conf file from scratch.

Which docs didn't make it clear that a pattern was required?

-Nick

Revision history for this message
Charlie Schluting ☃ (cschluti) wrote : Re: [Bug 1022663] Re: schemaList.append(mySchema) UnboundLocalError: local variable 'mySchema' referenced before assignment

On 7/9/12 11:21 AM, Nicholas Leskiw wrote:
> If you look at the storage-aggregation.conf.example file, you'll see that all of them have a pattern.
> We strongly recommend using the examples as a base, and altering them to fit your needs rather than writing a new conf file from scratch.

Fair enough, I should have checked out the examples :)

> Which docs didn't make it clear that a pattern was required?

I was reading the storage-aggregation section of:
http://graphite.readthedocs.org/en/latest/config-carbon.html

Thanks,
  -Charlie

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.