[Openstack] Announcing: S3 Multi-Upload module for SWIFT

2013-05-15 Thread Wyllys Ingersoll

The initial release of a new Swift middleware module that enables support for 
the Amazon S3 Multi-Upload feature is now available at 
http://github.com/wyllys66/s3multi under the Apache License (2.0).  This module 
works in conjunction with the most recently updated 'swift3' module from Fujita 
(http://github.com/fujita/swift3).

The README.md (https://github.com/wyllys66/s3multi/blob/master/README.md) 
describes the installation and dependencies needed to use it in your proxy 
pipeline chain.

Please post any questions/comments/feedback on the 'Issues' page.  
https://github.com/wyllys66/s3multi/issues


Wyllys Ingersoll
Evault, Inc.
___
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] security blueprint related to os binaries

2013-05-14 Thread Wyllys Ingersoll
Agree.  Hardcoding full pathnames is a bad practice in general.


On 5/14/13 11:50 AM, Kevin L. Mitchell kevin.mitch...@rackspace.com
wrote:

On Tue, 2013-05-14 at 18:38 +0300, Vasiliy Khomenko wrote:
 Attacker can put binary in /usr/local/bin for example. on ubuntu that
 path located before /usr/bin.

If the attacker has write access to /usr/local/bin, it's already game
over; I don't see what we can do to nova that can mitigate something
that disastrous.

-- 
Kevin L. Mitchell kevin.mitch...@rackspace.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


___
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] security blueprint related to os binaries

2013-05-14 Thread Wyllys Ingersoll

What attack does hardcoding a path to a specific executable protect against?

On the downside, It makes the code far less portable, harder to maintain, and 
less flexible in the face of alternative directory structures and system 
configurations.


From: Stanislav Pugachev 
spugac...@griddynamics.commailto:spugac...@griddynamics.com
Date: Tuesday, May 14, 2013 12:20 PM
To: Wyllys Ingersoll 
wyllys.ingers...@evault.commailto:wyllys.ingers...@evault.com
Cc: Kevin L. Mitchell 
kevin.mitch...@rackspace.commailto:kevin.mitch...@rackspace.com, 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] security blueprint related to os binaries

from the security point of view its not so bad practice


On Tue, May 14, 2013 at 6:57 PM, Wyllys Ingersoll 
wyllys.ingers...@evault.commailto:wyllys.ingers...@evault.com wrote:
Agree.  Hardcoding full pathnames is a bad practice in general.


On 5/14/13 11:50 AM, Kevin L. Mitchell 
kevin.mitch...@rackspace.commailto:kevin.mitch...@rackspace.com
wrote:

On Tue, 2013-05-14 at 18:38 +0300, Vasiliy Khomenko wrote:
 Attacker can put binary in /usr/local/bin for example. on ubuntu that
 path located before /usr/bin.

If the attacker has write access to /usr/local/bin, it's already game
over; I don't see what we can do to nova that can mitigate something
that disastrous.

--
Kevin L. Mitchell 
kevin.mitch...@rackspace.commailto:kevin.mitch...@rackspace.com


___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto: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.netmailto: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 nova endpoint usage question

2013-05-09 Thread Wyllys Ingersoll

The Horizon UI novaclient method requests nova endpoints from the service 
catalog without specifying an endpoint_type parameter.  Would it be more 
correct for those requests to default to the 'internalURL' instead?   There are 
use cases where the publicURL is not exposed or defined, but if you leave 
publicURL undefined it causes some operations to fail because the code assumes 
the  publicURL is always present and valid.

The default for horizon-keystone service requests is to use the 'internalURL' 
and can be configured by the OPENSTACK_ENDPOINT_TYPE parameter in 
local_settings.py, but that doesn't seem to apply to any of the horizon-nova 
operations.  Perhaps it should, or another parameter could be created to affect 
horizon-nova interactions.

-Wyllys Ingersoll
 Evault

___
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 nova endpoint usage question

2013-05-09 Thread Wyllys Ingersoll
Will do, thanks.



On May 9, 2013, at 7:26 PM, Gabriel Hurley 
gabriel.hur...@nebula.commailto:gabriel.hur...@nebula.com wrote:

If that config option is not being respected for the Nova API calls that’s a 
bug. Please file a ticket on Launchpad so we can track fixing it.

Thanks!


-  Gabriel

From: Openstack 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Wyllys Ingersoll
Sent: Thursday, May 09, 2013 1:19 PM
To: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: [Openstack] horizon nova endpoint usage question


The Horizon UI novaclient method requests nova endpoints from the service 
catalog without specifying an endpoint_type parameter.  Would it be more 
correct for those requests to default to the 'internalURL' instead?   There are 
use cases where the publicURL is not exposed or defined, but if you leave 
publicURL undefined it causes some operations to fail because the code assumes 
the  publicURL is always present and valid.

The default for horizon-keystone service requests is to use the 'internalURL' 
and can be configured by the OPENSTACK_ENDPOINT_TYPE parameter in 
local_settings.py, but that doesn't seem to apply to any of the horizon-nova 
operations.  Perhaps it should, or another parameter could be created to affect 
horizon-nova interactions.

-Wyllys Ingersoll
 Evault

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

2013-03-26 Thread Wyllys Ingersoll

Perhaps this is documented but I can't seem to find it…  

I want to use ceilometer to show usage from the swift objectstore.  What would 
the correct command be to extract that information? Currently, the various 
-list commands just spit out various meter types along with resource and 
project id values.

Thanks,
  Wyllys Ingersoll
  EVault


