Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there any way to assign private static ip using heat

I want to assign private static ip to the VM using heat. Currently vm get the ip from dhcp but i want to fix the ip address before launching an vm.

Is there any way to assign private static ip using heat

I want to assign private static ip to the VM using heat. Currently vm get the ip from dhcp but i want to fix the ip address before launching an a vm.

Is there any way to assign private static ip using heat

I want to assign private static ip to the VM using heat. Currently vm get dhcp allocates the ip from dhcp but i want to fix give the ip address before during launching a vm.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)