PUBAPI-1238: cloudapi's primaryIp selection relies on nic_tag values rather than using "NIC.primary"

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2016-01-27T22:19:08.000Z
Updated at:2016-11-25T17:48:27.000Z

People

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

Resolution

Duplicate: The problem is a duplicate of an existing issue.
(Resolution Date: 2016-11-25T17:48:12.000Z)

Related Issues

Description

https://github.com/joyent/sdc-cloudapi/blob/b8144e80d8e8edffdb4f83b5d8dc42f09d805924/lib/machines.js#L168-L178

The result is that for a user on an onprem SDC with nic_tags that are not
any of "external" or "internal", the machine.primaryIp is empty.
This then means that 'triton ssh MACHINE ...' fails.

Peter Toth reported this on sdc-discuss:
http://www.listbox.com/member/archive/247449/2016/01/sort/thread/page/3/entry/18:74/20160126174050:D6C7C234-C47D-11E5-9D03-35E9EF10038B/
and responses on that thread.

Comments