[Yahoo-eng-team] [Bug 1401778] Re: 500 error returned while uploading image using multi filesystem store and 'filesystem_store_metadata_file' option enabled

2014-12-12 Thread Abhijeet Malawade
** Also affects: glance-store
   Importance: Undecided
   Status: New

** No longer affects: glance

** Changed in: glance-store
   Status: New => In Progress

** Changed in: glance-store
 Assignee: (unassigned) => Abhijeet Malawade (abhijeet-malawade)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1401778

Title:
  500 error returned while uploading image using multi filesystem store
  and 'filesystem_store_metadata_file' option enabled

Status in OpenStack Glance backend store-drivers library (glance_store):
  In Progress

Bug description:
  When we try to upload image with multi filesystem store enabled and 
'filesystem_store_metadata_file' 
  (containing list of all directories configured for multi filesystem store) is 
provided
  then glance throws 'HTTPInternalServerError (HTTP 500)' error.

  - Glance Configuration:

  1. /etc/glance/glance-api.conf

  [DEFAULT]
  show_multiple_locations = True
  filesystem_store_metadata_file = /etc/glance/metadata.json

  [glance_store]
  filesystem_store_datadirs = /var/lib/glance/images1/:1
  filesystem_store_datadirs = /var/lib/glance/images2/:2

  
  2. /etc/glance/metadata.json

  [
  {
  "id": "f0781415-cf81-47cd-8860-b83f9c2a415c",
  "mountpoint": "/var/lib/glance/images1/" 
  },
  {
  "id": "5d2dd1db-8684-46bb-880f-b94a1942cfd2",
  "mountpoint": "/var/lib/glance/images2/" 
  }
  ]

  3. 'df -ha' command result:

  openstack@openstack:/opt/stack$ df -ha
  Filesystem   Size  Used Avail Use% Mounted on
  proc0 0 0- /proc
  sysfs   0 0 0- /sys
  tmpfs799M  600K  798M   1% /run
  /dev/sda1236M   41M  183M  19% /boot
  nfsd0 0 0- /proc/fs/nfsd
  10.69.4.173:/export/images2  443G   23G  398G   6% 
/var/lib/glance/images2
  10.69.4.172:/export/images1  447G  8.7G  415G   3% 
/var/lib/glance/images1
  openstack@openstack:/opt/stack$

  
  - Steps to reproduce:

  1. Create image:
  glance --os-image-api-version 2 image-create --name Test123 --disk-format raw 
--container-format ami

  2. Upload image data:
   
  openstack@openstack-150:~$ glance --os-image-api-version 2 image-upload 
