[Yahoo-eng-team] [Bug 1596602] Re: Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'. Reason: None is not of type u'string'"

2016-07-27 Thread OpenStack Infra
Reviewed:  https://review.openstack.org/347971
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=2f2b0e954d7738c2bf49a48a708cc0ce2b19e726
Submitter: Jenkins
Branch:master

commit 2f2b0e954d7738c2bf49a48a708cc0ce2b19e726
Author: Mike Fedosin 
Date:   Wed Jul 27 20:34:41 2016 +0300

Don't set empty kernel_id and ramdisk_id to glance image

In some cases, if 'allow_additional_properties' option is
disabled in Glance, 'kernel_id' and 'ramdisk_id' are considered
the usual properties and cannot have None values. So it's better
always omit these props and never send them to Glance if they are
empty.

Change-Id: I3dd2a3f39d31a79c86bdbe7b656d42c20c560af3
Closes-bug: #1596602


** Changed in: nova
   Status: Triaged => Fix Released

-- 
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/1596602

Title:
  Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'.
  Reason: None is not of type u'string'"

Status in OpenStack Compute (nova):
  Fix Released
Status in python-glanceclient:
  Fix Released

Bug description:
  Description
  ===
  Attempted to take a snapshot of a suspended server through the CLI, but the 
command failed. (Nova log stack trace appended below)

  Steps to reproduce
  ==
  1. Created a server instance:
 $ nova boot --image  --flavor m1.tiny snapshotvm
  2. Suspended the server:
 $ openstack server suspend 
  3. Attempt to create server snapshot:
 $ nova image-create snapshotvm snapshotimage --poll

  Expected result
  ===
  Expected to have a snapshot of my instance created in the image list.

  Actual result
  =
  Received following error output from the image create command:

  # nova image-create snapshotvm snapshotimage --poll

  Server snapshotting... 25% complete
  ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: 
req-4670eba3-a0d5-4814-b0a8-4aba37a1dd3a)

  Environment
  ===
  1. Running from master level of Openstack

  2. Using KVM virtualization on Ubuntu 14.04:
  # kvm --version
  QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24), Copyright (c) 
2003-2008 Fabrice Bellard

  2. Which storage type did you use?
 LVM

  3. Which networking type did you use?
 Neutron


  2016-06-27 15:04:21.361 10781 INFO nova.compute.manager 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] [instance: 
ab71489a-0716-404b-808a-165f2a85af74] Successfully reverted task state from 
image_uploading on failure for instance.
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] Exception during message handling
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server Traceback (most 
recent call last):
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py",
 line 133, in _process_incoming
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server res = 
self.dispatcher.dispatch(message)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 150, in dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
self._do_dispatch(endpoint, method, ctxt, args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 121, in _do_dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server result = 
func(ctxt, **new_args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 104, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server payload)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
self.force_reraise()
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 197, in force_reraise
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
six.reraise(self.type_, self.value, self.tb)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 

[Yahoo-eng-team] [Bug 1596602] Re: Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'. Reason: None is not of type u'string'"

2016-07-27 Thread Matt Riedemann
So the problem it looks like is we don't deploy this file:

https://raw.githubusercontent.com/openstack/glance/master/etc/schema-
image.json

To /etc/glance/ on our glance-api (controller) nodes. That defines the
schema for kernel_id and ramdisk_id (among other things). It's deployed
with devstack which is why we don't see issues in the upstream CI:

http://logs.openstack.org/77/335277/1/check/gate-tempest-dsvm-
full/de259ec/logs/etc/glance/schema-image.json.txt.gz

The schema we have in our cloud is this:

http://paste.openstack.org/show/542625/

With:

   "additionalProperties":{
  "type":"string"
   },

So if you pass kernel_id and ramdisk_id, they must not be None, but
that's what nova sends:

https://github.com/openstack/nova/blob/3f8076acdc7756b8a5f0f16d4885a47cb001483e/nova/image/glance.py#L844

Basically the glance API, or the image schema at least, is completely
configurable and nova isn't using the schema from glance to tell what
properties it can and can't set in the image body on the request to
glance.

So this is a bug in nova now to use the schema from glance.


** Changed in: python-glanceclient
   Status: Confirmed => Fix Released

** Also affects: nova
   Importance: Undecided
   Status: New

** Changed in: nova
   Status: New => Triaged

** Changed in: nova
   Importance: Undecided => Medium

-- 
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/1596602

Title:
  Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'.
  Reason: None is not of type u'string'"

Status in OpenStack Compute (nova):
  Triaged
Status in python-glanceclient:
  Fix Released

Bug description:
  Description
  ===
  Attempted to take a snapshot of a suspended server through the CLI, but the 
command failed. (Nova log stack trace appended below)

  Steps to reproduce
  ==
  1. Created a server instance:
 $ nova boot --image  --flavor m1.tiny snapshotvm
  2. Suspended the server:
 $ openstack server suspend 
  3. Attempt to create server snapshot:
 $ nova image-create snapshotvm snapshotimage --poll

  Expected result
  ===
  Expected to have a snapshot of my instance created in the image list.

  Actual result
  =
  Received following error output from the image create command:

  # nova image-create snapshotvm snapshotimage --poll

  Server snapshotting... 25% complete
  ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: 
req-4670eba3-a0d5-4814-b0a8-4aba37a1dd3a)

  Environment
  ===
  1. Running from master level of Openstack

  2. Using KVM virtualization on Ubuntu 14.04:
  # kvm --version
  QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24), Copyright (c) 
2003-2008 Fabrice Bellard

  2. Which storage type did you use?
 LVM

  3. Which networking type did you use?
 Neutron


  2016-06-27 15:04:21.361 10781 INFO nova.compute.manager 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] [instance: 
ab71489a-0716-404b-808a-165f2a85af74] Successfully reverted task state from 
image_uploading on failure for instance.
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] Exception during message handling
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server Traceback (most 
recent call last):
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py",
 line 133, in _process_incoming
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server res = 
self.dispatcher.dispatch(message)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 150, in dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
self._do_dispatch(endpoint, method, ctxt, args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 121, in _do_dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server result = 
func(ctxt, **new_args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 104, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server payload)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 

[Yahoo-eng-team] [Bug 1596602] Re: Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'. Reason: None is not of type u'string'"

2016-06-28 Thread Ben VanHavermaet
** Project changed: nova => python-glanceclient

-- 
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/1596602

Title:
  Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'.
  Reason: None is not of type u'string'"

Status in python-glanceclient:
  New

Bug description:
  Description
  ===
  Attempted to take a snapshot of a suspended server through the CLI, but the 
command failed. (Nova log stack trace appended below)

  Steps to reproduce
  ==
  1. Created a server instance:
 $ nova boot --image  --flavor m1.tiny snapshotvm
  2. Suspended the server:
 $ openstack server suspend 
  3. Attempt to create server snapshot:
 $ nova image-create snapshotvm snapshotimage --poll

  Expected result
  ===
  Expected to have a snapshot of my instance created in the image list.

  Actual result
  =
  Received following error output from the image create command:

  # nova image-create snapshotvm snapshotimage --poll

  Server snapshotting... 25% complete
  ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: 
req-4670eba3-a0d5-4814-b0a8-4aba37a1dd3a)

  Environment
  ===
  1. Running from master level of Openstack

  2. Using KVM virtualization on Ubuntu 14.04:
  # kvm --version
  QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24), Copyright (c) 
2003-2008 Fabrice Bellard

  2. Which storage type did you use?
 LVM

  3. Which networking type did you use?
 Neutron


  2016-06-27 15:04:21.361 10781 INFO nova.compute.manager 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] [instance: 
ab71489a-0716-404b-808a-165f2a85af74] Successfully reverted task state from 
image_uploading on failure for instance.
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] Exception during message handling
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server Traceback (most 
recent call last):
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py",
 line 133, in _process_incoming
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server res = 
self.dispatcher.dispatch(message)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 150, in dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
self._do_dispatch(endpoint, method, ctxt, args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 121, in _do_dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server result = 
func(ctxt, **new_args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 104, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server payload)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
self.force_reraise()
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 197, in force_reraise
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
six.reraise(self.type_, self.value, self.tb)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 83, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
f(self, context, *args, **kw)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/compute/manager.py",
 line 183, in decorated_function
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
LOG.warning(msg, e, instance=instance)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
self.force_reraise()
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 

[Yahoo-eng-team] [Bug 1596602] Re: Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'. Reason: None is not of type u'string'"

2016-06-28 Thread Ben VanHavermaet
** This bug is no longer a duplicate of bug 1592808
   Snapshot failed during inconsistencies in glance v2 image schema

-- 
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/1596602

Title:
  Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'.
  Reason: None is not of type u'string'"

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===
  Attempted to take a snapshot of a suspended server through the CLI, but the 
command failed. (Nova log stack trace appended below)

  Steps to reproduce
  ==
  1. Created a server instance:
 $ nova boot --image  --flavor m1.tiny snapshotvm
  2. Suspended the server:
 $ openstack server suspend 
  3. Attempt to create server snapshot:
 $ nova image-create snapshotvm snapshotimage --poll

  Expected result
  ===
  Expected to have a snapshot of my instance created in the image list.

  Actual result
  =
  Received following error output from the image create command:

  # nova image-create snapshotvm snapshotimage --poll

  Server snapshotting... 25% complete
  ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: 
req-4670eba3-a0d5-4814-b0a8-4aba37a1dd3a)

  Environment
  ===
  1. Running from master level of Openstack

  2. Using KVM virtualization on Ubuntu 14.04:
  # kvm --version
  QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24), Copyright (c) 
