[Openstack] [horizon] Select a key pair by default in launch instance?

2012-12-03 Thread Kieran Spear

Hi all,

I've had a few requests from users who forget to select a key pair when 
launching an instance through the dashboard. I do this myself quite often.


Can we select the first available key pair by default, much like what is 
done with security groups? Most of our users only have a single key pair 
anyway.


Cheers,
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] tables.DeleteAction not working

2012-11-12 Thread Srikanth Kumar Lingala
Hi,
I created a custom table in Quantum DB, and getting rows from that, and
show as Table in Horizon.
For each row, I put only action 'Delete', and called subsequent class for
eg. 'DeleteRow(tables.DeleteAction)'. In this, I wrote 'delete' function,
in which I am calling quantum API to delete the row from DB.
But, however, If I click DeleteRow button in horizon,  'delete()' function
in the class is not triggering. And, as a result, row is not deleting from
DB. I am not getting any kind of error logs in nova-api.log, apache error
logs ..etc.
Can anyone suggest, what went wrong?

Thanks in advance.

-- 

Srikanth.
___
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] [Horizon] Error in /var/log/apache2/error.log

2012-11-12 Thread Gabriel Hurley
Your Quantum API route is returning a 404. Whether this is because you have 
your route wrong or Quantum is misconfigured or [something else] I could tell 
you. I would recommend narrowing down your possibilities by trying to make the 
call directly with quantumclient or using curl to make the request directly and 
to look at your Quantum logs to see if there's something evidently amiss.

All the best,


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Srikanth Kumar Lingala
Sent: Monday, November 12, 2012 8:00 AM
To: openstack@lists.launchpad.net; openstack-...@lists.openstack.org
Subject: [Openstack] [Horizon] Error in /var/log/apache2/error.log

Hi,
I created a custom page in horizon. Most of the new page is working fine.
But, when I wanted to load some custom 'quantum' DB table data in horizon, I am 
getting the following error in '/var/log/apache2/error.log':

Traceback (most recent call last):
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/services/configs/tabs.py",
 line 42, in get_context_data
[Mon Nov 12 15:52:58 2012] [error] config = 
api.quantum.dhcp_config_get(self.request, config_id)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/api/quantum.py", line 247, in 
dhcp_config_get
[Mon Nov 12 15:52:58 2012] [error] **params).get('config')
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 102, in 
with_params
[Mon Nov 12 15:52:58 2012] [error] ret = self.function(instance, *args, 
**kwargs)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 330, in 
show_config
[Mon Nov 12 15:52:58 2012] [error] return self.get(self.config_path % 
(config), params=_params)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 620, in 
get
[Mon Nov 12 15:52:58 2012] [error] headers=headers, params=params)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 605, in 
retry_request
[Mon Nov 12 15:52:58 2012] [error] headers=headers, params=params)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 550, in 
do_request
[Mon Nov 12 15:52:58 2012] [error] self._handle_fault_response(status_code, 
replybody)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 523, in 
_handle_fault_response
[Mon Nov 12 15:52:58 2012] [error] exception_handler_v20(status_code, 
des_error_body)
[Mon Nov 12 15:52:58 2012] [error]   File 
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 82, in 
exception_handler_v20
[Mon Nov 12 15:52:58 2012] [error] message=message)
[Mon Nov 12 15:52:58 2012] [error] QuantumClientException: 404 Not Found
[Mon Nov 12 15:52:58 2012] [error]
[Mon Nov 12 15:52:58 2012] [error] The resource could not be found.

Can anybody, please suggest me, what is the error and the fix?

Thanks in advance.
--

Srikanth.

___
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] Error in /var/log/apache2/error.log

2012-11-12 Thread Srikanth Kumar Lingala
Hi,
I created a custom page in horizon. Most of the new page is working fine.
But, when I wanted to load some custom 'quantum' DB table data in horizon,
I am getting the following error in '*/var/log/apache2/error.log*':

*Traceback (most recent call last):
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/services/configs/tabs.py",
line 42, in get_context_data
[Mon Nov 12 15:52:58 2012] [error] config =
api.quantum.dhcp_config_get(self.request, config_id)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/horizon/api/quantum.py", line 247, in
dhcp_config_get
[Mon Nov 12 15:52:58 2012] [error] **params).get('config')
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 102,
in with_params
[Mon Nov 12 15:52:58 2012] [error] ret = self.function(instance, *args,
**kwargs)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 330,
in show_config
[Mon Nov 12 15:52:58 2012] [error] return self.get(self.config_path %
(config), params=_params)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 620,
in get
[Mon Nov 12 15:52:58 2012] [error] headers=headers, params=params)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 605,
in retry_request
[Mon Nov 12 15:52:58 2012] [error] headers=headers, params=params)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 550,
in do_request
[Mon Nov 12 15:52:58 2012] [error]
self._handle_fault_response(status_code, replybody)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 523,
in _handle_fault_response
[Mon Nov 12 15:52:58 2012] [error] exception_handler_v20(status_code,
des_error_body)
[Mon Nov 12 15:52:58 2012] [error]   File
"/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 82,
in exception_handler_v20
[Mon Nov 12 15:52:58 2012] [error] message=message)
[Mon Nov 12 15:52:58 2012] [error] QuantumClientException: 404 Not Found
[Mon Nov 12 15:52:58 2012] [error]
[Mon Nov 12 15:52:58 2012] [error] The resource could not be found.*

Can anybody, please suggest me, what is the error and the fix?

Thanks in advance.
-- 

Srikanth.
___
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] [Horizon] Different URLs (hyperlinks) in a table view.

2012-11-08 Thread Gabriel Hurley
If you're trying to override a link in the actions column you can override 
get_link_url on any subclass of LinkAction as demonstrated here:

https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/containers/tables.py#L67

If you're trying to alter the link wrapped around the text in one of the 
columns, you can pass a callable to the link argument for that Column as here:

https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/containers/tables.py#L113

Hope that helps,


-  Gabriel

From: Srikanth Kumar Lingala [mailto:srikanthkumar.ling...@gmail.com]
Sent: Tuesday, November 06, 2012 5:49 AM
To: Gabriel Hurley
Cc: openstack@lists.launchpad.net; openstack-...@lists.openstack.org
Subject: [Horizon] Different URLs (hyperlinks) in a table view.

Hi Gabriel,
I want to go to different URL for each row in a table view.
For example, in the below table, based on some criteria, first row URL needs to 
go to 'networks/[NETWORKID]/detail' and second URL needs to go to 
'networks/[NETWORKID]/other_detail'.

Networks
Create Network<http://10.232.91.33/horizon/nova/networks/create> Delete Networks

[ ]

Name

Subnets Associated

Shared

Status

Admin State

Actions

[ ]

dsd<http://10.232.91.33/horizon/nova/networks/c15a3917-d7fa-4059-9e5c-38a2124995ef/detail>

* 1.1.1.1/24<http://1.1.1.1/24>

No

ACTIVE

UP

Edit 
Network<http://10.232.91.33/horizon/nova/networks/c15a3917-d7fa-4059-9e5c-38a2124995ef/update>

[ ]

vdvxc<http://10.232.91.33/horizon/nova/networks/f0d4201d-ddb8-4365-bd83-ef2bf0d0431c/detail>

* 10.10.0.0/24<http://10.10.0.0/24>

No

ACTIVE

UP

Edit 
Network<http://10.232.91.33/horizon/nova/networks/f0d4201d-ddb8-4365-bd83-ef2bf0d0431c/update>

Displaying 2 items


I saw the script 'dashboard/networks/url.py', but it is directing to only one 
page 'networks/[NETWORKID]/detail' every time.
Can I give different URL's dynamically to each network in networks table view, 
based on some criteria (Eg. based on its name).
Please help me.
Thanks in advance.

--

Srikanth.

___
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 limitations

2012-11-02 Thread Skible OpenStack

Hello Stackers,

 i am reading this 
http://docs.openstack.org/developer/horizon/releases/2012_2.html when i 
got to the limitations part !


Does anyone have anyidea when the fixes will be submitted ? i really 
need to provide my users with an easy way to associate floating IPs :)



Cheers !
___
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 developers guide

2012-10-30 Thread Srikanth Kumar Lingala
Hi,
To customize Openstack dashboard, any developer's guide available?

-- 

Srikanth.
___
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] horizon: problems with upgrading to folsom

2012-10-22 Thread Vishvananda Ishaya
Can you check the floating_ips table in your database and check the project_id 
of the floating ips and make sure they are set to  either None or the id (from 
keystone) of your project. It looks like they are allocated to a different 
project so they are not showing up for you. Also you might as well makle sure 
that you have only those three floating ips listed, that they are all deleted=0 
and they all have a value for pool.

Vish

On Oct 22, 2012, at 6:44 AM, Wolfgang Hennerbichler 
 wrote:

> dear openstack enthusiasts,
> 
> I've done it, I've upgraded to folsom. After a ton of troubles I've gone
> through and struggling to find documentation on how to UPDATE to folsom
> instead of installing from scratch I'm in a state where horizon is
> working again - well, almost.
> Before anybody asks: yes, I've issued *nova-manage db sync*.
> 
> The instances list in horizon shows all the instances of a tenant
> including private and public ip addresses. But when I click on 'Access &
> Security' I don't see any floating ip's. Clicking 'allocate ip to
> project' brings up: 'no floating ip pools available.
> 
> doing the same on the command-line:
> nova-manage floating list | head
> 7edc3284f53f4e02b92d498db41b842d19x.x.x.129
> 49c9d4e0-8f38-49e8-863c-17a8d5cb77c6novabridge_130
> 36f376d27f5b47e4b234d4f23bd0d66919x.x.x.130
> 87b7707e-9623-46d7-bd51-bbde6bfc13dfnovabridge_130
> 835e8fcba1334fb6b9421e51638ec10619x.x.x.131  Nonenova
> bridge_130
> 
> seems to bring up the latest and greatest results. Hm. What's wrong?
> Help would be appreciated!
> 
> Wolfgang
> 
> -- 
> DI (FH) Wolfgang Hennerbichler
> Software Development
> Unit Advanced Computing Technologies
> RISC Software GmbH
> A company of the Johannes Kepler University Linz
> 
> IT-Center
> Softwarepark 35
> 4232 Hagenberg
> Austria
> 
> Phone: +43 7236 3343 245
> Fax: +43 7236 3343 250
> wolfgang.hennerbich...@risc-software.at
> http://www.risc-software.at
> 
> ___
> 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] horizon: problems with upgrading to folsom

2012-10-22 Thread Wolfgang Hennerbichler
dear openstack enthusiasts,

I've done it, I've upgraded to folsom. After a ton of troubles I've gone
through and struggling to find documentation on how to UPDATE to folsom
instead of installing from scratch I'm in a state where horizon is
working again - well, almost.
Before anybody asks: yes, I've issued *nova-manage db sync*.

The instances list in horizon shows all the instances of a tenant
including private and public ip addresses. But when I click on 'Access &
Security' I don't see any floating ip's. Clicking 'allocate ip to
project' brings up: 'no floating ip pools available.

doing the same on the command-line:
nova-manage floating list | head
7edc3284f53f4e02b92d498db41b842d19x.x.x.129
49c9d4e0-8f38-49e8-863c-17a8d5cb77c6novabridge_130
36f376d27f5b47e4b234d4f23bd0d66919x.x.x.130
87b7707e-9623-46d7-bd51-bbde6bfc13dfnovabridge_130
835e8fcba1334fb6b9421e51638ec10619x.x.x.131  Nonenova
bridge_130

seems to bring up the latest and greatest results. Hm. What's wrong?
Help would be appreciated!

Wolfgang

-- 
DI (FH) Wolfgang Hennerbichler
Software Development
Unit Advanced Computing Technologies
RISC Software GmbH
A company of the Johannes Kepler University Linz

IT-Center
Softwarepark 35
4232 Hagenberg
Austria

Phone: +43 7236 3343 245
Fax: +43 7236 3343 250
wolfgang.hennerbich...@risc-software.at
http://www.risc-software.at

___
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] Horizon Bug 1004412 Details

2012-10-06 Thread John Griffith
On Sat, Oct 6, 2012 at 7:09 PM, Gabriel Hurley wrote:

>  All of what you said is correct. Those filtering issues (which applied
> to volumes, keypairs, and security groups at least) were tracked in
> separate tickets in Nova and all got fixed towards the tail end of Folsom.
> I don’t have the commits handy, sorry. The proper fix was filtering the
> results returned from Nova correctly on that end; the fix on the ticket you
> listed was only a defense against the problem on Horizon’s end.
>
> ** **
>
> **-  **Gabriel
>
> ** **
>
> *From:* 
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net[mailto:
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] *On
> Behalf Of *Joe Topjian
> *Sent:* Saturday, October 06, 2012 11:19 AM
> *To:* openstack
> *Subject:* [Openstack] Horizon Bug 1004412 Details
>
> ** **
>
> Hello,
>
> ** **
>
> I've been aware of Bug 1004412 (
> https://bugs.launchpad.net/horizon/+bug/1004412) in my Essex deployments
> for a while and finally had some time to look into it in detail.
>
> ** **
>
> I believe I have found the cause and wanted to discuss what I found vs how
> it was fixed in the patch.
>
> ** **
>
> From what I can see, when an admin requests a list of volumes, all volumes
> in the cloud are returned. But when an admin requests a list of instances,
> only instances owned by the admin are returned -- unless an option to
> return all instances is specified.
>
> ** **
>
> Because of these two distinct actions, the chances of a KeyError happening
> when visiting /nova/instances_and_volumes is extremely high once other
> projects begin working in the OpenStack environment: all volumes from all
> projects are returned but only admin instances are returned, so any volume
> attached in another project cannot find its corresponding instance.
>
> ** **
>
> I see two proper solutions to this issue: either only return volumes owned
> by the admin or return all instances in all projects by default. I was
> unable to figure out (without doing too many changes) how to filter
> volumes, so I decided on the latter solution. In views.py, I modified the
> call to get a list of instances to be:
>
> ** **
>
> if self.request.user.is_admin():
>
> self._instances_list = api.server_list(self.request,
> all_tenants=True)
>
> else:
>
> self._instances_list = api.server_list(self.request)
>
> ** **
>
> Without looking at the implementation details, but instead what the
> implementation is trying to achieve, I do not see this same issue being
> resolved in the patch (
> https://github.com/openstack/horizon/commit/155bfb72c1b5f866236928f4ffd0c2567dc556f3
> ). 
>
> ** **
>
> My question is if I have incorrectly assessed the issue or if the patch is
> taking other things into account that I'm not aware of? 
>
> ** **
>
> Thanks,
>
> Joe
>
>
> 
>
> ** **
>
> --
> Joe Topjian
>
> Systems Administrator
>
> Cybera Inc.
>
> ** **
>
> www.cybera.ca
>
> ** **
>
> Cybera is a not-for-profit organization that works to spur and support
> innovation, for the economic benefit of Alberta, through the use
> of cyberinfrastructure.
>
> ** **
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
> Hi Joe and Gabriel,

The changes were in fact merged to Folsom as Gabriel mentioned.  The
specific patches were:
Cinder-Volume: 
Ie9d74e9c09fa0c192ab6257b5fb02d65b593cbfb<https://review.openstack.org/#q,Ie9d74e9c09fa0c192ab6257b5fb02d65b593cbfb,n,z>
Cinder-Snapshot:
I2a8338d77badc70201bb315198183f2091df43fb<https://review.openstack.org/#q,I2a8338d77badc70201bb315198183f2091df43fb,n,z>

Further details can be viewed (including the Nova-Volume version of the
patches) in the bug: https://bugs.launchpad.net/horizon/+bug/967882

Thanks,
John
___
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] Horizon Bug 1004412 Details

2012-10-06 Thread Gabriel Hurley
All of what you said is correct. Those filtering issues (which applied to 
volumes, keypairs, and security groups at least) were tracked in separate 
tickets in Nova and all got fixed towards the tail end of Folsom. I don't have 
the commits handy, sorry. The proper fix was filtering the results returned 
from Nova correctly on that end; the fix on the ticket you listed was only a 
defense against the problem on Horizon's end.


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Joe Topjian
Sent: Saturday, October 06, 2012 11:19 AM
To: openstack
Subject: [Openstack] Horizon Bug 1004412 Details

Hello,

I've been aware of Bug 1004412 
(https://bugs.launchpad.net/horizon/+bug/1004412) in my Essex deployments for a 
while and finally had some time to look into it in detail.

I believe I have found the cause and wanted to discuss what I found vs how it 
was fixed in the patch.

>From what I can see, when an admin requests a list of volumes, all volumes in 
>the cloud are returned. But when an admin requests a list of instances, only 
>instances owned by the admin are returned -- unless an option to return all 
>instances is specified.

Because of these two distinct actions, the chances of a KeyError happening when 
visiting /nova/instances_and_volumes is extremely high once other projects 
begin working in the OpenStack environment: all volumes from all projects are 
returned but only admin instances are returned, so any volume attached in 
another project cannot find its corresponding instance.

I see two proper solutions to this issue: either only return volumes owned by 
the admin or return all instances in all projects by default. I was unable to 
figure out (without doing too many changes) how to filter volumes, so I decided 
on the latter solution. In views.py, I modified the call to get a list of 
instances to be:

if self.request.user.is_admin():
self._instances_list = api.server_list(self.request, 
all_tenants=True)
else:
self._instances_list = api.server_list(self.request)

Without looking at the implementation details, but instead what the 
implementation is trying to achieve, I do not see this same issue being 
resolved in the patch 
(https://github.com/openstack/horizon/commit/155bfb72c1b5f866236928f4ffd0c2567dc556f3).

My question is if I have incorrectly assessed the issue or if the patch is 
taking other things into account that I'm not aware of?

Thanks,
Joe


--
Joe Topjian
Systems Administrator
Cybera Inc.

www.cybera.ca<http://www.cybera.ca>

Cybera is a not-for-profit organization that works to spur and support 
innovation, for the economic benefit of Alberta, through the use of 
cyberinfrastructure.

___
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 Bug 1004412 Details

2012-10-06 Thread Joe Topjian
Hello,

I've been aware of Bug 1004412 (
https://bugs.launchpad.net/horizon/+bug/1004412) in my Essex deployments
for a while and finally had some time to look into it in detail.

I believe I have found the cause and wanted to discuss what I found vs how
it was fixed in the patch.

>From what I can see, when an admin requests a list of volumes, all volumes
in the cloud are returned. But when an admin requests a list of instances,
only instances owned by the admin are returned -- unless an option to
return all instances is specified.

Because of these two distinct actions, the chances of a KeyError happening
when visiting /nova/instances_and_volumes is extremely high once other
projects begin working in the OpenStack environment: all volumes from all
projects are returned but only admin instances are returned, so any volume
attached in another project cannot find its corresponding instance.

I see two proper solutions to this issue: either only return volumes owned
by the admin or return all instances in all projects by default. I was
unable to figure out (without doing too many changes) how to filter
volumes, so I decided on the latter solution. In views.py, I modified the
call to get a list of instances to be:

if self.request.user.is_admin():
self._instances_list = api.server_list(self.request,
all_tenants=True)
else:
self._instances_list = api.server_list(self.request)

Without looking at the implementation details, but instead what the
implementation is trying to achieve, I do not see this same issue being
resolved in the patch (
https://github.com/openstack/horizon/commit/155bfb72c1b5f866236928f4ffd0c2567dc556f3
).

My question is if I have incorrectly assessed the issue or if the patch is
taking other things into account that I'm not aware of?

Thanks,
Joe


-- 
Joe Topjian
Systems Administrator
Cybera Inc.

www.cybera.ca

Cybera is a not-for-profit organization that works to spur and support
innovation, for the economic benefit of Alberta, through the use
of cyberinfrastructure.
___
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 Folsom RC2 available

2012-09-21 Thread Thierry Carrez
Hello everyone,

We created a new Folsom release candidate for OpenStack Dashboard
("Horizon"), due to integration issues and missing updated translations.
You can find Horizon RC2 at:

https://launchpad.net/horizon/folsom/folsom-rc2

Unless new release-critical issues are found that warrant another
release candidate respin, this RC2 will be formally included in the
common OpenStack 2012.2 final release on September 27. You are therefore
strongly encouraged to test and validate this tarball.

Alternatively, you can grab the code at:
https://github.com/openstack/horizon/tree/folsom-rc2

If you find an issue that could be considered release-critical, please
file it at https://bugs.launchpad.net/horizon/+filebug and tag it
*folsom-rc-potential* to bring it to the release crew's attention.

Happy regression hunting,

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
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] [Horizon-Q] Horizon in Essex does not support multi Availability Zones?

2012-09-18 Thread Gui Maluf
have you checked on /etc/openstack-dashboard/local_settings.py ?
maybe this lines will help you

# For multiple regions uncomment this configuration, and add (endpoint, title).
# AVAILABLE_REGIONS = [
# ('http://cluster1.example.com:5000/v2.0', 'cluster1'),
# ('http://cluster2.example.com:5000/v2.0', 'cluster2'),
# ]


On Fri, Sep 14, 2012 at 4:26 PM, Sean Bigdatafun
 wrote:
> Hi OpenStackers,
>
> I am trying to setup a cluster with two availability-zones because of my
> hardware setup, one called 'nova' and the other called 'high'.
>
> It looks Essex does support this, however, the Horizon does not. In other
> words, I seem to be able to create a VM in a specified availability zone
> 'high' in CLI, but not able to do so in Horizon dashboard.
>
> Plus, it looks that Horizon is not able to display the availability zone
> information at all? Have I missed something here?
>
>
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>



-- 
guilherme \n
\tab maluf

"Dominar-se a si próprio é uma vitória maior do que vencer a milhares
em uma batalha." Sakyamuni

___
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-Q] Horizon in Essex does not support multi Availability Zones?

2012-09-18 Thread Sean Bigdatafun
Hi OpenStackers,

I am trying to setup a cluster with two availability-zones because of my
hardware setup, one called 'nova' and the other called 'high'.

It looks Essex does support this, however, the Horizon does not. In other
words, I seem to be able to create a VM in a specified availability zone
'high' in CLI, but not able to do so in Horizon dashboard.

Plus, it looks that Horizon is not able to display the availability zone
information at all? Have I missed something here?
___
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 and Quantum Folsom RC1 available

2012-09-12 Thread Thierry Carrez
Hello everyone,

Two weeks away from 2012.2 ("Folsom") final release, we are starting to
produce release candidates.

The tarballs for the first release candidate for OpenStack Network
service (Quantum) and Dashboard (Horizon) are now available at:

https://launchpad.net/quantum/folsom/folsom-rc1
https://launchpad.net/horizon/folsom/folsom-rc1

Congrats to both projects on this significant milestone !

Unless release-critical issues are found that warrant a release
candidate respin, these RC1s will be formally released as the 2012.2
final version in two weeks. You are therefore strongly encouraged to
test and validate those tarballs.

Alternatively, you can directly test the milestone-proposed branch at:
https://github.com/openstack/quantum/tree/milestone-proposed
https://github.com/openstack/horizon/tree/milestone-proposed

If you find an issue that could be considered release-critical, please
file it at:

https://bugs.launchpad.net/quantum/+filebug or
https://bugs.launchpad.net/horizon/+filebug

and tag it *folsom-rc-potential* to bring it to the release crew's
attention.

Note that the "master" branches of Quantum and Horizon are now open for
Grizzly development, and feature freeze restrictions no longer apply.

Regards,

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
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] Horizon: controlling table appearance

2012-09-10 Thread Fredric M
Hello Gabriel,

and thanks for the pointers, with them I managed to complete the task
of controlling row appearance! (For those who may wonder; the
resulting "status_up" and "status_down" render a row white with no
spinner (final state), "status_unknown" renders a row pale yellow with
spinner.)

I actually had looked at the calculate_row_status() and
get_row_status_class() functions of class DataTable before, but I did
not connect them with row state, probably due to the status naming of
True, False, None and "status_up", "status_down",  "status_unknown". I
expected to find something to describe state machine state, like final
(white row) and intermediate states (yellow row).

BR Fredric

On Mon, Aug 20, 2012 at 1:26 AM, Gabriel Hurley
 wrote:
> There are two levels of "status" control in Horizon: one at the column level 
> and one at the row level, which is an aggregate of the column statuses within 
> that row.
>
> Column status is controlled by settings "status=True" on the column. If you 
> want fine-grained control over which statuses are considered "good", "bad" or 
> "unknown" you can use the status_choices keyword argument as well. Docs for 
> that are here: 
> http://docs.openstack.org/developer/horizon/ref/tables.html#horizon.tables.Column.status_choices
>
> The row status is defined in the tables "Meta" options by settings 
> "status_columns" to a list of column names which should be considered. The 
> aggregation is fairly naïve: if all columns are good then the row is good, if 
> any or unknown it's unknown, and if any are bad then it's bad.
>
> Hopefully that's helpful to you.
>
> - Gabriel
>
>> -Original Message-
>> From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net
>> [mailto:openstack-
>> bounces+gabriel.hurley=nebula@lists.launchpad.net] On Behalf Of
>> LifeOn2 Development
>> Sent: Thursday, August 16, 2012 8:46 AM
>> To: openstack@lists.launchpad.net
>> Subject: [Openstack] Horizon: controlling table appearance
>>
>> Hello All,
>>
>> I am currently looking into how the appearance of tables in the Horizon UI is
>> controlled, more specifically the "Instances" table in
>> Project->Instances & Volumes. What I am trying to accomplish is to
>> control for which content combinations of the "Status" and "Task"
>> cells a certain row is rendered with the pale yellow background and the
>> spinner animation in the "Task" cell or not.
>>
>> Reasonably information about row state (including when to show the spinner
>> and yellow or not) is passed in the Ajax data for the row sent from nova. I
>> have looked into the contents of the Ajax data sent, but have not been able
>> to distinguish any data that would seem to control this row appearance.
>>
>> So, if anybody could point me to the mechanism that regulates this aspect of
>> row appearance, it would be super!
>>
>> Many Thanks,
>> Fredric
>>
>> ___
>> 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] Horizon PTL Candidacy

2012-09-02 Thread Thierry Carrez
Gabriel Hurley wrote:
> I hereby officially throw my hat in the ring to be Horizon's PTL.

And as an election official, I hereby confirm that you are eligible.

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
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] Horizon PTL Candidacy

2012-08-31 Thread Sam Su
+1 ;) , if I am a qualified voter.


On Fri, Aug 31, 2012 at 5:59 PM, Bhandaru, Malini K <
malini.k.bhand...@intel.com> wrote:

> +1 :-)
>
> -Original Message-
> From: 
> openstack-bounces+malini.k.bhandaru=intel@lists.launchpad.net[mailto:
> openstack-bounces+malini.k.bhandaru=intel@lists.launchpad.net] On
> Behalf Of Devin Carlen
> Sent: Friday, August 31, 2012 5:52 PM
> To: Gabriel Hurley
> Cc: openstack@lists.launchpad.net
> Subject: Re: [Openstack] Horizon PTL Candidacy
>
> +1 :)
>
> On Aug 31, 2012, at 5:14 PM, Gabriel Hurley wrote:
>
> > I hereby officially throw my hat in the ring to be Horizon's PTL.
> >
> >
> > Qualifications:
> >
> > I'm a highly active developer on Horizon, and a member of the Horizon
> Drivers group. I wrote the initial version of python-keystoneclient, and
> I'm a member of the Keystone Core group as well. I'm also a core committer
> for the Django web framework on which Horizon is based. I work hard to
> understand the workings of the entire stack and the needs of the ecosystem
> at large so we can work together to make the entirety of OpenStack
> consistent, stable and amazing. I believe VERY strongly in stability,
> backwards-compatibility, and consistent, properly-versioned APIs. I also
> have a strong belief in the importance of translation, internationalization
> and localization to support our international userbases.
> >
> > Contribution over the last six months:
> >
> > I've been the implementer on the majority of the large Folsom
> blueprints, most of which had to do with improving the flow and ease-of-use
> of various complicated workflows. I also re-implemented the keystone
> authentication in Horizon to be dramatically more robust and secure. I've
> provided a lot of feedback on API revisions in other projects (e.g.
> Keystone) since those APIs deeply affect Horizon's ability to deliver on a
> high quality experience. I guided the community's initiative to nail down a
> complete set of guidelines for developers around internationalization. I've
> been largely leading the Horizon project in terms of architecture and code
> review during the Folsom timeframe despite not being the official PTL.
> >
> > Most critical aspects for Horizon in the next 6 months:
> >
> > Full RBAC support; continued focus on reducing the user frustration in
> complex workflows and interactions; adding more introspective features to
> reduce boilerplate; cleaner separation of end-user and admin code flows;
> making the admin dashboard more useful to admins as opposed to just being
> the same user dashboard except you can see everything in the system;
> improved file upload mechanisms;
> >
> > Philosophical ideas regarding being a PTL:
> >
> > The foremost  role of the PTL is to maintain and convey the long-term
> vision of the project through day-to-day work (in code, in architecture, in
> reviews, in answering questions, etc.). Right behind that it is crucial
> that the PTLs work to guide the community (in gathering consensus on
> difficult topics, in supporting community members of all types, in
> maintaining the principles of our community). A close third is that the
> PTLs must work with each other to ensure the consistency, compatibility,
> and commonality of all core projects.
> >
> >
> > I'm more than happy to answer any questions or address any concerns
> people may have. :-)
> >
> > All the best,
> >
> >- Gabriel
> >
> >
> > ___
> > 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
>
___
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] Horizon PTL Candidacy

2012-08-31 Thread Bhandaru, Malini K
+1 :-)

-Original Message-
From: openstack-bounces+malini.k.bhandaru=intel@lists.launchpad.net 
[mailto:openstack-bounces+malini.k.bhandaru=intel@lists.launchpad.net] On 
Behalf Of Devin Carlen
Sent: Friday, August 31, 2012 5:52 PM
To: Gabriel Hurley
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] Horizon PTL Candidacy

+1 :)

On Aug 31, 2012, at 5:14 PM, Gabriel Hurley wrote:

> I hereby officially throw my hat in the ring to be Horizon's PTL.
> 
> 
> Qualifications:
> 
> I'm a highly active developer on Horizon, and a member of the Horizon Drivers 
> group. I wrote the initial version of python-keystoneclient, and I'm a member 
> of the Keystone Core group as well. I'm also a core committer for the Django 
> web framework on which Horizon is based. I work hard to understand the 
> workings of the entire stack and the needs of the ecosystem at large so we 
> can work together to make the entirety of OpenStack consistent, stable and 
> amazing. I believe VERY strongly in stability, backwards-compatibility, and 
> consistent, properly-versioned APIs. I also have a strong belief in the 
> importance of translation, internationalization and localization to support 
> our international userbases.
> 
> Contribution over the last six months:
> 
> I've been the implementer on the majority of the large Folsom blueprints, 
> most of which had to do with improving the flow and ease-of-use of various 
> complicated workflows. I also re-implemented the keystone authentication in 
> Horizon to be dramatically more robust and secure. I've provided a lot of 
> feedback on API revisions in other projects (e.g. Keystone) since those APIs 
> deeply affect Horizon's ability to deliver on a high quality experience. I 
> guided the community's initiative to nail down a complete set of guidelines 
> for developers around internationalization. I've been largely leading the 
> Horizon project in terms of architecture and code review during the Folsom 
> timeframe despite not being the official PTL.
> 
> Most critical aspects for Horizon in the next 6 months:
> 
> Full RBAC support; continued focus on reducing the user frustration in 
> complex workflows and interactions; adding more introspective features to 
> reduce boilerplate; cleaner separation of end-user and admin code flows; 
> making the admin dashboard more useful to admins as opposed to just being the 
> same user dashboard except you can see everything in the system; improved 
> file upload mechanisms;
> 
> Philosophical ideas regarding being a PTL:
> 
> The foremost  role of the PTL is to maintain and convey the long-term vision 
> of the project through day-to-day work (in code, in architecture, in reviews, 
> in answering questions, etc.). Right behind that it is crucial that the PTLs 
> work to guide the community (in gathering consensus on difficult topics, in 
> supporting community members of all types, in maintaining the principles of 
> our community). A close third is that the PTLs must work with each other to 
> ensure the consistency, compatibility, and commonality of all core projects.
> 
> 
> I'm more than happy to answer any questions or address any concerns people 
> may have. :-)
> 
> All the best,
> 
>- Gabriel
> 
> 
> ___
> 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] Horizon PTL Candidacy

2012-08-31 Thread Devin Carlen
+1 :)

On Aug 31, 2012, at 5:14 PM, Gabriel Hurley wrote:

> I hereby officially throw my hat in the ring to be Horizon's PTL.
> 
> 
> Qualifications:
> 
> I'm a highly active developer on Horizon, and a member of the Horizon Drivers 
> group. I wrote the initial version of python-keystoneclient, and I'm a member 
> of the Keystone Core group as well. I'm also a core committer for the Django 
> web framework on which Horizon is based. I work hard to understand the 
> workings of the entire stack and the needs of the ecosystem at large so we 
> can work together to make the entirety of OpenStack consistent, stable and 
> amazing. I believe VERY strongly in stability, backwards-compatibility, and 
> consistent, properly-versioned APIs. I also have a strong belief in the 
> importance of translation, internationalization and localization to support 
> our international userbases.
> 
> Contribution over the last six months:
> 
> I've been the implementer on the majority of the large Folsom blueprints, 
> most of which had to do with improving the flow and ease-of-use of various 
> complicated workflows. I also re-implemented the keystone authentication in 
> Horizon to be dramatically more robust and secure. I've provided a lot of 
> feedback on API revisions in other projects (e.g. Keystone) since those APIs 
> deeply affect Horizon's ability to deliver on a high quality experience. I 
> guided the community's initiative to nail down a complete set of guidelines 
> for developers around internationalization. I've been largely leading the 
> Horizon project in terms of architecture and code review during the Folsom 
> timeframe despite not being the official PTL.
> 
> Most critical aspects for Horizon in the next 6 months:
> 
> Full RBAC support; continued focus on reducing the user frustration in 
> complex workflows and interactions; adding more introspective features to 
> reduce boilerplate; cleaner separation of end-user and admin code flows; 
> making the admin dashboard more useful to admins as opposed to just being the 
> same user dashboard except you can see everything in the system; improved 
> file upload mechanisms;
> 
> Philosophical ideas regarding being a PTL:
> 
> The foremost  role of the PTL is to maintain and convey the long-term vision 
> of the project through day-to-day work (in code, in architecture, in reviews, 
> in answering questions, etc.). Right behind that it is crucial that the PTLs 
> work to guide the community (in gathering consensus on difficult topics, in 
> supporting community members of all types, in maintaining the principles of 
> our community). A close third is that the PTLs must work with each other to 
> ensure the consistency, compatibility, and commonality of all core projects.
> 
> 
> I'm more than happy to answer any questions or address any concerns people 
> may have. :-)
> 
> All the best,
> 
>- Gabriel
> 
> 
> ___
> 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] Horizon PTL Candidacy

2012-08-31 Thread Gabriel Hurley
I hereby officially throw my hat in the ring to be Horizon's PTL.


Qualifications:

I'm a highly active developer on Horizon, and a member of the Horizon Drivers 
group. I wrote the initial version of python-keystoneclient, and I'm a member 
of the Keystone Core group as well. I'm also a core committer for the Django 
web framework on which Horizon is based. I work hard to understand the workings 
of the entire stack and the needs of the ecosystem at large so we can work 
together to make the entirety of OpenStack consistent, stable and amazing. I 
believe VERY strongly in stability, backwards-compatibility, and consistent, 
properly-versioned APIs. I also have a strong belief in the importance of 
translation, internationalization and localization to support our international 
userbases.

Contribution over the last six months:

I've been the implementer on the majority of the large Folsom blueprints, most 
of which had to do with improving the flow and ease-of-use of various 
complicated workflows. I also re-implemented the keystone authentication in 
Horizon to be dramatically more robust and secure. I've provided a lot of 
feedback on API revisions in other projects (e.g. Keystone) since those APIs 
deeply affect Horizon's ability to deliver on a high quality experience. I 
guided the community's initiative to nail down a complete set of guidelines for 
developers around internationalization. I've been largely leading the Horizon 
project in terms of architecture and code review during the Folsom timeframe 
despite not being the official PTL.

Most critical aspects for Horizon in the next 6 months:

Full RBAC support; continued focus on reducing the user frustration in complex 
workflows and interactions; adding more introspective features to reduce 
boilerplate; cleaner separation of end-user and admin code flows; making the 
admin dashboard more useful to admins as opposed to just being the same user 
dashboard except you can see everything in the system; improved file upload 
mechanisms;

Philosophical ideas regarding being a PTL:

The foremost  role of the PTL is to maintain and convey the long-term vision of 
the project through day-to-day work (in code, in architecture, in reviews, in 
answering questions, etc.). Right behind that it is crucial that the PTLs work 
to guide the community (in gathering consensus on difficult topics, in 
supporting community members of all types, in maintaining the principles of our 
community). A close third is that the PTLs must work with each other to ensure 
the consistency, compatibility, and commonality of all core projects.


I'm more than happy to answer any questions or address any concerns people may 
have. :-)

All the best,

- Gabriel


___
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 authentication / memcached problems

2012-08-28 Thread Beatty Lane-Davis
Hi,

I'm having some trouble with horizon on centos 6.3.  I've followed the
installation instructions at:
http://docs.openstack.org/essex/openstack-compute/install/yum/content/ch
_install-dashboard.html#dashboard-system-requirements.

