Relative Path for storage-schemas.conf Breaks New Data

Bug #591504 reported by Jeremy Jack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
Fix Released
High
chrismd

Bug Description

I noticed this bug today, while scratching my head for a while, trying to figure out why new points weren't being created.

After running around in circles for a bit, I noticed this peculiar bit in an strace:
open("conf/storage-schemas.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

That's when I remembered that I had stopped and started carbon-cache.py from my home directory and not the application path a few days ago.

I did a little poking around the libraries and noticed in storage.py:
STORAGE_SCHEMAS_CONFIG = 'conf/storage-schemas.conf'
...
Which is then read by OrderedConfigParser, which looks like a wrapper for ConfigParser. I wasn't able to find any place where a base path of any sort was added to a config or prepended to this string. Then again, I'm still new to python and most of it so far has been from figuring out Carbon and Whisper so I could be missing something.

chrismd (chrismd)
Changed in graphite:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → chrismd (chrismd)
chrismd (chrismd)
Changed in graphite:
status: Confirmed → Fix Committed
chrismd (chrismd)
Changed in graphite:
status: Fix Committed → Fix Released
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.