Hi Guys,

i am trying to create an EC2 instance via hammer.

i have dhcp on that vlan.

when i am running the following : 
hammer -d  --show-ids -u "$USERNAME" -p "$PASS" host create --name 
"hammertest4" --environment "Production" --hostgroup "general_group" 
--compute-resource "E2E_Amazon" --provision-method image --image 
"bl-rhel-6.7-hvm.x86_64-ami22" --operatingsystem-id "2" --enabled true 
--managed true --interface 
"managed=true,primary=true,provision=true,subnet_id=5,domain_id=1" 
--compute-attributes="flavor_id=m3.large,image_id=ami-b061acd0,availability_zones=us-west-2a,security_group_ids=["sg-53a7d034"],managed_ip=private,subnet_id=subnet-f6f51280"
 
--compute-profile-id 2 --subnet="PrivateManagementSubnetAZ1" 

it fails :
[DEBUG 2016-10-06 11:58:33 API] Headers: {}
[DEBUG 2016-10-06 11:58:33 API] 500 Internal Server Error
{
    "error" => {
        "message" => "Invalid IP Address "
    }
}
[ERROR 2016-10-06 11:58:33 Exception] Invalid IP Address
Could not create the host:
  Invalid IP Address



when i get it an IP, it does not take the ip, but takes the IP from the 
DHCP.


Any idea on this ?

At the moment, i have to go into foreman, get the right ip, freeze the 
named, fix the tables and thaw it back, but this is not an automated 
solution, and hammer should not work like this.

What am i missing ?


Regard,

Ronen

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to