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

Slices being created in FlowVisor with an inconsistent slice ID #176

Closed CarolinaFernandez closed 10 years ago

CarolinaFernandez commented 10 years ago

After the behavior explained on issue #173, requested slices that came out from an island with version >= v0.5 had a non-consistent naming on FlowVisor.

That is, if the island A used to have the setting SITE_DOMAIN = 'exp.a.domain'; then newer slices in any FlowVisor would have the default SITE_DOMAIN, therefore FlowVisor would show the following:

root@ADomain:# fvctl listSlices
Slice 1: Slice1_ID__clearinghouse_geni_org_2
Slice 2: Slice2_ID__exp_a_domain_1

where the most recent slice in FlowVisor is Slice 2. This slice needs to be consistent with the original SITE_DOMAIN value. A set of scripts that check for consistence and fix it could be integrated into Django and released for v0.6.1.

CarolinaFernandez commented 10 years ago

Two python scripts (standardize_flowvisor_slices) are being distributed within Django manage.py command. These will be called from OFVER before and after the upgrade to solve the problem for the affected islands.

The workflow is as follows:

  1. Invoke Expedient's manage.py command standardize_flowvisor_slices with the stop argument. This shall stop slices with the old, wrong suffix
  2. Stop Apache
  3. Download latest code
  4. Start Apache. This will load the correct SITE_DOMAIN, user-defined setting
  5. Invoke Expedient's manage.py command standardize_flowvisor_slices with the start argument. This shall start slices with the new, good suffix
  6. Invoke Opt-in's manage.py command standardize_flowvisor_slices. This shall automatically grant flowspaces for the previously affected slices

Solved in commit c2483f6642db67585a040b06e75bcdff639cfdf0.