Skip to content

Add SAP licence support - #487

Open
fabi200123 wants to merge 1 commit into
cloudbase:masterfrom
fabi200123:add-sap-support
Open

Add SAP licence support#487
fabi200123 wants to merge 1 commit into
cloudbase:masterfrom
fabi200123:add-sap-support

Conversation

@fabi200123

Copy link
Copy Markdown
Contributor

This PR adds the following:

  • New constants for sap_migration, sap_replica and sap_libvirt (endpoint type)
  • Provider type overrides for SCENARIO_TYPE_TO_LICENSING_RESERVATION_MAP: a new ENDPOINT_TYPE_TO_LICENSING_RESERVATION_OVERRIDES map and _get_reservation_type helper resolve the reservation type based on the destination endpoint type, falling back to the scenario-based map. Transfers targeting sap_libvirt endpoints get SAP reservation types
  • The destination endpoint type is now passed down to all _create_reservation_for_transfer calls

Note: MigrationLicenceFulfilledException is no longer raised by the conductor, since the equivalent check is now enforced server-side. The conductor no longer performs the fulfilled-migration check itself.

Comment thread coriolis/conductor/rpc/server.py
@fabi200123
fabi200123 force-pushed the add-sap-support branch 2 times, most recently from a0efa42 to ac3a8b7 Compare August 6, 2026 13:59
Comment thread coriolis/exception.py Outdated
@@ -556,6 +554,6 @@ class ChecksumMismatch(CoriolisException):
class MigrationLicenceFulfilledException(Invalid):
message = (
"The Live Migration operation with ID '%(action_id)s' (licensing "

@Dany9966 Dany9966 Aug 7, 2026

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.

I would also replace this ("Live Migration") with scenario, just in case there will be multiple scenarios that can throw 403.
I'd add something like this:
"The %s operation with ID .... " % transfer.scenario.replace('_', ' ').title()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In this case, also renamed it to LicenceReservationFulfilledException

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.

2 participants