← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1781368] Re: KeyError: 'flavor' when nova boot

 

** Changed in: nova
     Assignee: zhaolihui (zhaolh) => (unassigned)

** No longer affects: nova

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1781368

Title:
  KeyError: 'flavor' when nova boot

Status in python-novaclient:
  In Progress

Bug description:
  It maybe occur KeyError flavor when nova boot vm

  # nova --debug boot vm --image image-id --flavor flavor-id --nic net-
  id=id

  It will show vm's information, but it return Error like that:

  DEBUG (session:419) RESP: [202] Content-Length: 462 Location: controller:8774/v2.1/7fcede66893a4d179f3d37958a06d801/servers/c095438d-7a8a-4b00-a53d-882a1f988748 Content-Type: application/json Openstack-Api-Version: compute 2.60 X-Openstack-Nova-Api-Version: 2.60 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Openstack-Request-Id: req-07b4cdd4-2a22-4791-a6b1-7ea4b7628370 X-Compute-Request-Id: req-07b4cdd4-2a22-4791-a6b1-7ea4b7628370 Date: Thu, 12 Jul 2018 06:34:49 GMT
  RESP BODY: {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "c095438d-7a8a-4b00-a53d-882a1f988748", "links": [{"href": "controller:8774/v2.1/7fcede66893a4d179f3d37958a06d801/servers/c095438d-7a8a-4b00-a53d-882a1f988748", "rel": "self"}, {"href": "controller:8774/7fcede66893a4d179f3d37958a06d801/servers/c095438d-7a8a-4b00-a53d-882a1f988748", "rel": "bookmark"}], "adminPass": "2oHes4hprNs8"}}

  DEBUG (session:722) POST call to compute for controller:8774/v2.1/7fcede66893a4d179f3d37958a06d801/servers used request id req-07b4cdd4-2a22-4791-a6b1-7ea4b7628370
  DEBUG (session:372) REQ: curl -g -i -X GET controller:8774/v2.1/7fcede66893a4d179f3d37958a06d801/servers/c095438d-7a8a-4b00-a53d-882a1f988748 -H "OpenStack-API-Version: compute 2.60" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.60" -H "X-Auth-Token: {SHA1}4dc236317ec12f176dd4e844738ec85cee5c12df"
  DEBUG (connectionpool:395) controller:8774 "GET /v2.1/7fcede66893a4d179f3d37958a06d801/servers/c095438d-7a8a-4b00-a53d-882a1f988748 HTTP/1.1" 404 111
  DEBUG (session:419) RESP: [404] Openstack-Api-Version: compute 2.60 X-Openstack-Nova-Api-Version: 2.60 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 111 X-Openstack-Request-Id: req-10da61f5-3624-4b56-8c7b-849eb163b0fc X-Compute-Request-Id: req-10da61f5-3624-4b56-8c7b-849eb163b0fc Date: Thu, 12 Jul 2018 06:34:49 GMT
  RESP BODY: {"itemNotFound": {"message": "Instance c095438d-7a8a-4b00-a53d-882a1f988748 could not be found.", "code": 404}}

  DEBUG (session:722) GET call to compute for controller:8774/v2.1/7fcede66893a4d179f3d37958a06d801/servers/c095438d-7a8a-4b00-a53d-882a1f988748 used request id req-10da61f5-3624-4b56-8c7b-849eb163b0fc
  DEBUG (shell:793) 'flavor'
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 791, in main
      OpenStackComputeShell().main(argv)
    File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 713, in main
      args.func(self.cs, args)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 889, in do_boot
      _print_server(cs, args, server)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 2240, in _print_server
      del info['flavor']
  KeyError: 'flavor'
  ERROR (KeyError): 'flavor'

  Environment
  ===========
  openstack-nova-common-17.0.5-1.el7.noarch
  python-nova-17.0.5-1.el7.noarch
  openstack-nova-compute-17.0.5-1.el7.noarch
  python2-novaclient-10.1.0-1.el7.noarch

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1781368/+subscriptions


References