I had this working, but following a reboot, horizon hasn't come right.
I've tried reinstalling it, but I'm getting nowhere.  I've got memcached
running:

[root@wonky openstack-dashboard]# netstat -an | grep 11211
tcp0  0 0.0.0.0:11211   0.0.0.0:*
LISTEN  
tcp0  0 :::11211:::*
LISTEN  
udp0  0 0.0.0.0:11211   0.0.0.0:*

udp0  0 :::11211:::*

[root@wonky openstack-dashboard]# ps -ea | grep memcached
 3318 ?00:00:00 memcached
[root@wonky openstack-dashboard]# service memcached status
memcached (pid  3318) is running...

But with this config in my /etc/openstack-dashboard/local_settings file:

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

I get a django runtime error when I try to load the dashboard:  Unable
to create a new session key.

I've seen others resolve this problem by installing or starting
memcached, but memcached is running in my environment.

Can anyone shed any light on how I can resolve this problem?

Here is the database stanza from the local_settings file:

# FIXME: We need to change this to mysql, instead of sqlite.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'dash',
'USER': 'dash',
'PASSWORD': 'dash',
'HOST': 'localhost',
'default-character-set': 'utf8'
},
}
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

Thanks.

Cheers,
b
___
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] Horizon: controlling table appearance

2012-08-19 Thread Gabriel Hurley
There are two levels of "status" control in Horizon: one at the column level 
and one at the row level, which is an aggregate of the column statuses within 
that row.

Column status is controlled by settings "status=True" on the column. If you 
want fine-grained control over which statuses are considered "good", "bad" or 
"unknown" you can use the status_choices keyword argument as well. Docs for 
that are here: 
http://docs.openstack.org/developer/horizon/ref/tables.html#horizon.tables.Column.status_choices

The row status is defined in the tables "Meta" options by settings 
"status_columns" to a list of column names which should be considered. The 
aggregation is fairly naïve: if all columns are good then the row is good, if 
any or unknown it's unknown, and if any are bad then it's bad.

Hopefully that's helpful to you.

- Gabriel

> -Original Message-
> From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net
> [mailto:openstack-
> bounces+gabriel.hurley=nebula@lists.launchpad.net] On Behalf Of
> LifeOn2 Development
> Sent: Thursday, August 16, 2012 8:46 AM
> To: openstack@lists.launchpad.net
> Subject: [Openstack] Horizon: controlling table appearance
> 
> Hello All,
> 
> I am currently looking into how the appearance of tables in the Horizon UI is
> controlled, more specifically the "Instances" table in
> Project->Instances & Volumes. What I am trying to accomplish is to
> control for which content combinations of the "Status" and "Task"
> cells a certain row is rendered with the pale yellow background and the
> spinner animation in the "Task" cell or not.
> 
> Reasonably information about row state (including when to show the spinner
> and yellow or not) is passed in the Ajax data for the row sent from nova. I
> have looked into the contents of the Ajax data sent, but have not been able
> to distinguish any data that would seem to control this row appearance.
> 
> So, if anybody could point me to the mechanism that regulates this aspect of
> row appearance, it would be super!
> 
> Many Thanks,
> Fredric
> 
> ___
> 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] Horizon: controlling table appearance

2012-08-16 Thread LifeOn2 Development
Hello All,

I am currently looking into how the appearance of tables in the
Horizon UI is controlled, more specifically the "Instances" table in
Project->Instances & Volumes. What I am trying to accomplish is to
control for which content combinations of the "Status" and "Task"
cells a certain row is rendered with the pale yellow background and
the spinner animation in the "Task" cell or not.

Reasonably information about row state (including when to show the
spinner and yellow or not) is passed in the Ajax data for the row sent
from nova. I have looked into the contents of the Ajax data sent, but
have not been able to distinguish any data that would seem to control
this row appearance.

So, if anybody could point me to the mechanism that regulates this
aspect of row appearance, it would be super!

Many Thanks,
Fredric

___
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] [openstack] [horizon] Adding quota information to horizon.usage.base ?

2012-08-14 Thread Matt Joyce
Yeah I was going to grab the code from the instance launch helper template
and just fill in the variables from usage.base rather than usages.

I think that's quick and easy.  I just a quick test, and I think it should
work fine.

-Matt

On Tue, Aug 14, 2012 at 12:52 PM, Gabriel Hurley
wrote:

>  Go for it. I assume this is related to
> https://bugs.launchpad.net/horizon/+bug/1018560 ?
>
> ** **
>
> If you need to add stuff feel free. Were you thinking the end result would
> be to display those bars on the overview screen for the project?
>
> ** **
>
> **-  **Gabriel
>
> ** **
>
> *From:* 
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net[mailto:
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] *On
> Behalf Of *Matt Joyce
> *Sent:* Tuesday, August 14, 2012 12:24 PM
> *To:* openstack@lists.launchpad.net
> *Subject:* [Openstack] [openstack] [horizon] Adding quota information to
> horizon.usage.base ?
>
> ** **
>
> Is anyone opposed to me adding quota information to usage.base.  ?
>
> I'd like to add the graph bars from _launch_details_help.html to provide a
> quick heads up on where you are in terms of current allocation of resources
> against quotas.
>
> Maybe later we can provide some graphing of deltas in resource use against
> quota.  In that, I don't know if we even track past quotas anywhere.  So I
> am going to avoid jumping into that any time soon.  Maybe that's a job for
> ceilometer.
>
> -Matt
>
___
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] [openstack] [horizon] Adding quota information to horizon.usage.base ?

2012-08-14 Thread Gabriel Hurley
Go for it. I assume this is related to 
https://bugs.launchpad.net/horizon/+bug/1018560 ?

If you need to add stuff feel free. Were you thinking the end result would be 
to display those bars on the overview screen for the project?


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Matt Joyce
Sent: Tuesday, August 14, 2012 12:24 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] [openstack] [horizon] Adding quota information to 
horizon.usage.base ?

Is anyone opposed to me adding quota information to usage.base.  ?

I'd like to add the graph bars from _launch_details_help.html to provide a 
quick heads up on where you are in terms of current allocation of resources 
against quotas.

Maybe later we can provide some graphing of deltas in resource use against 
quota.  In that, I don't know if we even track past quotas anywhere.  So I am 
going to avoid jumping into that any time soon.  Maybe that's a job for 
ceilometer.

-Matt
___
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] [openstack] [horizon] Adding quota information to horizon.usage.base ?

2012-08-14 Thread Matt Joyce
Is anyone opposed to me adding quota information to usage.base.  ?

I'd like to add the graph bars from _launch_details_help.html to provide a
quick heads up on where you are in terms of current allocation of resources
against quotas.

Maybe later we can provide some graphing of deltas in resource use against
quota.  In that, I don't know if we even track past quotas anywhere.  So I
am going to avoid jumping into that any time soon.  Maybe that's a job for
ceilometer.

-Matt
___
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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-27 Thread Doug Hellmann
On Wed, Jun 27, 2012 at 9:44 AM, Doug Hellmann
wrote:

>
>
> On Wed, Jun 27, 2012 at 8:23 AM, Doug Hellmann <
> doug.hellm...@dreamhost.com> wrote:
>
>>
>>
>> On Tue, Jun 26, 2012 at 8:14 PM, Dean Troyer  wrote:
>>
>>> On Tue, Jun 26, 2012 at 6:37 PM, Doug Hellmann
>>>  wrote:
>>> > OK, I got past that part but now I'm seeing an error about a missing
>>> volume
>>> > group "stack-volumes". Is that related to enabling cinder? The only
>>> settings
>>> > I have in my localrc file are passwords. Is there something else I
>>> need to
>>> > do to ensure cinder is "on"?
>>>
>>> I use this to enable cinder:
>>>
>>> ENABLED_SERVICES=$(echo $ENABLED_SERVICES | sed
>>> 's/n-vol/c-api,c-sch,c-vol/')
>>>
>>> But the volume group should be created either way.  The cinder patch
>>> did change its name from nova-volumes to stack-volumes though.
>>>
>>
>> I'm not doing anything that makes me care which volume storage I'm using,
>> so I don't necessarily need to enable cinder. For whatever reason, with the
>> defaults, the volume group isn't being created (or has the wrong name). I'm
>> using a fresh vagrant VM with all of my sandboxes updated to HEAD this
>> morning.
>>
>> I'll run it again and get a list of the volume groups that do exist and
>> see if I can figure out what's going wrong.
>>
>
> It looks like a problem creating the volume group on the loopback device.
> I get:
>
> Device /dev/loop0 not found (or ignored by filtering).
> Unable to add physical volume '/dev/loop0' to volume group
> 'stack-volumes'.
>
> This is on Ubuntu Precise. It was working Monday in the same image.
>

Deleting the existing backing file and letting devstack re-create it fixed
the problem. I've never had to do that before, so I have no idea what might
have caused it to be necessary this time.

Doug
___
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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-27 Thread Doug Hellmann
On Wed, Jun 27, 2012 at 8:23 AM, Doug Hellmann
wrote:

>
>
> On Tue, Jun 26, 2012 at 8:14 PM, Dean Troyer  wrote:
>
>> On Tue, Jun 26, 2012 at 6:37 PM, Doug Hellmann
>>  wrote:
>> > OK, I got past that part but now I'm seeing an error about a missing
>> volume
>> > group "stack-volumes". Is that related to enabling cinder? The only
>> settings
>> > I have in my localrc file are passwords. Is there something else I need
>> to
>> > do to ensure cinder is "on"?
>>
>> I use this to enable cinder:
>>
>> ENABLED_SERVICES=$(echo $ENABLED_SERVICES | sed
>> 's/n-vol/c-api,c-sch,c-vol/')
>>
>> But the volume group should be created either way.  The cinder patch
>> did change its name from nova-volumes to stack-volumes though.
>>
>
> I'm not doing anything that makes me care which volume storage I'm using,
> so I don't necessarily need to enable cinder. For whatever reason, with the
> defaults, the volume group isn't being created (or has the wrong name). I'm
> using a fresh vagrant VM with all of my sandboxes updated to HEAD this
> morning.
>
> I'll run it again and get a list of the volume groups that do exist and
> see if I can figure out what's going wrong.
>

It looks like a problem creating the volume group on the loopback device. I
get:

Device /dev/loop0 not found (or ignored by filtering).
Unable to add physical volume '/dev/loop0' to volume group
'stack-volumes'.

This is on Ubuntu Precise. It was working Monday in the same image.

Doug
___
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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-27 Thread Doug Hellmann
On Tue, Jun 26, 2012 at 8:14 PM, Dean Troyer  wrote:

> On Tue, Jun 26, 2012 at 6:37 PM, Doug Hellmann
>  wrote:
> > OK, I got past that part but now I'm seeing an error about a missing
> volume
> > group "stack-volumes". Is that related to enabling cinder? The only
> settings
> > I have in my localrc file are passwords. Is there something else I need
> to
> > do to ensure cinder is "on"?
>
> I use this to enable cinder:
>
> ENABLED_SERVICES=$(echo $ENABLED_SERVICES | sed
> 's/n-vol/c-api,c-sch,c-vol/')
>
> But the volume group should be created either way.  The cinder patch
> did change its name from nova-volumes to stack-volumes though.
>

I'm not doing anything that makes me care which volume storage I'm using,
so I don't necessarily need to enable cinder. For whatever reason, with the
defaults, the volume group isn't being created (or has the wrong name). I'm
using a fresh vagrant VM with all of my sandboxes updated to HEAD this
morning.

I'll run it again and get a list of the volume groups that do exist and see
if I can figure out what's going wrong.


>
> 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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Dean Troyer
On Tue, Jun 26, 2012 at 6:37 PM, Doug Hellmann
 wrote:
> OK, I got past that part but now I'm seeing an error about a missing volume
> group "stack-volumes". Is that related to enabling cinder? The only settings
> I have in my localrc file are passwords. Is there something else I need to
> do to ensure cinder is "on"?

I use this to enable cinder:

ENABLED_SERVICES=$(echo $ENABLED_SERVICES | sed 's/n-vol/c-api,c-sch,c-vol/')

But the volume group should be created either way.  The cinder patch
did change its name from nova-volumes to stack-volumes though.

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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Doug Hellmann
OK, I got past that part but now I'm seeing an error about a missing volume
group "stack-volumes". Is that related to enabling cinder? The only
settings I have in my localrc file are passwords. Is there something else I
need to do to ensure cinder is "on"?

On Tue, Jun 26, 2012 at 5:47 PM, Dean Troyer  wrote:

> On Tue, Jun 26, 2012 at 3:43 PM, Doug Hellmann
>  wrote:
> > Thanks for the pointer to the devstack change. I +1ed, but don't have
> commit
> > review access there to do any more than that.
>
> It just merged...I've requeued a couple of reviews that failed earlier
> due to this problem, we'll see how it goes.
>
> 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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Dean Troyer
On Tue, Jun 26, 2012 at 3:43 PM, Doug Hellmann
 wrote:
> Thanks for the pointer to the devstack change. I +1ed, but don't have commit
> review access there to do any more than that.

It just merged...I've requeued a couple of reviews that failed earlier
due to this problem, we'll see how it goes.

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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Doug Hellmann
It sounds like maybe a new file created by the updated setup.py isn't
included in the package, so when setup.py tries to read the file during
installation it can't.

Thanks for the pointer to the devstack change. I +1ed, but don't have
commit review access there to do any more than that.

On Tue, Jun 26, 2012 at 4:34 PM, Brian Waldon wrote:

> We did land a change to python-glanceclient earlier this morning that
> caused this, but I didn't really understand the explanation given to me by
> Monty. We've got a patch in review that should help alleviate the problem
> for now: https://review.openstack.org/#/c/9018/1
>
> Brain
>
>
> On Jun 26, 2012, at 1:28 PM, Gabriel Hurley wrote:
>
> I’m seeing a lot of that on the CI gate jobs today, too. Seems to be an
> problem installing dependencies with pip. Usually I blame this on transient
> network problems, unless somebody’s been mucking with the clients
> themselves…
> ** **
> ** **
> -  Gabriel
> ** **
> *From:* 
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net[mailto:
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] *On
> Behalf Of *Doug Hellmann
> *Sent:* Tuesday, June 26, 2012 1:19 PM
> *To:* openstack@lists.launchpad.net
> *Subject:* [Openstack] horizon install from devstack fails to find
> glanceclient/versioninfo
> ** **
> I'm having trouble running devstack today. I'm getting the following error
> during the horizon installation. Does anyone have any idea what would be
> causing that?
>
> Doug
> ** **
> Downloading/unpacking python-glanceclient (from -r
> horizon.egg-info/requires.txt (line 7))
>   Running setup.py egg_info for package python-glanceclient
> Traceback (most recent call last):
>   File "", line 14, in 
>   File "/opt/stack/horizon/build/python-glanceclient/setup.py", line
> 22, in 
> version=setup.get_post_version('glanceclient'),
>   File "glanceclient/openstack/common/setup.py", line 329, in
> get_post_version
> return open(os.path.join(projectname, 'versioninfo'),
> 'r').read().strip()
> IOError: [Errno 2] No such file or directory:
> 'glanceclient/versioninfo'
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
> ** **
>   File "", line 14, in 
> ** **
>   File "/opt/stack/horizon/build/python-glanceclient/setup.py", line 22,
> in 
> ** **
> version=setup.get_post_version('glanceclient'),
> ** **
>   File "glanceclient/openstack/common/setup.py", line 329, in
> get_post_version
> ** **
> return open(os.path.join(projectname, 'versioninfo'),
> 'r').read().strip()
> ** **
> IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'**
> **
> ** **
> ** **
> ___
> 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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Brian Waldon
We did land a change to python-glanceclient earlier this morning that caused 
this, but I didn't really understand the explanation given to me by Monty. 
We've got a patch in review that should help alleviate the problem for now: 
https://review.openstack.org/#/c/9018/1

Brain


On Jun 26, 2012, at 1:28 PM, Gabriel Hurley wrote:

> I’m seeing a lot of that on the CI gate jobs today, too. Seems to be an 
> problem installing dependencies with pip. Usually I blame this on transient 
> network problems, unless somebody’s been mucking with the clients themselves…
>  
>  
> -  Gabriel
>  
> From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
> [mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
> Behalf Of Doug Hellmann
> Sent: Tuesday, June 26, 2012 1:19 PM
> To: openstack@lists.launchpad.net
> Subject: [Openstack] horizon install from devstack fails to find 
> glanceclient/versioninfo
>  
> I'm having trouble running devstack today. I'm getting the following error 
> during the horizon installation. Does anyone have any idea what would be 
> causing that?
> 
> Doug
>  
> Downloading/unpacking python-glanceclient (from -r 
> horizon.egg-info/requires.txt (line 7))
>   Running setup.py egg_info for package python-glanceclient
> Traceback (most recent call last):
>   File "", line 14, in 
>   File "/opt/stack/horizon/build/python-glanceclient/setup.py", line 22, 
> in 
> version=setup.get_post_version('glanceclient'),
>   File "glanceclient/openstack/common/setup.py", line 329, in 
> get_post_version
> return open(os.path.join(projectname, 'versioninfo'), 
> 'r').read().strip()
> IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
>  
>   File "", line 14, in 
>  
>   File "/opt/stack/horizon/build/python-glanceclient/setup.py", line 22, in 
> 
>  
> version=setup.get_post_version('glanceclient'),
>  
>   File "glanceclient/openstack/common/setup.py", line 329, in get_post_version
>  
> return open(os.path.join(projectname, 'versioninfo'), 'r').read().strip()
>  
> IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'
>  
>  
> ___
> 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] horizon install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Gabriel Hurley
I'm seeing a lot of that on the CI gate jobs today, too. Seems to be an problem 
installing dependencies with pip. Usually I blame this on transient network 
problems, unless somebody's been mucking with the clients themselves...



-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Doug Hellmann
Sent: Tuesday, June 26, 2012 1:19 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] horizon install from devstack fails to find 
glanceclient/versioninfo

I'm having trouble running devstack today. I'm getting the following error 
during the horizon installation. Does anyone have any idea what would be 
causing that?

Doug

Downloading/unpacking python-glanceclient (from -r 
horizon.egg-info/requires.txt (line 7))
  Running setup.py egg_info for package python-glanceclient
Traceback (most recent call last):
  File "", line 14, in 
  File "/opt/stack/horizon/build/python-glanceclient/setup.py", line 22, in 

version=setup.get_post_version('glanceclient'),
  File "glanceclient/openstack/common/setup.py", line 329, in 
get_post_version
return open(os.path.join(projectname, 'versioninfo'), 
'r').read().strip()
IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

  File "", line 14, in 

  File "/opt/stack/horizon/build/python-glanceclient/setup.py", line 22, in 


version=setup.get_post_version('glanceclient'),

  File "glanceclient/openstack/common/setup.py", line 329, in get_post_version

return open(os.path.join(projectname, 'versioninfo'), 'r').read().strip()

IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'


___
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 install from devstack fails to find glanceclient/versioninfo

2012-06-26 Thread Doug Hellmann
I'm having trouble running devstack today. I'm getting the following error
during the horizon installation. Does anyone have any idea what would be
causing that?

Doug

Downloading/unpacking python-glanceclient (from -r
horizon.egg-info/requires.txt (line 7))
  Running setup.py egg_info for package python-glanceclient
Traceback (most recent call last):
  File "", line 14, in 
  File "/opt/stack/horizon/build/python-glanceclient/setup.py", line
22, in 
version=setup.get_post_version('glanceclient'),
  File "glanceclient/openstack/common/setup.py", line 329, in
get_post_version
return open(os.path.join(projectname, 'versioninfo'),
'r').read().strip()
IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

  File "", line 14, in 

  File "/opt/stack/horizon/build/python-glanceclient/setup.py", line 22, in


version=setup.get_post_version('glanceclient'),

  File "glanceclient/openstack/common/setup.py", line 329, in
get_post_version

return open(os.path.join(projectname, 'versioninfo'),
'r').read().strip()

IOError: [Errno 2] No such file or directory: 'glanceclient/versioninfo'
___
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] [OpenStack][Horizon] Can't list swift containers

2012-06-13 Thread John Giannelos
The output of the bash script is the following:

http://pastebin.com/jdqTDFpQ

In the apache logs (after enabling debugging in dashboard's
local_settings.py) it shows the following errors:

http://pastebin.com/aNrTEqmD

Thanks in advance
___
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] [Horizon][Swift]Cloudfile API

2012-06-12 Thread Ke Wu
Thanks for the help!On Jun 12, 2012, at 2:15 AM, Hua ZZ Zhang wrote:Hi Wu Ke,

It seems that there is no such kind of full filter feature in Swift API. You have to implement it as a seperate component by yourself. But you can look at Glance image API to see how to implement it since Glance are using Swift to store VM images with Registry and Query features. Specifically you can refer to image-list API. Another suggestion, you need to think about indexing capability since the container will most likely contain millions of objects. If the filtering is based on the full set of objects, it is challenging for performance.

Best Regards, 




Edward Zhang(张华)
Staff Software Engineer
Travel&Transportation Standards
Emerging Technology Institute(ETI)
IBM China Software Development Lab
e-mail: zhu...@cn.ibm.com
Notes ID: Hua ZZ Zhang/China/IBM
Tel: 86-10-82450483

地址:北京市海淀区东北旺西路8号 中关村软件园28号楼 环宇大厦3层 邮编:100193
Address: 3F Ring, Building 28 Zhongguancun Software Park, 8 Dongbeiwang West Road, Haidian District, Beijing, P.R.C.100193



<38656177.gif>








Ke Wu ---2012-06-12 04:19:13---Hi everyone,




Ke Wu <ke...@ibeca.me> 
Sent by: openstack-bounces+zhuadl=cn.ibm@lists.launchpad.net2012-06-12 04:18



To

openstack@lists.launchpad.net



cc



Subject

[Openstack] [Horizon][Swift]Cloudfile API









Hi everyone, 

I am currently working on the Horizon's Swift containers/objects dashboard. On the dashboard user could retrieve, upload and delete objects which are in a Swift container.

I tried to use Cloud File's Python API to connect to a Swift container and retrieve the objects, it all worked well. However, when I headed to implement filtering object function, I couldn't found a "Filter API" provided natively. The get_objects function of the Container object in the API does have a "prefix" parameter to allow me do some basic filter, but it's far from enough for a full functional filter. 

So what I am doing now is to retrieve a list of objects by get_objects method and filter the objects by name. This method is a bad hack, would lead to many problems such as breaking pagination, or too much resource consuming if the objects list is long.

Was I missing some APIs? Or is there any other way that I can do this? Any thoughts would be helpful.

Please kindly spare any spelling/grammar errors :)

Thanks a lot!
-Ke Wu



___
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] [OpenStack][Horizon] Can't list swift containers

2012-06-12 Thread Chmouel Boudjnah
On Tue, Jun 12, 2012 at 2:04 PM, John Giannelos  wrote:
> I am having exactly the same problem in my OpenStack installation.
> While managing swift through cli works fine, dashboard doesn't seem to
> communicate with swift.

I don't know how horizon works but what the outptut when using :

http://p.chmouel.com/ks

(usage is: bash -x ks hostname tenant:username password).

Chmouel.

___
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] [OpenStack][Horizon] Can't list swift containers

2012-06-12 Thread John Giannelos
I am having exactly the same problem in my OpenStack installation.
While managing swift through cli works fine, dashboard doesn't seem to
communicate with swift.
___
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] [Horizon][Swift]Cloudfile API

2012-06-12 Thread Hua ZZ Zhang
Hi Wu Ke,

It seems that there is no such kind of full filter feature in Swift API.
You have to implement it as a seperate component by yourself. But you can
look at Glance image API to see how to implement it since Glance are using
Swift to store VM images with Registry and Query features. Specifically you
can refer to image-list API. Another suggestion, you need to think about
indexing capability since the container will most likely contain millions
of objects. If the filtering is based on the full set of objects, it is
challenging for performance.

Best Regards,

 
 Edward Zhang(张华)地址:北京市海淀区东北旺西路8号 中关村 
 Staff Software Engineer   软件园28号楼 环宇大厦3层 邮编:100193 
 Travel&Transportation Standards   Address: 3F Ring, Building 28 
 Emerging Technology Institute(ETI)Zhongguancun Software Park, 8 
 IBM China Software Development LabDongbeiwang West Road, Haidian
 e-mail: zhu...@cn.ibm.com District, Beijing, P.R.C.100193   
 Notes ID: Hua ZZ Zhang/China/IBM
 Tel: 86-10-82450483 
 
 
 
 
 
 
 





   
 Ke Wu 
   
 Sent by:   To 
 openstack-bounces openstack@lists.launchpad.net   
 +zhuadl=cn.ibm.co  cc 
 m@lists.launchpad 
 .net  Subject 
   [Openstack] 
   [Horizon][Swift]Cloudfile API   
 2012-06-12 04:18  
   
   
   
   
   




Hi everyone,

I am currently working on the Horizon's Swift containers/objects dashboard.
On the dashboard user could retrieve, upload and delete objects which are
in a Swift container.

I tried to use Cloud File's Python API to connect to a Swift container and
retrieve the objects, it all worked well. However, when I headed to
implement filtering object function, I couldn't found a "Filter API"
provided natively. The get_objects function of the Container object in the
API does have a "prefix" parameter to allow me do some basic filter, but
it's far from enough for a full functional filter.

So what I am doing now is to retrieve a list of objects by get_objects
method and filter the objects by name. This method is a bad hack, would
lead to many problems such as breaking pagination, or too much resource
consuming if the objects list is long.

Was I missing some APIs? Or is there any other way that I can do this? Any
thoughts would be helpful.

Please kindly spare any spelling/grammar errors :)

Thanks a lot!
-Ke Wu



___
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] [Horizon][Swift]Cloudfile API

2012-06-12 Thread Adrian Smith
Hi Ke Wu,

Unfortunately the Swift API doesn't offer any way of filtering. The
'prefix' parameter is as good as it gets.

Adrian


On 11 June 2012 21:18, Ke Wu  wrote:
> Hi everyone,
>
> I am currently working on the Horizon's Swift containers/objects dashboard. 
> On the dashboard user could retrieve, upload and delete objects which are in 
> a Swift container.
>
> I tried to use Cloud File's Python API to connect to a Swift container and 
> retrieve the objects, it all worked well. However, when I headed to implement 
> filtering object function, I couldn't found a "Filter API" provided natively. 
> The get_objects function of the Container object in the API does have a 
> "prefix" parameter to allow me do some basic filter, but it's far from enough 
> for a full functional filter.
>
> So what I am doing now is to retrieve a list of objects by get_objects method 
> and filter the objects by name. This method is a bad hack, would lead to many 
> problems such as breaking pagination, or too much resource consuming if the 
> objects list is long.
>
> Was I missing some APIs? Or is there any other way that I can do this? Any 
> thoughts would be helpful.
>
> Please kindly spare any spelling/grammar errors :)
>
> Thanks a lot!
> -Ke Wu
>
>
>
> ___
> 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] [Horizon][Swift]Cloudfile API

2012-06-11 Thread Ke Wu
Hi everyone, 

I am currently working on the Horizon's Swift containers/objects dashboard. On 
the dashboard user could retrieve, upload and delete objects which are in a 
Swift container.

I tried to use Cloud File's Python API to connect to a Swift container and 
retrieve the objects, it all worked well. However, when I headed to implement 
filtering object function, I couldn't found a "Filter API" provided natively. 
The get_objects function of the Container object in the API does have a 
"prefix" parameter to allow me do some basic filter, but it's far from enough 
for a full functional filter. 

So what I am doing now is to retrieve a list of objects by get_objects method 
and filter the objects by name. This method is a bad hack, would lead to many 
problems such as breaking pagination, or too much resource consuming if the 
objects list is long.

Was I missing some APIs? Or is there any other way that I can do this? Any 
thoughts would be helpful.

Please kindly spare any spelling/grammar errors :)

Thanks a lot!
-Ke Wu



___
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] [OpenStack][Horizon] Can't list swift containers

2012-05-30 Thread Leander Bessa Beernaert
Hello,

I'm unable to list my swift container on the dashboard. In Horizon's error
log i find only the following line regarding this issue:

>
> [Wed May 30 15:33:34 2012] [error] Creating a new keystoneclient
> connection to http://10.0.7.1:5000/v2.0.
> [Wed May 30 15:33:34 2012] [error] REQ: curl -i
> http://10.0.7.1:5000/v2.0/tenants -X GET -H "User-Agent:
> python-keystoneclient" -H "X-Auth-Token: db083a5b7ef34a47a355ab1b99b748b2"
> [Wed May 30 15:33:34 2012] [error]
> [Wed May 30 15:33:34 2012] [error] RESP: {'status': '200',
> 'content-location': u'http://10.0.7.1:5000/v2.0/tenants',
> 'transfer-encoding': 'chunked', 'vary': 'X-Auth-Token', 'date': 'Wed, 30
> May 2012 15:33:34 GMT', 'content-type': 'application/json'}
> [Wed May 30 15:33:34 2012] [error] RESP BODY: {"tenants_links": [],
> "tenants": [{"enabled": true, "description": null, "name": "admin", "id":
> "04282e9aff474d2383bb4d4417673e0a"}, {"enabled": true, "description": null,
> "name": "demo", "id": "9a00e050d50743d184491bafcc910220"}]}
> [Wed May 30 15:33:34 2012] [error]
> [Wed May 30 15:33:35 2012] [error] Swift connection created using token
> "895d631190c049369ec973264d8cd0e9" and url "http://192.168.111.217:8080";
> [Wed May 30 15:33:35 2012] [error] Recoverable error: 404: Not Found


When i run the command directly from machine which is running swift,
everything appears to be working just fine.

> swift -V2 -Ahttp://192.168.111.202:5000/v2.0 -U admin:admin -K nova stat


Any ideias?

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] [OpenStack][Horizon] Can't list users

2012-05-30 Thread Leander Bessa Beernaert
That did it.

Thanks!

Leander

On Wed, May 30, 2012 at 4:17 PM, Kiall Mac Innes  wrote:

> It looks like your keystone service catalog is incorrect.
>
> Check that the "identity" service's "adminurl" is using port 35357 rather
> than port 5000.
>
> Port 5000 is used for the "publicurl" and "internalurl", but NOT the
> "adminurl".
>
> Thanks,
> Kiall
>
>
> On Wed, May 30, 2012 at 3:47 PM, Leander Bessa Beernaert <
> leande...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm unable to list users in the openstack dashboard. I'm using the
>> packages provided with ubuntu 12.04.
>>
>> Here's the log outputted by horizon:
>> http://paste.openstack.org/show/18228/
>>
>>
>> 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
>>
>>
>
___
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] [OpenStack][Horizon] Can't list users

2012-05-30 Thread Kiall Mac Innes
It looks like your keystone service catalog is incorrect.

Check that the "identity" service's "adminurl" is using port 35357 rather
than port 5000.

Port 5000 is used for the "publicurl" and "internalurl", but NOT the
"adminurl".

Thanks,
Kiall


On Wed, May 30, 2012 at 3:47 PM, Leander Bessa Beernaert <
leande...@gmail.com> wrote:

> Hello,
>
> I'm unable to list users in the openstack dashboard. I'm using the
> packages provided with ubuntu 12.04.
>
> Here's the log outputted by horizon:
> http://paste.openstack.org/show/18228/
>
>
> 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
>
>
___
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] [OpenStack][Horizon] Can't list users

2012-05-30 Thread Leander Bessa Beernaert
Hello,

I'm unable to list users in the openstack dashboard. I'm using the packages
provided with ubuntu 12.04.

Here's the log outputted by horizon: http://paste.openstack.org/show/18228/


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] horizon on windows server

2012-03-28 Thread Mahdi Njim
Thank you I will try to build it on windows and I will tell you the result

2012/3/29 Andy Chong 

> I believe it is doable, but why?
> I checked through the pip-requires, most of them are runnable on windows,
> except xattr which I am not sure about.
>
> On Thu, Mar 29, 2012 at 12:20 PM, Mahdi Njim  wrote:
>
>> Hi
>> I would to know if I can install horizon on windows server, I know python
>> is portable but I would like to be sure that I can run horizon under
>> windows server.
>> Thanks
>>
>> ___
>> 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] horizon on windows server

2012-03-28 Thread Andy Chong
I believe it is doable, but why?
I checked through the pip-requires, most of them are runnable on windows,
except xattr which I am not sure about.

On Thu, Mar 29, 2012 at 12:20 PM, Mahdi Njim  wrote:

> Hi
> I would to know if I can install horizon on windows server, I know python
> is portable but I would like to be sure that I can run horizon under
> windows server.
> Thanks
>
> ___
> 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] horizon on windows server

2012-03-28 Thread Mahdi Njim
Hi
I would to know if I can install horizon on windows server, I know python
is portable but I would like to be sure that I can run horizon under
windows server.
Thanks
___
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] Horizon

2012-03-22 Thread Anthony Young
I made a very simple horizon example plugin, maybe you will find this
useful:

https://github.com/cloudbuilders/simple_horizon_plugin

On Thu, Mar 22, 2012 at 5:16 AM, Hallvard Westman <
hallvard.west...@gmail.com> wrote:

> I would like an answer to this question :
> http://osdir.com/ml/openstack-cloud-computing/2012-02/msg00092.html
> ___
> 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] Horizon-Keystone servicecatalog exception "volume"

2012-03-22 Thread Gabriel Hurley
First, to answer your question, take a look at what's in DevStack's keystone 
templates:

https://github.com/openstack-dev/devstack/blob/master/files/default_catalog.templates

That's for an Essex Keystone install, but I think you can figure out how to 
generalize it back to your setup.

That said, fixing that endpoint will fix a few issues for you, but the current 
Horizon master (Essex) on github isn't fully-compatible with a Diablo stack 
behind it. It'll *mostly* work, but many commands will fail due to changes to 
the various APIs (Keystone and Nova have both diverged from Diablo over the 
Essex timeframe).

I recommend you use the stable/diablo release of Horizon if you want to run 
Horizon with a Diablo stack.

All the best,


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Vijay
Sent: Thursday, March 22, 2012 10:25 AM
To: openstack@lists.launchpad.net
Subject: [Openstack] Horizon-Keystone servicecatalog exception "volume"

Hello,
I have installed diablo nova/openstack, keystone 2011-3 and horizon from git.
I am able to login to dashboard. However, when I go to "Instances and Volumes", 
I am getting the following error:
ServiceCatalogException

Exception Value:


Invalid service catalog service: volume

ServiceCatalogException

Exception Value:


Invalid service catalog service: volume


ServiceCatalogException

Exception Value:


Invalid service catalog service: volume

ServiceCatalogException: Invalid service catalog service: volume

In keystone, I have added only three end points, nova, glance and keystone.

What is the endpoint template for volume that I need to add?

Thanks for any leads,
-Vijay


___
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-Keystone servicecatalog exception "volume"

2012-03-22 Thread Vijay
Hello,
I have installed diablo nova/openstack, keystone 2011-3 and horizon from git.
I am able to login to dashboard. However, when I go to "Instances and Volumes", 
I am getting the following error:




ServiceCatalogException

Exception Value:
Invalid service catalog service: volume




ServiceCatalogException

Exception Value:
Invalid service catalog service: volume
 




ServiceCatalogException

Exception Value:
Invalid service catalog service: volumeServiceCatalogException: Invalid service 
catalog service: volume
 
In keystone, I have added only three end points, nova, glance and keystone.
 
What is the endpoint template for volume that I need to add?
 
Thanks for any leads,
-Vijay___
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] horizon and keystone no route matched error

2012-03-22 Thread jay_s_b
Removing trailing slash in local_settings.py in horizon worked. Thank you all 
for the help.
-jay



From: Gabriel Hurley 
To: Dolph Mathews  
Cc: jay_s_b ; "openstack@lists.launchpad.net" 
 
Sent: Wednesday, March 21, 2012 5:34 PM
Subject: RE: [Openstack] horizon and keystone no route matched error


It’s not a trailing slash on the URL sent to keystone. It’s a trailing slash in 
the Horizon setting which leads to a double-slash in the URL sent to keystone.
 
-  Gabriel
 
From:anti...@gmail.com [mailto:anti...@gmail.com] On Behalf Of Dolph Mathews
Sent: Wednesday, March 21, 2012 5:26 PM
To: Gabriel Hurley
Cc: jay_s_b; openstack@lists.launchpad.net
Subject: Re: [Openstack] horizon and keystone no route matched error
 
Wasn't this fixed in keystoneclient (properly handling an unexpected trailing 
slash)?
 
-Dolph
On Wed, Mar 21, 2012 at 6:56 PM, Gabriel Hurley  
wrote:
It looks like you’ve got an extra slash in your URL. That probably means you’ve 
got a trailing slash on your OPENSTACK_KEYSTONE_URL setting. As per the example 
settings file it should look like this:
 
OPENSTACK_KEYSTONE_URL = "http://%25s:5000/v2.0"; % OPENSTACK_HOST
 
e.g.
 
OPENSTACK_KEYSTONE_URL = http://127.0.0.1:5000/v2.0
 
Hopefully that helps.
 
-  Gabriel
 
 
From:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of jay_s_b
Sent: Wednesday, March 21, 2012 4:28 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] horizon and keystone no route matched error
 
Hello,
I have installed horizon dash board from git and integrating with nova. When I 
login to dashboard, I am getting error. Error: please try logging again.
In dashboard log, I see  the following error:
Request returned failure status.
In keystone log, I see 
2012-03-21 15:37:02    DEBUG [routes.middleware] No route matched for POST 
//tokens
2012-03-21 15:37:02    DEBUG [eventlet.wsgi.server] 16.213.0.39 - - 
[21/Mar/2012 15:37:02] "POST /v2.0//tokens HTTP/1.1" 404 228 
0.000782"routes.middleware
 
Any clue regarding this is appreciated.
Thanks,
jay 

___
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] Horizon

2012-03-22 Thread Hallvard Westman
I would like an answer to this question : 
http://osdir.com/ml/openstack-cloud-computing/2012-02/msg00092.html
___
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] horizon and keystone no route matched error

2012-03-21 Thread Gabriel Hurley
It's not a trailing slash on the URL sent to keystone. It's a trailing slash in 
the Horizon setting which leads to a double-slash in the URL sent to keystone.


-  Gabriel

From: anti...@gmail.com [mailto:anti...@gmail.com] On Behalf Of Dolph Mathews
Sent: Wednesday, March 21, 2012 5:26 PM
To: Gabriel Hurley
Cc: jay_s_b; openstack@lists.launchpad.net
Subject: Re: [Openstack] horizon and keystone no route matched error

Wasn't this fixed in keystoneclient (properly handling an unexpected trailing 
slash)?

-Dolph
On Wed, Mar 21, 2012 at 6:56 PM, Gabriel Hurley 
mailto:gabriel.hur...@nebula.com>> wrote:
It looks like you've got an extra slash in your URL. That probably means you've 
got a trailing slash on your OPENSTACK_KEYSTONE_URL setting. As per the example 
settings file it should look like this:

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0<http://%25s:5000/v2.0>" % 
OPENSTACK_HOST

e.g.

OPENSTACK_KEYSTONE_URL = http://127.0.0.1:5000/v2.0

Hopefully that helps.


-  Gabriel


From: 
openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net<mailto:nebula@lists.launchpad.net>
 
[mailto:openstack-bounces+gabriel.hurley<mailto:openstack-bounces%2Bgabriel.hurley>=nebula@lists.launchpad.net<mailto:nebula@lists.launchpad.net>]
 On Behalf Of jay_s_b
Sent: Wednesday, March 21, 2012 4:28 PM
To: openstack@lists.launchpad.net<mailto:openstack@lists.launchpad.net>
Subject: [Openstack] horizon and keystone no route matched error

Hello,
I have installed horizon dash board from git and integrating with nova. When I 
login to dashboard, I am getting error. Error: please try logging again.
In dashboard log, I see  the following error:
Request returned failure status.
In keystone log, I see
2012-03-21 15:37:02DEBUG [routes.middleware] No route matched for POST 
//tokens
2012-03-21 15:37:02DEBUG [eventlet.wsgi.server] 16.213.0.39 - - 
[21/Mar/2012 15:37:02] "POST /v2.0//tokens HTTP/1.1" 404 228 
0.000782"routes.middleware

Any clue regarding this is appreciated.
Thanks,
jay

___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.net<mailto: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] horizon and keystone no route matched error

2012-03-21 Thread Dolph Mathews
Wasn't this fixed in keystoneclient (properly handling an unexpected
trailing slash)?

-Dolph

On Wed, Mar 21, 2012 at 6:56 PM, Gabriel Hurley
wrote:

>  It looks like you’ve got an extra slash in your URL. That probably means
> you’ve got a trailing slash on your OPENSTACK_KEYSTONE_URL setting. As per
> the example settings file it should look like this:
>
> ** **
>
> OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0"; % OPENSTACK_HOST
>
> ** **
>
> e.g.
>
> ** **
>
> OPENSTACK_KEYSTONE_URL = http://127.0.0.1:5000/v2.0
>
> ** **
>
> Hopefully that helps.
>
> ** **
>
> **-  **Gabriel
>
> ** **
>
> ** **
>
> *From:* 
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net[mailto:
> openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] *On
> Behalf Of *jay_s_b
> *Sent:* Wednesday, March 21, 2012 4:28 PM
> *To:* openstack@lists.launchpad.net
> *Subject:* [Openstack] horizon and keystone no route matched error
>
> ** **
>
> Hello,
>
> I have installed horizon dash board from git and integrating with nova.
> When I login to dashboard, I am getting error. Error: please try logging
> again.
>
> In dashboard log, I see  the following error:
>
> Request returned failure status.
>
> In keystone log, I see 
>
> 2012-03-21 15:37:02DEBUG [routes.middleware] No route matched for POST
> //tokens
> 2012-03-21 15:37:02DEBUG [eventlet.wsgi.server] 16.213.0.39 - -
> [21/Mar/2012 15:37:02] "POST /v2.0//tokens HTTP/1.1" 404 228
> 0.000782"routes.middleware
>
>  
>
> Any clue regarding this is appreciated.
>
> Thanks,
>
> jay 
>
> ___
> 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] horizon and keystone no route matched error

2012-03-21 Thread Gabriel Hurley
It looks like you've got an extra slash in your URL. That probably means you've 
got a trailing slash on your OPENSTACK_KEYSTONE_URL setting. As per the example 
settings file it should look like this:

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0"; % OPENSTACK_HOST

e.g.

OPENSTACK_KEYSTONE_URL = http://127.0.0.1:5000/v2.0

Hopefully that helps.


-  Gabriel


From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of jay_s_b
Sent: Wednesday, March 21, 2012 4:28 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] horizon and keystone no route matched error

Hello,
I have installed horizon dash board from git and integrating with nova. When I 
login to dashboard, I am getting error. Error: please try logging again.
In dashboard log, I see  the following error:
Request returned failure status.
In keystone log, I see
2012-03-21 15:37:02DEBUG [routes.middleware] No route matched for POST 
//tokens
2012-03-21 15:37:02DEBUG [eventlet.wsgi.server] 16.213.0.39 - - 
[21/Mar/2012 15:37:02] "POST /v2.0//tokens HTTP/1.1" 404 228 
0.000782"routes.middleware

Any clue regarding this is appreciated.
Thanks,
jay
___
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 and keystone no route matched error

2012-03-21 Thread jay_s_b
Hello,
I have installed horizon dash board from git and integrating with nova. When I 
login to dashboard, I am getting error. Error: please try logging again.
In dashboard log, I see  the following error:
Request returned failure status.

In keystone log, I see 
2012-03-21 15:37:02    DEBUG [routes.middleware] No route matched for POST 
//tokens
2012-03-21 15:37:02    DEBUG [eventlet.wsgi.server] 16.213.0.39 - - 
[21/Mar/2012 15:37:02] "POST /v2.0//tokens HTTP/1.1" 404 228 
0.000782"routes.middleware
 
Any clue regarding this is appreciated.
Thanks,
jay ___
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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working

2012-03-21 Thread Kevin Jackson
I've actually not invalidated
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070as
I originally and intentionally raised this in the ubuntu package.
This still makes me think its still a bug with the package as provided by
Ubuntu.

1) either install memcached as a dependency - as the configs assume this
2) change the configs appropriately so sensible defaults are used

Cheers,

Kev

On 21 March 2012 14:13, Kevin Jackson  wrote:

> Ah, George - thanks!
> I'll erm.. invalidate that bug I raised too on that and put it down to not
> reading the # comment regarding this issue in that file (I'm starting to
> suck at this ;-))
>
> Kev
>
> On 21 March 2012 14:08, George Mihaiescu  wrote:
>
>>  Hi Kevin,
>>
>> ** **
>>
>> Change these lines in “/etc/openstack-dashboard/local_settings.py” and it
>> should fix the issue of being kicked off from Dashboard after logging in:
>> 
>>
>> ** **
>>
>> ** **
>>
>> #CACHE_BACKEND = 'locmem://'
>>
>> CACHE_BACKEND = 'dummy://'
>>
>> SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
>>
>> ** **
>>
>> George
>>
>> **
>>
>
-- 
Kevin Jackson
@itarchitectkev
___
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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working

2012-03-21 Thread Kevin Jackson
Ah, George - thanks!
I'll erm.. invalidate that bug I raised too on that and put it down to not
reading the # comment regarding this issue in that file (I'm starting to
suck at this ;-))

Kev

On 21 March 2012 14:08, George Mihaiescu  wrote:

>  Hi Kevin,
>
> ** **
>
> Change these lines in “/etc/openstack-dashboard/local_settings.py” and it
> should fix the issue of being kicked off from Dashboard after logging in:*
> ***
>
> ** **
>
> ** **
>
> #CACHE_BACKEND = 'locmem://'
>
> CACHE_BACKEND = 'dummy://'
>
> SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
>
> ** **
>
> George
>
> ** **
>  --
>
> *From:* openstack-bounces+george.mihaiescu=q9@lists.launchpad.net[mailto:
> openstack-bounces+george.mihaiescu=q9@lists.launchpad.net] *On Behalf
> Of *Kevin Jackson
> *Sent:* Wednesday, March 21, 2012 7:24 AM
> *To:* openstack@lists.launchpad.net
> *Subject:* [Openstack] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1
> -can't get it working
>
> ** **
>
> Dear all,
>
> I could do with some help.
>
> I raised the following bugs in Horizon, specifically to do with Ubuntu.***
> *
>
> ** **
>
> On a fresh install of Precise I do the following:
>
> ** **
>
> apt-get update
>
> apt-get dist-upgrade
>
> reboot
>
> apt-get... nova, etc.
>
> configure keystone etc
>
> upload an image
>
> ** **
>
> all is good at this point
>
> ** **
>
> I then try and install OpenStack Dashboard:
>
> ** **
>
> apt-get update
>
> apt-get install openstack-dashboard
>
> ** **
>
> I get the usual install of dependencies - see
> http://paste.openstack.org/show/11649/
>
> I don't do any configuration - but point my browser at this host.
>
> I get a log in screen up, so I log in with an admin user I set up in
> keystone
>
> ** **
>
> I then hit this bug:
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262*
> ***
>
> ** **
>
> You can see the code trying to make a directory /var/www/.novaclient.
>  Given that Apache runs as www-data under Ubuntu  and that /var/www is
> owned by root - this is that problem.  A secure fix is required here.
>
> To overcome this I tried setting write permissions to www-data.  I then
> get the first screen up, but on clicking on links takes me back to the log
> in screen again saying I'm unauthorized for that URI.  I enter my details
> again and then I get presented with the screen I asked for.
>
> On clicking another link, I am taken back to the log in screen again.
>  This is bug
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070*
> ***
>
> ** **
>
> Tested on Chrome 17.0.963.79 and Firefox 11.0
>
> ** **
>
> What am I doing wrong?
>
> ** **
>
> Cheers,
>
> Kev
>
> --
> Kevin Jackson
> @itarchitectkev
>



-- 
Kevin Jackson
@itarchitectkev
___
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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working

2012-03-21 Thread George Mihaiescu
Hi Kevin,

 

Change these lines in "/etc/openstack-dashboard/local_settings.py" and it 
should fix the issue of being kicked off from Dashboard after logging in:

 

 

#CACHE_BACKEND = 'locmem://'

CACHE_BACKEND = 'dummy://'

SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'

 

George

 



From: openstack-bounces+george.mihaiescu=q9@lists.launchpad.net 
[mailto:openstack-bounces+george.mihaiescu=q9@lists.launchpad.net] On 
Behalf Of Kevin Jackson
Sent: Wednesday, March 21, 2012 7:24 AM
To: openstack@lists.launchpad.net
Subject: [Openstack] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't 
get it working

 

Dear all,

I could do with some help.

I raised the following bugs in Horizon, specifically to do with Ubuntu.

 

On a fresh install of Precise I do the following:

 

apt-get update

apt-get dist-upgrade

reboot

apt-get... nova, etc.

configure keystone etc

upload an image

 

all is good at this point

 

I then try and install OpenStack Dashboard:

 

apt-get update

apt-get install openstack-dashboard

 

I get the usual install of dependencies - see 
http://paste.openstack.org/show/11649/

I don't do any configuration - but point my browser at this host.

I get a log in screen up, so I log in with an admin user I set up in keystone

 

I then hit this bug: 
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262

 

You can see the code trying to make a directory /var/www/.novaclient.  Given 
that Apache runs as www-data under Ubuntu  and that /var/www is owned by root - 
this is that problem.  A secure fix is required here.

To overcome this I tried setting write permissions to www-data.  I then get the 
first screen up, but on clicking on links takes me back to the log in screen 
again saying I'm unauthorized for that URI.  I enter my details again and then 
I get presented with the screen I asked for.

On clicking another link, I am taken back to the log in screen again.  This is 
bug https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070

 

Tested on Chrome 17.0.963.79 and Firefox 11.0

 

What am I doing wrong?

 

Cheers,

Kev

