Chi Song
4ecf561a5e
update license
2021-02-03 08:43:51 +08:00
Chi Song
787c60d204
Yaml: change Camel case to snake_case in yaml
...
The camelCase is recommended in yaml, but it's different with Python
style. The trouble is when searching in yaml, it's hard to find Python
schema, and versus. So change to use snake_case, for easier searching.
2021-02-02 07:00:00 +08:00
Chi Song
2b35db3462
optimize reboot to prevent stopped too fast.
2021-02-02 07:00:00 +08:00
Chi Song
5c164f1ab5
Remove unused generic type
2021-02-02 07:00:00 +08:00
Chi Song
73e4a6e51d
add missed await
2021-02-02 07:00:00 +08:00
Chi Song
d278eb1fcb
Azure: support more authentication methods
...
Make service principal values optional to support other cred types.
2021-01-28 17:21:27 +08:00
LiliDeng
dc7e8a6696
Extend timeout during set up ssh connection. ( #1153 )
2021-01-28 17:21:27 +08:00
LiliDeng
7f34238bf7
Update error description clearly when run uptime -s. ( #1152 )
2021-01-28 17:21:27 +08:00
LiliDeng
e5cd65a3e6
Azure: Ignore provisioning internal exception. ( #1150 )
2021-01-28 17:21:27 +08:00
LiliDeng
ad53e72747
Smoke test enhancement. ( #1144 )
2021-01-28 17:21:27 +08:00
LiliDeng
62810e28f4
Add more publisher support. ( #1147 )
2021-01-28 17:21:27 +08:00
LiliDeng
7cd891dffd
Add publisher name opensuse-leap. ( #1145 )
2021-01-28 17:21:27 +08:00
LiliDeng
bd3773620b
Update description to clarify - code doesn't support install the tool, not distro itself. ( #1143 )
2021-01-28 17:21:27 +08:00
LiliDeng
6c53b6af10
Add one more panic pattern. ( #1142 )
2021-01-28 17:21:27 +08:00
Chi Song
3850d204c6
Azure: Ignore provisioning timeout exception
...
Some distro doesn't setup waagent well, so timeout on provisioning.
Ignore timeout error, so smoke test case can fail with detailed errors.
2021-01-28 17:21:27 +08:00
LiliDeng
297c60cda2
when hit not have enough permission to run dmesg, the result.stderr is empty, but result.exit_code is 1. ( #1135 )
2021-01-28 17:21:27 +08:00
LiliDeng
e9b140e4af
Update regex to match different formats of host build string in demsg. ( #1133 )
2021-01-28 17:21:27 +08:00
LiliDeng
2b14e90272
Change bash into sh to fix that bash is not installed in some FreeBSD distro by default. ( #1132 )
2021-01-28 17:21:27 +08:00
Chi Song
bc82ac9e52
Azure: stablize nic, ip list methods
...
use same retry on nic and ips. There are race conditions, that nic
cannot be found. So apply mitigation on public ip also.
2021-01-28 17:21:27 +08:00
Chi Song
b8f85b39f2
Improve list VM reliability
...
wait about 5 minutes, and add more logs
2021-01-28 17:21:27 +08:00
Chi Song
0d1c9e9055
fix vm cannot be found error
...
retry to prevent API doesn't return vms on time.
2021-01-28 17:21:27 +08:00
Chi Song
6ee6ee012e
fix regression on timeout
...
other exceptions should be throwed out.
2021-01-28 17:21:27 +08:00
Chi Song
273bf3363c
set timeout to spawn process
...
the func-timeout use a new thread to run function. So it can be stopped.
2021-01-28 17:21:27 +08:00
Chi Song
3c94699c3b
Don't get node info, if there is no node.
...
It prevents the exception is reraised, if node is not ready.
2021-01-28 17:21:27 +08:00
Chi Song
f15af03089
add log for troubleshooting.
2021-01-28 17:21:27 +08:00
Chi Song
b3d783f566
upgrade dependencies
2021-01-28 17:21:27 +08:00
Chi Song
7c44d967c4
upgrade poetry to latest version
2021-01-28 17:21:27 +08:00
Chi Song
1698a68118
fix timezone may change after reboot
...
in some distros, the timezone may change after rebooting, so current
boot time is smaller than last time. Comparing with equal to avoid
timeout.
2021-01-28 17:21:27 +08:00
Chi Song
5e5ccbea2c
detect more distros
2021-01-28 17:21:27 +08:00
Chi Song
708bc0d82c
improve marketplace agreement error message
2021-01-28 17:21:27 +08:00
Chi Song
5043793336
fix who -b issue on Ubuntu 14.04
...
who -b doesn't return value in first boot on Ubuntu 14.04. Use uptime -s
to get boot time. uptime -s doesn't exists on some centos version, so
it's not default command.
2021-01-28 17:21:27 +08:00
Chi Song
b96cb62789
Improve reboot message to return if connected
2021-01-28 17:21:27 +08:00
Chi Song
4fb6a8b88f
support more date formats in date
...
datetime.strptime doesn't support time zone like IST, and need specify
time format. Use dateutil.parser is easier.
2021-01-28 17:21:27 +08:00
Chi Song
562b48a240
Add error type for clearer message.
2021-01-28 17:21:27 +08:00
Chi Song
938c2a7578
support pipeline on v3 branches.
2021-01-28 17:21:27 +08:00
Chi Song
03a391524a
Make case fail, if cannot connect after reboot.
2021-01-28 17:21:27 +08:00
Chi Song
2f4db0ec49
show tcp error code when cannot connect
2021-01-28 17:21:27 +08:00
Chi Song
c24cd067ee
switch log position of storage account
...
There may be issue on query storage account, so move the deploying line
later to confirm storage operation is succeed.
2021-01-28 17:21:27 +08:00
Chi Song
2f85754e16
Change partial passed to passed with warning
...
The partial passed is harder to explain than passed with warning. So
change the exception to PassedException, and message prefix to
warning.
2021-01-28 17:21:27 +08:00
Chi Song
6c746b5dfc
fix some distro has no path /usr/sbin
2020-11-24 01:22:23 -08:00
Chi Song
2be64a5ab0
fix some distro need tty
2020-11-24 01:22:23 -08:00
Chi Song
c0ecff110f
fix some distro has no /usr/sbin in default path
2020-11-24 01:22:23 -08:00
Chi Song
0bb3a9ce67
add year to short datetime string
2020-11-24 01:22:23 -08:00
Chi Song
9ca96a03bf
improve some logs
2020-11-24 01:22:23 -08:00
Chi Song
69bb9fc6aa
Fix reboot wait infinite in fast reboot case
...
As `who -b` doesn't returns seconds, so if reboot too fast, it's in
same minute as before. The reboot cannot be detected. So wait to 1
minute, if current time is too fast.
2020-11-24 01:22:23 -08:00
Chi Song
d539f40ee2
add date command to get current time
2020-11-24 01:22:23 -08:00
Chi Song
1bc23b7696
release reused socket
2020-11-24 01:22:23 -08:00
Chi Song
8c6b8e2180
set timeout for ssh
...
It prevents random hangs when rebooting.
2020-11-24 01:22:23 -08:00
LiliDeng
0fa3416979
Support bool/string format for reserve_environment ( #1103 )
2020-11-20 17:26:18 +08:00
LiliDeng
5973f6f1b7
1. Not reset node.is_connected as False. ( #1102 )
...
2. Collect VM generation info.
2020-11-16 18:24:54 +08:00