fp7-ofelia / ocf

OFELIA Control Framework (OCF) is a set of software tools for testbed management.
http://fp7-ofelia.github.com/ocf/
Other
18 stars 14 forks source link

Granted flowspaces not being shown on Expedient #173

Closed CarolinaFernandez closed 10 years ago

CarolinaFernandez commented 10 years ago

After upgrading to 0.6 some Island Managers reported that some users could not see the granted FlowSpaces in their slices. These hidden FlowSpaces coincided with the slices that have the "old" suffix in FlowVisor.

CarolinaFernandez commented 10 years ago

This happened after upgrading, hence something triggered by OFVER. There, python manage.py syncdb is being called.

There's (at least) one method being called after the database synchronization (create_default_site) under expedient/src/python/expedient/common/defaultsite/management.py.

This method uses, among others, the setting SITE_DOMAIN; which is overwritten by the localSettings.py file. However, that setting was taking the default value from the defaultsite module.

There was an interference coming from the settings loading system, where the Django default settings module was set:

File expedient/src/python/expedient/clearinghouse/defaultsettings/plugin.py:

Original code:

os.environ['DJANGO_SETTINGS_MODULE'] = "expedient.clearinghouse.settings"

New code:

os.environ['DJANGO_SETTINGS_MODULE'] = "settings"

After this, the user's SITE_DOMAIN value is kept, the Site object is properly created and therefore the slices are also well generated.