Skip to content

Remove unused config consoleproxy.cmd.port#12807

Merged
sureshanaparti merged 3 commits into
apache:4.22from
shapeblue:remove-unused-config-consoleproxy.cmd.port
Apr 14, 2026
Merged

Remove unused config consoleproxy.cmd.port#12807
sureshanaparti merged 3 commits into
apache:4.22from
shapeblue:remove-unused-config-consoleproxy.cmd.port

Conversation

@sureshanaparti

@sureshanaparti sureshanaparti commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Description

This PR removes unused config 'consoleproxy.cmd.port'.

The config 'consoleproxy.cmd.port' reference is removed in 4.11.1.0 here: #2562. Before 4.11.1.0, it is referenced but not used -

String value = configs.get(Config.ConsoleProxyCmdPort.key());
value = configs.get("consoleproxy.sslEnabled");

Fixes #11615

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)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to remove the legacy/unused global setting consoleproxy.cmd.port as part of the 4.22.0.0 → 4.22.1.0 schema upgrade, to avoid exposing a misleading configuration option.

Changes:

  • Adds a DB migration step to delete consoleproxy.cmd.port from cloud.configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@codecov

codecov Bot commented Mar 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.61%. Comparing base (7c7b2ae) to head (d798e4f).
⚠️ Report is 4 commits behind head on 4.22.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #12807      +/-   ##
============================================
- Coverage     17.61%   17.61%   -0.01%     
+ Complexity    15690    15689       -1     
============================================
  Files          5918     5918              
  Lines        531914   531913       -1     
  Branches      65047    65047              
============================================
- Hits          93688    93685       -3     
- Misses       427662   427663       +1     
- Partials      10564    10565       +1     
Flag Coverage Δ
uitests 3.70% <ø> (ø)
unittests 18.68% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17126

@sudo87 sudo87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@sureshanaparti sureshanaparti force-pushed the remove-unused-config-consoleproxy.cmd.port branch from 8dbb5d0 to bc12ec5 Compare March 25, 2026 10:30
@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17241

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm, will be hard to prove completeness, but at least some manual regression testing will be needed.

@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@sureshanaparti sureshanaparti force-pushed the remove-unused-config-consoleproxy.cmd.port branch from bc12ec5 to e337f91 Compare April 2, 2026 05:19
@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17340

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 17456

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17457

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-15859)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 50018 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12807-t15859-kvm-ol8.zip
Smoke tests completed. 148 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestClusterDRS>:setup Error 0.00 test_cluster_drs.py

@rajujith rajujith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
Tested , consoleproxy.cmd.port is removed

@sureshanaparti sureshanaparti merged commit feb6076 into apache:4.22 Apr 14, 2026
25 of 26 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Apache CloudStack 4.22.1 Apr 14, 2026
@sureshanaparti sureshanaparti deleted the remove-unused-config-consoleproxy.cmd.port branch April 14, 2026 08:10
dhslove added a commit to dhslove/ablestack-cloud that referenced this pull request Apr 21, 2026
Source local/main commit:
- f0f0218dcb server: remove unused console proxy command port config

Source Apache commits:
- feb6076 Remove unused config consoleproxy.cmd.port (apache#12807)

Change summary:
- remove the unused ConsoleProxyCmdPort config key from ConsoleProxyManager
- stop exposing consoleproxy.cmd.port through ConsoleProxyManagerImpl.getConfigKeys()
- delete stale consoleproxy.cmd.port rows during the 4.22.0.0 -> 4.22.1.0 schema upgrade
- record Record 034 sync notes in the history document

Functional impact:
- removes an unused console proxy setting from surfaced configuration lists
- cleans obsolete configuration data during upgrade
- does not change active console proxy runtime behavior

Validation:
- cherry-pick from local/main applied cleanly on ablestack-europa
- mvn/mvnw-based Java tests not run in this environment by request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

consoleproxy.cmd.port configuration is unused (legacy/no-op)

7 participants