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

test_networks: Avoid triggering volatile.bridge.hwaddr #409

Merged
merged 1 commit into from Jul 25, 2020
Merged

test_networks: Avoid triggering volatile.bridge.hwaddr #409

merged 1 commit into from Jul 25, 2020

Conversation

stgraber
Copy link
Contributor

LXD now generates a stable MAC address for networks.
This is placed in volatile.bridge.hwaddr unless the network has a
pre-configured address.

This makes the current network test fail as it assumes that the config
returned after creation will be identical to that provided during
creation.

There are two ways of fixing this:

  • Strip all volatile keys
  • Provide a pre-set bridge.hwaddr key

This implements the latter.

Signed-off-by: Stéphane Graber stgraber@ubuntu.com

LXD now generates a stable MAC address for networks.
This is placed in volatile.bridge.hwaddr unless the network has a
pre-configured address.

This makes the current network test fail as it assumes that the config
returned after creation will be identical to that provided during
creation.

There are two ways of fixing this:

 - Strip all volatile keys
 - Provide a pre-set bridge.hwaddr key

This implements the latter.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2020

Codecov Report

Merging #409 into master will decrease coverage by 0.36%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #409      +/-   ##
==========================================
- Coverage   96.46%   96.10%   -0.37%     
==========================================
  Files          17       17              
  Lines        1103     1103              
  Branches      129      129              
==========================================
- Hits         1064     1060       -4     
- Misses         18       20       +2     
- Partials       21       23       +2     
Impacted Files Coverage Δ
pylxd/exceptions.py 83.33% <0.00%> (-16.67%) ⬇️
pylxd/models/instance.py 88.96% <0.00%> (-0.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c410e7...e7b1a4c. Read the comment docs.

@stgraber
Copy link
Contributor Author

Merging to unbreak jenkins.

@stgraber stgraber merged commit 3c41bb8 into canonical:master Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants