[Openstack] Eorro happens sometimes when I create instance in essex4

2012-03-07 Thread DeadSun
2012-03-08 14:46:58 DEBUG nova.utils [-] Attempting to grab semaphore
"252f77f9ae919d0e87c7bf2c73772e0cd8f74e04" for method
"call_if_not_exists"... from (pid=1567) inner
/data/stack/nova/nova/utils.py:834
2012-03-08 14:46:58 DEBUG nova.utils [-] Got semaphore
"252f77f9ae919d0e87c7bf2c73772e0cd8f74e04" for method
"call_if_not_exists"... from (pid=1567) inner
/data/stack/nova/nova/utils.py:838
2012-03-08 14:46:58 DEBUG nova.utils [-] Running cmd (subprocess): cp
/data/openstack/nova/instances/_base/252f77f9ae919d0e87c7bf2c73772e0cd8f74e04
/data/openstack/nova/instances/_base/252f77f9ae919d0e87c7bf2c73772e0cd8f74e04_40
from (pid=1567) execute /data/stack/nova/nova/utils.py:213
2012-03-08 14:47:07 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img
resize
/data/openstack/nova/instances/_base/252f77f9ae919d0e87c7bf2c73772e0cd8f74e04_40
42949672960 from (pid=1567) execute /data/stack/nova/nova/utils.py:213
2012-03-08 14:47:07 DEBUG nova.utils [-] Running cmd (subprocess): e2fsck
-fp
/data/openstack/nova/instances/_base/252f77f9ae919d0e87c7bf2c73772e0cd8f74e04_40
from (pid=1567) execute /data/stack/nova/nova/utils.py:213
2012-03-08 14:47:07 ERROR nova.compute.manager [-] [instance:
0887841c-8ceb-42d8-ba6f-14fa546264ed] Instance failed to spawn
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE:   File
"/data/stack/nova/nova/compute/manager.py", line 590, in _spawn
(nova.compute.manager): TRACE: self._legacy_nw_info(network_info),
block_device_info)
(nova.compute.manager): TRACE:   File "/data/stack/nova/nova/exception.py",
line 114, in wrapped
(nova.compute.manager): TRACE: return f(*args, **kw)
(nova.compute.manager): TRACE:   File
"/data/stack/nova/nova/virt/libvirt/connection.py", line 859, in spawn
(nova.compute.manager): TRACE: block_device_info=block_device_info)
(nova.compute.manager): TRACE:   File
"/data/stack/nova/nova/virt/libvirt/connection.py", line 1101, in
_create_image
(nova.compute.manager): TRACE: size=size)
(nova.compute.manager): TRACE:   File
"/data/stack/nova/nova/virt/libvirt/connection.py", line 1001, in
_cache_image
(nova.compute.manager): TRACE: disk.extend(cow_base, size)
(nova.compute.manager): TRACE:   File
"/data/stack/nova/nova/virt/disk/api.py", line 107, in extend
(nova.compute.manager): TRACE: utils.execute('e2fsck', '-fp', image,
check_exit_code=False)
(nova.compute.manager): TRACE:   File "/data/stack/nova/nova/utils.py",
line 220, in execute
(nova.compute.manager): TRACE: shell=shell)
(nova.compute.manager): TRACE:   File
"/usr/lib/python2.7/dist-packages/eventlet/green/subprocess.py", line 25,
in __init__
(nova.compute.manager): TRACE: subprocess_orig.Popen.__init__(self,
args, 0, *argss, **kwds)
(nova.compute.manager): TRACE:   File "/usr/lib/python2.7/subprocess.py",
line 679, in __init__
(nova.compute.manager): TRACE: errread, errwrite)
(nova.compute.manager): TRACE:   File "/usr/lib/python2.7/subprocess.py",
line 1239, in _execute_child
(nova.compute.manager): TRACE: raise child_exception
(nova.compute.manager): TRACE: OSError: [Errno 2] No such file or directory
(nova.compute.manager): TRACE:
2012-03-08 14:47:07 DEBUG nova.compute.manager [-] [instance:
0887841c-8ceb-42d8-ba6f-14fa546264ed] Deallocating network for instance
from (pid=1567) _deallocate_network
/data/stack/nova/nova/compute/manager.py:614
2012-03-08 14:47:07 DEBUG nova.rpc.common [-] Making asynchronous cast on
network... from (pid=1567) cast /data/stack/nova/nova/rpc/amqp.py:344
2012-03-08 14:47:07 ERROR nova.rpc.common [-] Exception during message
handling
(nova.rpc.common): TRACE: Traceback (most recent call last):
(nova.rpc.common): TRACE:   File "/data/stack/nova/nova/rpc/amqp.py", line
250, in _process_data
(nova.rpc.common): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc.common): TRACE:   File "/data/stack/nova/nova/exception.py", line
114, in wrapped
(nova.rpc.common): TRACE: return f(*args, **kw)
(nova.rpc.common): TRACE:   File
"/data/stack/nova/nova/compute/manager.py", line 177, in decorated_function
(nova.rpc.common): TRACE: sys.exc_info())
(nova.rpc.common): TRACE:   File "/usr/lib/python2.7/contextlib.py", line
24, in __exit__
(nova.rpc.common): TRACE: self.gen.next()
(nova.rpc.common): TRACE:   File
"/data/stack/nova/nova/compute/manager.py", line 171, in decorated_function
(nova.rpc.common): TRACE: return function(self, context, instance_uuid,
*args, **kwargs)
(nova.rpc.common): TRACE:   File
"/data/stack/nova/nova/compute/manager.py", line 646, in run_instance
(nova.rpc.common): TRACE: self._run_instance(context, instance_uuid,
**kwargs)
(nova.rpc.common): TRACE:   File
"/data/stack/nova/nova/compute/manager.py", line 449, in _run_instance
(nova.rpc.common): TRACE: self._set_instance_error_state(context,
instance_uuid)
(nova.rpc.common): TRACE:   File "/usr/lib/python2.7/contextlib.py", line
24, in __exit__
(nova.rpc.common): TRACE: self.gen.next()
(nova.r

[Openstack] WebOb + DeprecationWarning

2012-03-07 Thread Maru Newby
I'm using a devstack-configured box with all the latest code and am running 
into DeprecationWarning wherever weob.Request.str_[GET,PUT,cookies,params] are 
accessed (they are being replaced by unicode equivalents).  Since Python < 2.7 
does not ignore DeprecationWarning, and I am running on Python 2.6, the 
warnings are being thrown as exceptions.

This has already been addressed in quantum:

https://bugs.launchpad.net/quantum/+bug/925372

I've submitted a patch for glance:

https://bugs.launchpad.net/glance/+bug/949677

I then realized that the nova api is similarly afflicted, and thought that some 
discussion might be warranted since so many projects were affected:

1. Should DeprecationWarning be ignored by OpenStack projects when using Python 
< 2.7?
2. If no to #1, should OpenStack projects be proactively surveyed for use of 
deprecated webob.Request properties, with an eye towards replacing such use 
immediately?  Note that the string properties will not be removed until WebOb 
1.2 and all projects are currently on 1.0.8.
3. As a follow-on to #2, is there going to be any fallout from switching from 
string to unicode webob.Request properties?  Web apps generally code 
defensively against non-ascii input, but being new to OpenStack I'm not sure 
how well this best-practice has been adhered to.

Thanks,


Maru
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Problem nova-network failed on ubuntu 12.04

2012-03-07 Thread Justin Shepherd
Add --root_helper=sudo nova-rootwrap to your nova.conf file..

this will allow it to work without needing to specify each command by hand or 
ALL. Also the 12.04 packages are shipping a /etc/sudoers.d/nova file that has 
the required sudo access for nova-rootwrap

--shep
On Mar 6, 2012, at 7:59 AM, Leandro Reox wrote:

Its not , its a requirement actually, and we ask to add this to the docs, the 
same happens with nova-volumes

Regards

On Tue, Mar 6, 2012 at 10:58 AM, Roman Sokolkov 
mailto:rsokol...@gmail.com>> wrote:
Hi!

I ve trying nova packages on ubuntu 12.04. And have an issue with nova-network: 
when I try to "start nova-network", it failed. Trace in nova-network.log 
http://paste.openstack.org/show/6812/

(nova): TRACE: Command: sudo iptables-save -t filter
(nova): TRACE: Exit code: 1
(nova): TRACE: Stdout: ''
(nova): TRACE: Stderr: 'sudo: no tty present and no askpass program 
specified\nSorry, try again.\nsudo: no tty present and no askpass program 
specified\nSorry, try again.\nsudo: no tty present and no askpass program 
specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'
(nova): TRACE:


If I try to add in sudoers something like this "nova ALL=(ALL) NOPASSWD:ALL". 
All works good, but I think it is bad practise

--
Regards, Roman Sokolkov

___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Nova RC-1 Bugs

2012-03-07 Thread Andrew Clay Shafer
+1

On Wed, Mar 7, 2012 at 7:59 PM, Alexey Eromenko  wrote:

> There are several blocker bugs in manuals. (they prevent new users
> from installing or configuring OpenStack)
>
> But I doubt they are marked as such.
>
> What to do ?
> Can I up priority for docs on L-pad, if a broken docs prevent new
> users from configuring OpenStack ?
>
> --
> -Alexey Eromenko "Technologov"
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Swift patches for the essex release

2012-03-07 Thread John Dickinson
The final swift release for openstack essex is coming quickly. Swift 1.4.8 is 
tentatively scheduled for March 22nd. To get your patches into this release, 
please submit them for review by next week so we have enough time to review and 
QA them.

--John




smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Nova RC-1 Bugs

2012-03-07 Thread Alexey Eromenko
There are several blocker bugs in manuals. (they prevent new users
from installing or configuring OpenStack)

But I doubt they are marked as such.

What to do ?
Can I up priority for docs on L-pad, if a broken docs prevent new
users from configuring OpenStack ?

-- 
-Alexey Eromenko "Technologov"

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Nova RC-1 Bugs (Keystone too!)

2012-03-07 Thread Joseph Heck
Piling on while it's hot - there are still a few bugs pending triage for 
Keystone, but if anyone has some time to look through them and sees something 
we absolutely shouldn't miss, please let me know.

-joe
 
On Mar 7, 2012, at 4:04 PM, Vishvananda Ishaya wrote:

> Hey Everyone,
> 
> We are getting really close to finishing all of the bugs that I know about 
> for RC-1.  I could use some help (especially from nova-core!) with bug 
> triaging.  If anyone knows of any bugs that we absolutely shouldn't miss for 
> essex, please find me via irc or email and let me know.
> 
> Vish
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Nova RC-1 Bugs

2012-03-07 Thread Vishvananda Ishaya
Hey Everyone,

We are getting really close to finishing all of the bugs that I know about for 
RC-1.  I could use some help (especially from nova-core!) with bug triaging.  
If anyone knows of any bugs that we absolutely shouldn't miss for essex, please 
find me via irc or email and let me know.

Vish
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] devstack and api-paste.ini

2012-03-07 Thread Dean Troyer
On Wed, Mar 7, 2012 at 4:35 PM, Ken Thomas  wrote:
> There have been some recent changes to the devstack script w.r.t.
> nova/api-paste.ini that puzzle me.  There's the template api-paste.ini with
> various tokens that need to be substituted, and some of them are commented
> out.

Ken, I have a medium-term goal to switch from maintaining templated
config files for services in DevStack and re-write the sample config
files supplied with the source where possible. This is the first
instance of that; note that DevStack no longer carries
files/nova-api-paste.ini.

> Is it just me, or would it would be much less confusing if the config
> template was closer to the final result without the need for magic sed
> incantations to remove commented out settings? Is that template config used
> elsewhere where it might need those comments to remain in place? (If so, I
> haven't been able to find 'em.)

The sample file in Nova's source (etc/nova/api-paste.ini) has some
templating in it, but it is also still configured by default for using
a service token to authenticate to Keystone instead of the service
username/password that DevStack now uses.  Since that file may be used
in other places I don't make many assumptions about what is there, so
the sed script in stack.sh is a bit defensive and able to handle a
couple of variations that the sample api-paste.ini may present.

Clear as mud? ;)

dt

-- 

Dean Troyer
dtro...@gmail.com

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Invitation to work on Essex Deployments, Thursday 3/8

2012-03-07 Thread Pádraig Brady
On 03/05/2012 06:27 PM, rob_hirschf...@dell.com wrote:
> Stackers,
> 
> The Dell OpenStack team is coordinating a world-wide effort to work on Essex 
> deployments this coming Thursday, 3/8.

Coincidentally Fedora is having an OpenStack test day
on the same date (tomorrow).

http://fedoraproject.org/wiki/Test_Day:2012-03-08_OpenStack_Test_Day

Detailed there are recipes to deploy the OpenStack Essex services
on Fedora 17 (alpha), and it's a good way to quickly learn about OpenStack.
Note the instructions can be followed at any time, but
there will be more people around tomorrow to help out.

Note you don't even need a physical machine to try things out.
You could for example boot this http://goo.gl/S1hPU 64 bit live image
in a VM, and click 'install to "hard disk"', and then follow the
instructions from there (clouds all the way down :))

Hopefully between both of these initiatives we get
lots of new people trying out OpenStack!

cheers,
Pádraig.

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] devstack and api-paste.ini

2012-03-07 Thread Ken Thomas

Hi all,

There have been some recent changes to the devstack script w.r.t. 
nova/api-paste.ini that puzzle me.  There's the template api-paste.ini 
with various tokens that need to be substituted, and some of them are 
commented out.


E.g.

# admin_user = %SERVICE_USER%
# admin_password = %SERVICE_PASSWORD%

Fair enough, but then stack.sh runs a sed script and effectively removes 
those comments.


E.g. (from stash.sh)

The lines marked with "<" find the token (which may be commented 
out) and then replace the entire line.


sed -e "
/^admin_token/i admin_tenant_name = $SERVICE_TENANT_NAME
/admin_tenant_name/s/^.*$/admin_tenant_name = $SERVICE_TENANT_NAME/;
/admin_user/s/^.*$/admin_user = nova/; <
/admin_password/s/^.*$/admin_password = $SERVICE_PASSWORD/; <
s,%SERVICE_TENANT_NAME%,$SERVICE_TENANT_NAME,g;
s,%SERVICE_TOKEN%,$SERVICE_TOKEN,g;
" -i $NOVA_CONF_DIR/api-paste.ini

Is it just me, or would it would be much less confusing if the config 
template was closer to the final result without the need for magic sed 
incantations to remove commented out settings? Is that template config 
used elsewhere where it might need those comments to remain in place? 
(If so, I haven't been able to find 'em.)


Thanks!

Ken
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] can not start glance-api in glance E4

2012-03-07 Thread Eoghan Glynn

Does /etc/glance/policy.json exist?

Is is readable?

- Original Message -
> From: ".。o 0 O泡泡" <501640...@qq.com>
> To: "openstack" 
> Sent: Wednesday, 7 March, 2012 2:06:50 PM
> Subject: [Openstack] can not  start glance-api in glance E4
> 
> 
> hi all:
> 
> In glance E4 ,when I enter follows:
> sudo glance-api glance-api.conf --debug &
> It returns :
> 2012-03-07 21:53:50 26589 ERROR [glance.store.filesystem] Could not
> find filesystem_store_datadir in configuration options.
> 2012-03-07 21:53:50 26589 ERROR [glance.store.base] Failed to
> configure store correctly. Disabling add method.
> 2012-03-07 21:53:50 26589 ERROR [glance.store.s3] Could not find
> s3_store_host in configuration options.
> 2012-03-07 21:53:50 26589 ERROR [glance.store.base] Failed to
> configure store correctly. Disabling add method.
> 2012-03-07 21:53:50 26589 ERROR [glance.store.swift] Could not find
> swift_store_auth_address in configuration options.
> 2012-03-07 21:53:50 26589 ERROR [glance.store.base] Failed to
> configure store correctly. Disabling add method.
> Traceback (most recent call last):
> File "/usr/local/bin/glance-api", line 5, in 
> pkg_resources.run_script('glance==2012.1', 'glance-api')
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467,
> in run_script
> self.require(requires)[0].run_script(script_name, ns)
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200,
> in run_script
> execfile(script_filename, namespace, namespace)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/EGG-INFO/scripts/glance-api",
> line 48, in 
> app = config.load_paste_app(conf)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/config.py",
> line 174, in load_paste_app
> app = wsgi.paste_deploy_app(conf_file, app_name, conf)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/wsgi.py",
> line 647, in paste_deploy_app
> return deploy.loadapp("config:%s" % paste_config_file, name=app_name)
> File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
> line 247, in loadapp
> return loadobj(APP, uri, name=name, **kw)
> File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
> line 272, in loadobj
> return context.create()
> File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
> line 710, in create
> return self.object_type.invoke(self)
> File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
> line 203, in invoke
> app = context.app_context.create()
> File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
> line 710, in create
> return self.object_type.invoke(self)
> File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
> line 146, in invoke
> return fix_call(context.object, context.global_conf,
> **context.local_conf)
> File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line
> 56, in fix_call
> val = callable(*args, **kw)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/wsgi.py",
> line 573, in __call__
> return factory(self.conf, **local_conf)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/router.py",
> line 37, in __init__
> images_resource = images.create_resource(conf)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/images.py",
> line 965, in create_resource
> return wsgi.Resource(Controller(conf), deserializer, serializer)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/images.py",
> line 100, in __init__
> self.policy = policy.Enforcer(conf)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/policy.py",
> line 41, in __init__
> self.policy_path = self._find_policy_file(conf)
> File
> "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/policy.py",
> line 66, in _find_policy_file
> raise cfg.ConfigFilesNotFoundError(('policy.json',))
> glance.common.cfg.ConfigFilesNotFoundError: Failed to read some
> config files: policy.json
> 
> 
> because I don't want to use swift and s3,I add "#" in the head of
> every line about swift and s3..and configure "
> filesystem_store_datadir = /var/lib/glance/images/"..
> but It still the same return when I enter the cmd again..
> and now ,I have no idea of how to get it start ..
> Looking for anyone's help :)
> thanks a lot..
> 
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Fwd: nova endpoint in keystone

2012-03-07 Thread Ghe Rivero
Hi,
do you have "auth_strategy=keystone" or similar in your nova.conf file?

Ghe Rivero

On Wed, Mar 7, 2012 at 7:21 AM, Roman Sokolkov  wrote:

> and in nova-api.log
>
> 2012-03-07 10:16:23 INFO nova.api.openstack.wsgi
> [req-384a202a-45c6-4aa7-9a92-a8ad15f8ec3c 7e749fed4cee4999ac86a79044c68d1b
> 7e749fed4cee4999ac86a79044c68d1b] GET
> http://127.0.0.1:8774/v2/6b2fa9e4aadf48e7b0d44ad6a0eea6a8/servers/detail
> 2012-03-07 10:16:23 DEBUG nova.api.openstack.wsgi
> [req-384a202a-45c6-4aa7-9a92-a8ad15f8ec3c 7e749fed4cee4999ac86a79044c68d1b
> 7e749fed4cee4999ac86a79044c68d1b] Unrecognized Content-Type provided in
> request from (pid=29743) get_body
> /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:694
>
> -- Forwarded message --
> From: Roman Sokolkov 
> Date: 2012/3/7
> Subject: Re: [Openstack] nova endpoint in keystone
> To: Dolph Mathews 
>
>
> Thanks, but from keystone client I couldn't add  *$(tenant_id)s* , but
> could  %*(tenant_id)s*  and it fixed this problem. But I have another one
>
> # nova --debug list
> connect: (127.0.0.1, 5000)
> send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length:
> 103\r\ncontent-type: application/json\r\naccept-encoding: gzip,
> deflate\r\naccept: application/json\r\nuser-agent:
> python-novaclient\r\n\r\n{"auth": {"tenantName": "admin",
> "passwordCredentials": {"username": "demouser2", "password": "demo"}}}'
> reply: 'HTTP/1.1 200 OK\r\n'
> header: Content-Type: application/json
> header: Vary: X-Auth-Token
> header: Date: Wed, 07 Mar 2012 06:16:23 GMT
> header: Transfer-Encoding: chunked
> connect: (127.0.0.1, 8774)
> send: u'GET /v2/6b2fa9e4aadf48e7b0d44ad6a0eea6a8/servers/detail
> HTTP/1.1\r\nHost: 127.0.0.1:8774\r\nx-auth-project-id:
> admin\r\nx-auth-token: 7e749fed4cee4999ac86a79044c68d1b\r\naccept-encoding:
> gzip, deflate\r\naccept: application/json\r\nuser-agent:
> python-novaclient\r\n\r\n'
> reply: 'HTTP/1.1 400 Bad Request\r\n'
> header: Content-Length: 65
> header: Content-Type: application/json; charset=UTF-8
> header: Date: Wed, 07 Mar 2012 06:16:23 GMT
> DEBUG (shell:384) Malformed request url (HTTP 400)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 381,
> in main
> OpenStackComputeShell().main(sys.argv[1:])
>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 332,
> in main
> args.func(self.cs, args)
>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line
> 465, in do_list
> utils.print_list(cs.servers.list(search_opts=search_opts), columns,
>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line
> 265, in list
> return self._list("/servers%s%s" % (detail, query_string), "servers")
>   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 74, in
> _list
> resp, body = self.api.client.get(url)
>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 132,
> in get
> return self._cs_request(url, 'GET', **kwargs)
>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 120,
> in _cs_request
> **kwargs)
>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 103,
> in request
> raise exceptions.from_response(resp, body)
> BadRequest: Malformed request url (HTTP 400)
> ERROR: Malformed request url (HTTP 400)
>
>
>
>  2012/3/6 Dolph Mathews 
>
>> Try using *$(tenant_id)s* instead of *%tenant_id%*
>>
>> On Tue, Mar 6, 2012 at 10:38 AM, Roman Sokolkov wrote:
>>
>>> Hi, folks!
>>>
>>> I use essex-4 packages for ubuntu. I ve added endpoint in keystone
>>>
>>> *keystone endpoint-create --region=nova
>>> --service_id=264d572eaccc44f69b465a571983496f --publicurl=
>>> http://127.0.0.1:8774/v2/%tenant_id% --internalurl=
>>> http://127.0.0.1:8774/v2/%tenant_id% --adminurl=
>>> http://127.0.0.1:35357/v2/%tenant_id%*
>>>
>>> and try to
>>>
>>> *nova list*
>>>
>>> keystone has a traceback. ends with
>>>
>>>   File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
>>> 180, in __call__
>>> result = method(context, **params)
>>>   File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 294,
>>> in authenticate
>>> metadata=metadata_ref)
>>>   File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py",
>>> line 34, in _wrapper
>>> return f(*args, **kw)
>>>   File
>>> "/usr/lib/python2.7/dist-packages/keystone/catalog/backends/sql.py", line
>>> 163, in get_catalog
>>> catalog[region][srv_type]['publicURL'] = public_url % d
>>> ValueError: unsupported format character 't' (0x74) at index 27
>>>
>>> if
>>>
>>> *keystone endpoint-create --region=nova
>>> --service_id=264d572eaccc44f69b465a571983496f --publicurl=
>>> http://127.0.0.1:8774/v2/ --internalurl=http://127.0.0.1:8774/v2/--adminurl=
>>> http://127.0.0.1:35357/v2/*
>>>
>>> *nova list*
>>>
>>>
>>> ERROR: n/a (HTTP 404)
>>>  --
>>> Regards, Roman Sokolkov
>>>
>>> ___
>>> Mailing list

Re: [Openstack] Horizon ask password for every click

2012-03-07 Thread Christoph Thiel
On Wed, Mar 07, 2012 at 07:04:30PM +0400, Roman Sokolkov wrote:
> Hi
> 
> I have stupid issue. When I login to dashboard and click on any link,
> dashboard write "*Error: *You are not authorized to access /syspanel/" and
> redirect to login page, if I type login and password, I needed page open.
> And for any click same happens.
> 
> I use packages last for 12.04.
> 
> apache error.log
> 
> [Wed Mar 07 18:52:32 2012] [error] CRITICAL:openstack_dashboard:Unhandled
> Exception in of type "" in dashboard.
> [Wed Mar 07 18:52:32 2012] [error] Traceback (most recent call last):
> [Wed Mar 07 18:52:32 2012] [error]   File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111,
> in get_response
> [Wed Mar 07 18:52:32 2012] [error] response = callback(request,
> *callback_args, **callback_kwargs)
> [Wed Mar 07 18:52:32 2012] [error]   File
> "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/views.py",
> line 37, in serve
> [Wed Mar 07 18:52:32 2012] [error] raise Http404("'%s' could not be
> found" % path)
> [Wed Mar 07 18:52:32 2012] [error] Http404: 'horizon/js/form_examples.js'
> could not be found
> [Wed Mar 07 18:52:32 2012] [error] WARNING:django.request:Not Found:
> /static/horizon/js/form_examples.js
> 
> My keystone config
> http://paste.openstack.org/show/7121/
> 
> My apache config
> http://paste.openstack.org/show/7122/
> 
> And in keystone I see new tokens for every login

This is most likely due to the fact that you are using 

  CACHE_BACKEND = 'locmem://'

in your local_settings.py? Your problems should go away by using
memcached + the following setting:

  CACHE_BACKEND = 'memcached://127.0.0.1:11211/'


Best
Christoph
-- 
Christoph Thiel, Project Manager, SUSE Cloud Infrastructure

SUSE LINUX Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] UK OpenStack Group

2012-03-07 Thread John Garbutt
Glad there is some interest. Looking forward to it!

From: openstack-bounces+john.garbutt=eu.citrix@lists.launchpad.net 
[mailto:openstack-bounces+john.garbutt=eu.citrix@lists.launchpad.net] On 
Behalf Of Cole
Sent: 06 March 2012 23:57
To: Tom Ellis
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] UK OpenStack Group

Hey Tom,

Boris Devouge should be working on an event for OpenStack UK.  Details to come.

On Tue, Mar 6, 2012 at 2:43 PM, Tom Ellis 
mailto:tom.el...@canonical.com>> wrote:
On 06/03/12 14:28, John Garbutt wrote:
> Hi,
>
> Are there people keen for a UK based OpenStack group?
>
> I noticed these:
>
> http://www.meetup.com/OpenStack-London
> http://www.meetup.com/openstack-uk
>
> But doesn't seems to have been much happening yet.
Yes, certainly interested. I'd be up for a bug hunting / QA / Triage
and/or doc session.

Cheers,

Tom

___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Audit Trail

2012-03-07 Thread Kieran Evans
Hi There,

I'm looking at implementing some form of Auditing/logging for various 
components, with the main aim of having a full audit trail of all user actions, 
for various legal, and general troubleshooting/support purposes.

Firstly, I'm wondering if there's already an implementation of something like 
this, or an effort towards it. I've had a look, but didn't see anything 
relevant. 

Secondly, I'm trying to work out the best approach to this. My first guess 
would be a WSGI middleware on all the APIs that logs every request, either to a 
message queue for log service to pull and put into a DB, or put it directly 
into a DB.

If done as middleware, I envisage it being quite a simple, lightweight one, as 
it only has to pull the needed data from the request before sending it on.

Any and all comments are welcome, I stumbled onto this idea this morning, so 
I've only had a few hours thinking about it while working on other things.

Thanks
/Kieran
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Horizon ask password for every click

2012-03-07 Thread Roman Sokolkov
Hi

I have stupid issue. When I login to dashboard and click on any link,
dashboard write "*Error: *You are not authorized to access /syspanel/" and
redirect to login page, if I type login and password, I needed page open.
And for any click same happens.

I use packages last for 12.04.

apache error.log

[Wed Mar 07 18:52:32 2012] [error] CRITICAL:openstack_dashboard:Unhandled
Exception in of type "" in dashboard.
[Wed Mar 07 18:52:32 2012] [error] Traceback (most recent call last):
[Wed Mar 07 18:52:32 2012] [error]   File
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111,
in get_response
[Wed Mar 07 18:52:32 2012] [error] response = callback(request,
*callback_args, **callback_kwargs)
[Wed Mar 07 18:52:32 2012] [error]   File
"/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/views.py",
line 37, in serve
[Wed Mar 07 18:52:32 2012] [error] raise Http404("'%s' could not be
found" % path)
[Wed Mar 07 18:52:32 2012] [error] Http404: 'horizon/js/form_examples.js'
could not be found
[Wed Mar 07 18:52:32 2012] [error] WARNING:django.request:Not Found:
/static/horizon/js/form_examples.js

My keystone config
http://paste.openstack.org/show/7121/

My apache config
http://paste.openstack.org/show/7122/

And in keystone I see new tokens for every login


-- 
Regards, Roman Sokolkov
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] can't access keystone endpoint http://localhost:5000/v2.0

2012-03-07 Thread Dolph Mathews
Deepak,

The client handles the slashes correctly, but there's still a bit of a bug in 
the server as there's no matching route without the trailing slash.

Legacy keystone had a trivial URL normalization middleware to handle a similar 
issue.

-Dolph Mathews

On Mar 7, 2012, at 6:27 AM, Deepak Garg  wrote:

> @  Dolph,
> 
> It works well for me with or without the traling slash in cases when I
> pass the value in cli using the
> --endpoint switch or in case when I pass it as an env variable
> [SERVICE_ENDPOINT]
> 
> Am I missing something ?
> 
> @ Rafael
> 
> Can you post more details about the configurations and cmds you are using ?
> It will be helpful if you also paste the keystone.conf file.
> 
> 
> 
> Deepak
> 
> 
> 
> 2012/3/7 Rafael Durán Castañeda :
>> El 06/03/12 18:40, Deepak Garg escribió:
>> 
>>> This seems to be solved after this was committed:
>>> https://bugs.launchpad.net/keystone/+bug/942485
>>> 
>>> It was working for me after this. Does your code have the changesets
>>> from the above commit ?
>>> 
>>> 
>>> Cheers,
>>> Deepak
>>> 
>>> 
>>> On Tue, Mar 6, 2012 at 10:00 PM, dming  wrote:
 
 hi all:
