Skip to content

Failing to get Clusters info using get_cluster() function for the Ray cluster created with Ingress configuration #431

@Srihari1192

Description

@Srihari1192

Describe the Bug

Failing to get Cluster details using get_cluster() function for the Ray cluster created with Ingress configuration in kind clusters thorwing eror as ingress_domain is invalid
A clear and concise description of the bug.

Error:

Traceback (most recent call last):
  File "mnist_rayjob.py", line 12, in <module>
    cluster = get_cluster('mnist',namespace)
  File "/opt/app-root/lib64/python3.8/site-packages/codeflare_sdk/cluster/cluster.py", line 648, in get_cluster
    return Cluster.from_k8_cluster_object(rc, mcad=mcad)
  File "/opt/app-root/lib64/python3.8/site-packages/codeflare_sdk/cluster/cluster.py", line 513, in from_k8_cluster_object
    return Cluster(cluster_config)
  File "/opt/app-root/lib64/python3.8/site-packages/codeflare_sdk/cluster/cluster.py", line 73, in __init__
    self.app_wrapper_yaml = self.create_app_wrapper()
  File "/opt/app-root/lib64/python3.8/site-packages/codeflare_sdk/cluster/cluster.py", line 195, in create_app_wrapper
    return generate_appwrapper(
  File "/opt/app-root/lib64/python3.8/site-packages/codeflare_sdk/utils/generate_yaml.py", line 667, in generate_appwrapper
    update_dashboard_ingress(
  File "/opt/app-root/lib64/python3.8/site-packages/codeflare_sdk/utils/generate_yaml.py", line 142, in update_dashboard_ingress
    raise ValueError(
ValueError: ingress_domain is invalid. For Kubernetes Clusters please specify an ingress domain

Codeflare Stack Component Versions

Please specify the component versions in which you have encountered this bug.

Codeflare SDK:v0.12.1

Steps to Reproduce the Bug

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What Have You Already Tried to Debug the Issue?

On Kind clusters ingress_domain is a mandatory field but there is no ingress_domain option added in the from_k8s_cluster_object function within get_cluster()

Expected Behavior

get_cluster() function should return the ray cluster details successfully for clusters with Ingress domain created

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions