Ask Your Question
0

I Can't create the test stack, I got an error: Creation of server Test server failed

asked 2014-08-14 08:06:33 -0500

p3check gravatar image

Hello, I have tried install openstack.. I have followed this manual: http://docs.openstack.org/icehouse/install-guide/install/apt/content/ (http://docs.openstack.org/icehouse/in...)

I used 3 nodes architecture, where osnode1 is my controller node, osnode2 is my network node and server with name penev is a compute node. osnode1 and osnode2 are virtual macine on KVM hosted on another server. Penev is a physical server.

On all nodes is installed ubuntu server 12.04..

I stuck with step 11. Verify the Orchestration service installation (all steps before this and all verification phases seems to be ok with no error)

When I run this command:

# heat stack-create -f test-stack.yml -P "ImageID=cirros-0.3.2-x86_64;NetID=$NET_ID" testStack
+--------------------------------------+------------+--------------------+----------------------+
| id                                   | stack_name | stack_status       | creation_time        |
+--------------------------------------+------------+--------------------+----------------------+
| c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539 | testStack  | CREATE_IN_PROGRESS | 2014-08-14T12:30:46Z |
+--------------------------------------+------------+--------------------+----------------------+

and when I run: heat stack-list I got:

+--------------------------------------+------------+---------------+----------------------+
| id                                   | stack_name | stack_status  | creation_time        |
+--------------------------------------+------------+---------------+----------------------+
| c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539 | testStack  | CREATE_FAILED | 2014-08-14T12:30:46Z |
+--------------------------------------+------------+---------------+----------------------+

heat stack-show c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539

+----------------------+---------------------------------------------------------------------------------------------------------------+
| Property             | Value                                                                                                         |
+----------------------+---------------------------------------------------------------------------------------------------------------+
| capabilities         | []                                                                                                            |
| creation_time        | 2014-08-14T12:30:46Z                                                                                          |
| description          | Test Template                                                                                                 |
| disable_rollback     | True                                                                                                          |
| id                   | c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539                                                                          |
| links                | http://osnode1:8004/v1/9009121425084ceaa9ff79acc6cda9bb/stacks/testStack/c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539 |
| notification_topics  | []                                                                                                            |
| parameters           | {                                                                                                             |
|                      |   "NetID": "9c491cca-101e-49ad-bc30-5d5f4133e445",                                                            |
|                      |   "OS::stack_name": "testStack",                                                                              |
|                      |   "OS::stack_id": "c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539",                                                     |
|                      |   "ImageID": "cirros-0.3.2-x86_64"                                                                            |
|                      | }                                                                                                             |
| stack_name           | testStack                                                                                                     |
| stack_status         | CREATE_FAILED                                                                                                 |
| stack_status_reason  | Resource CREATE failed: Error: Creation of server Test                                                        |
|                      | server failed.                                                                                                |
| template_description | Test Template                                                                                                 |
| timeout_mins         | 60                                                                                                            |
| updated_time         | None                                                                                                          |
+----------------------+---------------------------------------------------------------------------------------------------------------+

when i go to web horizon interface whit demo account and open instances in menu, i see one instance Test server with status Rrror and in detail is:

Instance Overview
Info
Name
Test server
ID
d6390c0d-fd86-47ef-b07d-ac4855f19b3f
Status
Error
Availability Zone
nova
Created
Aug. 14, 2014, 12:30 p.m.
Uptime
30 minutes
Fault
Message
No valid host was found.
Code
500
Details
Created
Aug. 14, 2014, 12:30 p.m.
Specs
Flavor
m1.tiny
RAM
512MB
VCPUs
1 VCPU
Disk
1GB
IP Addresses
Security Groups
Meta
Key Name
</em>
Image Name
cirros-0.3.2-x86_64
Volumes Attached
Volume
No volumes attached.

heat event-list c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539 +---------------+--------------------------------------+-----------------------------------------------+--------------------+----------------------+ | resource_name | id | resource_status_reason | resource_status | event_time |

+---------------+--------------------------------------+-----------------------------------------------+--------------------+----------------------+
| server1       | 9019d868-ba85-4a45-9336-5f0528523ab5 | state changed                                 | CREATE_IN_PROGRESS | 2014-08-14T12:30:46Z |
| server1       | 68e026a1-c3be-4a8f-8f1f-1e9fb78f06b0 | Error: Creation of server Test server failed. | CREATE_FAILED      | 2014-08-14T12:30:50Z |
+---------------+--------------------------------------+-----------------------------------------------+--------------------+----------------------+

heat event-show c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539 server1 68e026a1-c3be-4a8f-8f1f-1e9fb78f06b0

