bondig doc
[tests.git] / system / AA-bonding.md
index a37c9d3..3fd18b2 100644 (file)
@@ -11,7 +11,7 @@ general idea is to use this command
        
 or in an equivalent manner
 
-       export bonding= 2015.04.13--f18
+       export bonding=bond212015.04.13--f18
        run -G
        
 # requirements
@@ -63,3 +63,47 @@ as a matter of fact when doing `run -g $bonding` one can invoke most of the usua
        <<visual check>>
        rung bonding-node
 
+
+# upgrading nodes
+
+targets like `nodedistro-f22` can be used to change a node's fcdistro
+
+
+## testing upgrade (one node)
+
+testing a node upgrade; we start from a f21 myplc and upgrade the node to f22
+
+### Init
+
+    f21
+    bond22
+    rung
+    run nodeplain-off
+
+### Upgrade the node (make sure nodeplain is off)
+    
+    run nodedistro-f22 nodestate-upgrade
+    run reset-node wait-node
+    
+### Reinstall - back to square 1
+
+       run nodedistro-f21 nodestate-reinstall
+       run reset-node wait-node
+    
+### Run bootmanager interactively during upgrade
+To deploy experimental bootmanager code:
+
+* Insert breakpoints in the bootmanager code
+* turn on `BREAKPOINT_MODE = True` in `utils.py`
+* `make sync` 
+
+Then 
+
+    run nodedistro-f22 nodestate-safeboot 
+    run reset-node ssh-node-debug
+    testnodedbg
+    
+    cd /tmp/source
+    ./BootManager.py upgrade
+    
+