Add a new store

Asked by Vidya

I want to create a new store. Just to start of I created a filesystem2.py with contents as file2,filesystems2 and did and update to images.py. The restarted glance after updating api.conf file. However it does not identify my new store. Any code has to be updated further.Pointers will be useful

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Vidya
Solved:
Last query:
Last reply:
Revision history for this message
Eoghan Glynn (eglynn) said :
#1

Have you updated the known_stores config option in glance-api.conf?

The out-of-the-box setting is:

# List of which store classes and store class locations are
# currently known to glance at startup.
known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,

This toption is crucial for glance to be able to map from a store scheme to the glue-code responsible for interacting with that store.

Revision history for this message
Vidya (jagsrikal) said :
#2

After the above update it worked. Thankyou. However I think we must updating python files for this change like images.py.

Revision history for this message
Vidya (jagsrikal) said :
#3

After the above update it worked. Thankyou. However I think we must not update python files for this change like images.py.