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

Vespa Cloud deploy does not consider custom instance #982

Open
ldalves opened this issue Nov 26, 2024 · 0 comments
Open

Vespa Cloud deploy does not consider custom instance #982

ldalves opened this issue Nov 26, 2024 · 0 comments
Assignees
Milestone

Comments

@ldalves
Copy link
Member

ldalves commented Nov 26, 2024

Using vespa-cli I can set a custom instance like:

vespa config set application vespa-team.text-search.leandro

Using pyvespa I don't have an option to pass the instance name in VespaCloud, but instead I have to pass it in the vespa_cloud.deploy.

vespa_cloud = VespaCloud(
    tenant=tenant,
    application=application,
    application_package=app_package,
)

vespa_cloud.deploy(instance=instance)

The instance above is set to leandro, but in the logs we can see that it is set to default:

Setting application...
Running: vespa config set application vespa-team.text-image-search
Setting target cloud...
Running: vespa config set target cloud

No api-key found for control plane access. Using access token.
Checking for access token in auth.json...
Successfully obtained access token for control plane access.
Certificate and key not found in /Users/leandro/dev/ldalves/text-image-search/.vespa or /Users/leandro/.vespa/vespa-team.text-image-search.default: Creating new cert/key pair with vespa CLI.
Generating certificate and key...
Running: vespa auth cert -N
Success: Certificate written to '/Users/leandro/.vespa/vespa-team.text-image-search.default/data-plane-public-cert.pem'
Success: Private key written to '/Users/leandro/.vespa/vespa-team.text-image-search.default/data-plane-private-key.pem'

In order to fix this, we need to allow passing instance to VespaCloud as well and set it in the vespacli if not default.

@oyving oyving added this to the soon milestone Nov 27, 2024
@hmusum hmusum modified the milestones: soon, later Nov 27, 2024
@hmusum hmusum modified the milestones: later, soon Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants