20:09:29 #startmeeting better host tracker interns 20:09:29 Meeting started Mon Jul 14 20:09:29 2014 UTC. The chair is colindixon. Information about MeetBot at http://ci.openstack.org/meetbot.html. 20:09:29 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 20:09:29 The meeting name has been set to 'better_host_tracker_interns' 20:09:33 #topic status update 20:09:49 #info evanz and djx are getting data changes about addresses! woot! 20:09:50 we're just talking about what we can do with the data changes now that we're getting them 20:09:58 #topic next steps 20:10:21 so, I was saying that I think the first thing we should do is to just create a new host for every unique Addresses we hear about 20:10:41 just to show that we can publish things 20:10:47 and put them on a hashmap? 20:11:02 no, no publish them to the MD-SAL 20:11:17 ah, create them and put them on md-sal 20:11:30 but we have to same their instance identifier, or isn't necessary? 20:11:45 s/same/save 20:11:59 #info eventually I think we want to do the following: Addresses (from Address Tracker) => our logic => Hosts in MD-SAL 20:12:19 #info the idea has been that the hostracker_new code (from BSN) would be “our logic” above 20:12:41 #info for now, I’d like to keep things as simple as possible and basically make “our logic” just the minimal transform to directly turn an Addresses into a host 20:12:51 okay 20:12:57 sounds perfectly good 20:13:02 so, you make a good point, which is that we need to assign an ID to to the host to create it’s instance identifier 20:13:09 the cool part here is that if we do this 20:13:20 we can hand *something* to the dlux people and it will basically work 20:13:41 so as far as ID we have a string now 20:13:46 do we still want to do uuid 20:13:54 or something simpler 20:13:59 hmmm can't we change it to macaddress? 20:14:31 we could just make it an AtomicLong or something and increment it and then make it a string 20:15:03 colindixon but we still have their macaddress, right? 20:15:19 djx: you could make it the MAC address 20:15:21 that would be fine 20:15:23 I don't if I like a non deterministic way to create uuid 20:15:26 it should be an opaque thing 20:15:57 but for now it could be the atomiclong 20:16:28 sounds good 20:16:29 yeah 20:16:33 it’s irrelevant 20:17:24 uh oh 20:18:33 so, my take would be for you guys to create that logic 20:18:41 generate the host ID however you want 20:18:47 as long as it’s unique 20:19:13 evanz: I’ll assume djx can read this stuff when he gets back 20:19:18 k 20:19:32 just so you know, you can go to meetings.opendaylight.org and then browse from there 20:19:45 I have :) 20:19:54 hey btw are you going to be in chicago in august? 20:20:01 evanz: I wish 20:20:10 I have 3 papers there :p 20:20:24 isn’t it september 20:20:27 ? 20:20:29 you mean SIGCOMM? 20:20:33 linuxcon 20:20:35 ah 20:20:36 no 20:20:44 we’re expecting a baby 8/15 20:20:51 oh congrats :) 20:20:53 so I’m grounded from now until 9/29 when we have OpenDaylight Summit 20:20:54 yah 20:20:56 thanks! 20:21:18 well I'm going to be talking about hosttracker stuff at the mini-summit it looks like 20:21:27 so if you have ideas for that let me know 20:21:35 #info it seems like the best thing we could do here would be to write some kind of test which injects Addresses on the one side and looks to make sure a matching host comes out on the other site 20:21:41 evanz: sure 20:21:43 I’m happy to help 20:22:12 does thast make sense? ^^ 20:22:27 yeah 20:22:33 yeah, 20:22:36 so how do I make an address such that it will cause a notification 20:23:11 evanz: that’s a good question :p, I was thinking it’d be easy 20:23:22 maybe the right thing to do is just test with mininet 20:23:33 I guess it depends on addresstracker 20:23:33 since constructing all the releavant state is a pain in the ass 20:23:50 sure 20:23:52 well, the issue is that Addresses depend on NodeConnectors which depend on Nodes 20:24:10 I mean, you could do it, but it’d be a pain 20:25:03 you’d have to create a Nodes using a NodesBuilder then a FlowCapableNode using a FlowCapableNodeBuilder and then createa an AddressCapabeleNodeConnector, and then …. 20:25:08 it’s just painful 20:25:13 yeah I see 20:25:35 #info so, after thinking a bit, it seems easier (for now) to just use mininet to test things 20:25:38 so, yeah 20:25:54 do you know how to publish create the Host and publish it? 20:26:02 or did you want to jump on a hangout? 20:26:37 I think I can get myself through using HostBuilder as some of thats already in the code 20:26:42 ok 20:26:43 to publish it is it a write transaction? 20:26:47 yeah 20:26:58 should be able to do it then 20:27:19 so I noticed with the databroker stuff 20:27:43 basically (i) you build a host using a hostbuilder, (ii) you create an instance identifier, and (iii) you create a write transaction and you do a put(iid, host) 20:27:45 yeah? 20:28:02 operational and configurational data 20:28:05 I think those are the two? 20:28:06 something like that 20:28:12 yeah… 20:28:14 *sigh* 20:28:18 haha 20:28:20 just pick one 20:28:23 got it 20:28:30 you can always change it later 20:28:36 probably, we should use operational 20:28:52 cool 20:29:17 I didn't know what the intended difference was and it sounds like a pain point so we'll leave it at that :) 20:30:07 evanz: so, it depends on who you ask 20:30:53 sorry guys, I don't know what happen I had to connect via 3g modem 20:31:04 colin do you have the meeting notes 20:31:10 yes 20:31:11 hold on 20:31:13 ISPs in Portugal are as unfriendly as here it seems 20:31:32 https://meetings.opendaylight.org/opendaylight-intern/2014/better_host_tracker_interns/opendaylight-intern-better_host_tracker_interns.2014-07-14-20.09.log.txt 20:31:41 I haven’t ended the meeting yet 20:31:52 No, I think the problem is only with this ISP 20:32:05 we've around 5 ISPs or so 20:32:23 evanz: w.r.t. operational vs. config, the operational is supposed to be data coming from the network that you can read 20:32:45 and the config is supposed to be data coming from the user/app that can be written 20:32:52 so, we should be operational 20:32:56 makes sense 20:32:57 that’s my understanding 20:33:30 but others will tell you different things, like tony seems to think that operational should be a strict superset of config 20:33:36 but there’s lots of stuff going on her 20:33:39 here 20:33:46 that are being hashed out 20:34:14 cool 20:34:23 #action djx and evanz to get it so that they produce actual hosts in teh MD-SAL with a simple mininet setup 20:34:30 have you guys played with RESTCONF yet? 20:34:35 it’s really nice way to debug things 20:34:59 I think you did because that’s what I was deugging with you guys when you first managed to see Addresses 20:35:25 not sure 20:35:39 ok, I'm updated 20:35:52 yes I only used RESTCONF to read not write stuff 20:36:07 I did check out the restconf url that Amit sent 20:36:14 I don't think there was anything on it at the time 20:37:34 #info we decided to be operational data since it's data that we read from the network, we never write anything on the nodes 20:37:44 read is all you need to do 20:37:50 it’s just helpful for debugging 20:38:57 btw that colin 8/15 it's a very precise date :) 20:41:38 am I offline again? 20:41:46 djx: no :) 20:45:13 yeah.. guys? 20:45:27 isn't there a code that writes hosts on mdsal on our project? 20:45:36 djx; let me see 20:45:45 line 78-93 20:46:08 MdHostTrackerImpl 20:46:38 haha yup I guess so 20:47:27 what is hostId in that right now? 20:47:29 do you have an error on eclipse? 20:47:45 nope 20:47:48 what is the error? 20:47:50 on line 80? 20:48:06 I have a non suitable method found 20:48:15 but the prject compiles 20:48:33 no errors here 20:48:39 okay 20:48:57 so we should be able to see our hosts on restconf 20:48:59 let me test 20:54:23 hey 20:54:25 sorry 20:54:27 I wandered off 20:54:38 djx: we’re having a c-section for a variety of reasons 20:54:44 and so it’s more precise 20:54:53 ok 20:54:58 is there anything else you guys need from me? 20:55:05 or I’ll close out the meeting and check in later on 20:55:12 and assume you’ll ping me if stuff goes sideways 20:55:32 oh okay, I hope everything goes well 20:56:11 yes if you could just hold 4 more minutes 20:57:40 shouldn't we have access to /restconf/operational/opendaylight-inventory:hosts/? 21:01:10 djx: might want to put something in onFailure 21:01:15 colindixon 21:01:17 could be something wrong with the transaction 21:01:20 evanz 21:01:23 success 21:01:57 /restconf/operational/host-tracker-service:hosts/ 21:02:17 awesome 21:02:19 { 21:02:20 hosts: { 21:02:20 host: [4] 21:02:20 0: { 21:02:20 id: "00:00:00:00:00:02" 21:02:20 addresses: [1] 21:02:22 0: { 21:02:24 ip: "fe80:0:0:0:200:ff:fe00:2" 21:02:27 first-seen: 1405119080654 21:02:28 mac: "00:00:00:00:00:02" 21:02:30 last-seen: 1405119084374 21:02:34 }- 21:02:34 - 21:02:36 }- 21:02:39 1: { 21:02:39 perfect 21:02:42 id: "00:00:00:00:00:01" 21:02:44 addresses: [1] 21:02:46 0: { 21:02:48 ip: "fe80:0:0:0:200:ff:fe00:1" 21:02:51 first-seen: 1405119081656 21:02:52 mac: "00:00:00:00:00:01" 21:02:54 last-seen: 1405119082260 21:02:58 }- 21:02:58 - 21:03:00 } 21:03:06 is hosts an array or an object? 21:03:19 #info to access hosts inventory is need to go http://127.0.0.1:8080/restconf/operational/host-tracker-service:hosts/ 21:03:22 array 21:08:38 it looks like hosts is an object with a field "host" 21:08:40 which is the array 21:08:43 in my postman 21:08:45 sweei 21:08:47 is that working hoss? 21:08:53 { 21:08:53 "hosts": { 21:08:53 "host": [ 21:08:53 { 21:08:53 "id": "be:6c:2a:05:49:e2", 21:08:53 hosts!? 21:08:54 "addresses": [ 21:08:56 { 21:08:58 "first-seen": 1405372017328, 21:09:00 "last-seen": 1405372025340, 21:09:02 "mac": "be:6c:2a:05:49:e2", 21:09:04 "ip": "fe80:0:0:0:bc6c:2aff:fe05:49e2" 21:09:06 } 21:09:08 I have an array 21:09:08 ] 21:09:10 }, 21:09:12 colindixon: indeed 21:09:48 cool! 21:10:00 #chair evanz djx 21:10:00 Current chairs: colindixon djx evanz 21:10:11 you guys can end the meeting whenever you want to with #endmeeting 21:10:25 we don't need a chair to do that 21:11:02 colindixon, when it will be the next meeting? 21:11:20 when works for you guys 21:11:24 is friday too long from now? 21:11:47 This week is the last week for my thesis 21:12:04 I have to deliver the final version by friday I guess 21:12:17 so friday it would be perfect to me 21:12:29 sounds good to me 21:13:45 evanz there will be only need a thread for our bundle? 21:14:49 djx: you mean the threadpool thing? 21:14:55 yep 21:14:58 I mentioned once that I'm not sure if we need it anymore 21:15:06 because the new databroker is asynchronous 21:15:12 why? 21:15:12 ah nice 21:15:13 so I'm not sure 21:15:24 but wait 21:15:56 we still need to be asynchronous because we are processing the onDataChanged method, right? 21:17:03 I guess so yeah 21:18:56 djx: I'm going to bike home now 21:18:57 brb 21:19:20 good luck I had a flat tire while riding to university 21:27:11 #endmeeting