Persistent Networks Resources created on host during time of connecti…#5195
Persistent Networks Resources created on host during time of connecti…#5195shatoboar wants to merge 3 commits intoapache:mainfrom
Conversation
...lume/src/main/java/org/apache/cloudstack/storage/datastore/provider/DefaultHostListener.java
Outdated
Show resolved
Hide resolved
...lume/src/main/java/org/apache/cloudstack/storage/datastore/provider/DefaultHostListener.java
Outdated
Show resolved
Hide resolved
...lume/src/main/java/org/apache/cloudstack/storage/datastore/provider/DefaultHostListener.java
Outdated
Show resolved
Hide resolved
436ed9e to
ff478a4
Compare
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 889 |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1672)
|
|
@blueorangutan test keepEnv |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1742)
|
|
Closing this PR - tracking it with PR #5977 |
…on, and cleanup during time of removal
Description
This PR is a GSoC project: #4814
This PR adds a feature to L2 persitent networks, where resources of the persistent networks are created at hostConnect phase of DefaultHostListener, and cleaned up at hostAboutToBeRemoved phase.
This PR also fixes a bug, where rebooting the hosts removes the persistent network's resources, without readding them when the host is readded to the zone.
Fixes: #5196
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
This has been manually tested with a mbx KVM, XenServer and VmWare setup on a local machine.
Different manual test scenarios:
A Marvin component test under
test/integration/component/test_persistent_networks.py
added that tests the following steps for a KVM environment.
Validation steps:
Test output results should be:
==== Marvin Init Started ====
=== Marvin Parse Config Successful ===
=== Marvin Setting TestData Successful===
==== Log Folder Path: /tmp/MarvinLogs/. All logs will be available here ====
=== Marvin Init Logging Successful===
==== Marvin Init Successful ====
====Trying SSH Connection: Host:172.20.0.121 User:root Port:22 RetryCnt:10===
===SSH to Host 172.20.0.121 port : 22 SUCCESSFUL===
{Cmd: ip addr | grep breth0-991 > /dev/null 2>&1; echo $? via Host: 172.20.0.121} {returns: ['0']}
=== TestName: test_newly_added_host_for_persistent_network_resources | Status : SUCCESS ===
===final results are now copied to: /tmp//MarvinLogs/test_persistent_networks_===