container-service-extension icon indicating copy to clipboard operation
container-service-extension copied to clipboard

CSE is unable to list clusters after Enterprise PKS Upgrade to 1.5.

Open mann1mal opened this issue 4 years ago • 3 comments

After upgrading our Enterprise PKS 1.4.1 environment to 1.5.0, all of the existing k8 clusters are upgrading to a newer version of k8 and the "ACTION" state of the cluster is "UPGRADED"

Output below from PKS UI:

root@pks-client:~# pks clusters

Name               Plan Name        UUID                                  Status     Action
prod-cluster-1     small            1cd1818c-fc95-4235-b6c4-a357ce95123c  succeeded  UPGRADE

It seems as if CSE is unable to understand the "UPGRADE" state. When trying to list (or create a new PKS cluster) I get the following output:

$ vcd cse cluster list
Usage: vcd cse cluster list [OPTIONS]
Try "vcd cse cluster list -h" for help.

Error: Invalid value for `last_action` (UPGRADE)

Please let me know if you need additional information from our lab environment.

mann1mal avatar Oct 01 '19 12:10 mann1mal

Forgot CSE doesn't support PKS 1.5

mann1mal avatar Oct 01 '19 12:10 mann1mal

It's a good bug to track on our side when we do support PKS 1.5 in future.

goelaashima avatar Oct 01 '19 17:10 goelaashima

@goelaashima This error message is not originating from CSE code, It's being generated by the pksclient we consume.

@last_action.setter def last_action(self, last_action): """Sets the last_action of this Cluster.

    :param last_action: The last_action of this Cluster.  # noqa: E501
    :type: str
    """
    allowed_values = ["CREATE", "UPDATE", "DELETE"]  # noqa: E501
    if last_action not in allowed_values:
        raise ValueError(
            "Invalid value for `last_action` ({0}), must be one of {1}"  # noqa: E501
            .format(last_action, allowed_values)
        )

    self._last_action = last_action

rocknes avatar Oct 09 '19 18:10 rocknes