Skip to content

[TACACS] Retry reboot in ro-disk UT when DUT not reachable.#9639

Merged
liuh-80 merged 2 commits intosonic-net:masterfrom
liuh-80:dev/liuh/improve_rodisk_reboot
Aug 30, 2023
Merged

[TACACS] Retry reboot in ro-disk UT when DUT not reachable.#9639
liuh-80 merged 2 commits intosonic-net:masterfrom
liuh-80:dev/liuh/improve_rodisk_reboot

Conversation

@liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Aug 25, 2023

Retry reboot in ro-disk UT when DUT not reachable.

Work item tracking
  • Microsoft ADO: 24868662

Description of PR

Retry reboot in ro-disk UT when DUT not reachable.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Device unreachable after TACACS ro-disk UT failed.

How did you do it?

Add retry when ro-disk DUT not reachable before reboot.

How did you verify/test it?

Pass all UT

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@liuh-80 liuh-80 marked this pull request as ready for review August 28, 2023 02:03
except AnsibleConnectionFailure as e:
logger.error("DUT not reachable, exception: {} attempt:{}/{}".
format(repr(e), i, retries))
wait(wait_time, msg="Wait {} seconds before retry.".format(wait_time))
Copy link
Contributor

@qiluo-msft qiluo-msft Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait

Is it better to wait for both exception cases? If yes, you may move wait to outside try-except block. #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@liuh-80 liuh-80 merged commit ebb4dfb into sonic-net:master Aug 30, 2023
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 15, 2023
…t#9639)

Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 15, 2023
…t#9639)

Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202012: #10023

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #10024

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #10025

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 15, 2023
…t#9639)

Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
mssonicbld pushed a commit that referenced this pull request Sep 15, 2023
Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
mssonicbld pushed a commit that referenced this pull request Sep 15, 2023
Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
mssonicbld pushed a commit that referenced this pull request Sep 15, 2023
Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…t#9639)

Retry reboot in ro-disk UT when DUT not reachable.

### Description of PR
Retry reboot in ro-disk UT when DUT not reachable.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)


### Back port request
- [ ] 201911
- [ ] 202012
- [x] 202205

### Approach
#### What is the motivation for this PR?
Device unreachable after TACACS ro-disk UT failed.

#### How did you do it?
Add retry when ro-disk DUT not reachable before reboot.

#### How did you verify/test it?
Pass all UT

#### Any platform specific information?

#### Supported testbed topology if it's a new test case?

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants