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

2770 Коммитов

Автор SHA1 Сообщение Дата
LiliDeng 5de2a10720
Add ignore message list for kernel panic. (#1101) 2020-11-16 07:29:40 +08:00
Chi Song b0381fc86b fix build break on windows nodes 2020-11-12 15:40:05 -08:00
Chi Song 2ec23a411f fix bug that gallery is none in generated envs
The gallery is created in __post_init__, but it's not called for a
generated environment. So update code to create a _gallery cache, and
update with gallery_raw.

a small fix that remove vhd secret, as it may block troubleshooting on
vhd path.
2020-11-12 15:40:05 -08:00
Chi Song 5eb1e71d72 improve error message 2020-11-12 01:38:55 -08:00
Chi Song 4e7c99c73b improve case log path for alignment 2020-11-12 01:38:55 -08:00
Chi Song 45ff008df8 refine code to troubleshoot hang 2020-11-12 01:38:55 -08:00
Chi Song 0d57f95128 Fix cache bug in dmesg 2020-11-12 01:38:55 -08:00
Chi Song c4da621b7e recognize more distros and improve log 2020-11-12 01:38:55 -08:00
Chi Song 14d4b130ca improve log message. 2020-11-12 01:38:55 -08:00
Chi Song 267eef7c71 fix who doesn't exist on some distros
If it doesn't exist, raise an exception.
2020-11-12 01:38:55 -08:00
Chi Song 937b5893d1 improve logging 2020-11-12 01:38:55 -08:00
Chi Song b180f1a21a add more os detection code 2020-11-12 01:38:55 -08:00
Chi Song a47560a52d raise error, if wait reboot timeout 2020-11-12 01:38:55 -08:00
Chi Song 788bc5572c ignore errors on get node information 2020-11-12 01:38:55 -08:00
Chi Song d862c9aea2 serial log encoding ignore error chars 2020-11-12 01:38:55 -08:00
Chi Song 227ef89985 support old version centos 2020-11-12 01:38:55 -08:00
Chi Song fc04e9e392 fix no sftp failed on initializing 2020-11-12 01:38:55 -08:00
Chi Song 09a67036b8 support found date format in who -b
fix ValueError: 'Nov 10 20:54'
2020-11-12 01:38:55 -08:00
Chi Song 02eb29d424 support freebsd os 2020-11-12 01:38:55 -08:00
Chi Song f9aa27e321 Improve smoke_test case
1. reuse wait_tcp_port_ready
2. capture serial console log when failed
2020-11-10 19:21:49 -08:00
Chi Song 428446d248 Implement serial log on Azure 2020-11-10 19:21:49 -08:00
Chi Song 5f5ca2df8a Implement serial console feature, and check panic 2020-11-10 19:21:49 -08:00
Chi Song 2b70778b81 add tcp ping before ssh connection
It can make ssh error message more clear, and timeout predictable.
Also reduce original tries, as it's too much.
2020-11-10 19:21:49 -08:00
Chi Song 35bff0fcfa Refine to reuse datetime path 2020-11-10 19:21:49 -08:00
Chi Song 63b72dc360 support test case folder in log 2020-11-10 19:21:49 -08:00
Chi Song de07617721 support to pass parameters to test cases. 2020-11-10 19:21:49 -08:00
Chi Song d8de2b79cc remove storage account from arm template. 2020-11-10 01:45:56 -08:00
Chi Song 6d39968054 create storage account outside of arm template
There are concurrent issues on Azure deployment script count.
If too many deployments in progress in subscription level,
 the old scripts may not able to deleted on time.
Deploy storage account outside of template to workaround it.
2020-11-10 01:45:56 -08:00
Chi Song fb16d77f89 fix encoding errors of log output
Default charmap cp1252 cannot handle chars correctly, use utf-8.
2020-11-10 01:44:49 -08:00
Chi Song 30cc2a9231 use tcp ping for smoke test
1. If TCP ping (SSH) success, smoke test can pass.
2. If ping passed, but reboot failed, it's partial success.
3. Remove dmesg check, will use serial console log.
2020-11-09 23:50:31 -08:00
Chi Song 1064ae9ef7 Add partial passed
Smoke test can be passed on port connected, but we can have more
validation. So if port connected, the test case can pass, but if it fails
on further validation, it's considered as partial passed.
2020-11-09 23:50:31 -08:00
Chi Song 4bcb98cc8a Let smoke_test run before connected
1. Add environment status to case requirement
2. update smoke_test case to run earlier.
3. improve log
2020-11-09 23:50:31 -08:00
Chi Song 1e37751c1c refine runner to support deployed status
1. supprt cases which run on the environment with Deployed status.
2. refine runner method to reduce complexity.
3. add is_new flag on environment to support cases need new env.
2020-11-09 23:50:31 -08:00
Chi Song f13da19408 Environment change is_ready to status
As smoke test needs to be run before node connected, so added new
status. The original is_ready flag is duplicated, and can be removed.

1. Use status to replace is_ready.
2. Remove is_ready from implemented platforms, it's managed by base
    class.
3. Refine code, to attach any env failure to a test case.
2020-11-09 23:50:31 -08:00
Chi Song 7e100002a1 Add environment status phases
Split status to deployed and connected. In following changes,
smoke test can be run after deployed.
2020-11-09 23:50:31 -08:00
LiliDeng d1fa8e4b67
Update pattern for checking panic and call trace from dmesg. (#1094) 2020-11-09 11:39:20 +08:00
Chi Song 6bde86b156 Update operating system id for SUSE 2020-11-09 08:33:07 +08:00
LiliDeng 80aac06c24
Collect image, size, location and platform info when deploy failed. (#1090)
* Collect image, size, location and platform info when deploy failed.

* Extend message length of inserted record.
2020-11-06 15:36:57 +08:00
Chi Song 968461fd83 fix conflict on deployment names 2020-11-06 08:27:48 +08:00
Chi Song cfe9390737 add redhat os id pattern 2020-11-06 08:27:48 +08:00
Chi Song 59f4b7b691 Fix elapsed time is incorrect 2020-11-06 08:27:48 +08:00
Chi Song 3cdbf51262 fix dmesg error message 2020-11-06 08:27:48 +08:00
Chi Song 987c3685da improve location cache performance
Before this change, all location data are cached first. But location
data should be cached when it's used.

update UT test data to make test cases pass.
2020-11-05 14:41:47 +08:00
Chi Song c74b048143 upgrade package dependencies 2020-11-05 14:41:47 +08:00
Chi Song a5c834686e Azure: use separated cached files
one file is too big to load, it's slow.
2020-11-05 14:41:47 +08:00
Chi Song 4c10679fad attach deployment failure to test case
Deployment failure should be tracked by a case. It may make same error
to different test cases, but it's harder to track if not on a case.
2020-11-05 10:44:19 +08:00
LiliDeng ff78ff53d2
Fix LIS version collection pattern. (#1088) 2020-11-04 22:05:59 +08:00
LiliDeng 862048ef82
Collect WALA version into test result message. (#1087) 2020-11-04 18:01:44 +08:00
Chi Song 79aaee71bf Support to accept terms for gallery images
Some gallery images need to accept term, then it can be deployed.
And when deploying, they need plan information. Implement progress
like LISAv2 to query and accept terms, if it's necessary. As
azure-mgmt-marketplaceordering isn't compatible with latest
azure-identity, so add cred_wrapper to workaround it.

1. Add azure-mgmt-marketplaceordering package to support terms.
2. Query plan for gallery image deployment.
3. add cred_wrapper for azure-identity compatibility.
4. Add plan in arm_template.
2020-11-04 16:52:16 +08:00
Chi Song 40d618d44f support storage account in arm template
1. Deploy both shared rg and test rg in same template.
2. Enable serial console log to vms.
2020-11-04 11:17:43 +08:00