vmware / container-service-extension

Container Service for VMware vCloud Director
https://vmware.github.io/container-service-extension
Other
77 stars 52 forks source link

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

Open mann1mal opened 5 years ago

mann1mal commented 5 years ago

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 commented 5 years ago

Forgot CSE doesn't support PKS 1.5

goelaashima commented 5 years ago

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

rocknes commented 5 years ago

@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