Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependency] Fix the lazy import failure for OCI #3463

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

Michaelvll
Copy link
Collaborator

@Michaelvll Michaelvll commented Apr 22, 2024

Fixes #3462

The problem is caused by we setting the controller resources with an empty resource field when no cloud is specified.
#3462 should be fixed in #3363.

This PR now only fixes the issue where OCI is imported even if the user does not have it enabled. This is introduced by #3394.

This can affect all new users of SkyServe who don't have OCI setup.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
    • sky serve up -n new llm/llama-3/llama3.yaml with no existing controller
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

@Michaelvll Michaelvll requested review from cblmemo and concretevitamin and removed request for cblmemo April 22, 2024 23:29
@Michaelvll Michaelvll added bug Something isn't working P0 labels Apr 22, 2024
Copy link
Collaborator

@cblmemo cblmemo Apr 23, 2024

Choose a reason for hiding this comment

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

This is actually fixed in #3363; see the pic attached.

If we want to separate this into a single PR and merge it first, IIUC change the

if (not controller_exist and
    controller_resources_in_config.cloud is None):

to

if (not controller_exist and
    controller_resources_in_config.cloud is None and requested_clouds):

could resolve this problem.

image

Copy link
Collaborator Author

@Michaelvll Michaelvll Apr 23, 2024

Choose a reason for hiding this comment

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

why the current version does not work, which seems simpler to me

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should work as well. Just trying to reduce the merge conflict 😂

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, it seems that #3363 covers more cases, and is ready to go. I am going to get rid of the handling of the clouds here, and we can get that PR merged first : )

Copy link
Collaborator

@cblmemo cblmemo left a comment

Choose a reason for hiding this comment

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

Just tried and it works well! LGTM.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should work as well. Just trying to reduce the merge conflict 😂

@Michaelvll Michaelvll changed the title [Serve] Fix controller resources when cloud is not specified for a service [Dependency] Fix the lazy import failure for OCI Apr 23, 2024
@Michaelvll Michaelvll force-pushed the fix-controller-resources branch from ea6cc94 to 7d5926a Compare April 23, 2024 02:48
@Michaelvll Michaelvll merged commit c42c7ef into master Apr 23, 2024
20 checks passed
@Michaelvll Michaelvll deleted the fix-controller-resources branch April 23, 2024 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Serve] Fail to launch controller when no resources is specified for a service when firstly used
2 participants