How can I assigned specific IP to VM using HEAT?

asked 2015-04-19 19:06:59 -0500

job gravatar image

updated 2015-04-20 20:50:33 -0500

Using JUNO in UBUNTU 14, I tried the following in OS::Nova::Server resource:

        - fixed_ip: { get_param: specific_ip }
        - network: { get_param: net }

I got the following error:

Stack CREATE FAILED (haproxy): Resource CREATE failed: BadRequest: Bad network format: missing 'uuid'


I tried with "uuid".

        - fixed_ip: { get_param: public_ip }
        - uuid: { get_param: net }

I passed the net parameter with " net=$(nova network-list | grep -i -m 1 net | awk '{print $2}')"

I got the same error. I should mention I'm using nova-network

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-05-02 09:41:42 -0500

job gravatar image

It seems your template is wrong. 'networks' property takes a list of networks. If you want to specify a fixed_ip for a specific network, you can specify like below.

    - network: {get_param: net_a}
      fixed_ip: {get_param: net_ip}

Answer by Rabi Mishra in Launchpad

edit flag offensive delete link more

answered 2015-04-20 00:06:39 -0500

Replace -network with -uuid

        - fixed_ip: { get_param: specific_ip }
        - uuid: { get_param: net }

Although use of uuid is deprecated but still it works instead of network. P.S I am thinking to report this as a bug.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-19 19:06:59 -0500

Seen: 657 times

Last updated: May 02 '15