Issue Type: | New Feature |
---|---|
Priority: | 4 - Normal |
Status: | Resolved |
Created at: | 2019-03-19T19:19:58.457Z |
Updated at: | 2019-05-07T21:00:15.366Z |
Created by: | Former user |
---|---|
Reported by: | Former user |
Assigned to: | Pedro Palazón Candel |
Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2019-04-11T14:06:39.523Z)
2019-04-25 Queen of Jordan (Release Date: 2019-04-25)
To compliment OS-7183, anything wanting to communicate with any Triton services during early boot will need not only the domain name (already provided in networking.json) but also the datacenter name (currently not provided in networking.json).
Adding the DC name to the networking.json output seems the most sensible way to provide the information.
This is the new networking.json file awaiting to be used after the changes in CR 6060:
[root@dd1adff5-6cd3-42fe-acdd-b3bea1b910e9 (coal:dhcpd0) /tftpboot]# cat /tftpboot/bootfs/000c29fc93c9/networking.json { "nictags": [ { "mtu": 1500, "name": "admin", "uuid": "b8878f42-750c-4af7-b86c-5e59a11e40f3", "mac": "00:0c:29:fc:93:c9" }, { "mtu": 1500, "name": "external", "uuid": "a949af7e-d066-4b6a-9751-4b88a86169f1", "mac": "00:0c:29:fc:93:d3" } ], "resolvers": [ "10.99.99.11" ], "routes": {}, "vnics": [ { "belongs_to_type": "server", "belongs_to_uuid": "564d00ad-40a8-b8cf-0714-066c77fc93c9", "mac": "00:0c:29:fc:93:c9", "owner_uuid": "930896af-bf8c-48d4-885c-6573a94b1853", "primary": false, "state": "provisioning", "created_timestamp": "2019-03-24T09:02:23.094Z", "modified_timestamp": "2019-03-24T11:26:36.236Z", "ip": "10.99.99.37", "mtu": 1500, "netmask": "255.255.255.0", "nic_tag": "admin", "resolvers": [ "10.99.99.11" ], "vlan_id": 0, "network_uuid": "220cafa1-d95a-40e3-8a74-fbe97aec536a", "nic_tags_provided": [ "admin" ] } ], "dns_domain": "joyent.us", "hostname": "zero", "datacenter_name": "coal", "aggregations": [] }
And this is what the node gets:
[root@zero (coal) ~]# cat /system/boot/networking.json { "nictags": [ { "mtu": 1500, "name": "admin", "uuid": "b8878f42-750c-4af7-b86c-5e59a11e40f3", "mac": "00:0c:29:fc:93:c9" }, { "mtu": 1500, "name": "external", "uuid": "a949af7e-d066-4b6a-9751-4b88a86169f1", "mac": "00:0c:29:fc:93:d3" } ], "resolvers": [ "10.99.99.11" ], "routes": {}, "vnics": [ { "belongs_to_type": "server", "belongs_to_uuid": "564d00ad-40a8-b8cf-0714-066c77fc93c9", "mac": "00:0c:29:fc:93:c9", "owner_uuid": "930896af-bf8c-48d4-885c-6573a94b1853", "primary": false, "state": "provisioning", "created_timestamp": "2019-03-24T09:02:23.094Z", "modified_timestamp": "2019-03-24T11:26:36.236Z", "ip": "10.99.99.37", "mtu": 1500, "netmask": "255.255.255.0", "nic_tag": "admin", "resolvers": [ "10.99.99.11" ], "vlan_id": 0, "network_uuid": "220cafa1-d95a-40e3-8a74-fbe97aec536a", "nic_tags_provided": [ "admin" ] } ], "dns_domain": "joyent.us", "hostname": "zero", "datacenter_name": "coal", "aggregations": [] }
sdc-booter commit 9aad9f29295fdafaa6c15ed61f61070e46b8051f (branch master, by Pedro Palazon Candel)
TRITON-1332 Include datacenter name in networking.json
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Chris Burroughs <chris.burroughs@joyent.com>