Is there any way to assign private static ip using heat?
I want to assign private static ip to the VM using heat. Currently dhcp allocates the ip but i want to give the ip address during launching a vm using heat.
what is going wrong here to assign fixed ip:
resources:
my_port:
type: OS::Neutron::Port
properties:
name: "port1"
network_id: { get_param: internal_network }
fixed_ips:
- subnet_id: "<subnet_id>"
- ip_address: 10.10.10.15
#fixed_ips: [{"subnet": "my_subnet", "ip_address": "10.10.10.15"}]
my_vm:
type: OS::Nova::Server
properties:
name: "testvm"
image: { get_param: var_Image }
flavor: "m1.tiny"
networks:
- port: { get_resource: my_port }
Error message: heatclient.exc.HTTPBadRequest: ERROR: Property error: : resources.my_port.properties.fixed_ips[1].ip_address: : "10.10.10.15" does not validate ip_addr (constraint not found)
You have to create a neutron port , bind ip address to that port and attach the instance network to that port , I haven't checked possibility of this via heat
you are telling about this
but i want to create this using heat template