On Mar 26, 2013, at 11:47 AM, Julien Danjou jul...@danjou.info wrote:

 Hi,
 
 We're pleased to announce that the RC1 version for the Grizzly release
 of Ceilometer is available!
 
   https://launchpad.net/ceilometer/grizzly/grizzly-rc1
 
 Unless release-critical issues are found that warrant a release
 candidate respin, this version will be formally released as the
 Ceilometer 2013.1 version on April 4. You are therefore strongly
 encouraged to test and validate this tarball.
 
 If you find an issue that could be considered release-critical, please
 file it at:
 
 https://bugs.launchpad.net/ceilometer/+filebug
 
 Note that the master branch for Ceilometer is now open for Havana
 development, and feature freeze restriction no longer apply.
 
 -- 
 Julien Danjou
 -- Free Software hacker - freelance consultant
 -- http://julien.danjou.info
 ATT1___
 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] Ceilometer question

2013-03-26 Thread Wyllys Ingersoll
Thanks, Ill try that and see how it goes.

Wyllys



On Mar 26, 2013, at 12:56 PM, Doug Hellmann 
doug.hellm...@dreamhost.commailto:doug.hellm...@dreamhost.com wrote:

You want the statistics command from the v2 API.

ceilometer --ceilometer-api-version 2 help statistics

The CLI needs a little work to make the options clear, but the API 
documentation may help explain: 
http://docs.openstack.org/developer/ceilometer/webapi/v2.html

Doug

On Tue, Mar 26, 2013 at 12:22 PM, Wyllys Ingersoll 
wyllys.ingers...@evault.commailto:wyllys.ingers...@evault.com wrote:

Perhaps this is documented but I can't seem to find it…

I want to use ceilometer to show usage from the swift objectstore.  What would 
the correct command be to extract that information? Currently, the various 
-list commands just spit out various meter types along with resource and 
project id values.

Thanks,
  Wyllys Ingersoll
  EVault


On Mar 26, 2013, at 11:47 AM, Julien Danjou 
jul...@danjou.infomailto:jul...@danjou.info wrote:

 Hi,

 We're pleased to announce that the RC1 version for the Grizzly release
 of Ceilometer is available!

   https://launchpad.net/ceilometer/grizzly/grizzly-rc1

 Unless release-critical issues are found that warrant a release
 candidate respin, this version will be formally released as the
 Ceilometer 2013.1 version on April 4. You are therefore strongly
 encouraged to test and validate this tarball.

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

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

 Note that the master branch for Ceilometer is now open for Havana
 development, and feature freeze restriction no longer apply.

 --
 Julien Danjou
 -- Free Software hacker - freelance consultant
 -- http://julien.danjou.info
 ATT1___
 Mailing list: https://launchpad.net/~openstack
 Post to : 
 openstack@lists.launchpad.netmailto: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.netmailto: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] register a new panel in overrides.py

2013-03-20 Thread Wyllys Ingersoll

Can someone give a pointer to how one goes about adding a new panel to an 
existing panel using overrides.py ?

I know my panel is working because if I hardcode it into an existing 
dashboard.py file, it is found and displayed.  I'd prefer to put it in 
overrides.py instead and am wondering how that would be coded.

thanks,
  Wyllys


___
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] register a new panel in overrides.py

2013-03-20 Thread Wyllys Ingersoll

Thats not working for me.

My module is installed in 
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings as 'ec2list', it 
is in the python path so thats not the issue.

overrides.py looks like this:

import horizon
import logging

settings= horizon.get_dashboard('settings')

LOG = logging.getLogger(__name__)

import ec2list 

try:
settings.register(ec2list)
except Exception as exc:
LOG.debug(Error registering ec2list panel: %s % exc)
-

I've also tried using ec2list.__class__, but then I get the following error:
Error registering ec2list panel: Only Panel classes or subclasses may be 
registered.

However, my ec2list Panel is a valid panel, as is evident by the fact that when 
I put it directly into the settings/dashboard.py file list of panels, it works 
just fine.  Here is the panel.py file:

--
from django.utils.translation import ugettext_lazy as _

import horizon
from horizon.dashboards.settings import dashboard

class EC2ListPanel(horizon.Panel):
name = _(EC2 List Credentials)
slug = 'ec2list'

dashboard.Settings.register(EC2ListPanel)
-






On Mar 20, 2013, at 12:34 PM, Lyle, David (Cloud Services) 
david.l...@hp.com wrote:

 There's a couple of changes that you need to make...
 
 First, edit the overrides.py file:  (e.g., if we wanted to add the panel to 
 the admin dashboard so this uses the admin dashboard slug: 'admin')
 
 import horizon
 from path_to_module.panel import YourNewPanelClass 
 
 admin_dashboard = horizon.get_dashboard(admin)
 admin_dashboard.register(YourNewPanelClass)
 
 
 Next, make sure your overrides.py file is being called in your settings.py
 
 HORIZON_CONFIG = {
   dashboards = ('project', 'admin','settings'),
   ...,
   'customization_module': 'your_base_module.overrides'
 }
 
 -Dave
 
 -Original Message-
 From: openstack-bounces+david.lyle=hp@lists.launchpad.net 
 [mailto:openstack-bounces+david.lyle=hp@lists.launchpad.net] On Behalf Of 
 Wyllys Ingersoll
 Sent: Wednesday, March 20, 2013 9:50 AM
 To: openstack@lists.launchpad.net
 Subject: [Openstack] register a new panel in overrides.py
 
 
 Can someone give a pointer to how one goes about adding a new panel to an 
 existing panel using overrides.py ?
 
 I know my panel is working because if I hardcode it into an existing 
 dashboard.py file, it is found and displayed.  I'd prefer to put it in 
 overrides.py instead and am wondering how that would be coded.
 
 thanks,
  Wyllys
 
 
 ___
 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] register a new panel in overrides.py

2013-03-20 Thread Wyllys Ingersoll

Neither of those works.

When I use settings.register(ec2list.EC2ListPanel)  I get this error:
Error registering panel: 'module' object has no attribute 'EC2ListPanel'

If I just use:  settings.register(EC2ListPanel), I get the same sort of error:
Error registering panel: name 'EC2ListPanel' is not defined


-Wyllys


On Mar 20, 2013, at 1:10 PM, Lyle, David (Cloud Services) david.l...@hp.com 
wrote:

 But you should be registering the Panel like
 settings.register(EC2ListPanel)
 or settings.register(ec2list.EC2ListPanel)
 
 not ec2list
 
 -Dave
 
 -Original Message-
 From: Wyllys Ingersoll [mailto:wyllys.ingers...@evault.com] 
 Sent: Wednesday, March 20, 2013 11:04 AM
 To: Lyle, David (Cloud Services)
 Cc: openstack@lists.launchpad.net
 Subject: Re: register a new panel in overrides.py
 
 
 Thats not working for me.
 
 My module is installed in 
 /usr/lib/python2.7/dist-packages/horizon/dashboards/settings as 'ec2list', it 
 is in the python path so thats not the issue.
 
 overrides.py looks like this:
 
 import horizon
 import logging
 
 settings= horizon.get_dashboard('settings')
 
 LOG = logging.getLogger(__name__)
 
 import ec2list 
 
 try:
settings.register(ec2list)
 except Exception as exc:
LOG.debug(Error registering ec2list panel: %s % exc)
 -
 
 I've also tried using ec2list.__class__, but then I get the following error:
 Error registering ec2list panel: Only Panel classes or subclasses may be 
 registered.
 
 However, my ec2list Panel is a valid panel, as is evident by the fact that 
 when I put it directly into the settings/dashboard.py file list of panels, it 
 works just fine.  Here is the panel.py file:
 
 --
 from django.utils.translation import ugettext_lazy as _
 
 import horizon
 from horizon.dashboards.settings import dashboard
 
 class EC2ListPanel(horizon.Panel):
   name = _(EC2 List Credentials)
   slug = 'ec2list'
 
 dashboard.Settings.register(EC2ListPanel)
 -
 
 
 
 
 
 
 On Mar 20, 2013, at 12:34 PM, Lyle, David (Cloud Services) 
 david.l...@hp.com wrote:
 
 There's a couple of changes that you need to make...
 
 First, edit the overrides.py file:  (e.g., if we wanted to add the panel to 
 the admin dashboard so this uses the admin dashboard slug: 'admin')
 
 import horizon
 from path_to_module.panel import YourNewPanelClass 
 
 admin_dashboard = horizon.get_dashboard(admin)
 admin_dashboard.register(YourNewPanelClass)
 
 
 Next, make sure your overrides.py file is being called in your settings.py
 
 HORIZON_CONFIG = {
  dashboards = ('project', 'admin','settings'),
  ...,
  'customization_module': 'your_base_module.overrides'
 }
 
 -Dave
 
 -Original Message-
 From: openstack-bounces+david.lyle=hp@lists.launchpad.net 
 [mailto:openstack-bounces+david.lyle=hp@lists.launchpad.net] On Behalf 
 Of Wyllys Ingersoll
 Sent: Wednesday, March 20, 2013 9:50 AM
 To: openstack@lists.launchpad.net
 Subject: [Openstack] register a new panel in overrides.py
 
 
 Can someone give a pointer to how one goes about adding a new panel to an 
 existing panel using overrides.py ?
 
 I know my panel is working because if I hardcode it into an existing 
 dashboard.py file, it is found and displayed.  I'd prefer to put it in 
 overrides.py instead and am wondering how that would be coded.
 
 thanks,
 Wyllys
 
 
 ___
 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] register a new panel in overrides.py

2013-03-20 Thread Wyllys Ingersoll

OK, I figured out...

The import statement needs to look like this:

from ec2list.panel import EC2ListPanel

I was just using from ec2list import EC2ListPanel which was insufficient 
since it has an empty __init__.py 
adding the .panel (which you suggested in your original email, but I didn't 
quite grok it the first time) fixed it.

The register statement in overrides.py looks like:
try:
settings.register(EC2ListPanel)
except Exception as exc:
LOG.debug(Error registering panel: %s % exc)


Now it's working.  Thanks for the help.

-Wyllys




