Ask Your Question
0

Juno: instance creation fails when specify fixed_ip

asked 2014-11-14 03:08:07 -0500

ZJ gravatar image

Hi,

I have problem with issue creation on Juno release using heat. I have simple template as below:

heat_template_version: 2014-10-16

    parameters:   image:
    type: string
    description: Image for server
    default: cirros-0.3.3-x86_64

resources:   server_3:
    type: OS::Nova::Server
    properties:
       availability_zone: CMS02
       flavor: m1.small
       image: { get_param: image }
       name: Server 4
       networks:
           - network: LAN_TEST_ZZ
             fixed_ip: 192.168.36.56

heat stack-create fails with error:

ResourceInError: Went to status ERROR due to "Message: No valid host was found. , Code: 500"

From nova logs:

nova-api.log:2014-11-14 09:44:05.342 6254 INFO nova.osapi_compute.wsgi.server [req-ea94ccd4-194a-4fef-a4fd-bb867d7f4470 None] 135.248.226.198 "POST /v2/d56e5e404454499f9d1bf564ca7887bb/servers HTTP/1.1" status: 202 len: 745 time: 0.3272769 nova-conductor.log:2014-11-14 09:44:08.561 6022 ERROR nova.scheduler.utils [req-ea94ccd4-194a-4fef-a4fd-bb867d7f4470 None] [instance: 164703f9-ea8c-4fc9-8a10-590be1366f83] Error from last host: open-gen8vcms02 (node open-gen8vcms02): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2014, in do_build_and_run_instance\n
filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2149, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 164703f9-ea8c-4fc9-8a10-590be1366f83 was re-scheduled: coercing to Unicode: need string or buffer, IPAddress found\n'] nova-conductor.log:2014-11-14 09:44:08.581 6022 WARNING nova.scheduler.driver [req-ea94ccd4-194a-4fef-a4fd-bb867d7f4470 None] [instance: 164703f9-ea8c-4fc9-8a10-590be1366f83] NoValidHost exception with message: 'No valid host was found.' nova-conductor.log:2014-11-14 09:44:08.581 6022 WARNING nova.scheduler.driver [req-ea94ccd4-194a-4fef-a4fd-bb867d7f4470 None] [instance: 164703f9-ea8c-4fc9-8a10-590be1366f83] Setting instance to ERROR state. nova-scheduler.log:2014-11-14 09:44:05.361 3174 WARNING nova-scheduler.log:2014-11-14 09:44:08.579 3174 INFO nova.filters [req-ea94ccd4-194a-4fef-a4fd-bb867d7f4470 None] Filter AvailabilityZoneFilter returned 0 hosts

When I remove "fixed_ip" from template, instance is created successfully. I can also first create port and in it define fixed_ip but I wonder why this stops working on Juno release. When I execute initial template (which I provided here with fixed_ip included) on IceHouse, instance creates successfully.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-14 13:53:35 -0500

jasonc gravatar image

Hi ZJ, I have the same problem with heat using latest stable/juno.

I believe this is the solution to the issue: https://bugs.launchpad.net/nova/+bug/1396854 (https://bugs.launchpad.net/nova/+bug/...)

edit flag offensive delete link more

Comments

Thank You!

ZJ gravatar imageZJ ( 2015-02-15 14:22:27 -0500 )edit

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

2 followers

Stats

Asked: 2014-11-14 03:08:07 -0500

Seen: 858 times

Last updated: Nov 14 '14