Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Christopher Boumenot e2fe70a2b2 remove migration code 2017-10-13 10:28:10 -07:00
Christopher Boumenot 3c139b6421 Merge pull request #108 from Azure/pr-report-failed-enable
report stdout/stderr on failure
2017-10-10 22:45:25 -07:00
Christopher Boumenot 69291b8b76 report stdout/stderr on failure 2017-10-10 19:16:29 -07:00
Ahmet Alp Balkan 306b443858
Tail stdout/stderr in 'enable' status message
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-11-28 15:49:41 -08:00
Ahmet Alp Balkan 759c2670e8
Add tailing function on log files
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-11-28 15:22:09 -08:00
Ahmet Alp Balkan 6230f858c6
Do not overwrite .status file in new enables
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>
2016-10-11 11:04:01 -07:00
Ahmet Alp Balkan c686b8670a
Fix comment 2016-08-31 12:01:08 -07:00
Ahmet Alp Balkan 4822c78f64
cmd/enable: migrate old data dir on enable
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.
2016-08-31 11:16:52 -07:00
Ahmet Alp Balkan c1ce23bbd2
Fix test case
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-08-16 14:59:51 -07:00
Ahmet Alp Balkan fe292ee5ca
Unify version string management in code
- 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.
2016-08-11 11:51:53 -07:00
Ahmet Alp Balkan 3bd28e1533
Do not rely on SeqNo in HandlerEnvironment.xml
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.
2016-08-02 14:57:42 -07:00
Ahmet Alp Balkan 09790bb079
Move packages into pkg/, handler to main/ 2016-08-01 13:44:25 -07:00