Ask Your Question

s-rain's profile - activity

2019-04-18 19:51:31 -0500 received badge  Famous Question (source)
2019-04-18 19:51:31 -0500 received badge  Notable Question (source)
2019-04-18 19:51:31 -0500 received badge  Popular Question (source)
2016-12-12 20:01:20 -0500 received badge  Popular Question (source)
2016-12-12 20:01:20 -0500 received badge  Famous Question (source)
2016-12-12 20:01:20 -0500 received badge  Notable Question (source)
2016-08-03 07:55:46 -0500 received badge  Notable Question (source)
2016-08-03 07:55:46 -0500 received badge  Popular Question (source)
2014-12-01 23:49:45 -0500 received badge  Teacher (source)
2013-09-24 03:15:41 -0500 asked a question How to remove image with status=killed

Hi all, I upload image to glance with swift backend and failed. so glance should delete image, but delete image failed while keystone authentication not works. The image is still in swift. How do I remove this image by glance command or glance daemon? Thanks.

BR, Rain

2013-03-08 01:06:48 -0500 asked a question DisconnectionError: The client disconnected while sending the POST/PUT body

Hello all, glance version is '2012.1+stable~20120608-5462295-0ubuntu2.2'. When I execute image-create to upload huge size image(4~10G) to glance which backend is swift, console shows 'Error communicating with Connection reset by peer'. and the following info is from glance api.log. Please help to clarify. Thanks.

ERROR [glance.api.v1.images] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 393, in _upload image_size) File "/usr/lib/python2.7/dist-packages/glance/store/swift.py", line 387, in add content_length=image_size) File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 937, in put_object content_type=content_type, headers=headers) File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 841, in _retry rv = func(self.url, self.token, args, *kwargs) File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 705, in put_object chunk = contents.read(size) File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in read self._check_disconnect() File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1311, in _check_disconnect + "(%d more bytes were expected)" % self.remaining DisconnectionError: The client disconnected while sending the POST/PUT body (3682598912 more bytes were expected)

2013-03-01 02:18:15 -0500 answered a question glance-manage db_sync running problem

Can you check the permissions on "/var/log/glance/", and make sure it exists?

2013-01-08 06:16:55 -0500 answered a question java sdk for using glance with keystone

Tom, Thanks. It's useful :)

2012-12-13 05:31:00 -0500 asked a question java sdk for using glance with keystone

Hello all, I need used java to execute python-glanceclient command with keystone. Is there any java sdk or class? Thanks.

Rain

2012-11-13 10:42:17 -0500 answered a question the conflict of multi host execute db_sync at the same time

Thanks Armando Migliaccio, that solved my question.

2012-11-13 10:42:09 -0500 answered a question the conflict of multi host execute db_sync at the same time

Got it! Armando, Thank you.

2012-11-13 03:42:27 -0500 asked a question the conflict of multi host execute db_sync at the same time

Hello all, There is a problem when two hosts executing db_sync at the same time. The database seems got broken and the hosts hang up. the glance version is glance_2012.1+stable~20120608-5462295-0ubuntu2.2. Please help me out. Thanks.

Rain

2012-08-06 11:09:57 -0500 answered a question [Errno 111] Connection refused

Hello,

Please paste glance-api-paste.ini, glance-registry-paste.ini, tenant-list, service list, rule-list, user-list, endpoint-list and keystone.conf.

Rain

2012-08-06 03:41:02 -0500 answered a question 2012.1 python-glance installation error

Thanks koolhead17, that solved my question.

2012-08-06 03:39:05 -0500 answered a question [Errno 111] Connection refused

Hello, glance index --host=x.x.x.x , try it! If the problem occurred again, please paste your glance-api.conf and glance-registry.conf. Do you use keystone?

Rain

2012-07-24 03:22:25 -0500 answered a question glance 401 unauththorized

Hello, Please check admin_token in keystone.conf. You should set the same value in glance-api-paste.ini and glance-registry-paste.ini.

Rain

2012-07-23 06:41:13 -0500 answered a question glance 401 unauththorized

Hello, Please add "admin_token = ADMIN" in glance-api-paste.ini and glance-registry-paste.ini.

Rain

2012-07-19 12:56:21 -0500 answered a question glance 401 unauththorized

Hello, Please paste your endpoint, rule, user and service list.

Rain

2012-06-21 09:30:19 -0500 asked a question 2012.1 python-glance installation error

Hello all, When I install python-glance, there is a error occurred. Please help me out. Thanks.

dpkg: error processing /var/cache/apt/archives/python-glance_2012.1+stable~20120608-5462295-0ubuntu2.2_all.deb (--unpack): trying to overwrite '/usr/share/pyshared/glance/api/cached_images.py', which is also in package glance 2011.3 No apport report written because MaxReports is reached already dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) . . . Processing triggers for python-support ... Errors were encountered while processing: /var/cache/apt/archives/python-glance_2012.1+stable~20120608-5462295-0ubuntu2.2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

2012-06-21 07:02:37 -0500 answered a question Not able to run glance index

Hello Pramod,

Because of security, so we use glance account to instead root.
you can use root to change the password of user glance.

Regards, Rain.

2012-06-21 02:01:31 -0500 answered a question glance index Failed to show index. Got error: You are not authenticated. Details: 401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e

Hello Thiruselvan, you should execute "glance role-list". Did you execute "keystone user-role-add" ? Maybe tenant, role and user do not combine. Please check again. And try to modify the following info in glance-api.conf.

[filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory service_protocol = http service_host = 127.0.0.1 service_port = 5000 auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http auth_uri = http://127.0.0.1:5000/
admin_tenant_name = xxxxx admin_user = xxxxx admin_password = xxxxx admin_token = ADMIN

xxxx is physical name, not variable.

PS. Do you install keystone and glance in the same host?

Best, Rain

2012-06-19 10:29:48 -0500 answered a question glance index Failed to show index. Got error: You are not authenticated. Details: 401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e

Hello Thiruselvan, The endpoint seems ok. Can you paste tenant list, user list and role list ?

Best, Rain.

2012-06-18 07:33:00 -0500 answered a question glance index Failed to show index. Got error: You are not authenticated. Details: 401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e

Hello Thiruselvan, Can you paste endpoint, tenant, role, service and user list? Please check if glance endpoint is http://glanceIP:9292/v1 or not.

Best, Rain

2012-06-07 08:35:24 -0500 answered a question glance-api server not starting

Hello Sanjaya,

Do you use glance with keystone? If you do, please paste glance endpoint.

Can you test glance-registry is working or not and execute "glance index --host=glance_ip" again?

Regards, Rain

2012-05-14 02:54:17 -0500 answered a question db_sync error

Jay, Thanks.

2012-05-02 01:53:55 -0500 answered a question deb without python-keystoneclient

https://launchpad.net/ubuntu/+source/python-keystoneclient (https://launchpad.net/ubuntu/+source/...)

2012-04-25 05:40:40 -0500 asked a question deb without python-keystoneclient

Hello all,

I refer to the following hyperlink to create keysteon deb and gained three debs which are python-keystone_2012.1-0ubuntu1_all.deb, keystone_2012.1-0ubuntu1_all.deb and keystone-doc_2012.1-0ubuntu1_all.deb. https://launchpad.net/ubuntu/+source/keystone/2012.1-0ubuntu1 (https://launchpad.net/ubuntu/+source/...)

When I install keystone_2012.1-0ubuntu1_all.deb, it occurred an error as below.

dpkg: dependency problems prevent configuration of python-keystone: python-keystone depends on python-keystoneclient; however: Package python-keystoneclient is not installed. dpkg: error processing python-keystone (--install): dependency problems - leaving unconfigured

I checked the debian folder and didn't find any python-keystoneclient deb file. Is this a bug? Please help me out.

Thanks,

Rain.

2012-04-23 05:56:25 -0500 answered a question db_sync error

Because the following sqlalchemy version is too old, so that it occurred this problem.

Build-Depends-Indep: python-sqlalchemy-ext | python-sqlalchemy (<< 0.6.3-2),

Pleasee correct the sqlalchemy version in control file. Thanks.

2012-04-20 06:17:15 -0500 answered a question Error when sync glance database

Hello neo0, Please refer the following steps to set up glance.

  1. stop glance-api
  2. stop glance-registry
  3. remove tables from db
  4. su -s /bin/sh -c 'glance-manage version_control 0' glance
  5. su -s /bin/sh -c 'glance-manage db_sync' glance 6 start glance-api
  6. start glance-registry

Regards,

Rain.

2012-04-20 02:44:47 -0500 answered a question Error when sync glance database

I saw the following script in glance-registry.postinst. FYI~

if [ ! -e /var/lib/glance/glance.sqlite ] ; then su -s /bin/sh -c 'glance-manage version_control 0' glance fi

2012-04-18 03:00:45 -0500 answered a question problem verifying glance

Hello Don, First, you should stop glance and remove DB. And then execute "glance-manage db_sync". at last, you set up glance-api and glance-registry again.

BTW, you endpoint looks like incorrect. Please refer to the following keystone command. and I don't know why there was no paste deploy in glance-api-paste.ini, it's stange. you should check installation steps again. glance-api-paste.ini is very important.

keystone endpoint-create --region RegionOne --service_id XXXXXXXXXXX --publicurl http://172.17.86.9:9292/v1 --adminurl http://172.17.86.9:9292/v1 --internalurl http://172.17.86.9:9292/v1

Regards,

Rain

2012-04-18 02:40:41 -0500 answered a question incorrect result when executed glance index with keystone

Thanks :)

2012-04-18 02:39:25 -0500 asked a question db_sync error

Hello all,

When I install glance-registry, it occurred a error as below.

Setting up glance-registry (2012.1-0ubuntu2) ... Traceback (most recent call last): File "/usr/bin/glance-manage", line 122, in <module> main() File "/usr/bin/glance-manage", line 118, in main dispatch_cmd(conf, args) File "/usr/bin/glance-manage", line 93, in dispatch_cmd cmd_func(conf, args) File "/usr/bin/glance-manage", line 81, in do_db_sync glance.registry.db.migration.db_sync(conf, version, current_version) File "/usr/lib/python2.7/dist-packages/glance/registry/db/migration.py", line 141, in db_sync upgrade(conf, version=version) File "/usr/lib/python2.7/dist-packages/glance/registry/db/migration.py", line 67, in upgrade return versioning_api.upgrade(sql_connection, repo_path, version) File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 186, in upgrade return _migrate(url, repository, version, upgrade=True, err=err, opts) File "<string>", line 2, in _migrate File "/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py", line 159, in with_engine return f(a, *kw) File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 365, in _migrate schema.runchange(ver, change, changeset.step) File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 91, in runchange change.run(self.engine, step) File "/usr/lib/python2.7/dist-packages/migrate/versioning/script/py.py", line 145, in run script_func(engine) File "/usr/lib/python2.7/dist-packages/glance/registry/db/migrate_repo/versions/001_add_images_table.py", line 48, in upgrade tables = [define_images_table(meta)] File "/usr/lib/python2.7/dist-packages/glance/registry/db/migrate_repo/versions/001_add_images_table.py", line 40, in define_images_table extend_existing=True) File "/usr/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 210, in __new__ table._init(name, metadata, args, *kw) File "/usr/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 256, in _init self._extra_kwargs(kwargs) File "/usr/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 312, in _extra_kwargs "Invalid argument(s) for Table: %r" % kwargs.keys()) TypeError: Invalid argument(s) for Table: ['extend_existing', 'mysql_engine'] dpkg: error processing glance-registry (--configure): subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already Processing triggers for python-support ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Errors were encountered while processing: glance-registry E: Sub-process /usr/bin/dpkg returned an error code (1)

I check DB and found there was no tables except migrate_version. and migrate_version is 0. So I execute glance-manage db_sync again, it occurred the same error as below.

root@ubuntu:/var/lib/glance# glance-manage db_sync Traceback (most recent call last): File "/usr/bin/glance-manage", line 122, in <module>t-packages/sqlalchemy/schem main() File "/usr/bin/glance-manage", line 118, in main/dist-packages/sqlalchemy/schem dispatch_cmd(conf, args) File "/usr/bin/glance-manage", line 93, in dispatch_cmd cmd_func(conf, args) File "/usr/bin/glance-manage", line 81, in do_db_sync glance.registry.db.migration.db_sync(conf, version, current_version) File "/usr/lib/python2.7/dist-packages/glance/registry/db/migration.py", line 141, in db_sync upgrade(conf, version=version) File "/usr/lib/python2.7/dist-packages/glance/registry/db/migration.py", line 67, in upgrade return versioning_api.upgrade ... (more)

2012-04-17 09:07:57 -0500 answered a question problem verifying glance

Can you paste the following information?

  1. keystone and glance version
  2. glance-registry-paste.ini, [paste_deploy] in glance-registry.conf glance-api-paste.ini and [paste_deploy] in glance-api.conf
  3. export | grep OS in client node
  4. endpoint-list in keystone

Regards,

Rain.

2012-04-17 08:53:27 -0500 answered a question No route for /v1/images

Can you paste your keystone endpoint-list?

2012-04-13 01:26:57 -0500 answered a question incorrect result when executed glance index with keystone

Jay Thanks,

I fixed it after add glance endpoint in keystone.

There is a error as below when I install keyston in glance node.

Unpacking python-glance (from python-glance_2012.1~rc3-0ubuntu1_all.deb) ... dpkg: error processing python-glance_2012.1~rc3-0ubuntu1_all.deb (--install): trying to overwrite '/usr/share/pyshared/glance-2012.1.egg-info/dependency_links.txt', which is also in package glance 2012.1.4 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

After using "dpkg --force-overwrite -i python-glance_2012.1~rc3-0ubuntu1_all.deb" to install, keystone installed success. Is there any solution to avoid this error occurred?

Thanks,

Rain.

2012-04-11 09:48:57 -0500 asked a question incorrect result when executed glance index with keystone

Hello all,

I try to use glance with remote keystone, but the following incorrect result is occurred when I executed glance index with keystone. Please help me out.

Failed to show index. Got error: An object with the specified identifier was not found. Details: 404 Not Found

The resource could not be found.

glance-api log: /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req

root@glance:/etc/glance# export | grep OS declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" declare -x OS_AUTH_KEY="openstack" declare -x OS_AUTH_TENANT="adminTenant" declare -x OS_AUTH_URL="http://172.16.70.129:5000/v2.0" declare -x OS_AUTH_USER="admin" declare -x OS_REGION_NAME="RegionOne"

keystone log: /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ***** REQUEST ENVIRON ***** 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <response at="" 0x3272610="" 200="" ok="">} 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] REQUEST_METHOD = POST 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] PATH_INFO = /tokens 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] CONTENT_LENGTH = 110 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_USER_AGENT = glance-client 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] eventlet.posthooks = [] 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_NAME = 172.16.70.129 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] REMOTE_ADDR = 172.16.70.236 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.input object="" at="" 0x370ce10=""> 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.url_scheme = http 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] webob._body_file = (<limitedlengthfile(<eventlet.wsgi.input object="" at="" 0x370ce10="">, maxlen=110)>, <eventlet.wsgi.input object="" at="" 0x370ce10="">) 2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_PORT = 5000 2012-04-12 16:27:15 ... (more)

2012-04-11 06:49:43 -0500 answered a question HTTPNotFound

Jay Thanks:)

2012-04-09 07:04:15 -0500 asked a question HTTPNotFound

Hello all,

I install glance.2011.3, and there is a error as below when I download some images. Please help to clarify. Thanks.

2012-04-09 13:50:54 DEBUG [glance.api.middleware.version_negotiation] Processing request: GET /v1/images/70 Accept: 2012-04-09 13:50:54 DEBUG [glance.api.middleware.version_negotiation] Matched versioned URI. Version: 1.0 2012-04-09 13:50:54 DEBUG [routes.middleware] Matched GET /images/70 2012-04-09 13:50:54 DEBUG [routes.middleware] Route path: '/images/:(id)', defaults: {'action': u'show', 'controller': <glance.common.wsgi.resource object="" at="" 0x23943d0="">} 2012-04-09 13:50:54 DEBUG [routes.middleware] Match dict: {'action': u'show', 'controller': <glance.common.wsgi.resource object="" at="" 0x23943d0="">, 'id': u'70'} 2012-04-09 13:50:54 DEBUG [glance.api.v1.images] image '70' is a cache MISS 2012-04-09 13:50:54 DEBUG [glance.api.v1.images] tee'ing image '70' into cache 2012-04-09 13:50:54 WARNING [glance.utils] xattrs not supported, skipping... 2012-04-09 13:50:54 WARNING [glance.utils] xattrs not supported, skipping... 2012-04-09 13:50:54 WARNING [glance.utils] xattrs not supported, skipping... 2012-04-09 13:50:54 DEBUG [glance.image_cache] fetch errored, rolling back by moving '/srv/cache/incomplete/70' to '/srv/cache/invalid/70' 2012-04-09 13:50:54 DEBUG [eventlet.wsgi.server] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 347, in handle_one_response for data in result: File "/usr/lib/pymodules/python2.7/glance/api/v1/images.py", line 233, in get_from_store_tee_into_cache chunks = get_from_store(image) File "/usr/lib/pymodules/python2.7/glance/api/v1/images.py", line 220, in get_from_store raise HTTPNotFound(explanation="%s" % e) HTTPNotFound: Image file /srv/glusterfs/glance/images/70 not found 2012-04-09 13:50:54 DEBUG [eventlet.wsgi.server] 172.16.70.34 - - [09/Apr/2012 13:50:54] "GET /v1/images/70 HTTP/1.1" 200 0 0.023336

By the way, How many encrypt/decrypt algorithm,like sha1 MD5 etc, dose glance https support?

Thanks,

Rain.

2012-04-06 06:37:47 -0500 answered a question keystone cannot use the command curl

curl -s -d '{"auth": {"tenantName": "service", "passwordCredentials": {"username": "glance", "password": "mypasswd"}}}' -H 'Content-type: application/json' http://192.168.77.105:5000/v2.0/tokens

try it!

Rain.

2012-04-06 06:28:13 -0500 answered a question Swift authentication using Keystone: Account Head Failed

Hello Binary,

Could you tell me how do you create user,role,tenant,service and endpoint? I always can't find account > <. Please help me out.

Thanks,

Rain.

2012-03-26 01:36:22 -0500 answered a question What's the requirements to get keystone-all to work?

you should kill keystone first. please check if keystone is working or not by using "ps -ef | grep keystone". It seems port has been used.

2012-03-23 09:10:51 -0500 answered a question What's the requirements to get keystone-all to work?

Do you install keystone by source code? It seems that it does not automatically copy all of the confs to /etc/keystone/. you could copy conf to /etc/keystone/, and set keystone up again.

Rain.

2012-02-21 03:54:02 -0500 answered a question 2011.3 upgrade to 2012.1~e3

I know where the problem is.

We should execute "glance-manage db_sync" before setting up glance 2011.3 for the first time.

After that, we can upgrade to glance 2012.1~e3 and execute glance-manage db_sync again. The metadata can be shared with the latest glance.

Jay, Thanks.

Rain