On Mar 20, 2013, at 1:24 PM, Wyllys Ingersoll wyllys.ingers...@evault.com 
wrote:

 
 Neither of those works.
 
 When I use settings.register(ec2list.EC2ListPanel)  I get this error:
 Error registering panel: 'module' object has no attribute 'EC2ListPanel'
 
 If I just use:  settings.register(EC2ListPanel), I get the same sort of error:
 Error registering panel: name 'EC2ListPanel' is not defined
 
 
 -Wyllys
 
 
 On Mar 20, 2013, at 1:10 PM, Lyle, David (Cloud Services) 
 david.l...@hp.com wrote:
 
 But you should be registering the Panel like
 settings.register(EC2ListPanel)
 or settings.register(ec2list.EC2ListPanel)
 
 not ec2list
 
 -Dave
 
 -Original Message-
 From: Wyllys Ingersoll [mailto:wyllys.ingers...@evault.com] 
 Sent: Wednesday, March 20, 2013 11:04 AM
 To: Lyle, David (Cloud Services)
 Cc: openstack@lists.launchpad.net
 Subject: Re: register a new panel in overrides.py
 
 
 Thats not working for me.
 
 My module is installed in 
 /usr/lib/python2.7/dist-packages/horizon/dashboards/settings as 'ec2list', 
 it is in the python path so thats not the issue.
 
 overrides.py looks like this:
 
 import horizon
 import logging
 
 settings= horizon.get_dashboard('settings')
 
 LOG = logging.getLogger(__name__)
 
 import ec2list 
 
 try:
   settings.register(ec2list)
 except Exception as exc:
   LOG.debug(Error registering ec2list panel: %s % exc)
 -
 
 I've also tried using ec2list.__class__, but then I get the following error:
 Error registering ec2list panel: Only Panel classes or subclasses may be 
 registered.
 
 However, my ec2list Panel is a valid panel, as is evident by the fact that 
 when I put it directly into the settings/dashboard.py file list of panels, 
 it works just fine.  Here is the panel.py file:
 
 --
 from django.utils.translation import ugettext_lazy as _
 
 import horizon
 from horizon.dashboards.settings import dashboard
 
 class EC2ListPanel(horizon.Panel):
  name = _(EC2 List Credentials)
  slug = 'ec2list'
 
 dashboard.Settings.register(EC2ListPanel)
 -
 
 
 
 
 
 
 On Mar 20, 2013, at 12:34 PM, Lyle, David (Cloud Services) 
 david.l...@hp.com wrote:
 
 There's a couple of changes that you need to make...
 
 First, edit the overrides.py file:  (e.g., if we wanted to add the panel to 
 the admin dashboard so this uses the admin dashboard slug: 'admin')
 
 import horizon
 from path_to_module.panel import YourNewPanelClass 
 
 admin_dashboard = horizon.get_dashboard(admin)
 admin_dashboard.register(YourNewPanelClass)
 
 
 Next, make sure your overrides.py file is being called in your settings.py
 
 HORIZON_CONFIG = {
 dashboards = ('project', 'admin','settings'),
 ...,
 'customization_module': 'your_base_module.overrides'
 }
 
 -Dave
 
 -Original Message-
 From: openstack-bounces+david.lyle=hp@lists.launchpad.net 
 [mailto:openstack-bounces+david.lyle=hp@lists.launchpad.net] On Behalf 
 Of Wyllys Ingersoll
 Sent: Wednesday, March 20, 2013 9:50 AM
 To: openstack@lists.launchpad.net
 Subject: [Openstack] register a new panel in overrides.py
 
 
 Can someone give a pointer to how one goes about adding a new panel to an 
 existing panel using overrides.py ?
 
 I know my panel is working because if I hardcode it into an existing 
 dashboard.py file, it is found and displayed.  I'd prefer to put it in 
 overrides.py instead and am wondering how that would be coded.
 
 thanks,
 Wyllys
 
 
 ___
 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


[Openstack] new horizon settings panel not recognized

2013-03-18 Thread Wyllys Ingersoll

I'm trying to add a new panel to the 'settings' dashboard and am having no luck 
at all.  I've read the docs and verified that things are placed and named 
correctly, but no matter what, the error is always the same: 'Panel with slug 
ec2list is not registered with Dashboard settings.

Basically, I copied the entire 'ec2' tree to 'ec2list' and renamed the relevant 
classes in panels.py, the templates directory, and so on, so that its a 
complete copy of the (working) ec2 panel, but with  unique class names and 
slugs.  However, even after adding it to the list of panels in 
settings/dashboard.py and restarting apache the Settings dashboard registers 
and logs an error about the new panel not being registered with the settings 
panel.
 
I know this is supposed to be auto discovered since it lives in the same tree 
as the other settings panels and the permissions are all the same, etc etc.

I have no idea whats wrong, even with debug logging enabled for horizon, there 
is precious little information about what's wrong or why it is failing to 
register or get discovered.

Any suggestions ?

Wyllys Ingersoll

The settings dashboard.py Settings class looks like this:

class Settings(horizon.Dashboard):
name = _(Settings)
slug = settings
try:
juju_panel = getattr(settings, 'ENABLE_JUJU_PANEL')
if juju_panel == True:
panels = ('user', 'project', 'ec2', 'ec2list', 'juju')
else:
panels = ('user', 'project', 'ec2list', 'ec2')
except Exception as exc:
panels = ('user', 'project', 'ec2', 'ec2list')

default_panel = 'ec2'
nav = False


horizon.register(Settings)



___
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 logging?

2013-03-15 Thread Wyllys Ingersoll

I want to put some debug logging statements in a custom overrides.py module 
for Horizon.  But I can't figure out where the messages will be logged.  They 
don't go in the apache logs and they don't appear in any of the nova logs.  
Horizon doesn't appear to have its own logging, so Im a little stumped.

Im using the standard LOGGING definition in 
/etc/openstack_dashboard/local_settings.py:

LOGGING = {
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_existing_loggers is True,
# django.db.backends will still log unless it is disabled explicitly.
'disable_existing_loggers': False,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
'console': {
# Set the level to DEBUG for verbose output logging.
'level': 'DEBUG',
'class': 'logging.StreamHandler',
},
},
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
},
'horizon': {
'handlers': ['console'],
'propagate': False,
},
'openstack_dashboard': {
'handlers': ['console'],
'propagate': False,
},
'novaclient': {
'handlers': ['console'],
'propagate': False,
},
'keystoneclient': {
'handlers': ['console'],
'propagate': False,
},
'glanceclient': {
'handlers': ['console'],
'propagate': False,
},
'nose.plugins.manager': {
'handlers': ['console'],
'propagate': False,
}
}
}


My custom override module just uses 
LOG = logging.getLogger(__name__)

and then when I want to log something, I'm using:
LOG.debug(Some message…)

Ideally, I think I'd like to have horizon stuff go into its own log file, but 
if that's too involved, I'd be happy to have them in the standard syslog file 
or even one of the nova logs. Any suggestions here would be greatly appreciated.

thanks,
  Wyllys


___
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] download ec2 creds fails consistently in horizon

2013-03-15 Thread Wyllys Ingersoll

I am able to login as a non-admin user and access the containers.  

In addition to missing nova-cert, I also had to change the keystoneauth 
settings in /etc/swift/proxy-server.conf to add Member to the operator_roles 
list, which I suppose is equivalent to making a Member user the equivalent of 
an administrator for Swift.

-Wyllys


On Mar 15, 2013, at 1:02 PM, Jay Pipes jaypi...@gmail.com wrote:

 It's actually not nova-cert that you need. It is the Keystone EC2
 credentials API extension that is the problem. It only works for users
 with admin role.
 
 I logged a bug on it and am working on a fix:
 
 https://bugs.launchpad.net/keystone/+bug/1136190
 
 Best,
 -jay
 
 On 03/14/2013 10:57 AM, Wyllys Ingersoll wrote:
 
 I figured it out - nova-cert was not installed and running.  I need to add 
 this to my setup when EC2 is enabled, I wasn't aware of the dependency.
 
 -Wyllys
 
 
 
 On Mar 14, 2013, at 10:35 AM, Wyllys Ingersoll wyllys.ingers...@evault.com 
 wrote:
 
 
 I have EC2 configured correctly as far as I can tell because I am able to 
 view my containers using the S3 APIs and S3 tools such as CyberDuck or 
 s3curl.pl, using ec2 credentials returned by the keystone command line tool.
 
 However, when I use the Horizon user settings interface and select 
 Download EC2 Credentials, nothing happens and it eventually returns yet 
 another System Error.  
 
 According to the logs, the failure is because the call to request 
 os-certificates is timing out.  I know this is probably because some 
 other nova service is not running, but Im not sure which one it needs to 
 complete this transaction.  It'd be nice if the error message somewhere 
 that indicated which service was not responding or what to do about it.   
 Can someone tell me which nova service I need to have running and 
 configured to issue os-certificates?
 
 Also, I really only want the EC2 credentials to be created and downloaded, 
 Im not so much interested in the X509 certificates at this point.  It'd be 
 nice if the user settings EC2 panel had more options, such as just creating 
 and/or listing the EC2 access ID and Key for a particular user rather than 
 assuming you want/need everything all at once.
 
 thanks,
 Wyllys Ingersoll
 EVault
 
 
 
 ___
 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] download ec2 creds fails consistently in horizon

2013-03-15 Thread Wyllys Ingersoll

Yup, you are correct, I confused 2 different issues.  sorry for the confusion…




On Mar 15, 2013, at 2:58 PM, Jay Pipes jaypi...@gmail.com wrote:

 On 03/15/2013 01:12 PM, Wyllys Ingersoll wrote:
 I am able to login as a non-admin user and access the containers.  
 
 Your original post talked about the Download EC2 Credentials link not
 working. That's what I was referring to. Nothing to do with Swift
 containers.
 
 -jay
 
 In addition to missing nova-cert, I also had to change the keystoneauth 
 settings in /etc/swift/proxy-server.conf to add Member to the 
 operator_roles list, which I suppose is equivalent to making a Member user 
 the equivalent of an administrator for Swift.
 
 -Wyllys
 
 
 On Mar 15, 2013, at 1:02 PM, Jay Pipes jaypi...@gmail.com wrote:
 
 It's actually not nova-cert that you need. It is the Keystone EC2
 credentials API extension that is the problem. It only works for users
 with admin role.
 
 I logged a bug on it and am working on a fix:
 
 https://bugs.launchpad.net/keystone/+bug/1136190
 
 Best,
 -jay
 
 On 03/14/2013 10:57 AM, Wyllys Ingersoll wrote:
 
 I figured it out - nova-cert was not installed and running.  I need to add 
 this to my setup when EC2 is enabled, I wasn't aware of the dependency.
 
 -Wyllys
 
 
 
 On Mar 14, 2013, at 10:35 AM, Wyllys Ingersoll 
 wyllys.ingers...@evault.com wrote:
 
 
 I have EC2 configured correctly as far as I can tell because I am able to 
 view my containers using the S3 APIs and S3 tools such as CyberDuck or 
 s3curl.pl, using ec2 credentials returned by the keystone command line 
 tool.
 
 However, when I use the Horizon user settings interface and select 
 Download EC2 Credentials, nothing happens and it eventually returns yet 
 another System Error.  
 
 According to the logs, the failure is because the call to request 
 os-certificates is timing out.  I know this is probably because some 
 other nova service is not running, but Im not sure which one it needs to 
 complete this transaction.  It'd be nice if the error message somewhere 
 that indicated which service was not responding or what to do about it.   
 Can someone tell me which nova service I need to have running and 
 configured to issue os-certificates?
 
 Also, I really only want the EC2 credentials to be created and 
 downloaded, Im not so much interested in the X509 certificates at this 
 point.  It'd be nice if the user settings EC2 panel had more options, 
 such as just creating and/or listing the EC2 access ID and Key for a 
 particular user rather than assuming you want/need everything all at once.
 
 thanks,
 Wyllys Ingersoll
 EVault
 
 
 
 ___
 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


[Openstack] download ec2 creds fails consistently in horizon

2013-03-14 Thread Wyllys Ingersoll

I have EC2 configured correctly as far as I can tell because I am able to view 
my containers using the S3 APIs and S3 tools such as CyberDuck or s3curl.pl, 
using ec2 credentials returned by the keystone command line tool.

However, when I use the Horizon user settings interface and select Download 
EC2 Credentials, nothing happens and it eventually returns yet another System 
Error.  

According to the logs, the failure is because the call to request 
os-certificates is timing out.  I know this is probably because some other 
nova service is not running, but Im not sure which one it needs to complete 
this transaction.  It'd be nice if the error message somewhere that indicated 
which service was not responding or what to do about it.   Can someone tell me 
which nova service I need to have running and configured to issue 
os-certificates?

Also, I really only want the EC2 credentials to be created and downloaded, Im 
not so much interested in the X509 certificates at this point.  It'd be nice if 
the user settings EC2 panel had more options, such as just creating and/or 
listing the EC2 access ID and Key for a particular user rather than assuming 
you want/need everything all at once.

thanks,
  Wyllys Ingersoll
  EVault



___
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] download ec2 creds fails consistently in horizon

2013-03-14 Thread Wyllys Ingersoll

I figured it out - nova-cert was not installed and running.  I need to add this 
to my setup when EC2 is enabled, I wasn't aware of the dependency.

-Wyllys



On Mar 14, 2013, at 10:35 AM, Wyllys Ingersoll wyllys.ingers...@evault.com 
wrote:

 
 I have EC2 configured correctly as far as I can tell because I am able to 
 view my containers using the S3 APIs and S3 tools such as CyberDuck or 
 s3curl.pl, using ec2 credentials returned by the keystone command line tool.
 
 However, when I use the Horizon user settings interface and select Download 
 EC2 Credentials, nothing happens and it eventually returns yet another 
 System Error.  
 
 According to the logs, the failure is because the call to request 
 os-certificates is timing out.  I know this is probably because some other 
 nova service is not running, but Im not sure which one it needs to complete 
 this transaction.  It'd be nice if the error message somewhere that indicated 
 which service was not responding or what to do about it.   Can someone tell 
 me which nova service I need to have running and configured to issue 
 os-certificates?
 
 Also, I really only want the EC2 credentials to be created and downloaded, Im 
 not so much interested in the X509 certificates at this point.  It'd be nice 
 if the user settings EC2 panel had more options, such as just creating and/or 
 listing the EC2 access ID and Key for a particular user rather than assuming 
 you want/need everything all at once.
 
 thanks,
  Wyllys Ingersoll
  EVault
 
 
 
 ___
 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] swift containers panel permissions?

2013-03-13 Thread Wyllys Ingersoll

On Mar 12, 2013, at 6:56 PM, Kieran Spear kisp...@gmail.com wrote:

 Hi Wyllys,
 
 On 13 March 2013 04:19, Wyllys Ingersoll wyllys.ingers...@evault.com wrote:
 Can someone point me to docs describing how to add/modify/delete permissions 
 for a horizon panel?
 
 I want a non-admin user to be able to access the Swift object-store 
 containers panel in horizon.  Currently, the containers panel.py has the 
 permissions set to:
permissions = ('openstack.services.object-store',),
 
 Only users with Admin role seem to have access to this panel.  Can this be 
 changed, and if so, where do I look to make the changes?
 
 This permission comes from your keystone service catalog. If you have
 an object-store entry in your catalog, then all users should see
 this.


I figured it out.  The swift proxy-config had the following entry:

[filter:keystoneauth]
use = egg:swift#keystoneauth
operator_roles = admin, swiftoperator

But I did not have any swift operator role defined. I must have 
cut-and-pasted that entry from an online guide somewhere.  I changed 
swiftoperator to Member and now the non-admin users can access the 
container information.

thanks,
-Wyllys




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


[Openstack] swift containers panel permissions?

2013-03-12 Thread Wyllys Ingersoll
Can someone point me to docs describing how to add/modify/delete permissions 
for a horizon panel?

I want a non-admin user to be able to access the Swift object-store containers 
panel in horizon.  Currently, the containers panel.py has the permissions set 
to:
permissions = ('openstack.services.object-store',),

Only users with Admin role seem to have access to this panel.  Can this be 
changed, and if so, where do I look to make the changes?

Also, in general, its pretty ugly for the WSGI server to barf up an Internal 
Server Error for a simple permissions issue.  Has anyone considered making 
Nova/Horizon fail a little more gracefully in the face of errors rather than 
the current HTTP 500 status messages?


thanks,
  Wyllys Ingersoll
  eVault



___
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] keystone-manage db_sync failures

2013-03-05 Thread Wyllys Ingersoll
I keep getting a failure when trying to configure keystone.  keystone-manage 
seems to have issues with sqlalchemy.

Here are my versions:

python-keystoneclient: 1:0.1.3-0ubuntu1.1~cloud0
python-sqlalchemy:  0.7.8-1ubuntu1~cloud0
python-migrate:  0.7.2-1ubuntu1

Any ideas??

$ keystone-manage db_sync
Traceback (most recent call last):
  File /usr/bin/keystone-manage, line 28, in module
cli.main(argv=sys.argv, config_files=config_files)
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 164, in main
return run(cmd, (args[:1] + args[2:]))
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 147, in run
return CMDS[cmd](argv=args).run()
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 35, in run
return self.main()
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 54, in main
driver = importutils.import_object(getattr(CONF, k).driver)
  File 
/usr/lib/python2.7/dist-packages/keystone/openstack/common/importutils.py, 
line 40, in import_object
return import_class(import_str)(*args, **kwargs)
  File 
/usr/lib/python2.7/dist-packages/keystone/openstack/common/importutils.py, 
line 30, in import_class
__import__(mod_str)
  File /usr/lib/python2.7/dist-packages/keystone/identity/backends/sql.py, 
line 22, in module
from keystone.common.sql import migration
  File /usr/lib/python2.7/dist-packages/keystone/common/sql/migration.py, 
line 23, in module
from migrate.versioning import api as versioning_api
  File /usr/lib/python2.7/dist-packages/migrate/versioning/api.py, line 33, 
in module
from migrate.versioning import (repository, schema, version,
  File /usr/lib/python2.7/dist-packages/migrate/versioning/schema.py, line 
10, in module
from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions


___
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] keystone-manage db_sync failures

2013-03-05 Thread Wyllys Ingersoll


I saw that bug, but that was not the problem because I had the right versions 
of all of those pieces.

The problem arose when I had to change the IP addr of my host.  I updated all 
of the config files and the endpoints in the keystone DB, but still nova was 
pulling the old IP addr from somewhere, but I could not figure out where it was 
coming from.  It wasn't in the DB and it wasn't in any of the config files.  I 
finally gave up and re-installed the whole thing from scratch.  Luckily, it was 
in a VM that I was using for testing so I didn't lose any real data or anything 
and the re-install was quick and smooth.

I still have no idea what went wrong and my lasting impression is that the 
whole thing is a house of cards that is still very fragile to the slightest 
inconsistencies.

-Wyllys


On Mar 5, 2013, at 9:42 PM, Lei Zhang 
zhang.lei@gmail.commailto:zhang.lei@gmail.com wrote:

see https://bugs.launchpad.net/keystone/+bug/1073569 bug


On Wed, Mar 6, 2013 at 2:18 AM, Miller, Mark M (EB SW Cloud - RD - Corvallis) 
mark.m.mil...@hp.commailto:mark.m.mil...@hp.com wrote:
Try adding the config file name to the command line:

 keystone-manage --config-file /etc/keystone/keystone.conf db_sync

Mark

-Original Message-
From: 
openstack-bounces+mark.m.miller=hp@lists.launchpad.netmailto:hp@lists.launchpad.net
 
[mailto:openstack-bounces+mark.m.millermailto:openstack-bounces%2Bmark.m.miller=hp@lists.launchpad.netmailto:hp@lists.launchpad.net]
 On Behalf Of Wyllys Ingersoll
Sent: Tuesday, March 05, 2013 8:27 AM
To: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: [Openstack] keystone-manage db_sync failures

I keep getting a failure when trying to configure keystone.  keystone-manage 
seems to have issues with sqlalchemy.

Here are my versions:

python-keystoneclient: 1:0.1.3-0ubuntu1.1~cloud0
python-sqlalchemy:  0.7.8-1ubuntu1~cloud0
python-migrate:  0.7.2-1ubuntu1

Any ideas??

$ keystone-manage db_sync
Traceback (most recent call last):
  File /usr/bin/keystone-manage, line 28, in module
cli.main(argv=sys.argv, config_files=config_files)
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 164, in main
return run(cmd, (args[:1] + args[2:]))
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 147, in run
return CMDS[cmd](argv=args).run()
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 35, in run
return self.main()
  File /usr/lib/python2.7/dist-packages/keystone/cli.py, line 54, in main
driver = importutils.import_object(getattr(CONF, k).driver)
  File 
/usr/lib/python2.7/dist-packages/keystone/openstack/common/importutils.py, 
line 40, in import_object
return import_class(import_str)(*args, **kwargs)
  File 
/usr/lib/python2.7/dist-packages/keystone/openstack/common/importutils.py, 
line 30, in import_class
__import__(mod_str)
  File /usr/lib/python2.7/dist-packages/keystone/identity/backends/sql.py, 
line 22, in module
from keystone.common.sql import migration
  File /usr/lib/python2.7/dist-packages/keystone/common/sql/migration.py, 
line 23, in module
from migrate.versioning import api as versioning_api
  File /usr/lib/python2.7/dist-packages/migrate/versioning/api.py, line 33, 
in module
from migrate.versioning import (repository, schema, version,
  File /usr/lib/python2.7/dist-packages/migrate/versioning/schema.py, line 
10, in module
from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions


___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto: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.netmailto:openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



--
Lei Zhang

Blog: http://jeffrey4l.github.comhttp://jeffrey4l.github.com/
twitter/weibo: @jeffrey4l

___
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 customization_module example???

2013-03-04 Thread Wyllys Ingersoll
Can someone elaborate on how to use the customization_module setting in 
local_settings.py?

Im running openstack-dashboard Version: 2012.2.1-0ubuntu1~cloud0 on Ubuntu 
12.04 LTS.

I read the documentation here - 
http://docs.openstack.org/developer/horizon/topics/customizing.html but several 
things are still unclear to me, even for a simple mod such as removing and/or 
renaming some panels.

I want to just make a few modifications to the standard dashboard and panel, I 
don't want to write a whole new dashboard or write entirely new panels.  I just 
want to eliminate some of the existing ones (as a start).

For example, say I want to eliminate the volumes and instances panels from 
the project dashboards.  I'd prefer to NOT have to modifying the original 
system modules deep down in 
/usr/share/pyshared/horizon/dashboards/nova/dashboard.py.  I hope that's not 
the answer.

The documentation seems to indicate that this could be done with the 
customization_module, but I can't figure out where it goes or what the 
structure would look like.

Questions:
- If I name the customization_module as my_dashboard.overrides - where does 
the overrides file need to be created (i.e. what directory - full path) ?
- Does it require other files to be present in that directory also such as the 
__init__.py or models.py  like a complete dashboard would?

I think once I can figure out where to put my custom mods without making 
horizon barf all over itself, I can make my changes, but getting started is 
proving difficult.

thanks,
  Wyllys






___
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 customization_module example???

2013-03-04 Thread Wyllys Ingersoll

Thanks!

Any hints on how to remove some of the default Nova panels from the dashboard 
using the customization_module?




On Mar 4, 2013, at 6:52 PM, Kieran Spear kisp...@gmail.com wrote:

 Hi Wyllys,
 
 On 5 March 2013 08:59, Wyllys Ingersoll wyllys.ingers...@evault.com wrote:
 Questions:
 - If I name the customization_module as my_dashboard.overrides - where 
 does the overrides file need to be created (i.e. what directory - full 
 path) ?
 
 my_dashboard.overrides needs to be importable by the process running
 Horizon. So your my_dashboard module needs to be on your python path
 somehow. Probably the easiest way is to add a python-path argument to
 the WSGIDaemonProcess line in Apache's Horizon config. I'm not sure
 where this lives exactly for the ubuntu package (should be somewhere
 under /etc/apache2/).
 
 Assuming your my_dashboard module lives in /opt/python/my_dashboard,
 you'd make it look like the following:
 
 WSGIDaemonProcess [... existing options ...] python-path=/opt/python
 
 Alternatively you can make your module an installable python package
 and install it system-wide (e.g., create a setup.py).
 
 - Does it require other files to be present in that directory also such as 
 the __init__.py or models.py  like a complete dashboard would?
 
 It will need a __init__.py but should be fine without a models.py.
 
 I'll see about getting this info added to the docs.
 
 Cheers,
 Kieran
 
 
 I think once I can figure out where to put my custom mods without making 
 horizon barf all over itself, I can make my changes, but getting started is 
 proving difficult.
 
 thanks,
  Wyllys
 
 
 
 
 
 
 
 ___
 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] 2012.2.1 missing several nova dependency packages.

2013-03-01 Thread Wyllys Ingersoll
I did try that.  It made no difference.

From: Martinx - ジェームズ [mailto:thiagocmarti...@gmail.com]
Sent: Friday, March 01, 2013 2:48 PM
To: Wyllys Ingersoll
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] 2012.2.1 missing several nova dependency packages.

Try: apt-get update before...

On 1 March 2013 16:42, Wyllys Ingersoll 
wyllys.ingers...@evault.commailto:wyllys.ingers...@evault.com wrote:
Im trying to install the nova packages from the Ubuntu 12.04 LTS folsom 
archives, but some of the required dependencies are no longer available.

My sources.list file has this entry:
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main

If I remove that entry, I can get the 2012.1.3 release and it will work, but 
why is it not in the 2012.2.1 tree?

Thanks,
  Wyllys

$ sudo apt-get install python-nova
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python-cinderclient python-cliff python-cmd2 python-novaclient python-paramiko
  python-pyparsing python-quantumclient
The following NEW packages will be installed:
  python-cinderclient python-cliff python-cmd2 python-nova python-novaclient
  python-paramiko python-pyparsing python-quantumclient
0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,121 kB/4,679 kB of archives.
After this operation, 26.2 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Err http://ubuntu-cloud.archive.canonical.com/ubuntu/ 
precise-updates/folsom/main python-nova all 
2012.2.1+stable-20121212-a99a802e-0ubuntu1.1~cloud0
  404  Not Found
Failed to fetch 
http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/n/nova/python-nova_2012.2.1+stable-20121212-a99a802e-0ubuntu1.1~cloud0_all.deb
  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?



___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto: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] 2012.2.1 missing several nova dependency packages.

2013-03-01 Thread Wyllys Ingersoll
Thank you, that explains the odd behavior, because I know these things were 
working for me the other day.

Now, after running apt-get update (again), I am able to get the latest 
package updates.

Thanks,
  Wyllys


From: openstack-bounces+wyllys.ingersoll=evault@lists.launchpad.net 
[mailto:openstack-bounces+wyllys.ingersoll=evault@lists.launchpad.net] On 
Behalf Of Adam Gandelman
Sent: Friday, March 01, 2013 2:54 PM
To: openstack@lists.launchpad.net
Subject: Re: [Openstack] 2012.2.1 missing several nova dependency packages.

On 03/01/2013 11:42 AM, Wyllys Ingersoll wrote:
Im trying to install the nova packages from the Ubuntu 12.04 LTS folsom 
archives, but some of the required dependencies are no longer available.

My sources.list file has this entry:
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main

If I remove that entry, I can get the 2012.1.3 release and it will work, but 
why is it not in the 2012.2.1 tree?

Thanks,
  Wyllys

$ sudo apt-get install python-nova
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python-cinderclient python-cliff python-cmd2 python-novaclient python-paramiko
  python-pyparsing python-quantumclient
The following NEW packages will be installed:
  python-cinderclient python-cliff python-cmd2 python-nova python-novaclient
  python-paramiko python-pyparsing python-quantumclient
0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,121 kB/4,679 kB of archives.
After this operation, 26.2 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Err http://ubuntu-cloud.archive.canonical.com/ubuntu/ 
precise-updates/folsom/main python-nova all 
2012.2.1+stable-20121212-a99a802e-0ubuntu1.1~cloud0
  404  Not Found
Failed to fetch 
http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/n/nova/python-nova_2012.2.1+stable-20121212-a99a802e-0ubuntu1.1~cloud0_all.deb
  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?


An update (2012.2.1+stable-20121212-a99a802e-0ubuntu1.2~cloud0) was pushed out 
in the last few hours that supersedes (and expires) the package you're 
attempting to download.  Run apt-get update before installing and apt should 
pull the correct version. You might find 
http://status.qa.ubuntu.com/reports/ubuntu-server/cloud-archive/folsom_versions.html
 useful in the future.

HTH,
Adam

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