In keystone Essex Edition.
when I access keystone endpoint http://localhost:5000.It comes
 normal
 result as :
 
 >>> id="v2.0" type="application/vnd.openstack.identity-v2.0+json"/ base="application/xml"
 type="application/vnd.openstack.identity-v2.0+xml"/ href="http://localhost:5000/v2.0/"; rel="self"/ 
 href="http://docs.openstack.org/api/openstack-identity-service/2.0/content/";
 type="text/html" rel="describedby"/ 
 href="http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf";
 type="application/pdf" rel="describedby"/>
 
 but when I want to access http://localhost:5000/v2.0 ,It comes as follow:
 """
 
 Traceback (most recent call last):
   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line
 336,
 in handle_one_response
 result = self.application(self.environ, start_response)
   File "/usr/local/lib/python2.7/dist-packages/paste/urlmap.py", line
 203,
 in __call__
 return app(environ, start_response)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
 in
 __call__
 resp = self.call_func(req, *args, **self.kwargs)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
 in
 call_func
 return self.func(req, *args, **kwargs)
   File
 
 "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
 line 282, in __call__
 response = request.get_response(self.application)
   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
 1253,
 in get_response
 application, catch_exc_info=False)
   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
 1222,
 in call_application
 app_iter = application(self.environ, start_response)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
 in
 __call__
 resp = self.call_func(req, *args, **self.kwargs)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
 in
 call_func
 return self.func(req, *args, **kwargs)
   File
 
 "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
 line 282, in __call__
 response = request.get_response(self.application)
   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
 1253,
 in get_response
 application, catch_exc_info=False)
   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
 1222,
 in call_application
 app_iter = application(self.environ, start_response)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
 in
 __call__
 resp = self.call_func(req, *args, **self.kwargs)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
 in
 call_func
 return self.func(req, *args, **kwargs)
   File
 
 "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
 line 282, in __call__
 response = request.get_response(self.application)
   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
 1253,
 in get_response
 application, catch_exc_info=False)
   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
 1222,
 in call_application
 app_iter = application(self.environ, start_response)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
 in
 __call__
 resp = self.call_func(req, *args, **self.kwargs)
   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
 in
 call

[Openstack] Question about Load balancing and Availability/Fault tolerance

2012-03-07 Thread Leander Bessa
Hello,

I have a question regarding load balancing and availability. I've tried to
figure it out by reading the documentation, but i'm not quite sure yet.

Is it possible to have various controller node ( server where nova-api,
nova-scheduler and keystone are installed) and maintain a coherent state?
What about nova-volume and glance, can these be replicated as well? From
the docs, i believe zones might be the answer to this question, but i'm not
sure.

Regards,

Leander
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] can't access keystone endpoint http://localhost:5000/v2.0

2012-03-07 Thread Rafael Durán Castañeda

On 03/07/2012 01:27 PM, Deepak Garg wrote:

@ Rafael

Can you post more details about the configurations and cmds you are using ?
It will be helpful if you also paste the keystone.conf file.


commands:
$ cd path/to/keystone
$ bin/keystone-all
$ curl http://localhost:35357/v2.0 (or curl http://localhost:5000/v2.0)

the keystone.conf is the default one:

https://github.com/openstack/keystone/blob/b68051cd13cc71ebd15cd478afedf0c5d07ebd4e/etc/keystone.conf


pip freeze (note I'm working on a custom backend so I use its virtualenv 
instead of keystone's, even when I'm running 'plain' keystone):


Fabric==1.3.4
Jinja2==2.6
MySQL-python==1.2.3
Paste==1.7.5.1
PasteDeploy==1.5.0
Pygments==1.4
Routes==1.12.3
SQLAlchemy==0.7.4
Sphinx==1.1.2
Tempita==0.5.1
WebOb==1.0.8
WebTest==1.3.3
bvox-suds==0.4
colorama==0.2.4
coverage==3.5.1
decorator==3.3.2
distribute==0.6.19
docutils==0.8.1
eventlet==0.9.16
greenlet==0.3.2
httplib2==0.7.2
ipython==0.12
logilab-astng==0.23.1
logilab-common==0.57.1
lxml==2.3.2
mox==0.5.3
nose==1.0.0
nosexcover==1.0.7
-e 
git+https://review.openstack.org/p/openstack-dev/openstack-nose.git@07bc64348a5514b9e37c2beacf65b10b8291f935#egg=openstack.nose_plugin-dev

pam==0.1.4
-e 
git+intranet.bvox.net:/var/lib/gitrepos/parallels-backend--keystone.git@592a1325cd83c37536a54c4f9a4c67602d219aeb#egg=parallelsbackend-dev
-e 
git+intranet.bvox.net:/var/lib/gitrepos/python-parallels.git@fe7d0858b908d84ae5ba69cb50ba3212bfe53af7#egg=parallelsclient-dev

passlib==1.5.3
pep8==0.6.1
prettytable==0.5
pycrypto==2.3
pylint==0.25.1
python-keystoneclient==2012.1
python-ldap==2.3.13
python-memcached==1.48
sqlalchemy-migrate==0.7.2
ssh==1.7.11
termcolor==1.1.0
unittest2==0.5.1
wsgiref==0.1.2

Traceback:

2012-03-07 15:15:09DEBUG [eventlet.wsgi.server] 127.0.0.1 - - 
[07/Mar/2012 15:15:09] "GET /v2.0 HTTP/1.1" 500 6030 0.008720


2012-03-07 15:15:20DEBUG [root]  REQUEST ENVIRON 


2012-03-07 15:15:20DEBUG [root] SCRIPT_NAME = /v2.0
2012-03-07 15:15:20DEBUG [root] webob.adhoc_attrs = {'response': 
}

2012-03-07 15:15:20DEBUG [root] REQUEST_METHOD = GET
2012-03-07 15:15:20DEBUG [root] PATH_INFO =
2012-03-07 15:15:20DEBUG [root] SERVER_PROTOCOL = HTTP/1.0
2012-03-07 15:15:20DEBUG [root] HTTP_USER_AGENT = curl/7.21.6 
(x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 
libidn/1.22 librtmp/2.3

2012-03-07 15:15:20DEBUG [root] eventlet.posthooks = []
2012-03-07 15:15:20DEBUG [root] SERVER_NAME = 127.0.0.1
2012-03-07 15:15:20DEBUG [root] REMOTE_ADDR = 127.0.0.1
2012-03-07 15:15:20DEBUG [root] eventlet.input = 


2012-03-07 15:15:20DEBUG [root] wsgi.url_scheme = http
2012-03-07 15:15:20DEBUG [root] SERVER_PORT = 35357
2012-03-07 15:15:20DEBUG [root] wsgi.input = object at 0x12f3390>

2012-03-07 15:15:20DEBUG [root] HTTP_HOST = localhost:35357
2012-03-07 15:15:20DEBUG [root] wsgi.multithread = True
2012-03-07 15:15:20DEBUG [root] HTTP_ACCEPT = */*
2012-03-07 15:15:20DEBUG [root] wsgi.version = (1, 0)
2012-03-07 15:15:20DEBUG [root] openstack.context = {'token_id': 
None, 'is_admin': False}

2012-03-07 15:15:20DEBUG [root] GATEWAY_INTERFACE = CGI/1.1
2012-03-07 15:15:20DEBUG [root] wsgi.run_once = False
2012-03-07 15:15:20DEBUG [root] wsgi.errors = ', 
mode 'w' at 0x7fc0d9990270>

2012-03-07 15:15:20DEBUG [root] wsgi.multiprocess = False
2012-03-07 15:15:20DEBUG [root] CONTENT_TYPE = text/plain
2012-03-07 15:15:20DEBUG [root]
2012-03-07 15:15:20DEBUG [root]  REQUEST BODY 


2012-03-07 15:15:20DEBUG [root]
2012-03-07 15:15:20DEBUG [eventlet.wsgi.server] Traceback (most 
recent call last):
  File 
"/home/rafael/workspace/parallels-backend--keystone/.venv/local/lib/python2.7/site-packages/eventlet/wsgi.py", 
line 336, in handle_one_response

result = self.application(self.environ, start_response)
  File 
"/home/rafael/workspace/parallels-backend--keystone/.venv/local/lib/python2.7/site-packages/paste/urlmap.py", 
line 203, in __call__

return app(environ, start_response)
  File 
"/home/rafael/workspace/parallels-backend--keystone/.venv/local/lib/python2.7/site-packages/webob/dec.py", 
line 147, in __call__

resp = self.call_func(req, *args, **self.kwargs)
  File 
"/home/rafael/workspace/parallels-backend--keystone/.venv/local/lib/python2.7/site-packages/webob/dec.py", 
line 208, in call_func

return self.func(req, *args, **kwargs)
  File "/home/rafael/workspace/keystone/keystone/common/wsgi.py", line 
282, in __call__

response = request.get_response(self.application)
  File 
"/home/rafael/workspace/parallels-backend--keystone/.venv/local/lib/python2.7/site-packages/webob/request.py", 
line 1053, in get_response

application, catch_exc_info=False)
  File 
"/home/rafael/workspace/parallels-backend--keystone/.venv/local/lib/python2.7/site-packages/webob/request.py", 
line 1022, in call_appli

[Openstack] can not start glance-api in glance E4

2012-03-07 Thread .。o 0 O泡泡
hi all:

In glance E4 ,when I enter follows:
 sudo glance-api glance-api.conf --debug &
It returns :
2012-03-07 21:53:50 26589ERROR [glance.store.filesystem] Could not find 
filesystem_store_datadir in configuration options.
2012-03-07 21:53:50 26589ERROR [glance.store.base] Failed to configure 
store correctly. Disabling add method.
2012-03-07 21:53:50 26589ERROR [glance.store.s3] Could not find 
s3_store_host in configuration options.
2012-03-07 21:53:50 26589ERROR [glance.store.base] Failed to configure 
store correctly. Disabling add method.
2012-03-07 21:53:50 26589ERROR [glance.store.swift] Could not find 
swift_store_auth_address in configuration options.
2012-03-07 21:53:50 26589ERROR [glance.store.base] Failed to configure 
store correctly. Disabling add method.
Traceback (most recent call last):
  File "/usr/local/bin/glance-api", line 5, in 
pkg_resources.run_script('glance==2012.1', 'glance-api')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in 
run_script
self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in 
run_script
execfile(script_filename, namespace, namespace)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/EGG-INFO/scripts/glance-api",
 line 48, in 
app = config.load_paste_app(conf)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/config.py",
 line 174, in load_paste_app
app = wsgi.paste_deploy_app(conf_file, app_name, conf)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/wsgi.py",
 line 647, in paste_deploy_app
return deploy.loadapp("config:%s" % paste_config_file, name=app_name)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, 
in loadapp
return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, 
in loadobj
return context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, 
in create
return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, 
in invoke
app = context.app_context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, 
in create
return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, 
in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in 
fix_call
val = callable(*args, **kw)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/wsgi.py",
 line 573, in __call__
return factory(self.conf, **local_conf)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/router.py",
 line 37, in __init__
images_resource = images.create_resource(conf)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/images.py",
 line 965, in create_resource
return wsgi.Resource(Controller(conf), deserializer, serializer)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/images.py",
 line 100, in __init__
self.policy = policy.Enforcer(conf)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/policy.py",
 line 41, in __init__
self.policy_path = self._find_policy_file(conf)
  File 
"/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/policy.py",
 line 66, in _find_policy_file
raise cfg.ConfigFilesNotFoundError(('policy.json',))
glance.common.cfg.ConfigFilesNotFoundError: Failed to read some config files: 
policy.json


because I don't want to use swift and s3,I add "#" in the head of every 
line about swift and s3..and configure " filesystem_store_datadir = 
/var/lib/glance/images/"..
but It still the same return when I enter the cmd again..
and now ,I have no idea of how to get it start ..
Looking for anyone's help :)
thanks a lot..___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] can't access keystone endpoint http://localhost:5000/v2.0

2012-03-07 Thread Deepak Garg
@  Dolph,

It works well for me with or without the traling slash in cases when I
pass the value in cli using the
--endpoint switch or in case when I pass it as an env variable
[SERVICE_ENDPOINT]

Am I missing something ?

@ Rafael

Can you post more details about the configurations and cmds you are using ?
It will be helpful if you also paste the keystone.conf file.



Deepak



2012/3/7 Rafael Durán Castañeda :
> El 06/03/12 18:40, Deepak Garg escribió:
>
>> This seems to be solved after this was committed:
>> https://bugs.launchpad.net/keystone/+bug/942485
>>
>> It was working for me after this. Does your code have the changesets
>> from the above commit ?
>>
>>
>> Cheers,
>> Deepak
>>
>>
>> On Tue, Mar 6, 2012 at 10:00 PM, dming  wrote:
>>>
>>> hi all:
>>>        In keystone Essex Edition.
>>>        when I access keystone endpoint http://localhost:5000.It comes
>>> normal
>>> result as :
>>>
>>> >> id="v2.0">>> type="application/vnd.openstack.identity-v2.0+json"/>>> base="application/xml"
>>> type="application/vnd.openstack.identity-v2.0+xml"/>>> href="http://localhost:5000/v2.0/"; rel="self"/>>>
>>> href="http://docs.openstack.org/api/openstack-identity-service/2.0/content/";
>>> type="text/html" rel="describedby"/>>>
>>> href="http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf";
>>> type="application/pdf" rel="describedby"/>
>>>
>>> but when I want to access http://localhost:5000/v2.0 ,It comes as follow:
>>> """
>>>
>>> Traceback (most recent call last):
>>>   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line
>>> 336,
>>> in handle_one_response
>>>     result = self.application(self.environ, start_response)
>>>   File "/usr/local/lib/python2.7/dist-packages/paste/urlmap.py", line
>>> 203,
>>> in __call__
>>>     return app(environ, start_response)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
>>> in
>>> __call__
>>>     resp = self.call_func(req, *args, **self.kwargs)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
>>> in
>>> call_func
>>>     return self.func(req, *args, **kwargs)
>>>   File
>>>
>>> "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
>>> line 282, in __call__
>>>     response = request.get_response(self.application)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1253,
>>> in get_response
>>>     application, catch_exc_info=False)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1222,
>>> in call_application
>>>     app_iter = application(self.environ, start_response)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
>>> in
>>> __call__
>>>     resp = self.call_func(req, *args, **self.kwargs)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
>>> in
>>> call_func
>>>     return self.func(req, *args, **kwargs)
>>>   File
>>>
>>> "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
>>> line 282, in __call__
>>>     response = request.get_response(self.application)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1253,
>>> in get_response
>>>     application, catch_exc_info=False)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1222,
>>> in call_application
>>>     app_iter = application(self.environ, start_response)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
>>> in
>>> __call__
>>>     resp = self.call_func(req, *args, **self.kwargs)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
>>> in
>>> call_func
>>>     return self.func(req, *args, **kwargs)
>>>   File
>>>
>>> "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
>>> line 282, in __call__
>>>     response = request.get_response(self.application)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1253,
>>> in get_response
>>>     application, catch_exc_info=False)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1222,
>>> in call_application
>>>     app_iter = application(self.environ, start_response)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130,
>>> in
>>> __call__
>>>     resp = self.call_func(req, *args, **self.kwargs)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195,
>>> in
>>> call_func
>>>     return self.func(req, *args, **kwargs)
>>>   File
>>>
>>> "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py",
>>> line 282, in __call__
>>>     response = request.get_response(self.application)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1253,
>>> in get_response
>>>     application, catch_exc_info=False)
>>>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line
>>> 1222,
>>