Ask Your Question
0

How can I assigned specific IP to VM using HEAT?

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

job gravatar image

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

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

....
networks:
        - 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'

UPDATE

I tried with "uuid".

...
networks:
        - 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
0

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

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.

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

Answer by Rabi Mishra in Launchpad

edit flag offensive delete link more
0

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

Replace -network with -uuid

 networks:
        - 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 624 times

Last updated: May 02 '15