Improve errata_upgrade task

Finish missing automation parts of errata_upgrade.

This is the follow up of the #103
Module-level variables?

    ??? = 57
    TIMEOUT = 60
    CONN_REFUSED = 61