Do not unnecessarily recompile OpenVZ envId pattern

The pattern against which lines in /proc/self/status are matched is static and
therefore does not have to be (re-)compiled for every line in the file.
More cloud config unit tests
linting fix
Merge pull request #13678 from rallytime/cloud_config_tests

More cloud config unit tests
Merge pull request #13676 from basepi/cherrypick

Do not unnecessarily recompile OpenVZ envId pattern
Adding state docstring to the state_doc function output.