-- 
Kevin Jackson
@itarchitectkev

___
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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Kevin Jackson
I'd like to see this cache somewhere that's not part of the document root
of my webserver - it forces me to one of 4 things

1) pre-create this directory and set appropriate permissions [but nothing
has told me to do this]
2) change permissions of my webserver to be non-secure (security risk is
minimised because chances are this is internal, but can't assume too much)
3) have this directory configurable so python-novaclient AND horizon can
make use of this feature in a secure way
4) apply the patch to ignore this feature

either way I agree, it shouldn't fail - but this is a workaround, not a
fix, as there is functionality that is silently being ignored - not by
design, but by a workaround.

As part of the deb install, 1 could happen by:

mkdir /var/www/.novaclient
chown www-data:www-data /var/www/.novaclient
...

Is this a better fix (although seems insecure) - or - is this caching
functionality just irrelevant when using Horizon?
If it is irrelevant (and not a nice to have as that is what you're
implying) then remove from the code.  If its a nice to have, or a better
way of phrasing: an option, give that option to the user to use.

Cheers,

Kev

On 21 March 2012 13:11, Kiall Mac Innes  wrote:

> It needs to create the directory in the first place to enable
> caching.. But - If for whatever reason caching fails that should be no
> reason to blow up and present an error.
>
> Its probably worth highlighting this code is in python-novaclient, not
> horizon. The vast majority of uses cases will be able to cache just fine.
>
> Anyway - The point is - cache if we can, but if we cant, lets not
> interrupt the user.
>
> Thanks,
> Kiall
>
>
> On Wed, Mar 21, 2012 at 12:42 PM, Kevin Jackson  > wrote:
>
>> If the code should just ignore the fact it can't create this directory -
>> what is the point of it needing to attempt to create the directory in the
>> first place?  What is its purpose if its superfluous?
>>
>> try:
>> os.makedirs(cache_dir, 0755)
>> except OSError as e:
>>  # NOTE(kiall): This is typicaly either permission denied while
>>  #  attempting to create the directory, or the directory
>>  #  already exists. Either way, don't fail.
>>  pass
>>
>> Cheers,
>> Kev
>>
>> On 21 March 2012 12:29, Kiall Mac Innes  wrote:
>>
>>> This should fix the issue - https://review.openstack.org/5608
>>>
>>> It duplicates the fix from 5-10 lines below now that the dot files have
>>> been moved into a directory.
>>>
>>> Thanks,
>>> Kiall
>>>
>>> --
>> Kevin Jackson
>> @itarchitectkev
>>
>> ___
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Kevin Jackson
@itarchitectkev
___
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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Kiall Mac Innes
It needs to create the directory in the first place to enable caching.. But
- If for whatever reason caching fails that should be no reason to blow up
and present an error.

Its probably worth highlighting this code is in python-novaclient, not
horizon. The vast majority of uses cases will be able to cache just fine.

Anyway - The point is - cache if we can, but if we cant, lets not interrupt
the user.

Thanks,
Kiall


On Wed, Mar 21, 2012 at 12:42 PM, Kevin Jackson
wrote:

> If the code should just ignore the fact it can't create this directory -
> what is the point of it needing to attempt to create the directory in the
> first place?  What is its purpose if its superfluous?
>
> try:
> os.makedirs(cache_dir, 0755)
> except OSError as e:
>  # NOTE(kiall): This is typicaly either permission denied while
>  #  attempting to create the directory, or the directory
>  #  already exists. Either way, don't fail.
>  pass
>
> Cheers,
> Kev
>
> On 21 March 2012 12:29, Kiall Mac Innes  wrote:
>
>> This should fix the issue - https://review.openstack.org/5608
>>
>> It duplicates the fix from 5-10 lines below now that the dot files have
>> been moved into a directory.
>>
>> Thanks,
>> Kiall
>>
>> --
> Kevin Jackson
> @itarchitectkev
>
> ___
> 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Kevin Jackson
If the code should just ignore the fact it can't create this directory -
what is the point of it needing to attempt to create the directory in the
first place?  What is its purpose if its superfluous?

try:
os.makedirs(cache_dir, 0755)
except OSError as e:
 # NOTE(kiall): This is typicaly either permission denied while
 #  attempting to create the directory, or the directory
 #  already exists. Either way, don't fail.
 pass

Cheers,
Kev

On 21 March 2012 12:29, Kiall Mac Innes  wrote:

> This should fix the issue - https://review.openstack.org/5608
>
> It duplicates the fix from 5-10 lines below now that the dot files have
> been moved into a directory.
>
> Thanks,
> Kiall
>
> --
Kevin Jackson
@itarchitectkev
___
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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Kiall Mac Innes
This should fix the issue - https://review.openstack.org/5608

It duplicates the fix from 5-10 lines below now that the dot files have
been moved into a directory.

Thanks,
Kiall


On Wed, Mar 21, 2012 at 12:05 PM, Chuck Short wrote:

> On Wed, 21 Mar 2012 11:24:00 +
> Kevin Jackson  wrote:
>
> > Dear all,
> > I could do with some help.
> > I raised the following bugs in Horizon, specifically to do with
> > Ubuntu.
> >
> > On a fresh install of Precise I do the following:
> >
> > apt-get update
> > apt-get dist-upgrade
> > reboot
> > apt-get... nova, etc.
> > configure keystone etc
> > upload an image
> >
> > all is good at this point
> >
> > I then try and install OpenStack Dashboard:
> >
> > apt-get update
> > apt-get install openstack-dashboard
> >
> > I get the usual install of dependencies - see
> > http://paste.openstack.org/show/11649/
> > I don't do any configuration - but point my browser at this host.
> > I get a log in screen up, so I log in with an admin user I set up in
> > keystone
> >
> > I then hit this bug:
> >
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262
> >
> > You can see the code trying to make a directory /var/www/.novaclient.
> >  Given that Apache runs as www-data under Ubuntu  and that /var/www is
> > owned by root - this is that problem.  A secure fix is required here.
> > To overcome this I tried setting write permissions to www-data.  I
> > then get the first screen up, but on clicking on links takes me back
> > to the log in screen again saying I'm unauthorized for that URI.  I
> > enter my details again and then I get presented with the screen I
> > asked for. On clicking another link, I am taken back to the log in
> > screen again.  This is bug
> >
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070
> >
> > Tested on Chrome 17.0.963.79 and Firefox 11.0
> >
> > What am I doing wrong?
> >
> > Cheers,
> > Kev
>
> Hi Kev,
>
> Thanks for the bug report we will have a look at this today.
>
> Regards
> chuck
>
> ___
> 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Kiall Mac Innes
This sounds a lot like bug #897885 - In fact, the is nearly identical. I'll
submit a fix in a few mins..

https://bugs.launchpad.net/nova/+bug/897885

https://review.openstack.org/1952

Thanks,
Kiall


On Wed, Mar 21, 2012 at 11:24 AM, Kevin Jackson
wrote:

> Dear all,
> I could do with some help.
> I raised the following bugs in Horizon, specifically to do with Ubuntu.
>
> On a fresh install of Precise I do the following:
>
> apt-get update
> apt-get dist-upgrade
> reboot
> apt-get... nova, etc.
> configure keystone etc
> upload an image
>
> all is good at this point
>
> I then try and install OpenStack Dashboard:
>
> apt-get update
> apt-get install openstack-dashboard
>
> I get the usual install of dependencies - see
> http://paste.openstack.org/show/11649/
> I don't do any configuration - but point my browser at this host.
> I get a log in screen up, so I log in with an admin user I set up in
> keystone
>
> I then hit this bug:
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262
>
> You can see the code trying to make a directory /var/www/.novaclient.
>  Given that Apache runs as www-data under Ubuntu  and that /var/www is
> owned by root - this is that problem.  A secure fix is required here.
> To overcome this I tried setting write permissions to www-data.  I then
> get the first screen up, but on clicking on links takes me back to the log
> in screen again saying I'm unauthorized for that URI.  I enter my details
> again and then I get presented with the screen I asked for.
> On clicking another link, I am taken back to the log in screen again.
>  This is bug
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070
>
> Tested on Chrome 17.0.963.79 and Firefox 11.0
>
> What am I doing wrong?
>
> Cheers,
> Kev
> --
> Kevin Jackson
> @itarchitectkev
>
> ___
> 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Chuck Short
On Wed, 21 Mar 2012 11:24:00 +
Kevin Jackson  wrote:

> Dear all,
> I could do with some help.
> I raised the following bugs in Horizon, specifically to do with
> Ubuntu.
> 
> On a fresh install of Precise I do the following:
> 
> apt-get update
> apt-get dist-upgrade
> reboot
> apt-get... nova, etc.
> configure keystone etc
> upload an image
> 
> all is good at this point
> 
> I then try and install OpenStack Dashboard:
> 
> apt-get update
> apt-get install openstack-dashboard
> 
> I get the usual install of dependencies - see
> http://paste.openstack.org/show/11649/
> I don't do any configuration - but point my browser at this host.
> I get a log in screen up, so I log in with an admin user I set up in
> keystone
> 
> I then hit this bug:
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262
> 
> You can see the code trying to make a directory /var/www/.novaclient.
>  Given that Apache runs as www-data under Ubuntu  and that /var/www is
> owned by root - this is that problem.  A secure fix is required here.
> To overcome this I tried setting write permissions to www-data.  I
> then get the first screen up, but on clicking on links takes me back
> to the log in screen again saying I'm unauthorized for that URI.  I
> enter my details again and then I get presented with the screen I
> asked for. On clicking another link, I am taken back to the log in
> screen again.  This is bug
> https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070
> 
> Tested on Chrome 17.0.963.79 and Firefox 11.0
> 
> What am I doing wrong?
> 
> Cheers,
> Kev

Hi Kev,

Thanks for the bug report we will have a look at this today.

Regards
chuck

___
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 OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working

2012-03-21 Thread Kevin Jackson
Dear all,
I could do with some help.
I raised the following bugs in Horizon, specifically to do with Ubuntu.

On a fresh install of Precise I do the following:

apt-get update
apt-get dist-upgrade
reboot
apt-get... nova, etc.
configure keystone etc
upload an image

all is good at this point

I then try and install OpenStack Dashboard:

apt-get update
apt-get install openstack-dashboard

I get the usual install of dependencies - see
http://paste.openstack.org/show/11649/
I don't do any configuration - but point my browser at this host.
I get a log in screen up, so I log in with an admin user I set up in
keystone

I then hit this bug:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262

You can see the code trying to make a directory /var/www/.novaclient.
 Given that Apache runs as www-data under Ubuntu  and that /var/www is
owned by root - this is that problem.  A secure fix is required here.
To overcome this I tried setting write permissions to www-data.  I then get
the first screen up, but on clicking on links takes me back to the log in
screen again saying I'm unauthorized for that URI.  I enter my details
again and then I get presented with the screen I asked for.
On clicking another link, I am taken back to the log in screen again.  This
is bug
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070

Tested on Chrome 17.0.963.79 and Firefox 11.0

What am I doing wrong?

Cheers,
Kev
-- 
Kevin Jackson
@itarchitectkev
___
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 2012.1 RC1 available

2012-03-20 Thread Thierry Carrez
Hello everyone,

The tarball for the first release candidate for OpenStack Dashboard
(Horizon) 2012.1 (codenamed "Essex") is now available at:

https://launchpad.net/horizon/essex/essex-rc1

Unless release-critical issues are found that warrant a release
candidate respin, this RC1 will be formally released as the 2012.1 final
version. You are therefore strongly encouraged to test and validate it.

You should test the tarballs above, but you also can directly use the
milestone-proposed branch at:

https://github.com/openstack/horizon/tree/milestone-proposed

If you find an issue that could be considered release-critical, please
file it at:

https://bugs.launchpad.net/horizon/+filebug

and tag it "essex-rc-potential" to bring it to Devin's attention.

Note that the "master" branch of Horizon is now open for Folsom
development, feature freeze restrictions no longer apply.

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
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] 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


[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


[Openstack] Horizon and translation timing

2012-01-05 Thread Devin Carlen
Hello all,

We've been discussing how best to handle accepting translation changes since we 
are doing a fairly substantial reworking of the OpenStack Dashboard.

We have decided to do a "string freeze" when the essex-4 milestone closes and 
then to rebuild translation files during the integrated-freeze period in 
between the essex-4 milestone and release.

We have had an unusually large number of changes during this cycle, but we want 
to do the best we can to make sure language support is as complete as possible.

Therefore if you are interested in translations, please plan on contributing 
updates between 2012-03-01 and 2012-03-15.  I know this is a small window but 
this will prevent us from having to repeat the work as various pieces are still 
implemented.

Best,

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


<    1   2