-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Unsupported Transceivers #111
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good to have this, even though the test might fail for actually supported non-OEM SFPs, we can still use it to highlight this to the user and be aware of it during the upgrade. I think we can have the logic in the wrapper tools (Ansible, XSOAR) to fail or just to warn about it. Having said that I don't think we can maintain a manually updated list of SFPs but we can test only the OEM SFPs.
I agree @alperenkose. Maybe we should rename the test to "non-OEM transceivers" instead? @FoSix thoughts? |
Just my personal thought - but the rest of the checks are Green light -> proceed with upgrade . If we reverse the logic - this one would look odd in the same context. Since the checks are a list and we can cherry pick which ones you want - we can maybe leave it as the initial proposal (fail check in case of non-OEM transceivers) ? |
maybe we could do both?
Is the non-oem, but supported list publicly available? Maybe we could download that list in the code and do some regex search on it? |
Co-authored-by: Alp Eren Kose <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@FoSix the full list of "supported" transceivers is ONLY availalbe on the Live and requires a support login. So it's available to customers but is NOT publicly available. I like your solution of an option to pass a list of additionally supported optics, I think that's a very clean and nice solution. I will work on it. |
As discussed, added an option to provide a list of regex that can be used as a comparison while testing for OEM optics. This allows the user to specify vendor part numbers like |
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adambaumeister I've noticed that for whatever reason the CI PR did not trigger. When I run all checks locally I get some errors: some about formatting, but the biggest one is this one:
You have to rebase with main
as well, some breaking changes were merged recently.
…rs' into adam-feat-unsupported-transceivers # Conflicts: # panos_upgrade_assurance/firewall_proxy.py # tests/test_firewall_proxy.py
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
A Preview PR in PanDev repo has been created. You can view it here. |
@FoSix I fixed that issue (was 3.11 prob), updated API docs and fixed the formatting issues. Anything outstanding here you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
In certain software versions, following an upgrade, it's observed that non-OEM Transceivers (SFPs) can become non-functional after a software upgrade. The
unsupported_transceiver
test fails when any such transceiver is found in output of "show system state".Motivation and Context
If a user upgrades and is using unsupported transceivers that become unrecognized by the system, this is a potential major issue that could a severe network outage.
There are two major points up for debate before we can finish this test:
How Has This Been Tested?
show system state
detailsThe tests have been run against vm-series firewalls but of course they don't have SFPs so we can't fully validate this without a live hardware lab.
Types of changes