Ask Your Question
0

Resource 7bed8adc-9ed9-49dc-b15e-6660e2fc3285 transitioned to failure state ERROR when use openstacksdk to create_server.

asked 2017-11-24 02:22:14 -0500

liaodalin19903 gravatar image

When I create the openstack server, I get bellow Exception:

Resource 7bed8adc-9ed9-49dc-b15e-6660e2fc3285 transitioned to failure state ERROR

My code is bellow:

server_args = {
    "name":server_name,
    "image_id":image_id,
    "flavor_id":flavor_id,
    "networks":[{"uuid":network.id}],
    "admin_password": admin_password,
}

try:
    server = user_conn.conn.compute.create_server(**server_args)
    server = user_conn.conn.compute.wait_for_server(server)
except Exception as e:  # there I except the Exception
    raise e

When create_server, my server_args data is bellow:

{'flavor_id': 'd4424892-4165-494e-bedc-71dc97a73202', 'networks': [{'uuid': 'da4e3433-2b21-42bb-befa-6e1e26808a99'}], 'admin_password': '123456', 'name': '133456', 'image_id': '60f4005e-5daf-4aef-a018-4c6b2ff06b40'}

My openstacksdk version is 0.9.18.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-11-24 02:47:03 -0500

liaodalin19903 gravatar image

In the end, I find the flavor data is too big for openstack compute node, so I changed it to a small flavor, so I create success.

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: 2017-11-24 02:22:14 -0500

Seen: 53 times

Last updated: Nov 24 '17