← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1356373] [NEW] Glance image-list -> shell-init: error retrieving current directory

 

Public bug reported:

Description of problem: During recreation of another bug on my setup AIO
Neutron network, during instance snapshot process before snapshot
completed uploading I did #glance image-list

root@orange-vdse tmptriyEJ(keystone_admin)]# glance image-list
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/glance", line 6, in <module>
    from glanceclient.shell import main
  File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 30, in <module>
    from keystoneclient.v2_0 import client as ksclient
  File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/__init__.py", line 2, in <module>
    from keystoneclient.v2_0.client import Client
  File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 20, in <module>
    from keystoneclient import httpclient
  File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 27, in <module>
    import keyring
  File "/usr/lib/python2.7/site-packages/keyring/__init__.py", line 12, in <module>
    from .core import (set_keyring, get_keyring, set_password, get_password,
  File "/usr/lib/python2.7/site-packages/keyring/core.py", line 180, in <module>
    init_backend()
  File "/usr/lib/python2.7/site-packages/keyring/core.py", line 59, in init_backend
    set_keyring(load_config() or _get_best_keyring())
  File "/usr/lib/python2.7/site-packages/keyring/core.py", line 105, in load_config
    local_path = os.path.join(os.getcwd(), filename)
OSError: [Errno 2] No such file or directory

Version-Release number of selected component (if applicable):
RHEL7
python-glanceclient-0.13.1-1.el7ost.noarch
openstack-glance-2014.1.1-1.el7ost.noarch
python-glance-2014.1.1-1.el7ost.noarch
openstack-nova-compute-2014.1.1-4.el7ost.noarch


How reproducible:
Not sure first time, looks like a fluke one off problem to me.

Steps to Reproduce:
1. Booted an instance 
2. Created a snapshot of that running instance
3. Before snapshot upload completed, ran glance image-list.

Actual results:
Glance image-list failed with above trace error

Expected results:
Glance image-list should worked without errors.

On attached Glance log ignore errors before this trace,  related to
other bug I was testing with low disk space case.

** Affects: glance
     Importance: Undecided
         Status: New

** Attachment added: "Glance api.log"
   https://bugs.launchpad.net/bugs/1356373/+attachment/4176577/+files/api.log

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

Title:
  Glance image-list -> shell-init: error retrieving current directory

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Description of problem: During recreation of another bug on my setup
  AIO Neutron network, during instance snapshot process before snapshot
  completed uploading I did #glance image-list

  root@orange-vdse tmptriyEJ(keystone_admin)]# glance image-list
  shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  Traceback (most recent call last):
    File "/usr/bin/glance", line 6, in <module>
      from glanceclient.shell import main
    File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 30, in <module>
      from keystoneclient.v2_0 import client as ksclient
    File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/__init__.py", line 2, in <module>
      from keystoneclient.v2_0.client import Client
    File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 20, in <module>
      from keystoneclient import httpclient
    File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 27, in <module>
      import keyring
    File "/usr/lib/python2.7/site-packages/keyring/__init__.py", line 12, in <module>
      from .core import (set_keyring, get_keyring, set_password, get_password,
    File "/usr/lib/python2.7/site-packages/keyring/core.py", line 180, in <module>
      init_backend()
    File "/usr/lib/python2.7/site-packages/keyring/core.py", line 59, in init_backend
      set_keyring(load_config() or _get_best_keyring())
    File "/usr/lib/python2.7/site-packages/keyring/core.py", line 105, in load_config
      local_path = os.path.join(os.getcwd(), filename)
  OSError: [Errno 2] No such file or directory

  Version-Release number of selected component (if applicable):
  RHEL7
  python-glanceclient-0.13.1-1.el7ost.noarch
  openstack-glance-2014.1.1-1.el7ost.noarch
  python-glance-2014.1.1-1.el7ost.noarch
  openstack-nova-compute-2014.1.1-4.el7ost.noarch

  
  How reproducible:
  Not sure first time, looks like a fluke one off problem to me.

  Steps to Reproduce:
  1. Booted an instance 
  2. Created a snapshot of that running instance
  3. Before snapshot upload completed, ran glance image-list.

  Actual results:
  Glance image-list failed with above trace error

  Expected results:
  Glance image-list should worked without errors.

  On attached Glance log ignore errors before this trace,  related to
  other bug I was testing with low disk space case.

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


Follow ups

References