Skip to content

Containerinfra: acceptance test timeout changes and fixes#1794

Merged
jtopjian merged 5 commits intogophercloud:masterfrom
tghartland:containerinfra-acceptance-timeout
Dec 10, 2019
Merged

Containerinfra: acceptance test timeout changes and fixes#1794
jtopjian merged 5 commits intogophercloud:masterfrom
tghartland:containerinfra-acceptance-timeout

Conversation

@tghartland
Copy link
Copy Markdown
Contributor

For #1767

Adds configurable timeouts to cluster creation which will be needed for kubernetes clusters, to be able to test node groups. A kubernetes cluster needs longer than 5 minutes to create.

There are also some fixes for the existing clusters API acceptance tests.

  • Check timeout error when creating the cluster
  • Fix update opts value type for replacing node count
  • Change template storage driver

I have tried to make as few changes and additions as possible to the existing code, by making the existing functions just call to the versions that accept a timeout.

With these fixes, the cluster acceptance tests pass in my devstack on magnum master branch.
For the tests in CI, the timeouts may need to be tweaked.

To be used in situations where a 300 second timeout is
not long enough or otherwise unsuitable.

The WaitFor function is changed to simply call WaitForTimeout
and pass the same 300 second timeout, keeping the same behaviour.
Keeps the same timeout as previously by default, but can be changed
for cluster templates that require a longer timeout.
Required for compatibility with Magnum APIs running on Python 3.
See gophercloud#1458
and gophercloud#1463
With the storage driver set to devicemapper the magnum API did not
accept clusters created with the template, as docker_volume_size
was not set. Instead of setting the volume size, overlay2 can be used
with no volume and is the preferred storage driver.
@coveralls
Copy link
Copy Markdown

coveralls commented Dec 5, 2019

Coverage Status

Coverage increased (+0.3%) to 77.272% when pulling 1ea0ade on tghartland:containerinfra-acceptance-timeout into c99da27 on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Dec 5, 2019

Build failed.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Dec 6, 2019

recheck

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Dec 6, 2019

Build failed.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Dec 7, 2019

recheck

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Dec 7, 2019

Build failed.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Dec 8, 2019

recheck

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Dec 8, 2019

Build failed.

@jtopjian
Copy link
Copy Markdown
Contributor

@tghartland I'm going to merge this one, too. Once we get Magnum integrated in OpenLab, we can look at fixing any errors, if needed.

Thank you very much for your work on this.

@jtopjian jtopjian merged commit 7aa2e52 into gophercloud:master Dec 10, 2019
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.

3 participants