2003-2008 Fabrice Bellard

  2. Which storage type did you use?
 LVM

  3. Which networking type did you use?
 Neutron


  2016-06-27 15:04:21.361 10781 INFO nova.compute.manager 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] [instance: 
ab71489a-0716-404b-808a-165f2a85af74] Successfully reverted task state from 
image_uploading on failure for instance.
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] Exception during message handling
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server Traceback (most 
recent call last):
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py",
 line 133, in _process_incoming
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server res = 
self.dispatcher.dispatch(message)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 150, in dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
self._do_dispatch(endpoint, method, ctxt, args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 121, in _do_dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server result = 
func(ctxt, **new_args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 104, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server payload)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
self.force_reraise()
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 197, in force_reraise
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
six.reraise(self.type_, self.value, self.tb)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 83, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
f(self, context, *args, **kw)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/compute/manager.py",
 line 183, in decorated_function
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
LOG.warning(msg, e, instance=instance)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
self.force_reraise()
  2016-06-27 

[Yahoo-eng-team] [Bug 1596602] Re: Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'. Reason: None is not of type u'string'"

2016-06-27 Thread Matt Riedemann
*** This bug is a duplicate of bug 1592808 ***
https://bugs.launchpad.net/bugs/1592808

Bug 1592808 is the duplicate I'm thinking of.

** This bug has been marked a duplicate of bug 1592808
   Snapshot failed during inconsistencies in glance v2 image schema

-- 
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/1596602

Title:
  Instance Snapshot failure: "Unable to set 'kernel_id' to 'None'.
  Reason: None is not of type u'string'"

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===
  Attempted to take a snapshot of a suspended server through the CLI, but the 
command failed. (Nova log stack trace appended below)

  Steps to reproduce
  ==
  1. Created a server instance:
 $ nova boot --image  --flavor m1.tiny snapshotvm
  2. Suspended the server:
 $ openstack server suspend 
  3. Attempt to create server snapshot:
 $ nova image-create snapshotvm snapshotimage --poll

  Expected result
  ===
  Expected to have a snapshot of my instance created in the image list.

  Actual result
  =
  Received following error output from the image create command:

  # nova image-create snapshotvm snapshotimage --poll

  Server snapshotting... 25% complete
  ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: 
req-4670eba3-a0d5-4814-b0a8-4aba37a1dd3a)

  Environment
  ===
  1. Running from master level of Openstack

  2. Using KVM virtualization on Ubuntu 14.04:
  # kvm --version
  QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24), Copyright (c) 
2003-2008 Fabrice Bellard

  2. Which storage type did you use?
 LVM

  3. Which networking type did you use?
 Neutron


  2016-06-27 15:04:21.361 10781 INFO nova.compute.manager 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] [instance: 
ab71489a-0716-404b-808a-165f2a85af74] Successfully reverted task state from 
image_uploading on failure for instance.
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
[req-f393be05-96c2-4d52-bfc1-0c5b644c553e d672d690e856437196a748ebc85abb41 
b9b13412e4fd4fd6a6016368b720309e - - -] Exception during message handling
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server Traceback (most 
recent call last):
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py",
 line 133, in _process_incoming
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server res = 
self.dispatcher.dispatch(message)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 150, in dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
self._do_dispatch(endpoint, method, ctxt, args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py",
 line 121, in _do_dispatch
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server result = 
func(ctxt, **new_args)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 104, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server payload)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 221, in __exit__
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
self.force_reraise()
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_utils/excutils.py",
 line 197, in force_reraise
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
six.reraise(self.type_, self.value, self.tb)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/exception.py",
 line 83, in wrapped
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server return 
f(self, context, *args, **kw)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File 
"/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/compute/manager.py",
 line 183, in decorated_function
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server 
LOG.warning(msg, e, instance=instance)
  2016-06-27 15:04:21.364 10781 ERROR oslo_messaging.rpc.server   File