Check for relevant environment variables

Currently, register-nodes does not check for environment variables on
starting, which leads to keystoneclient printing error messages. Check
and raise an exception before we start registering nodes.

Change-Id: Id838fe47ff117182eddc69344e018b67aee44419