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

VM templates without ssh key overrides network #474

Open
pbrownrobo opened this issue Oct 1, 2024 · 0 comments
Open

VM templates without ssh key overrides network #474

pbrownrobo opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pbrownrobo
Copy link

Jenkins and plugins versions report

Jenkins 2.462.2
Google Compute Engine Plugin
Version4.575.v6969b_7c435eb_

Im using a VM template, with a non-defaut VPC/network for both nodes, and the server.
The template sets the appropriate network for the node.

This works great if I define the cloud config to use an ssh keypair.
However, if I DONT use that... then apparently the GCE plugin forces the node to be created in the DEFAULT VPC.
Overriding the VM template.

I cant even manually override this myself in the jenkins cloud config side, since all "advanced" settings get ignored if you use a VM template.

What Operating System are you using (both controller, and any agents involved in the problem)?

ubuntu24

Reproduction steps

create VM template with non-default VPC

Create jenkins cloud config that uses ssh keypair
Create another cloud config that just uses default gcp creds.

first one works, second one doesnt, if you have security rules in the cloud to disallow crossvpc traffic.

Expected Results

it would work?

Actual Results

loop on ssh timeout.
ssh is blocked, and it SHOULD be, because jenksins server is trying to talk to a VM in a different VPC.

Anything else?

No response

Are you interested in contributing a fix?

No response

@pbrownrobo pbrownrobo added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant