TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k stars 245 forks source link

Issue creating smartos based VM with VRRP #376

Open jbackman opened 9 years ago

jbackman commented 9 years ago

Issue creating a new VM when VRRP address included:

lb02.json is:

{
  "autoboot": true,
  "brand": "joyent",
  "max_physical_memory": 256,
  "image_uuid": "62f148f8-6e84-11e4-82c5-efca60348b9f",
  "cpu_cap": 100,
  "alias": "lb02",
  "quota": "40",
  "resolvers": [
  "208.67.220.220"
  ],
  "nics": [
  {
    "nic_tag": "external",
    "ip": "10.5.0.8”,
    "netmask": "255.255.255.0",
    "gateway": "10.5.0.1”,
    "vlan_id": 7,
    "vrrp_vrid": 111,
    "vrrp_primary_ip": "10.5.0.7”
  },
  {
   "nic_tag": "external",
    "ip": "10.5.0.7”,
    "netmask": "255.255.255.0",
    "gateway": "10.5.0.1”,
    "primary": true,
    "vlan_id": 7,
    "allow_ip_spoofing": true
  }
  ]
}
vmadm create json -f lb02.json
Uncaught TypeError: Cannot call method 'split' of undefined

FROM
ruinMac (/usr/vm/node_modules/VM.js:1356:17)
/usr/vm/node_modules/VM.js:4383:56
buildNicZonecfg (/usr/vm/node_modules/VM.js:4376:18)
buildZonecfgUpdate (/usr/vm/node_modules/VM.js:4774:19)
createZone (/usr/vm/node_modules/VM.js:6464:19)
/usr/vm/node_modules/VM.js:8172:17
fn (/usr/node/0.10/node_modules/async.js:626:34)
Object._onImmediate (/usr/node/0.10/node_modules/async.js:542:34)
processImmediate [as _immediateCallback] (timers.js:330:15)
Abort (core dumped)
jbackman commented 9 years ago

Note - version is joyent_20141127T173954Z

tim-tang commented 9 years ago

I have the same issue, is there any workarounds?

jbackman commented 9 years ago

My work around is to create the actual interface, then add the vrrp interface once the host is created

tim-tang commented 9 years ago

@jbackman Could you please help use to listing the commands to creating a vrrp interface on a zone? This may help us to avoid many traps. Many thanks.

dn0 commented 9 years ago

+1