If we define these, then I believe we should also use them not just when creating the directories, but also in all other places where the directories are mentioned. Maybe grep for "/var/log/glance" and "/var/cache/glance" to replace the hard-coding with the attributes you're adding?

(btw, no need for the trailing slash)