OS-6178: Support "routes" for KVM and bhyve instances

Details

Issue Type:Bug
Priority:3 - Elevated
Status:Resolved
Created at:2017-06-09T21:55:03.000Z
Updated at:2018-06-20T17:21:04.041Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2018-03-19T19:18:47.921Z)

Fix Versions

2018-03-29 Old Man's House (Release Date: 2018-03-29)

Related Issues

Labels

bhyve

Description

vmadm doesn't allow setting routes for KVM instances, but we allow people people to provision KVM instances onto networks that have routes defined. This means that you can successfully provision an instance on one of these networks, but can't expect to have the routes it defines set in your routing table.

To fix this, we'll need to save the information in routes.json so that mdata-get sdc:routes will work inside the KVM instance, and maybe also send the additional routes in DHCP.

Comments

Comment by Former user
Created at 2018-03-17T09:26:47.659Z
Updated at 2018-03-17T09:27:24.427Z

To test out these changes, I added a sample route to my "external" network in my COAL, and provisioned a bhyve and then a KVM instance of Ubuntu. I verified that running mdata-get sdc:routes in the instances returned the routes, although from running route -n it looks like cloud-init doesn't currently use them for anything.

I also ran set_routes on the KVM instance to verify that that also now worked.


Comment by Jira Bot
Created at 2018-03-19T19:18:30.479Z

smartos-live commit 8fd367dada8b54e7d80f5f4b0ac9efa80c3b2d63 (branch master, by Cody Peter Mello)

OS-6178 Support "routes" for KVM and bhyve instances
Reviewed by: Dan McDonald <danmcd@joyent.com>
Approved by: Josh Wilsdon <josh@wilsdon.ca>


Comment by Jira Bot
Created at 2018-03-20T16:56:31.405Z

smartos-live commit 8fd367dada8b54e7d80f5f4b0ac9efa80c3b2d63 (branch vminfod, by Cody Peter Mello)

OS-6178 Support "routes" for KVM and bhyve instances
Reviewed by: Dan McDonald <danmcd@joyent.com>
Approved by: Josh Wilsdon <josh@wilsdon.ca>