Opened 9 years ago

Closed 9 years ago

#192 closed (fixed)

Clean up old DPIDs

Reported by: jbs@bbn.com Owned by: jbs@bbn.com
Priority: major Milestone:
Component: OpenFlow Version: SPIRAL5
Keywords: Cc:
Dependencies:

Description

FOAM caches the DPIDs that it sees, so that it can let you reserve resources on them even if the switch is down at the time of the reservation. If a DPID changes, the old one stays cached in FOAM. This happened on the ExoGENI racks; clean up the old DPIDs in FOAM.

Change History (3)

comment:1 Changed 9 years ago by jbs@bbn.com

Owner: changed from somebody to jbs@bbn.com
Status: newassigned

I'll check this out for BBN now, and I can do it for RENCI, FIU, and UH, privs permitting, unless anyone else wants to.

comment:2 Changed 9 years ago by jbs@bbn.com

Here's what's currently there:

[09:35:01] jbs@bbn-hn:/home/jbs
+$ foamctl admin:list-datapaths --passwd-file=/etc/foam.passwd
[
 "00:64:08:17:f4:b5:2a:00", 
 "00:01:08:17:f4:b5:2a:00"
]

You can safely remove them all, and the real ones will pop back. So:

foamctl admin:remove-datapath --dpid="00:64:08:17:f4:b5:2a:00" --passwd-file=/etc/foam.passwd
foamctl admin:remove-datapath --dpid="00:01:08:17:f4:b5:2a:00" --passwd-file=/etc/foam.passwd

And now:

[09:54:13] jbs@bbn-hn:/home/jbs
+$ foamctl admin:list-datapaths --passwd-file=/etc/foam.passwd
[
 "00:01:08:17:f4:b5:2a:00"
]

And the old one no longer appears in listresources output.

I'll do this on RENCI, FIU, and UH, now.

comment:3 Changed 9 years ago by jbs@bbn.com

Resolution: fixed
Status: assignedclosed

RENCI before:

[09:55:46] jbs@rci-hn:/home/jbs
+$ sudo foamctl admin:list-datapaths --passwd-file=/etc/foam.passwd
[
 "00:01:08:17:f4:b3:5b:00", 
 "00:00:9a:12:1b:ff:4e:4f", 
 "00:00:a6:e5:25:32:33:45", 
 "00:00:0e:8f:87:9d:9d:44", 
 "00:00:5e:cf:6f:90:70:42", 
 "00:64:08:17:f4:b3:5b:00"
]

Removed:

sudo foamctl admin:remove-datapath --dpid="00:01:08:17:f4:b3:5b:00" --passwd-file=/etc/foam.passwd
sudo foamctl admin:remove-datapath --dpid="00:00:9a:12:1b:ff:4e:4f" --passwd-file=/etc/foam.passwd
sudo foamctl admin:remove-datapath --dpid="00:00:a6:e5:25:32:33:45" --passwd-file=/etc/foam.passwd
sudo foamctl admin:remove-datapath --dpid="00:00:0e:8f:87:9d:9d:44" --passwd-file=/etc/foam.passwd
sudo foamctl admin:remove-datapath --dpid="00:00:5e:cf:6f:90:70:42" --passwd-file=/etc/foam.passwd
sudo foamctl admin:remove-datapath --dpid="00:64:08:17:f4:b3:5b:00" --passwd-file=/etc/foam.passwd

After:

[09:58:39] jbs@rci-hn:/home/jbs
+$ sudo foamctl admin:list-datapaths --passwd-file=/etc/foam.passwd
[
 "00:01:08:17:f4:b3:5b:00"
]

UH before:

[10:01:45] jbs@uh-hn:/home/jbs
+$ sudo foamctl admin:list-datapaths --passwd-file=/etc/foam.passwd
[
 "00:01:74:99:75:12:fe:00"
]

Nothing to do there.

FIU before:

[10:02:14] jbs@fiu-hn:/home/jbs
+$ sudo foamctl admin:list-datapaths --passwd-file=/etc/foam.passwd
[
 "00:01:74:99:75:24:61:00"
]

Nothing to do there either. (Also, it occurred to me that FIU has an active non-GPO FOAM admin, so if we did need to do anything there, I'd have asked him. But we don't.)

So, that's it for this one.

Note: See TracTickets for help on using tickets.