Technical Tip: Upgrade fails with 'must be run from primary' error
Description
Scope
Version: 8.7.6, 8.8.2, potentially 8.8.1
Solution
Workaround: Contact Support for assistance.
Solution: Addressed in versions 8.7.7, 8.8.3 and 9.1.
Workaround:
1) Login to CLI as root.
2) Edit /bsc/campusMgr/bin/getIPAddr.
Change.
/sbin/ip addr show "$ETH" | sed -n 's/^\s\+inet \(.*\)\/.*/\1/p'
To
/sbin/ip addr show "$ETH" | sed -n 's/^\s\+inet \(.*\)\/.*/\1/p' | head -1
3) Save changes.
4) Repeat steps 1-3 for each appliance to be upgraded.
5) Run the upgrade.
6) Once upgrade is complete, review the getIPAddr script again. If the line has reverted back to:
/sbin/ip addr show "$ETH" | sed -n 's/^\s\+inet \(.*\)\/.*/\1/p'
Then modify the file as before (steps 2-3). This will prevent the next upgrade from failing.
