sap-oc / crowbar-core

Core deployment for Crowbar
1 stars 1 forks source link

Preallocation IPs for hosts do not work with crowbarctl #21

Open snschee opened 7 years ago

snschee commented 7 years ago

we tried to preallocate an IP address with:

crowbarctl network hostip allocate PROPOSAL NODE NETWORK RANGE [SUGGESTION]

but it ignored our IP address "SUGGESTION" (IP was not used at all)

example:

crowbarctl network hostip allocate default d00-25-b5-42-50-01.cc-ap-cn-100.cloud.sap storage host 192.168.128.15
{
  "conduit": "intf1",
  "vlan": 412,
  "use_vlan": true,
  "add_bridge": false,
  "mtu": 1500,
  "subnet": "192.168.128.0",
  "netmask": "255.255.255.0",
  "broadcast": "192.168.128.255",
  "ranges": {
    "host": {
      "start": "192.168.128.4",
      "end": "192.168.128.126"
    }
  },
  "router": "192.168.128.1",
  "usage": "storage",
  "node": "d00-25-b5-42-50-01.cc-ap-cn-100.cloud.sap",
  "address": "192.168.128.4"
}
dvbavel commented 7 years ago

And with knife data bag edit crowbar storage_network?

vuntz commented 7 years ago

@dvbavel using the crowbar (instead of crowbarctl) command works fine.