Commit 32595ea
azure: handle PendingCopyOperation error during vhd copy
When multiple LISA runs use the same VHD URL concurrently, Azure may
throw the following error during start_copy_from_url:
ResourceExistsError: There is currently a pending copy operation.
This happens because multiple runs attempt to copy the VHD to the same
destination. Although a lock prevents this within a single LISA run,
it can still occur across multiple runs. To handle this, catch the
exception and gracefully continue with wait_copy_blob.1 parent 536bcef commit 32595ea
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1934 | 1934 | | |
1935 | 1935 | | |
1936 | 1936 | | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
1940 | 1957 | | |
1941 | 1958 | | |
1942 | 1959 | | |
| |||
1979 | 1996 | | |
1980 | 1997 | | |
1981 | 1998 | | |
1982 | | - | |
| 1999 | + | |
1983 | 2000 | | |
1984 | 2001 | | |
1985 | 2002 | | |
| |||
0 commit comments