Updating custom-script-shim to not to overwrite a placeholder
"transitioning" `.status` file if it already exists.
Updating handler code writing "transitioning" `.status` file to
not to write the `.status` file until the sequence number check
is completed in the "enable" cmd.
Added integration tests to validate this case.
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Adding code to migrate /var/lib/azure/custom-script to
/var/lib/waagent/custom-script so that it gets cleaned up on
'waagent -deprovision' path. Shelling out to `mv -f` for recursive
file copying.
Also bumped version to v2.0.1.
- Read main.Version from misc/manifest.xml, this way we only have
one place to bump the version number before tagging. Also used
by Extension Deployment Pipeline.
- Let govvv handle GitCommit/BuildDate/GitState etc.
Apparently waagent-2.0.x included a SeqNo field in HandlerEnvironment.xml
and 2.1.x removed it (it was not covered by the extensions spec). Other
extensions were using vmextension.FindSeqNum(...) method to locate the
highest sequence number.
Switching this handler to use it as well and refactoring a few methods
accordingly.