Skip to content

Support nested openstack VM accessability#2403

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Apr 2, 2026
Merged

Support nested openstack VM accessability#2403
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

@seokho-son seokho-son commented Apr 1, 2026

  • Added new REST routes/handlers to set a bastion using (bastionMciId, bastionVmId) or (bastionNsId, bastionMciId, bastionVmId).
  • Extended model.BastionNode to include nsId, and updated bastion-aware SSH execution to resolve bastion namespace and prefer target public IP for cross-bastion tunnels.
  • Updated Swagger artifacts and adjusted bastion auto-assignment call sites to the new SetBastionNodes signature.
image

@seokho-son seokho-son requested a review from yunkon-kim as a code owner April 1, 2026 19:10
Copilot AI review requested due to automatic review settings April 1, 2026 19:10
@github-actions github-actions bot added the asset label Apr 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds cross-MCI and cross-namespace bastion support to improve VM accessibility (notably for OpenStack/private-network cases) by allowing a bastion VM to be selected from outside the target VM’s MCI/namespace and adapting tunneling behavior accordingly.

Changes:

  • Added new REST routes/handlers to set a bastion using (bastionMciId, bastionVmId) or (bastionNsId, bastionMciId, bastionVmId).
  • Extended model.BastionNode to include nsId, and updated bastion-aware SSH execution to resolve bastion namespace and prefer target public IP for cross-bastion tunnels.
  • Updated Swagger artifacts and adjusted bastion auto-assignment call sites to the new SetBastionNodes signature.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/interface/rest/server/server.go Registers additional PUT endpoints for cross-MCI / cross-namespace bastion assignment.
src/interface/rest/server/infra/remoteCommand.go Implements new REST handlers and updates existing handler to the new infra API signature.
src/interface/rest/docs/swagger.yaml Documents the new endpoints and updates model.BastionNode schema.
src/interface/rest/docs/docs.go Generated Swagger doc template updates for the new endpoints/schema.
src/core/model/vnet.go Adds NsId to BastionNode to support cross-namespace bastions.
src/core/infra/remoteCommand.go Core logic updates for cross-bastion SSH (namespace resolution + public-IP preference) and expanded SetBastionNodes API.
src/core/infra/provisioning.go Updates bastion auto-assignment call to new SetBastionNodes signature.
assets/cloudinfo.yaml Minor formatting/indentation adjustment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Apr 2, 2026
@cb-github-robot cb-github-robot merged commit a8c0a64 into cloud-barista:main Apr 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon. asset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants