Version 2 (modified by 10 years ago) ( diff ) | ,
---|
Rebuilding the Node Agent from the ground up
Dependencies: omfcommon/Mobject
gems: cocaine yaml?
Design Notes:
nodeagent.rb:
The hwdiscovery mode of the nodeagent code is being re-done. Instead of the original grep lspci lines, we now have has of dev_id's. Each dev_id in the hash maps to a node agent device driver that will be loaded to handle that specific device. This device will load the module for it's respective device type.
devices.rb
We're implementing all the module handeling code here. It uses the cocaine command line library as a wrapper. The cocaine lib kicks out an exception if the command fails. Exception handling will mitigate failed commands.
ethernet.rb
This class is responsible for all of the ifconfig/route handling code (all things ethernet). The same cocaine lib will handle shell commands with similar exception handeling. The interface has been extended to implement getters and setters for all the requisite interface state (ip, netmask, etc…). We've left the original get config command structure alone, but now also have implemented an execConfigCmd which will actually implement these config commands.
wifi.rb
TODO
rcDrv_e1000e.rb e1000e kernel module specif driver. A child of ethernet. Overides any thing that is specific to e1000e, but mostly leaves the parent class in tact. Also sets the value of @kmodName
More to follow
.
.
.
Driver Inheretance Chain
Observations:
- active? is defined at "Ready to be configured". If a device is set to active, it is read to accept config commands.
Attachments (9)
-
Resource Controller Device Driver Diagram.png
(40.7 KB
) - added by 10 years ago.
RC driver inheritance Chain
-
NodeAgent - UML.2.png
(239.8 KB
) - added by 10 years ago.
Updated UML with public method highlighting
- HwDiscover - New Page.png (42.9 KB ) - added by 10 years ago.
-
ConfigureConnect - New Page.2.png
(50.4 KB
) - added by 10 years ago.
Connect Configure Flow
-
ConfigureConnect - New Page.png
(50.4 KB
) - added by 10 years ago.
Connect Configure Flow
-
NodeAgentStartup - Program Flow.png
(124.4 KB
) - added by 10 years ago.
Flow of node Agent startup
-
Connect Flow - 3 state.png
(161.4 KB
) - added by 10 years ago.
Start logic
-
Configure Flow - 2 State.png
(117.7 KB
) - added by 10 years ago.
The decision flow of the configure command
-
NodeAgent - UML.png
(267.3 KB
) - added by 10 years ago.
Updated nodeagent UML for wimax
Download all attachments as: .zip