Skip to content

Fix DirectNetworkGuru canHandle checks for lowercase isolation methods#3010

Merged
rafaelweingartner merged 1 commit into
apache:4.11from
shapeblue:fix2989
Nov 7, 2018
Merged

Fix DirectNetworkGuru canHandle checks for lowercase isolation methods#3010
rafaelweingartner merged 1 commit into
apache:4.11from
shapeblue:fix2989

Conversation

@nvazquez
Copy link
Copy Markdown
Contributor

@nvazquez nvazquez commented Nov 6, 2018

Description

Fixes: #2989

In upgrade to 4.11 RC4 from 4.9.3 it was found that Shared networks could not be created after the upgrade, failing with:
image

The DirectNetworkGuru refused to design the network due to the isolation method from the physical network was "vlan" and the guru expected "VLAN"

2018-11-06 16:21:37,396 TRACE [c.c.n.g.DirectNetworkGuru] (qtp1096283470-28:ctx-bdc0f3b5 ctx-dacb5ddd) (logid:f3094acc) We only take care of Guest networks of type Shared

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

How Has This Been Tested?

@nvazquez
Copy link
Copy Markdown
Contributor Author

nvazquez commented Nov 6, 2018

Hi @somejfn can you please test this fix and retry your tests?

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2410

@nvazquez
Copy link
Copy Markdown
Contributor Author

nvazquez commented Nov 6, 2018

@blueorangutan test

@nvazquez nvazquez added this to the 4.11.2.0 milestone Nov 6, 2018
@blueorangutan
Copy link
Copy Markdown

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3146)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 28327 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3010-t3146-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_public_ip_range.py
Intermittent failure detected: /marvin/tests/smoke/test_templates.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Intermittent failure detected: /marvin/tests/smoke/test_volumes.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 63 look OK, 4 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_04_extract_template Failure 128.31 test_templates.py
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py
test_06_download_detached_volume Failure 137.52 test_volumes.py
test_02_cancel_host_maintenace_with_migration_jobs Error 1510.50 test_host_maintenance.py

@borisstoyanov
Copy link
Copy Markdown
Contributor

@somejfn can you please verify this on your setup?

@PaulAngus
Copy link
Copy Markdown
Member

LGTM
Tested with cloud.physical_network_isolation_methods.isolation_method set to 'VLAN', 'vlan' and 'Vlan'.
Shared network created without issue.

Copy link
Copy Markdown
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

LGTM, manually tested it, smoketests also look good.

@rafaelweingartner rafaelweingartner merged commit af0c1e4 into apache:4.11 Nov 7, 2018
rafaelweingartner added a commit that referenced this pull request Nov 7, 2018
… methods

 forward merge of #3010 -- Fix DirectNetworkGuru canHandle checks for lowercase isolation methods
@nvazquez nvazquez deleted the fix2989 branch November 7, 2018 12:21
@somejfn
Copy link
Copy Markdown

somejfn commented Nov 7, 2018

Fix is confirmed. I can create a new network now based on the shared network offering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants