Ask Your Question
0

openstack launch

asked 2019-01-25 06:54:30 -0500

lelunicu gravatar image

updated 2019-01-27 01:53:12 -0500

novainfinite gravatar image

hi, i tried to lauch a instance->openstack stack create -t y.yaml y more y.yaml

heat_template_version: 2013-05-23

parameters:
  key_name:
    type: string
    default: y
    description: Name of an existing key pair to use for the instance
  flavor:
    type: string
    description: Instance type for the instance to be created
    default: y
  image:
    type: string
    default: test9
    description: ID or name of the image to use for the instance
  NetID:
    type: string
    default: default
    description: Network ID to use for the instance

resources:
  my_instance:
    type: OS::Nova::Server
    properties:
      name: My Cirros Instance
      image: { get_param: image }
      flavor: { get_param: flavor }
      key_name: { get_param: key_name}
      networks:
      - network: { get_param: NetID }

 openstack stack show y
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                           |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| id                    | 040df6f3-3d10-4ad6-aad2-fb0946a11eb7                                                                            |
| stack_name            | y                                                                                                               |
| description           | No description                                                                                                  |
| creation_time         | 2019-01-25T12:14:41Z                                                                                            |
| updated_time          | None                                                                                                            |
| stack_status          | CREATE_FAILED                                                                                                   |
| stack_status_reason   | Resource CREATE failed: ResourceInError: resources.my_instance: Went to status ERROR due to "Message: No valid  |
|                       | host was found. There are not enough hosts available.


more nova-compute.log|grep Error
2019-01-25 04:17:02.509 6294 DEBUG neutronclient.v2_0.client [req-3d20959e-8e9a-45d0-9840-2ad56f99d5ef - - - - -] GET call to neutron for https://192.168.100.16:13696/v2.0/networks.json?id=9fef22dd-1031-424b-85be-5ab60dad45af used request id req-840ad1a5-8e5b-4892-9bae-db0202c0324a _append_request_id /usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py:128
2019-01-25 04:17:02.513 6294 DEBUG neutronclient.v2_0.client [req-3d20959e-8e9a-45d0-9840-2ad56f99d5ef - - - - -] Error message: {"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"} _handle_fault_response /usr/lib/python2.7/site-packages/neutronclient/v2_0/client.p

The image is compatible with everything in compute node.in compute node are enough resources.

edit retag flag offensive close merge delete

Comments

Use the scheduler log to find out what caused the scheduling failure.

Also, if you want people to read your command output, format it properly. Right now it’s very painful to read.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-26 02:43:04 -0500 )edit

Does network 9fef22dd-1031-424b-85be-5ab60dad45af exist? If yes, does it belong to the project that runs the stack?

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-27 15:51:33 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-01-27 11:39:19 -0500

jckreddy gravatar image
Is there any other logs available 
like scheduler , neutron , controller
they might help
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: 2019-01-25 06:54:30 -0500

Seen: 47 times

Last updated: Jan 27