← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1357462] Re: glance cannot find store for scheme mware_datastore

 

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

** Changed in: glance/icehouse
   Importance: Undecided => High

** Changed in: glance/icehouse
       Status: New => Fix Committed

** Changed in: glance/icehouse
    Milestone: None => 2014.1.3

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

Title:
  glance cannot find store for scheme mware_datastore

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in Glance icehouse series:
  Fix Committed

Bug description:
   I have python-glance-2014.1.2-1.el7ost.noarch

  when configuring

  default_store=vmware_datastore
  known_stores = glance.store.vmware_datastore.Store
  vmware_server_host = 10.34.69.76
  vmware_server_username=root
  vmware_server_password=qum5net
  vmware_datacenter_path="New Datacenter"
  vmware_datastore_name=shared

  glance-api doesn't seem to come up at all.
  glance image-list
  Error communicating with http://172.16.40.9:9292 [Errno 111] Connection refused

  there seems to be nothing interesing in the logs. After changing to
  the

    default_store=file

    glance image-create --disk-format vmdk --container-format bare
  --copy-from
  'http://str-02.rhev/OpenStack/cirros-0.3.1-x86_64-disk.vmdk'
  --name cirros-0.3.1-x86_64-disk.vmdk --is-public true     --property
  vmware_disktype="sparse"     --property vmware_adaptertype="ide"
  --property vmware_ostype="ubuntu64Guest" --name prdel --store
  vmware_datastore

  or

    glance image-create --disk-format vmdk --container-format bare
  --file 'cirros-0.3.1-x86_64-disk.vmdk'     --name
  cirros-0.3.1-x86_64-disk.vmdk --is-public true     --property
  vmware_disktype="sparse"     --property vmware_adaptertype="ide"
  --property vmware_ostype="ubuntu64Guest" --name prdel --store
  vmware_datastore

  the image remains in queued state

  I can see log lines
  2014-08-15 12:38:55.885 24732 DEBUG glance.store [-] Registering store <class 'glance.store.vmware_datastore.Store'> with schemes ('vsphere',) create_stores /usr/lib/python2.7/site-packages/glance/store/__init__.py:208
  2014-08-15 12:39:54.119 24764 DEBUG glance.api.v1.images [-] Store for scheme vmware_datastore not found get_store_or_400 /usr/lib/python2.7/site-packages/glance/api/v1/images.py:1057
  2014-08-15 12:43:31.408 24764 DEBUG glance.api.v1.images [eac2ff8d-d55a-4e2c-8006-95beef8a0d7b caffabe3f56e4e5cb5cbeb040224fe69 77e18ad8a31e4de2ab26f52fb15b3cc1 - - -] Store for scheme vmware_datastore not found get_store_or_400 /usr/lib/python2.7/site-packages/glance/api/v1/images.py:1057

  so it looks like there is inconsistency on the scheme that should be
  used. After hardcoding

    STORE_SCHEME = 'vmware_datastore'

  in the

    /usr/lib/python2.7/site-packages/glance/store/vmware_datastore.py

  the behaviour changed, but did not improve very much:

    glance image-create --disk-format vmdk --container-format bare     --file 'cirros-0.3.1-x86_64-disk.vmdk'     --name cirros-0.3.1-x86_64-disk.vmdk --is-public true     --property vmware_disktype="sparse"     --property vmware_adaptertype="ide"     --property vmware_ostype="ubuntu64Guest" --name prdel --store vmware_datastore
  400 Bad Request
  Store for image_id not found: 7edc22ae-f229-4f21-8f7d-fa19a03410be
      (HTTP 400)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1357462/+subscriptions


References