how launch an instance with a specific ip with a provider network ?

asked 2019-01-19 02:51:29 -0600

najeh gravatar image

updated 2019-01-19 04:32:36 -0600

I would like to launch an instance with a specific ip_address in a provider network with two compute nodes and one controller. Is it possible? If yes how can i realize that ?

i used python sdk to launch the instance :

     testing_instance = conn.compute.create_server(name=instance_name, 
                                          image_id=image_id, 
                                          flavor_id=flavor_id, 
                                          key_name=key_name,     
                                          ex_userdata=userdata_b64str,
                                          ex_security_groups=security_group_name, 
                                          networks = [{"uuid": network.id, "fixed_ip": "192.168.1.47"} ])

But i recieved these errors:

File "/root/application/openstackInstance.py", line 262, in <module> create_server()

File "/root/application/openstackInstance.py", line 254, in create_server testing_instance = conn.compute.wait_for_server(testing_instance)

File "/usr/lib/python2.7/dist-packages/openstack/compute/v2/_proxy.py", line 698, in wait_for_server self, server, status, failures, interval, wait)

File "/usr/lib/python2.7/dist-packages/openstack/resource.py", line 1141, in wait_for_status name=name, status=new_status))

openstack.exceptions.ResourceFailure: Server:bde51755-46e2-48e3-a962-080c69a851e6 transitioned to failure state ERROR

where is the problem please? and how can i solve it ?

edit retag flag offensive close merge delete

Comments

1

The instance was created, but is in ERROR state. There should be a high-level problem description in the instance details, and you should have more details in the Nova log files.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-19 06:36:39 -0600 )edit