+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property               | Value                                                                                                                                                                       |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| event_time             | 2014-08-14T12:30:50Z                                                                                                                                                        |
| id                     | 68e026a1-c3be-4a8f-8f1f-1e9fb78f06b0                                                                                                                                        |
| links                  | http://osnode1:8004/v1/9009121425084ceaa9ff79acc6cda9bb/stacks/testStack/c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539/resources/server1/events/68e026a1-c3be-4a8f-8f1f-1e9fb78f06b0 |
|                        | http://osnode1:8004/v1/9009121425084ceaa9ff79acc6cda9bb/stacks/testStack/c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539/resources/server1                                             |
|                        | http://osnode1:8004/v1/9009121425084ceaa9ff79acc6cda9bb/stacks/testStack/c1e3f4ce-1b9b-4009-81b2-d6e66ddf7539                                                               |
| logical_resource_id    | server1                                                                                                                                                                     |
| physical_resource_id   | d6390c0d-fd86-47ef-b07d-ac4855f19b3f                                                                                                                                        |
| resource_name          | server1                                                                                                                                                                     |
| resource_properties    | {                                                                                                                                                                           |
|                        |   "admin_pass": null,                                                                                                                                                       |
|                        |   "user_data_format": "HEAT_CFNTOOLS",                                                                                                                                      |
|                        |   "admin_user": null,                                                                                                                                                       |
|                        |   "name": "Test server",                                                                                                                                                    |
|                        |   "block_device_mapping": null,                                                                                                                                             |
|                        |   "key_name": null,                                                                                                                                                         |
|                        |   "image": "cirros-0.3.2-x86_64",                                                                                                                                           |
|                        |   "availability_zone": null,                                                                                                                                                |
|                        |   "image_update_policy": "REPLACE",                                                                                                                                         |
|                        |   "software_config_transport": "POLL_SERVER_CFN",                                                                                                                           |
|                        |   "diskConfig": null,                                                                                                                                                       |
|                        |   "metadata": null,                                                                                                                                                         |
|                        |   "personality": {},                                                                                                                                                        |
|                        |   "user_data": "",                                                                                                                                                          |
|                        |   "flavor_update_policy": "RESIZE",                                                                                                                                         |
|                        |   "flavor": "m1.tiny",                                                                                                                                                      |
|                        |   "config_drive": null,                                                                                                                                                     |
|                        |   "reservation_id": null,                                                                                                                                                   |
|                        |   "networks": [                                                                                                                                                             |
|                        |     {                                                                                                                                                                       |
|                        |       "uuid": null,                                                                                                                                                         |
|                        |       "fixed_ip": null,                                                                                                                                                     |
|                        |       "network": "9c491cca-101e-49ad-bc30-5d5f4133e445",                                                                                                                    |
|                        |       "port": null                                                                                                                                                          |
|                        |     }                                                                                                                                                                       |
|                        |   ],                                                                                                                                                                        |
|                        |   "security_groups": [],                                                                                                                                                    |
|                        |   "scheduler_hints": null                                                                                                                                                   |
|                        | }                                                                                                                                                                           |
| resource_status        | CREATE_FAILED                                                                                                                                                               |
| resource_status_reason | Error: Creation of server Test server failed.                                                                                                                               |
| resource_type          | OS::Nova::Server                                                                                                                                                            |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Log nova-compute.log from compute node:

2014-08-14 14:28:33.439 3455 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2014-08-14 14:28:34.318 3455 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 30612
2014-08-14 14:28:34.319 3455 AUDIT nova.compute.resource_tracker [-] Free ...
(more)
edit retag flag offensive close merge delete

Comments

Seems that network binding failed so nova wasn't able to spawn the instance. Have you tried 'nova boot' directly?

Qiming gravatar imageQiming ( 2014-08-20 06:44:57 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-21 03:35:50 -0500

p3check gravatar image

Hello, thanks for comment.. I tried it.. with this command: nova boot --flavor m1.tiny --nic net-id=9c491cca-101e-49ad-bc30-5d5f4133e445 --image cirros-0.3.2-x86_64 pokus3. Net-id is rellevant for demo-net from neutron net-list command.

Here is listing of command nova show pokus3 +--------------------------------------+------------------------------------------------------------------------------------------+ | Property | Value | +--------------------------------------+------------------------------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | error | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2014-08-20T14:21:47Z | | fault | {"message": "No valid host was found. ", "code": 500, "created": "2014-08-20T14:21:48Z"} | | flavor | m1.tiny (1) | | hostId | 17b7d3e6b85eb04f007794a982228fec42ee064cddc601e4d04aa81e | | id | e7d38377-3389-4e96-8c90-163078c4dc9e | | image | cirros-0.3.2-x86_64 (6a951ac0-a2bc-4644-940e-97834921b14a) | | key_name | - | | metadata | {} | | name | pokus3 | | os-extended-volumes:volumes_attached | [] | | status | ERROR | | tenant_id | 9009121425084ceaa9ff79acc6cda9bb | | updated | 2014-08-20T14:21:48Z | | user_id | 1e974b7ba7b447fe87f275f99bdcc251 | +--------------------------------------+------------------------------------------------------------------------------------------+

I think my compute node has enough resources: nova hypervisor-show penev +---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | cpu_info_arch | x86_64 | | cpu_info_features | ["ssse3", "pge", "avx", "clflush", "sep", "syscall", "vme", "dtes64", "tsc", "xsave", "vmx", "xtpr", "cmov", "pcid", "est", "pat", "monitor", "smx", "lm", "msr", "nx", "fxsr", "tm", "sse4.1", "pae", "sse4.2", "pclmuldq", "acpi", "tsc-deadline", "mmx", "osxsave", "cx8", "mce", "mtrr", "rdtscp", "ht", "dca", "lahf_lm", "pdcm", "mca", "pdpe1gb", "apic", "sse", "pse", "ds", "pni", "tm2", "aes", "sse2", "ss", "pbe", "de", "fpu", "cx16", "pse36", "ds_cpl", "popcnt", "x2apic"] | | cpu_info_model | SandyBridge | | cpu_info_topology_cores | 6 | | cpu_info_topology_sockets | 1 | | cpu_info_topology_threads | 2 | | cpu_info_vendor | Intel | | current_workload | 0 | | disk_available_least | 747 | | free_disk_gb | 784 | | free_ram_mb | 29076 | | host_ip | 10.7.2.5 | | hypervisor_hostname | penev | | hypervisor_type | QEMU | | hypervisor_version | 2000000 | | id | 1 | | local_gb | 789 | | local_gb_used | 5 | | memory_mb | 32148 | | memory_mb_used | 3072 | | running_vms | 5 | | service_host | penev | | service_id | 5 | | vcpus | 24 | | vcpus_used | 5 | +---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

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: 2014-08-14 08:06:33 -0500

Seen: 1,967 times

Last updated: Aug 21 '14