Correct the nodes list that is iterated for reboot.
correct the syntax to get the installed package list in centos.

Change-Id: Ic988e56c9a1cc424ed0f38403bc89be9735f8262