microsoft / service-fabric-cli

Service Fabric CLI Tools
Other
53 stars 52 forks source link

11.2.1 version of sfctl cannot be used with cluster version "10.1.2175.9590" #260

Open TomDeLens opened 4 months ago

TomDeLens commented 4 months ago

Error message UserWarning: sfctl has version "11.2.1" which does not match the cluster version "10.1.2175.9590".

Source code which could maybe introduce this issue /custom_cluster.py

` def sfctl_cluster_version_matches(cluster_version, sfctl_version): """ Check if the sfctl version and the cluster version is compatible with each other. :param cluster_version: str representing the cluster runtime version of the connected cluster :param sfctl_version: str representing this sfctl distribution version :return: True if they are a match. False otherwise. """

if sfctl_version in ['11.2.1']:

    return cluster_version.startswith('8') or cluster_version.startswith('9')

# If we forget to update this code before a new release, the tests which call this method
# will fail.
raise SFCTLInternalException(str.format(
    'Invalid sfctl version {0} provided for check against cluster version {1}.',
    sfctl_version,
    cluster_version))

`