Project

General

Profile

Actions

Bug #8827

open

new hosts built from images fail with Ip address is invalid

Added by Benjamin Roberts over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When creating virtual machine hosts via the API (v2) hosts with provision_method="image" set fail to build with the error "IP address is invalid".

I am not specifying the IP's of these hosts anywhere (as verified in the production.log) as with my regular (not-image) hosts I do not too (IP autosuggest seems to work).

When provisioning an identical host via the web interface I encounter no such issues. I believe this is because the web interface is able to call /subnets/freeip (where as API users are not, csrf etc).

Either autosuggest should work for image hosts the same as other hosts or /subnets/freeip should be exposed via the API such that it can be used without csrf/authenticity tokens.

Happy to provide my configurations if needed.


Files

WindowsHost.json WindowsHost.json 1.49 KB Failing VM Hash (Windows, Image) Benjamin Roberts, 01/13/2015 05:21 PM
LinuxHost.json LinuxHost.json 1.19 KB Successful VM Hash (Linux, Network) Benjamin Roberts, 01/13/2015 05:21 PM
ProductionGui.log ProductionGui.log 2 KB Log Entry for creating Windows host in Web GUI Benjamin Roberts, 01/13/2015 05:27 PM
ProductionAPI.log ProductionAPI.log 1.34 KB Log entry for failing to create Windows host via API Benjamin Roberts, 01/13/2015 05:27 PM
Actions

Also available in: Atom PDF