47d39050-cc7e-498a-a800-4faf80a72c93 < /home/openstack/workbook/test.py

  HTTPInternalServerError (HTTP 500)
  openstack@openstack-150:~$

  
  - glance-api.log :

  2014-12-11 22:16:59.586 3495 ERROR glance_store.backend 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] The storage driver 
 returned invalid metadata [{u'mountpoint': 
u'/opt/stack/data/glance/images/', u'id': 
u'f0781415-cf81-47cd-8860-b83f9c2a415c'}, {u'mountpoint': 
u'/opt/stack/data/glance/images1/', u'id': u'5d2dd1db-
  8684-46bb-880f-b94a1942cfd2'}]. This must be a dictionary type
  2014-12-11 22:16:59.591 3495 ERROR glance.api.v2.image_data 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] Failed to upload image data due to 
internal error
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data Traceback (most 
recent call last):
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/v2/image_data.py", line 74, in upload
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/domain/proxy.py", line 160, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.base.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 252, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.notifier.error('image.upload', msg)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in 
__exit
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
six.reraise(self.type_, self.value, self.tb)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 201, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/policy.py", line 176, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data return 
self.image.set_data(*args, **kwargs)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/quota/__init__.py", line 296, in set_data
  2014-12-11 22:16:59.591 3495 TR

[Yahoo-eng-team] [Bug 1401778] Re: 500 error returned while uploading image using multi filesystem store and 'filesystem_store_metadata_file' option enabled

2015-01-07 Thread Pranali Deore
We can update 'location' to image using PATCH api as well.
So, validation of metadata also needs to be done in glance project.

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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1401778

Title:
  500 error returned while uploading image using multi filesystem store
  and 'filesystem_store_metadata_file' option enabled

Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Glance backend store-drivers library (glance_store):
  In Progress

Bug description:
  When we try to upload image with multi filesystem store enabled and 
'filesystem_store_metadata_file' 
  (containing list of all directories configured for multi filesystem store) is 
provided
  then glance throws 'HTTPInternalServerError (HTTP 500)' error.

  - Glance Configuration:

  1. /etc/glance/glance-api.conf

  [DEFAULT]
  show_multiple_locations = True
  filesystem_store_metadata_file = /etc/glance/metadata.json

  [glance_store]
  filesystem_store_datadirs = /var/lib/glance/images1/:1
  filesystem_store_datadirs = /var/lib/glance/images2/:2

  
  2. /etc/glance/metadata.json

  [
  {
  "id": "f0781415-cf81-47cd-8860-b83f9c2a415c",
  "mountpoint": "/var/lib/glance/images1/" 
  },
  {
  "id": "5d2dd1db-8684-46bb-880f-b94a1942cfd2",
  "mountpoint": "/var/lib/glance/images2/" 
  }
  ]

  3. 'df -ha' command result:

  openstack@openstack:/opt/stack$ df -ha
  Filesystem   Size  Used Avail Use% Mounted on
  proc0 0 0- /proc
  sysfs   0 0 0- /sys
  tmpfs799M  600K  798M   1% /run
  /dev/sda1236M   41M  183M  19% /boot
  nfsd0 0 0- /proc/fs/nfsd
  10.69.4.173:/export/images2  443G   23G  398G   6% 
/var/lib/glance/images2
  10.69.4.172:/export/images1  447G  8.7G  415G   3% 
/var/lib/glance/images1
  openstack@openstack:/opt/stack$

  
  - Steps to reproduce:

  1. Create image:
  glance --os-image-api-version 2 image-create --name Test123 --disk-format raw 
--container-format ami

  2. Upload image data:
   
  openstack@openstack-150:~$ glance --os-image-api-version 2 image-upload 
47d39050-cc7e-498a-a800-4faf80a72c93 < /home/openstack/workbook/test.py

  HTTPInternalServerError (HTTP 500)
  openstack@openstack-150:~$

  
  - glance-api.log :

  2014-12-11 22:16:59.586 3495 ERROR glance_store.backend 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] The storage driver 
 returned invalid metadata [{u'mountpoint': 
u'/opt/stack/data/glance/images/', u'id': 
u'f0781415-cf81-47cd-8860-b83f9c2a415c'}, {u'mountpoint': 
u'/opt/stack/data/glance/images1/', u'id': u'5d2dd1db-
  8684-46bb-880f-b94a1942cfd2'}]. This must be a dictionary type
  2014-12-11 22:16:59.591 3495 ERROR glance.api.v2.image_data 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] Failed to upload image data due to 
internal error
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data Traceback (most 
recent call last):
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/v2/image_data.py", line 74, in upload
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/domain/proxy.py", line 160, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.base.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 252, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.notifier.error('image.upload', msg)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in 
__exit
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
six.reraise(self.type_, self.value, self.tb)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 201, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/policy.py", line 176, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data return 
self.image.set_data(*args, **kwargs)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/quota/__init__.py", line 296, in set_data
  2014-12-11 22:16:59.591 3495

[Yahoo-eng-team] [Bug 1401778] Re: 500 error returned while uploading image using multi filesystem store and 'filesystem_store_metadata_file' option enabled

2015-02-05 Thread Thierry Carrez
** Changed in: glance
   Status: Fix Committed => Fix Released

** Changed in: glance
Milestone: None => kilo-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1401778

Title:
  500 error returned while uploading image using multi filesystem store
  and 'filesystem_store_metadata_file' option enabled

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in OpenStack Glance backend store-drivers library (glance_store):
  In Progress

Bug description:
  When we try to upload image with multi filesystem store enabled and 
'filesystem_store_metadata_file' 
  (containing list of all directories configured for multi filesystem store) is 
provided
  then glance throws 'HTTPInternalServerError (HTTP 500)' error.

  - Glance Configuration:

  1. /etc/glance/glance-api.conf

  [DEFAULT]
  show_multiple_locations = True
  filesystem_store_metadata_file = /etc/glance/metadata.json

  [glance_store]
  filesystem_store_datadirs = /var/lib/glance/images1/:1
  filesystem_store_datadirs = /var/lib/glance/images2/:2

  
  2. /etc/glance/metadata.json

  [
  {
  "id": "f0781415-cf81-47cd-8860-b83f9c2a415c",
  "mountpoint": "/var/lib/glance/images1/" 
  },
  {
  "id": "5d2dd1db-8684-46bb-880f-b94a1942cfd2",
  "mountpoint": "/var/lib/glance/images2/" 
  }
  ]

  3. 'df -ha' command result:

  openstack@openstack:/opt/stack$ df -ha
  Filesystem   Size  Used Avail Use% Mounted on
  proc0 0 0- /proc
  sysfs   0 0 0- /sys
  tmpfs799M  600K  798M   1% /run
  /dev/sda1236M   41M  183M  19% /boot
  nfsd0 0 0- /proc/fs/nfsd
  10.69.4.173:/export/images2  443G   23G  398G   6% 
/var/lib/glance/images2
  10.69.4.172:/export/images1  447G  8.7G  415G   3% 
/var/lib/glance/images1
  openstack@openstack:/opt/stack$

  
  - Steps to reproduce:

  1. Create image:
  glance --os-image-api-version 2 image-create --name Test123 --disk-format raw 
--container-format ami

  2. Upload image data:
   
  openstack@openstack-150:~$ glance --os-image-api-version 2 image-upload 
47d39050-cc7e-498a-a800-4faf80a72c93 < /home/openstack/workbook/test.py

  HTTPInternalServerError (HTTP 500)
  openstack@openstack-150:~$

  
  - glance-api.log :

  2014-12-11 22:16:59.586 3495 ERROR glance_store.backend 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] The storage driver 
 returned invalid metadata [{u'mountpoint': 
u'/opt/stack/data/glance/images/', u'id': 
u'f0781415-cf81-47cd-8860-b83f9c2a415c'}, {u'mountpoint': 
u'/opt/stack/data/glance/images1/', u'id': u'5d2dd1db-
  8684-46bb-880f-b94a1942cfd2'}]. This must be a dictionary type
  2014-12-11 22:16:59.591 3495 ERROR glance.api.v2.image_data 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] Failed to upload image data due to 
internal error
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data Traceback (most 
recent call last):
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/v2/image_data.py", line 74, in upload
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/domain/proxy.py", line 160, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.base.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 252, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.notifier.error('image.upload', msg)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in 
__exit
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
six.reraise(self.type_, self.value, self.tb)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 201, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/policy.py", line 176, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data return 
self.image.set_data(*args, **kwargs)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/quota/__init__.py", line 296, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size=siz

[Yahoo-eng-team] [Bug 1401778] Re: 500 error returned while uploading image using multi filesystem store and 'filesystem_store_metadata_file' option enabled

2015-02-05 Thread nikhil komawar
** Changed in: glance
   Importance: Undecided => High

** Changed in: glance-store
   Importance: Undecided => High

** Changed in: glance-store
   Status: In Progress => Fix Committed

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

** Changed in: glance
Milestone: kilo-2 => None

** Changed in: glance-store
Milestone: None => v0.1.11

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1401778

Title:
  500 error returned while uploading image using multi filesystem store
  and 'filesystem_store_metadata_file' option enabled

Status in OpenStack Image Registry and Delivery Service (Glance):
  Triaged
Status in OpenStack Glance backend store-drivers library (glance_store):
  Fix Committed

Bug description:
  When we try to upload image with multi filesystem store enabled and 
'filesystem_store_metadata_file' 
  (containing list of all directories configured for multi filesystem store) is 
provided
  then glance throws 'HTTPInternalServerError (HTTP 500)' error.

  - Glance Configuration:

  1. /etc/glance/glance-api.conf

  [DEFAULT]
  show_multiple_locations = True
  filesystem_store_metadata_file = /etc/glance/metadata.json

  [glance_store]
  filesystem_store_datadirs = /var/lib/glance/images1/:1
  filesystem_store_datadirs = /var/lib/glance/images2/:2

  
  2. /etc/glance/metadata.json

  [
  {
  "id": "f0781415-cf81-47cd-8860-b83f9c2a415c",
  "mountpoint": "/var/lib/glance/images1/" 
  },
  {
  "id": "5d2dd1db-8684-46bb-880f-b94a1942cfd2",
  "mountpoint": "/var/lib/glance/images2/" 
  }
  ]

  3. 'df -ha' command result:

  openstack@openstack:/opt/stack$ df -ha
  Filesystem   Size  Used Avail Use% Mounted on
  proc0 0 0- /proc
  sysfs   0 0 0- /sys
  tmpfs799M  600K  798M   1% /run
  /dev/sda1236M   41M  183M  19% /boot
  nfsd0 0 0- /proc/fs/nfsd
  10.69.4.173:/export/images2  443G   23G  398G   6% 
/var/lib/glance/images2
  10.69.4.172:/export/images1  447G  8.7G  415G   3% 
/var/lib/glance/images1
  openstack@openstack:/opt/stack$

  
  - Steps to reproduce:

  1. Create image:
  glance --os-image-api-version 2 image-create --name Test123 --disk-format raw 
--container-format ami

  2. Upload image data:
   
  openstack@openstack-150:~$ glance --os-image-api-version 2 image-upload 
47d39050-cc7e-498a-a800-4faf80a72c93 < /home/openstack/workbook/test.py

  HTTPInternalServerError (HTTP 500)
  openstack@openstack-150:~$

  
  - glance-api.log :

  2014-12-11 22:16:59.586 3495 ERROR glance_store.backend 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] The storage driver 
 returned invalid metadata [{u'mountpoint': 
u'/opt/stack/data/glance/images/', u'id': 
u'f0781415-cf81-47cd-8860-b83f9c2a415c'}, {u'mountpoint': 
u'/opt/stack/data/glance/images1/', u'id': u'5d2dd1db-
  8684-46bb-880f-b94a1942cfd2'}]. This must be a dictionary type
  2014-12-11 22:16:59.591 3495 ERROR glance.api.v2.image_data 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] Failed to upload image data due to 
internal error
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data Traceback (most 
recent call last):
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/v2/image_data.py", line 74, in upload
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/domain/proxy.py", line 160, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.base.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 252, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.notifier.error('image.upload', msg)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in 
__exit
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
six.reraise(self.type_, self.value, self.tb)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 201, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/policy.py", line 176, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data return 
self.image.set_data(*args, *

[Yahoo-eng-team] [Bug 1401778] Re: 500 error returned while uploading image using multi filesystem store and 'filesystem_store_metadata_file' option enabled

2015-12-02 Thread Doug Hellmann
** Changed in: glance-store
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1401778

Title:
  500 error returned while uploading image using multi filesystem store
  and 'filesystem_store_metadata_file' option enabled

Status in Glance:
  Triaged
Status in glance_store:
  Fix Released

Bug description:
  When we try to upload image with multi filesystem store enabled and 
'filesystem_store_metadata_file' 
  (containing list of all directories configured for multi filesystem store) is 
provided
  then glance throws 'HTTPInternalServerError (HTTP 500)' error.

  - Glance Configuration:

  1. /etc/glance/glance-api.conf

  [DEFAULT]
  show_multiple_locations = True
  filesystem_store_metadata_file = /etc/glance/metadata.json

  [glance_store]
  filesystem_store_datadirs = /var/lib/glance/images1/:1
  filesystem_store_datadirs = /var/lib/glance/images2/:2

  
  2. /etc/glance/metadata.json

  [
  {
  "id": "f0781415-cf81-47cd-8860-b83f9c2a415c",
  "mountpoint": "/var/lib/glance/images1/" 
  },
  {
  "id": "5d2dd1db-8684-46bb-880f-b94a1942cfd2",
  "mountpoint": "/var/lib/glance/images2/" 
  }
  ]

  3. 'df -ha' command result:

  openstack@openstack:/opt/stack$ df -ha
  Filesystem   Size  Used Avail Use% Mounted on
  proc0 0 0- /proc
  sysfs   0 0 0- /sys
  tmpfs799M  600K  798M   1% /run
  /dev/sda1236M   41M  183M  19% /boot
  nfsd0 0 0- /proc/fs/nfsd
  10.69.4.173:/export/images2  443G   23G  398G   6% 
/var/lib/glance/images2
  10.69.4.172:/export/images1  447G  8.7G  415G   3% 
/var/lib/glance/images1
  openstack@openstack:/opt/stack$

  
  - Steps to reproduce:

  1. Create image:
  glance --os-image-api-version 2 image-create --name Test123 --disk-format raw 
--container-format ami

  2. Upload image data:
   
  openstack@openstack-150:~$ glance --os-image-api-version 2 image-upload 
47d39050-cc7e-498a-a800-4faf80a72c93 < /home/openstack/workbook/test.py

  HTTPInternalServerError (HTTP 500)
  openstack@openstack-150:~$

  
  - glance-api.log :

  2014-12-11 22:16:59.586 3495 ERROR glance_store.backend 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] The storage driver 
 returned invalid metadata [{u'mountpoint': 
u'/opt/stack/data/glance/images/', u'id': 
u'f0781415-cf81-47cd-8860-b83f9c2a415c'}, {u'mountpoint': 
u'/opt/stack/data/glance/images1/', u'id': u'5d2dd1db-
  8684-46bb-880f-b94a1942cfd2'}]. This must be a dictionary type
  2014-12-11 22:16:59.591 3495 ERROR glance.api.v2.image_data 
[95987e95-dcae-4516-b57e-87fbd9135ff3 0080647f6a2145f8a40bace67654a058 
48f94106d3b24ca2a0a9e2951c505bf9 - - -] Failed to upload image data due to 
internal error
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data Traceback (most 
recent call last):
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/v2/image_data.py", line 74, in upload
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/domain/proxy.py", line 160, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.base.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 252, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.notifier.error('image.upload', msg)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in 
__exit
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
six.reraise(self.type_, self.value, self.tb)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/notifier.py", line 201, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/api/policy.py", line 176, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data return 
self.image.set_data(*args, **kwargs)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/quota/__init__.py", line 296, in set_data
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data 
self.image.set_data(data, size=size)
  2014-12-11 22:16:59.591 3495 TRACE glance.api.v2.image_data File 
"/opt/stack/glance/glance/location.py", line 364, in set_data
  2014-12-11 22