Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail when when sshing netplan apply #15524

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

jack-w-shaw
Copy link
Member

@jack-w-shaw jack-w-shaw commented Apr 21, 2023

Sometimes when we netplan apply over ssh, the session is terminated which leads to a false positive test result

If the ssh command returns non-zero error code, ignore it and continue. If it's a legitimate failure, we will fail later down the line anyway

Checklist

  • Code style: imports ordered, good names, simple structure, etc
  • Comments saying why design decisions were made
  • [ ] Go unit tests, with comments saying what you're testing
  • Integration tests, with comments saying what you're testing
  • [ ] doc.go added or updated in changed packages

QA steps

./main.sh -v -c aws -R eu-west-2 spaces_ec2

Sometimes when we netplan apply over ssh, the session is terminated
which leads to a false positive test result

If the ssh command returns non-zzero error code, ignore it and continue.
If it's a legitimate failure, we will fail later down the line anyway
Copy link
Member

@anvial anvial left a comment

Choose a reason for hiding this comment

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

QA passed.

Thx.

@jack-w-shaw
Copy link
Member Author

/merge

@jujubot jujubot merged commit bed2e42 into juju:3.2 Apr 21, 2023
@barrettj12 barrettj12 mentioned this pull request May 9, 2023
jujubot added a commit that referenced this pull request May 9, 2023
@barrettj12 barrettj12 mentioned this pull request May 10, 2023
jujubot added a commit that referenced this pull request May 10, 2023
jujubot added a commit that referenced this pull request May 22, 2023
…ec2_fix

#15625

Backports #15524 and #15595

Sometimes when we netplan apply over ssh, the session is terminated which leads to a false positive test result

If the ssh command returns non-zero error code, ignore it and continue. If it's a legitimate failure, we will fail later down the line anyway

Also

On spaces_ec2 tests, we first add a new nic for the current juju machine, then we get it's ID from ip link and then we patch the netplan config with this new NIC id and restart the machine. This causes the test to fail sometimes because we get the NIC id before it's UP and not shown in ip link.

## Checklist

- [x] Code style: imports ordered, good names, simple structure, etc
- [ ] Comments saying why design decisions were made
- ~[ ] Go unit tests, with comments saying what you're testing~
- [x] [Integration tests](https://github.com/juju/juju/tree/develop/tests), with comments saying what you're testing
- ~[ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~

## QA steps

```sh
./main.sh -v -c aws -R eu-west-2 spaces_ec2
```
@jack-w-shaw jack-w-shaw deleted the fix_spaces_ec2_failures branch May 26, 2023 10:02
@anvial anvial mentioned this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants