Re: [Openstack] curl command

2012-04-20 Thread Dean Troyer
On Fri, Apr 20, 2012 at 12:11 AM, andrei cosmin andrei_t...@yahoo.com wrote:
 curl -d '{auth: {tenantName: openstackDemo,
 passwordCredentials:{username: adminUser, password: secretword}}}'
 -H Content-type: application/json http://192.168.206.130:35357/v2.0/tokens
 | python -mjson.tool

  i get the following error:

   % Total    % Received % Xferd  Average Speed   Time    Time Time
 Current
  Dload  Upload   Total   Spent    Left
 Speed
   0 0    0 0    0 0  0  0 --:--:-- --:--:-- --:--:--
 0curl: (7) couldn't connect to host

^^
This is the key bit, it looks like keystone may not be running?

 i used my ip and the rest i leaved as it is. Where do i find my tenantName
 and password credentials? What can be the problem?

By default devstack creates an 'admin' user and a 'demo' user, both
with the password of the value you set in $ADMIN_PASSWORD.  There is a
matching tenant name for both accounts.

It may be easier to use the keystone command rather than curl to get
your token info.  The equivalent command is:

keystone --os_tenant_name=openstackDemo --os_username=openstackDemo
--os_password=secretword
--os_auth_url=http://192.168.206.130:35357/v2.0/tokens token-get

And even better, the glance command also understands the --os_*
options for authentication so you do not necessarily need to get a
token first.

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] Using Foreign Keys

2012-04-20 Thread Vishvananda Ishaya
On Apr 19, 2012, at 8:59 PM, Vaze, Mandar wrote:

 +1 for data integrity  ...
 
 Here is an example that could use data integrity check :
 
 tenant information is managed in keystone DB
 ovs_quantum DB has tenant_id column for networks table.
 When I use stack.sh - it puts a string default in tenant_id column - when 
 it creates network via nova-manage network create and it WORKS  

 
 I see two problems here :
 
 1. tenant_id are uuid - so string default should be rejected with check 
 _is_like_uuid - but that is only partial solution.

tenant_ids are strings. It is an implementation detail that keystone uses uuids.

 2. tenant_id should be valid ID from keystone.tenants

This would require nova-manage having logic to be able to connect to keystone 
which it doesn't have.  One of the drawbacks of having decoupled services is 
everything isn't in one database where you can support foreign keys. We could 
in theory add logic to nova to allow it to verify things inside of keystone, 
but I'm not sure this makes sense from a security perspective. It would require 
nova to have administrative access to keystone to find out what tenants exist.

Alternatively we could force administrative commands like network create to be 
done through the api using the context of the intended network. This has a 
drawback as well of making things administratively more difficult. An admin 
would have to get an administrative token for the intended tenant somehow 
before making the call.

Vish


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


Re: [Openstack] Using Foreign Keys

2012-04-20 Thread Vaze, Mandar
Vish,

Thanks for the detailed explanation.  I didn't mean to imply that fixing it is 
trivial.
( I did realize that since keystone could be using different DB server, it 
might not be trivial for nova-manage to validate the tenant_id)

I was just supporting the argument in favor of data integrity :)

-Mandar
 
-Original Message-
From: Vishvananda Ishaya [mailto:vishvana...@gmail.com] 
Sent: Friday, April 20, 2012 11:47 AM
To: Vaze, Mandar
Cc: Philipp Wollermann; J. Daniel Schmidt; openstack
Subject: Re: [Openstack] Using Foreign Keys

On Apr 19, 2012, at 8:59 PM, Vaze, Mandar wrote:

 +1 for data integrity  ...
 
 Here is an example that could use data integrity check :
 
 tenant information is managed in keystone DB ovs_quantum DB has 
 tenant_id column for networks table.
 When I use stack.sh - it puts a string default in tenant_id column - when 
 it creates network via nova-manage network create and it WORKS  

 
 I see two problems here :
 
 1. tenant_id are uuid - so string default should be rejected with check 
 _is_like_uuid - but that is only partial solution.

tenant_ids are strings. It is an implementation detail that keystone uses uuids.

 2. tenant_id should be valid ID from keystone.tenants

This would require nova-manage having logic to be able to connect to keystone 
which it doesn't have.  One of the drawbacks of having decoupled services is 
everything isn't in one database where you can support foreign keys. We could 
in theory add logic to nova to allow it to verify things inside of keystone, 
but I'm not sure this makes sense from a security perspective. It would require 
nova to have administrative access to keystone to find out what tenants exist.

Alternatively we could force administrative commands like network create to be 
done through the api using the context of the intended network. This has a 
drawback as well of making things administratively more difficult. An admin 
would have to get an administrative token for the intended tenant somehow 
before making the call.

Vish


__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding

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

2012-04-20 Thread Szymon Grzybowski
Is there any way to get information about resource utilization from
Openstack? Any hidden API or something like that? I'm looking for
statistics about CPU, RAM usage etc. both from server itself (host) and
Instances (Virtual Machines) inside openstack, because i'd like to write
some piece of software which could analyze those data and for example,
migrate one VM to another Host. Is it possible to do this right now in
Openstack? Because all i can see on dashboard are stats about instance's
type. I've seen in docs something about live-migration, but i can't find
openstack's way to get informations about resources.

Where should i look for it in code if there is no official api, because
Openstack has to collect such data right?

-- 
*Semy*
___
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] Resource utilization

2012-04-20 Thread Razique Mahroua
Hey, I think you would look into the "diagnostic" callsthe operator client (python-novaclient) has implemented it via $nova diagnostics, which likely give you the stats you are looking for
Nuage  Co - Razique Mahrouarazique.mahr...@gmail.com

Le 20 avr. 2012 à 13:17, Szymon Grzybowski a écrit :Is there any way to get information about resource utilization from Openstack? Any hidden API or something like that? I'm looking for statistics about CPU, RAM usage etc. both from server itself (host) and Instances (Virtual Machines) inside openstack, because i'd like to write some piece of software which could analyze those data and for example, migrate one VM to another Host. Is it possible to do this right now in Openstack? Because all i can see on dashboard are stats about instance's type. I've seen in docs something about live-migration, but i can't find openstack's way to get informations about resources.
Where should i look for it in code if there is no official api, because Openstack has to collect such data right?-- Semy


___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Resource utilization

2012-04-20 Thread heut2008
if you are using  essex, you can get the service resources
(CPU,Memory,Disk) from nova-scheduler logs.
all compute node report its avaible resources to nova-scheduler .the smart
 nova-scheduer use these info to implememt a variety of scheduler filters.

2012/4/20 Razique Mahroua razique.mahr...@gmail.com

 Hey, I think you would look into the diagnostic calls
 the operator client (python-novaclient) has implemented it via $nova
 diagnostics, which likely give you the stats you are looking for

 *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com


 Le 20 avr. 2012 à 13:17, Szymon Grzybowski a écrit :

 Is there any way to get information about resource utilization from
 Openstack? Any hidden API or something like that? I'm looking for
 statistics about CPU, RAM usage etc. both from server itself (host) and
 Instances (Virtual Machines) inside openstack, because i'd like to write
 some piece of software which could analyze those data and for example,
 migrate one VM to another Host. Is it possible to do this right now in
 Openstack? Because all i can see on dashboard are stats about instance's
 type. I've seen in docs something about live-migration, but i can't find
 openstack's way to get informations about resources.

 Where should i look for it in code if there is no official api, because
 Openstack has to collect such data right?

 --
 *Semy*


  ___
 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


NUAGECO-LOGO-Fblan_petit.jpg___
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] Resource utilization

2012-04-20 Thread Tomasz Paszkowski
Please also note that diagnostics commands are not working with
libvirt/qemu,kvm



On Fri, Apr 20, 2012 at 1:23 PM, Razique Mahroua
razique.mahr...@gmail.comwrote:

 Hey, I think you would look into the diagnostic calls
 the operator client (python-novaclient) has implemented it via $nova
 diagnostics, which likely give you the stats you are looking for

 *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com


 Le 20 avr. 2012 à 13:17, Szymon Grzybowski a écrit :

 Is there any way to get information about resource utilization from
 Openstack? Any hidden API or something like that? I'm looking for
 statistics about CPU, RAM usage etc. both from server itself (host) and
 Instances (Virtual Machines) inside openstack, because i'd like to write
 some piece of software which could analyze those data and for example,
 migrate one VM to another Host. Is it possible to do this right now in
 Openstack? Because all i can see on dashboard are stats about instance's
 type. I've seen in docs something about live-migration, but i can't find
 openstack's way to get informations about resources.

 Where should i look for it in code if there is no official api, because
 Openstack has to collect such data right?

 --
 *Semy*


  ___
 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




-- 
Tomasz Paszkowski
SS7, Asterisk, SAN, Datacenter, Cloud Computing
+48500166299
___
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] Resource utilization

2012-04-20 Thread Leander Bessa
I've been trying to complete the diagnostics command for libvirt, so far i
think i can get the cpu usage (still need a sample time of  1 second),
volume and network io. I still can't get the current memory and total
memory. However, i believe the latter is a problem with libvirt, since i
can't get the information through virsh as well.

On Fri, Apr 20, 2012 at 1:11 PM, Tomasz Paszkowski ss7...@gmail.com wrote:

 Please also note that diagnostics commands are not working with
 libvirt/qemu,kvm



 On Fri, Apr 20, 2012 at 1:23 PM, Razique Mahroua 
 razique.mahr...@gmail.com wrote:

 Hey, I think you would look into the diagnostic calls
 the operator client (python-novaclient) has implemented it via $nova
 diagnostics, which likely give you the stats you are looking for

 *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com


 Le 20 avr. 2012 à 13:17, Szymon Grzybowski a écrit :

 Is there any way to get information about resource utilization from
 Openstack? Any hidden API or something like that? I'm looking for
 statistics about CPU, RAM usage etc. both from server itself (host) and
 Instances (Virtual Machines) inside openstack, because i'd like to write
 some piece of software which could analyze those data and for example,
 migrate one VM to another Host. Is it possible to do this right now in
 Openstack? Because all i can see on dashboard are stats about instance's
 type. I've seen in docs something about live-migration, but i can't find
 openstack's way to get informations about resources.

 Where should i look for it in code if there is no official api, because
 Openstack has to collect such data right?

 --
 *Semy*


  ___
 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




 --
 Tomasz Paszkowski
 SS7, Asterisk, SAN, Datacenter, Cloud Computing
 +48500166299

 ___
 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 and routing configuration

2012-04-20 Thread Narayan Desai
We needed to setup something similar when we split out the
nova-network service to a different host than nova-api in cactus, so
that instances could get to the metadata service. It was pretty simple
to make quagga work, but then we needed to add a rule to bypass NAT.
Since this was just for the metadata service, it was a tightly scoped
rule, but in your case, you'll probably want something that covers
your whole intranet. You'll probably still want NAT for internet bound
traffic.
 -nld

2012/4/19 Jérôme Gallard jeronimo...@gmail.com:
 Hi everyone,

 I would like to know if someone has already tried to setup routing
 configurations with nova-network.

 From my understanding, nova-network only deals with NAT, but I am
 thinking about configurations to directly routes my virtual networks
 on my intranet.

 I am thinking to develop a new driver for the network manager which
 can configure a RIP router (Quagga, ...).

 Any feedbacks ?

 Thanks.

 Regards,
 Jérôme

 ___
 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] Does openstack support XCP or Xenserver if I use xen Hypervisor?

2012-04-20 Thread livemoon
hi, all

If I use xen and libvirt , can it work wll in openstack?

Is it possible to install XAPI to manage xen in centos or suse and work
well in 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


[Openstack] Instances can't access eachother via external (floating) ips?

2012-04-20 Thread Calvin Walton
Hi,

I have instances running in Openstack using FlatDHCP networking mode.
Each one has an IP address in the internal subnet (192.168.22.x) and a
floating IP from the external subnet (192.168.0.x).

I've found that from one instance, I cannot connect to another instance
(or, in fact, even the same instance) via the external floating address
(I have some monitoring tools that attempt to do this to verify that a
server is running). Connections from external computers work fine.

My best guess is that there is an issue with the NAT on my nova-network
node not allowing loopback connections. Is this intentional, or a bug?
Is there a workaround available?

For reference, I'm currently using OpenStack from the
'latest-milestone-test' OpenStack PPA on Ubuntu 12.04 Precise.

-- 
Calvin Walton calvin.wal...@kepstin.ca
Blindside Networks http://www.blindsidenetworks.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] Open Cloud Computing Interface Blueprint Implementation

2012-04-20 Thread Tim Bell

Andy,

Thanks for this work.  OCCI is an interesting and open option as the world 
moves towards federated clouds.  I hope that this will continue the momentum 
towards an open API which can address multiple backend  IaaS solutions 
transparently.

Tim Bell
CERN

From: openstack-bounces+tim.bell=cern...@lists.launchpad.net 
[mailto:openstack-bounces+tim.bell=cern...@lists.launchpad.net] On Behalf Of 
Michel Drescher
Sent: 16 April 2012 18:00
To: Edmonds, AndrewX
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] Open Cloud Computing Interface Blueprint Implementation

Dear Andy, all,

There is little left to say for me (thanks to others) but a wholeheartedly  
Bravo! on the effort.

As Matteo and others have stated, it is important to have a publicly defined 
standard being implemented in production grade software. But much more 
important, certainly from an EGI perspective, is the availability of *choice* 
of implementation for anyone who wishes to operate a Cloud platform.

For us at EGI it is of particular importance as we are working towards a 
production level federation of IaaS Cloud offerings, as a federation cannot 
prescribe which particular software implementation to operate. With the 
availability of OCCI in OpenStack, we now are in the place to actually see our 
endorsement for OCCI to happen in in reality rather on paper.

What's more, native support for OCCI particularly makes the choice for 
OpenStack attractive, as this means not only less operative service management 
effort for a fronting proxy service (I hope!), but also, lets say, less 
opportunity for configuration and operation mistakes. :-)

Cheers, and thanks again,
Michel

--
Stichting European Grid Initiative (EGI.eu)
http://www.egi.eu
Mobile:+31 (0)6 303 726 55
Skype: michel.drescher.egi

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

2012-04-20 Thread Matt Joyce
I've done libvirt calls via nrpe in the past for this.
On Apr 20, 2012 5:28 AM, Leander Bessa leande...@gmail.com wrote:

 I've been trying to complete the diagnostics command for libvirt, so far i
 think i can get the cpu usage (still need a sample time of  1 second),
 volume and network io. I still can't get the current memory and total
 memory. However, i believe the latter is a problem with libvirt, since i
 can't get the information through virsh as well.

 On Fri, Apr 20, 2012 at 1:11 PM, Tomasz Paszkowski ss7...@gmail.comwrote:

 Please also note that diagnostics commands are not working with
 libvirt/qemu,kvm



 On Fri, Apr 20, 2012 at 1:23 PM, Razique Mahroua 
 razique.mahr...@gmail.com wrote:

 Hey, I think you would look into the diagnostic calls
 the operator client (python-novaclient) has implemented it via $nova
 diagnostics, which likely give you the stats you are looking for

 *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com


 Le 20 avr. 2012 à 13:17, Szymon Grzybowski a écrit :

 Is there any way to get information about resource utilization from
 Openstack? Any hidden API or something like that? I'm looking for
 statistics about CPU, RAM usage etc. both from server itself (host) and
 Instances (Virtual Machines) inside openstack, because i'd like to write
 some piece of software which could analyze those data and for example,
 migrate one VM to another Host. Is it possible to do this right now in
 Openstack? Because all i can see on dashboard are stats about instance's
 type. I've seen in docs something about live-migration, but i can't find
 openstack's way to get informations about resources.

 Where should i look for it in code if there is no official api, because
 Openstack has to collect such data right?

 --
 *Semy*


  ___
 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




 --
 Tomasz Paszkowski
 SS7, Asterisk, SAN, Datacenter, Cloud Computing
 +48500166299

 ___
 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] Python UUID and SELinux AVC denials

2012-04-20 Thread Doug Hellmann
Have you tried changing Dashboard to monkey patch the uuid module to blank
out the functions being loaded from ctypes? If the _uuid_generate_*
functions are not set, the existing python implementation is used instead
and it looks like that just uses urandom() inline.

On Thu, Apr 19, 2012 at 11:53 AM, Adam Young ayo...@redhat.com wrote:

 Did a little digging into an audit log message we've been seeing
 specifically on Dashboard.

 They look like this in audit.log

 type=AVC msg=audit(1334860567.213:5184)**: avc:  denied  { execute } for
  pid=1910
 3 comm=httpd 
 path=**2F6465762F73686D2F694F337A**6B4972202864656C6574656429
 dev
 =tmpfs ino=1281359 scontext=unconfined_u:system_**r:httpd_t:s0
 tcontext=unconfined
 _u:object_r:httpd_tmpfs_t:s0 tclass=file

 And are a little clearer if you use

  sudo ausearch -i | grep denied

 type=AVC msg=audit(04/19/2012 14:36:07.213:5184) : avc:  denied  { execute
 } for  pid=19103 comm=httpd path=/dev/shm/ffiO3zkIr (deleted) dev=tmpfs
 ino=1281359 scontext=unconfined_u:system_**r:httpd_t:s0
 tcontext=unconfined_u:object_**r:httpd_tmpfs_t:s0 tclass=file

 Something in HTTPD is trying to generate code and then execute it by
 writing to a file.  We've traced that something down to the UUID generation
 code.  The standard UUID module makes a ctypes call, which does run time
 generation of Native stubs  in order to call into libuuid to actually
 generate the UUID.

 While we are working with the Python maintainers to come up with long term
 fixes,  we probably want to come up with something short term.  We are
 going to generate an alternative UUID module,  probably named something
 along the lines of uuid_no_ctypes,  that will call into libuuid via
 pregenerated function stubs.  This module will be a copy of the uuid.py
 file from The upstream, with the absolute minimum of changes to avoid
 ctypes.

 Once we've got this working,  all of the projects that use UUID should
 switch over...this is a good argument for putting that code into
 Openstack-common.  Keystone, Nova, and Quantum all import uuid.

 None of the projects seem to be using ctypes directly.  However,  it is
 possible that we are using other third party libraries that, in turn, use
 ctypes.

 __**_
 Mailing list: 
 https://launchpad.net/~**openstackhttps://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~**openstackhttps://launchpad.net/~openstack
 More help   : 
 https://help.launchpad.net/**ListHelphttps://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] Using Foreign Keys

2012-04-20 Thread Christoph Thiel
On Thu, Apr 19, 2012 at 07:32:15PM +0200, Bernhard M. Wiedemann wrote:
 On 04/12/2012 02:35 PM, J. Daniel Schmidt wrote:
  Dear Developers,
  
  While testing our SUSE OpenStack packages we hit a nasty bug and
  reported it as:  https://bugs.launchpad.net/keystone/+bug/972502
  
  We found out that the underlying cause was a lack of referential
  integrity[1] using sqlite or mysql. When we tried to reproduce this
  issue on postgresql the usage of foreign keys greatly helped to
  find the cause.
  
  In order to prevent further inconsistencies we created a patch that
  added more foreign keys: https://review.openstack.org/6216
  
  One reviewer commented:
  i don't approve of adding foreign keys, and we should probably
  remove the existing ones (in UserTenantMembership and in
  Endpoint)
  
  and on 
  https://review.openstack.org/#patch,sidebyside,6216,3,keystone/identity/backends/sql.py
 
  
 we shouldn't be using foreign keys at all, they are a crutch that are not
  available everywhere
  
  This was a surprising answer to us as the usage of the foreign keys
  revealed the inconsistency in the first place. So removing them
  elsewhere does in no way improve the situation, it even does not
  help for mysql and sqlite, as SQLAlchemy abstracts them away. We
  also found similar bugs elsewhere:
  
  * https://bugs.launchpad.net/keystone/+bug/959294 *
  https://bugs.launchpad.net/keystone/+bug/973243 *
  https://bugs.launchpad.net/keystone/+bug/974199
  
  In our point of view foreign keys should be used in all possible
  places. This would not harm any database that does not support them
  but helps all of us to find data inconsistencies and related bugs,
  which leads to faster development with fewer bugs.
  
  
  What is your take on these things? How would you take care of data
  consistency otherwise?
  
  
  Thank you for your feedback, Berhard M. Wiedemann J. Daniel
  Schmidt
  
  [1]: http://en.wikipedia.org/wiki/Referential_integrity
 
 
 Just saw another bug, that would have been caught earlier with foreign
 keys:
 https://bugs.launchpad.net/nova/+bug/754900
 
 So was this issue discussed on the OpenStack Summit?

Yes, I raised this in the Standardizing database management across
projects[1] session and everybody attending that sessions agreed that
it's a good idea.

However, https://review.openstack.org/#/c/6216/ is still open ;(


Best
Christoph

[1] 
http://folsomdesignsummit2012.sched.org/event/40adf6c240f7ed1fab82e19e8e55dc24
-- 
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] Ubuntu packaging - cactus, older releases

2012-04-20 Thread Leandro Reox
Hi all,

Is there any ppa, or repo where we can get older estables releases like
cactus or diablo ? the old
http://wiki.openstack.org/http://wiki.openstack.org/PPAs
2011.2 is not working anymore and i saw on the wiki that only the last
releases will be available, am i right ? If i not were can i find them ?
(cactus especifically)

Regards
___
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] HTTP status value naming normalization

2012-04-20 Thread Victor Rodionov
There are many place in Swift code where used hard coded values, such
as response statuses (200, 201, 404, ...) which can replaced with
constants HTTP_OK, HTTP_CREATED, HTTP_NOT_FOUND. Also there is widlly
used idiom 200 = status  300, that can be replaced as well with
something like this is_success(status). I want add modules for
defining all required constants (Swift, HTTP).

So I think this changes will improve Swift code readability.

PS: this is an initial changes in github
https://github.com/vitoordaz/swift/commit/7163d5df13ceaf8fc7b53ba812fe16bd7dd31131

___
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] Quantum deployment on Essex

2012-04-20 Thread OpenStack-Lists
Hi everyone,


My name is Emilien, I'm a french student in University and I'm working
on OpenStack for a internship project.


I'm working on Quantum deployment at this time, and I would like to
share with you my work.

I have two physicals servers for playing, and I've setup a dual-node
infrastructure with Essex on Ubuntu 12.04.

Server 1 :

Ubuntu 12.04

All nova services, Glance, Horizon, Keystone and Quantum-agent (coming
soon).

Two Nic cards : one public network, one private network.


Server 2 :

Ubuntu 12.04

Nova-compute  Quantum-agent (coming soon)

Two Nic cards : one public network, one private network.


For the installation, I've followed differents documentations :

-
http://www.hastexo.com/resources/docs/installing-openstack-essex-20121-ubuntu-1204-precise-pangolin

-
http://cssoss.files.wordpress.com/2011/11/openstackbookv2-0_csscorp.pdf

- Official documentation of OpenStack


I met a lot of troubles during the deployment (and it's only the
beginning I think), so I would like if someone here has tried to setup
Quantum, and which use case he did.


My goal is to use Open-vSwitch plugin and to try QoS applied to the VMs.
For exemple, each tenant has each QoS policy. This is actually a
Proof-of-concept, and this is not fixed !


I can say now what is working and not :

- All nova services : Yes, without VNC access (I have a 404 error, and I
will fix it next week I think).
- Glance : Yes
- Keystone : Yes
- Horizon : Yes (without Swift  Quantum plugins)
- Quantum : In progress : I've tried to setup Quantum-server in a VM for
pre-production, and I met a lot of troubles but now, it seems ready for
testing Monday with Open-vSwitch
- Open-vSwitch : I don't know which interface to connect on physical
ETH : public ? private ? If someone can help me to this subject...

I want to precise that all my services are running with MySQL
connection.



Maybe some people is interesting about my work, and please don't
hesitate to contact me.


I can of course share my confs files, or anything else.


Best regards


-- 
Emilien Macchi
Skype : memilien69
Twitter : EmilienMacchi
Website : http://my1.fr


___
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] Ubuntu packaging - cactus, older releases

2012-04-20 Thread Razique Mahroua
Hey Leandro,try thathttps://launchpad.net/~openstack-release/+archive/2011.3
Nuage  Co - Razique Mahrouarazique.mahr...@gmail.com

Le 20 avr. 2012 à 20:09, Leandro Reox a écrit :Hi all,Is there any ppa, or repo where we can get older estables releases like cactus or diablo ? the oldhttp://wiki.openstack.org/2011.2is not working anymore and i saw on the wiki that only the last releases will be available, am i right ? If i not were can i find them ? (cactus especifically)
Regards
___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore 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] Ubuntu packaging - cactus, older releases

2012-04-20 Thread Leandro Reox
I need 2011.2 (cactus) razique , it shows permission denied on the archive
page

On Fri, Apr 20, 2012 at 4:53 PM, Razique Mahroua
razique.mahr...@gmail.comwrote:

 Hey Leandro,
 try that
 https://launchpad.net/~openstack-release/+archive/2011.3
 *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com


 Le 20 avr. 2012 à 20:09, Leandro Reox a écrit :

 Hi all,

 Is there any ppa, or repo where we can get older estables releases like
 cactus or diablo ? the old  
 http://wiki.openstack.org/http://wiki.openstack.org/PPAs
 2011.2 is not working anymore and i saw on the wiki that only the last
 releases will be available, am i right ? If i not were can i find them ?
 (cactus especifically)

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



NUAGECO-LOGO-Fblan_petit.jpg___
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] Ubuntu packaging - cactus, older releases

2012-04-20 Thread Razique Mahroua
Yah I see that... I've all the packages if you want to for Ubuntu server (Just made a copy of my /var/cache/apt/ for the nova packaes)Does someone know why it is closed now ?thanks
Nuage  Co - Razique Mahrouarazique.mahr...@gmail.com

Le 20 avr. 2012 à 21:59, Leandro Reox a écrit :I need 2011.2 (cactus) razique , it shows permission denied on the archive pageOn Fri, Apr 20, 2012 at 4:53 PM, Razique Mahroua razique.mahr...@gmail.com wrote:
Hey Leandro,try thathttps://launchpad.net/~openstack-release/+archive/2011.3

Nuage  Co - Razique Mahroua
razique.mahr...@gmail.comNUAGECO-LOGO-Fblan_petit.jpg

Le 20 avr. 2012 à 20:09, Leandro Reox a écrit :Hi all,Is there any ppa, or repo where we can get older estables releases like cactus or diablo ? the oldhttp://wiki.openstack.org/2011.2is not working anymore and i saw on the wiki that only the last releases will be available, am i right ? If i not were can i find them ? (cactus especifically)

Regards
___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstackMore 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] Ubuntu packaging - cactus, older releases

2012-04-20 Thread Vishvananda Ishaya
Not sure why it isn't working, but releases are also tagged on github:

https://github.com/openstack/nova/tarball/2011.2

Vish

On Apr 20, 2012, at 1:10 PM, Razique Mahroua wrote:

 Yah I see that... I've all the packages if you want to for Ubuntu server 
 (Just made a copy of my /var/cache/apt/ for the nova packaes)
 Does someone know why it is closed now ?
 thanks 
 
 Nuage  Co - Razique Mahroua 
 razique.mahr...@gmail.com
 
 NUAGECO-LOGO-Fblan_petit.jpg
 
 Le 20 avr. 2012 à 21:59, Leandro Reox a écrit :
 
 I need 2011.2 (cactus) razique , it shows permission denied on the archive 
 page
 
 On Fri, Apr 20, 2012 at 4:53 PM, Razique Mahroua razique.mahr...@gmail.com 
 wrote:
 Hey Leandro,
 try that 
 https://launchpad.net/~openstack-release/+archive/2011.3
 Nuage  Co - Razique Mahroua 
 razique.mahr...@gmail.com
 
 NUAGECO-LOGO-Fblan_petit.jpg
 
 Le 20 avr. 2012 à 20:09, Leandro Reox a écrit :
 
 Hi all, 
 
 Is there any ppa, or repo where we can get older estables releases like 
 cactus or diablo ? the old  http://wiki.openstack.org/2011.2 is not working 
 anymore and i saw on the wiki that only the last releases will be 
 available, am i right ? If i not were can i find them ? (cactus 
 especifically)
 
 Regards ___
 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] Quantum deployment on Essex

2012-04-20 Thread Lorin Hochstein
Salut Emilien!


On Apr 20, 2012, at 12:22 PM, OpenStack-Lists wrote:

 Hi everyone,
 
 
 My name is Emilien, I'm a french student in University and I'm working
 on OpenStack for a internship project.
 
 
 I'm working on Quantum deployment at this time, and I would like to
 share with you my work.
 
 I have two physicals servers for playing, and I've setup a dual-node
 infrastructure with Essex on Ubuntu 12.04.
 
 Server 1 :
 
 Ubuntu 12.04
 
 All nova services, Glance, Horizon, Keystone and Quantum-agent (coming
 soon).

[snip]

 I can say now what is working and not :
 
 - All nova services : Yes, without VNC access (I have a 404 error, and I
 will fix it next week I think).


This might be due to a known issue with the noVNC package that is distributed 
with Ubuntu 12.04: https://bugs.launchpad.net/ubuntu/+source/novnc/+bug/956949

I have heard that the noVNC fork maintained by Rackspace Cloud Builders works 
properly with Essex: https://github.com/cloudbuilders/noVNC/


Take care,

Lorin
--
Lorin Hochstein
Lead Architect - Cloud Services
Nimbis Services, Inc.
www.nimbisservices.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] Ubuntu packaging - cactus, older releases

2012-04-20 Thread Leandro Reox
We managed to install via an apt-caching server we have. But Vish, we know
about the tarball, was just a question if the repo was deprecated for some
reason, just to know

Regards

On Fri, Apr 20, 2012 at 5:29 PM, Vishvananda Ishaya
vishvana...@gmail.comwrote:

 Not sure why it isn't working, but releases are also tagged on github:

 https://github.com/openstack/nova/tarball/2011.2

 Vish

 On Apr 20, 2012, at 1:10 PM, Razique Mahroua wrote:

 Yah I see that... I've all the packages if you want to for Ubuntu server
 (Just made a copy of my /var/cache/apt/ for the nova packaes)
 Does someone know why it is closed now ?
 thanks

 *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com

 NUAGECO-LOGO-Fblan_petit.jpg

 Le 20 avr. 2012 à 21:59, Leandro Reox a écrit :

 I need 2011.2 (cactus) razique , it shows permission denied on the archive
 page

 On Fri, Apr 20, 2012 at 4:53 PM, Razique Mahroua 
 razique.mahr...@gmail.com wrote:

 Hey Leandro,
 try that
 https://launchpad.net/~openstack-release/+archive/2011.3
  *Nuage  Co - Razique Mahroua** *
 razique.mahr...@gmail.com

 NUAGECO-LOGO-Fblan_petit.jpg

 Le 20 avr. 2012 à 20:09, Leandro Reox a écrit :

 Hi all,

 Is there any ppa, or repo where we can get older estables releases like
 cactus or diablo ? the old  
 http://wiki.openstack.org/http://wiki.openstack.org/PPAs
 2011.2 is not working anymore and i saw on the wiki that only the last
 releases will be available, am i right ? If i not were can i find them ?
 (cactus especifically)

 Regards ___
 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] Quantum deployment on Essex

2012-04-20 Thread Diego Parrilla
Hi Emilien from the Valley,

Check the code from the stackops-agent and the novnc builder, we had to change 
to the cloudbuilders code. We can work on that next week if I can survive to 
the jetlag.

Go and enjoy of The Night of Madrid, we will work on that next week ;-)

Diego 

Enviado desde mi iPad

El 20/04/2012, a las 12:22, OpenStack-Lists emilien.openst...@gmail.com 
escribió:

 Hi everyone,
 
 
 My name is Emilien, I'm a french student in University and I'm working
 on OpenStack for a internship project.
 
 
 I'm working on Quantum deployment at this time, and I would like to
 share with you my work.
 
 I have two physicals servers for playing, and I've setup a dual-node
 infrastructure with Essex on Ubuntu 12.04.
 
 Server 1 :
 
 Ubuntu 12.04
 
 All nova services, Glance, Horizon, Keystone and Quantum-agent (coming
 soon).
 
 Two Nic cards : one public network, one private network.
 
 
 Server 2 :
 
 Ubuntu 12.04
 
 Nova-compute  Quantum-agent (coming soon)
 
 Two Nic cards : one public network, one private network.
 
 
 For the installation, I've followed differents documentations :
 
 -
 http://www.hastexo.com/resources/docs/installing-openstack-essex-20121-ubuntu-1204-precise-pangolin
 
 -
 http://cssoss.files.wordpress.com/2011/11/openstackbookv2-0_csscorp.pdf
 
 - Official documentation of OpenStack
 
 
 I met a lot of troubles during the deployment (and it's only the
 beginning I think), so I would like if someone here has tried to setup
 Quantum, and which use case he did.
 
 
 My goal is to use Open-vSwitch plugin and to try QoS applied to the VMs.
 For exemple, each tenant has each QoS policy. This is actually a
 Proof-of-concept, and this is not fixed !
 
 
 I can say now what is working and not :
 
 - All nova services : Yes, without VNC access (I have a 404 error, and I
 will fix it next week I think).
 - Glance : Yes
 - Keystone : Yes
 - Horizon : Yes (without Swift  Quantum plugins)
 - Quantum : In progress : I've tried to setup Quantum-server in a VM for
 pre-production, and I met a lot of troubles but now, it seems ready for
 testing Monday with Open-vSwitch
 - Open-vSwitch : I don't know which interface to connect on physical
 ETH : public ? private ? If someone can help me to this subject...
 
 I want to precise that all my services are running with MySQL
 connection.
 
 
 
 Maybe some people is interesting about my work, and please don't
 hesitate to contact me.
 
 
 I can of course share my confs files, or anything else.
 
 
 Best regards
 
 
 -- 
 Emilien Macchi
 Skype : memilien69
 Twitter : EmilienMacchi
 Website : http://my1.fr
 
 
 ___
 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] [Keystone] What exactly are we modeling with endpoints?

2012-04-20 Thread Joseph Heck
While I've been roaming about the summit and conference, I've been trying to 
figure out exactly what we're modeling with the current service and 
endpoints that are in the API today. After talking with a number of folks, 
it's getting clearer that how it's being used is very installation specific.

I'd like to simplify this aspect of the API if at all possible, especially with 
a lot of the good ideas around describing the relationships between endpoints 
and and their installation.

The use cases I'm hearing actively in use are:

* (Horizon/UI/client) To indicate to a user where they can go to access their 
data
* (Glance, Nova, Keystone client) to find the endpoint relevant to uploading 
images (current client implementations appear to assume there is only one image 
endpoint)

The use case to indicate a geographic location for a datacenter or cloud is 
not consistent - some implementations I've learned of have that feature (and 
use Region for that sort of information), and others are load balancing a 
single endpoint to deploy to multiple datacenters and geographic regions from a 
single endpoint.

At the summit and conference, I heard a desire to expose geographic information 
with the endpoints, but that is clearly an operator specific 
implementation/deployment detail. Likewise I heard a lot of We could 
really... if additional metadata was easily available on endpoints, again in 
fairly implementation/deployment specific detail.

So looking forward towards a v.next API, what do you all think about having 
just endpoints, with everything else being attributes on those endpoints 
(including what service and type it is), with some expected conventions 
(that there are a few well defined types - such as PublicURL and InternalURL, 
and relevant names for the rest API endpoints (ec2, compute, volume, image, 
identity...) 

Additional metadata can then float on the endpoints in 
deployment/implementation specific ways that don't lock in other systems to be 
deployed and implemented in the same fashion.

-joe


On Apr 20, 2012, at 1:47 PM, Lorin Hochstein wrote:
 On Apr 13, 2012, at 12:34 PM, Adam Gandelman wrote:
 On 04/13/2012 10:50 AM, Dolph Mathews wrote:
 
 While $(tenant_id)s is certainly the documented syntax, it appears that the 
 SQL catalog backend (and *only* the SQL catalog backend, as far as I can 
 tell) explicitly supports both $(tenant_id)s and %(tenant_id)s:
 
 https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L163
 
 Perhaps Adam Gandelman has some insight?
 
 -Dolph
 
 Dolph-
 
 No, the same is supported in the case of templated catalog as well, which is 
 what the SQL catalog was largely based off:
 
 https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/templated.py#L115
 
 Just tested that sed -i 's/\$/%/g' /etc/keystone/default_catalog.templates 
 still produces a functional service catalog when configured to use the 
 templated backend.
 
 Seeing as both are supported, perhaps it would be better for docs to be 
 updated to refer to the use of % instead of $ to avoid people running into 
 problems with the $() sub-shell?
 
 
 The OpenStack Install and Deploy manual has some language about this (see 
 last paragraph): 
 http://docs.openstack.org/trunk/openstack-compute/install/content/elements-of-keystone-service-catalog-entry.html
 
 This hasn't made its way into the admin docs yet, though.
 
 
 Take care,
 
 Lorin
 --
 Lorin Hochstein
 Lead Architect - Cloud Services
 Nimbis Services, Inc.
 www.nimbisservices.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] Quantum deployment on Essex

2012-04-20 Thread Adam Gandelman

On 04/20/2012 01:37 PM, Lorin Hochstein wrote:



This might be due to a known issue with the noVNC package that is 
distributed with Ubuntu 12.04: 
https://bugs.launchpad.net/ubuntu/+source/novnc/+bug/956949


I have heard that the noVNC fork maintained by Rackspace Cloud 
Builders works properly with Essex: 
https://github.com/cloudbuilders/noVNC/





There is a current Ubuntu bug that is attempting to get the newest 
version synced into Precise via a last-minute feature-freeze exception.  
Please weigh in with support if you can confirm the debian package 
works... https://bugs.launchpad.net/ubuntu/+source/novnc/+bug/985274


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


Re: [Openstack] OpenStack and routing configuration

2012-04-20 Thread Edgar Magana (eperdomo)
Hi,

You could also take a look to the work proposed during Folsom summit for 
Quantum L3 APIs.
Quantum has become a core project for OpenStack and our goal is to make it the 
default network manager for all OpenStack. Actually, in our team we started 
already some implementation of L3 Plugins for Quagga  :-)
However, this is just starting this summit and it will take some time to have 
it ready.

Thanks,

Edgar

-Original Message-
From: openstack-bounces+eperdomo=cisco@lists.launchpad.net 
[mailto:openstack-bounces+eperdomo=cisco@lists.launchpad.net] On Behalf Of 
Narayan Desai
Sent: Friday, April 20, 2012 6:40 AM
To: Jérôme Gallard
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] OpenStack and routing configuration

We needed to setup something similar when we split out the
nova-network service to a different host than nova-api in cactus, so
that instances could get to the metadata service. It was pretty simple
to make quagga work, but then we needed to add a rule to bypass NAT.
Since this was just for the metadata service, it was a tightly scoped
rule, but in your case, you'll probably want something that covers
your whole intranet. You'll probably still want NAT for internet bound
traffic.
 -nld

2012/4/19 Jérôme Gallard jeronimo...@gmail.com:
 Hi everyone,

 I would like to know if someone has already tried to setup routing
 configurations with nova-network.

 From my understanding, nova-network only deals with NAT, but I am
 thinking about configurations to directly routes my virtual networks
 on my intranet.

 I am thinking to develop a new driver for the network manager which
 can configure a RIP router (Quagga, ...).

 Any feedbacks ?

 Thanks.

 Regards,
 Jérôme

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

2012-04-20 Thread Joshua Harlow
From james penick here @ yahoo (via proxy):

In the interim, tell those people that code is comin' Real Soon Now.

S expect something to help out here soon ;)

On 4/20/12 8:32 AM, Matt Joyce m...@nycresistor.com wrote:

I've done libvirt calls via nrpe in the past for this.

On Apr 20, 2012 5:28 AM, Leander Bessa leande...@gmail.com wrote:
I've been trying to complete the diagnostics command for libvirt, so far i 
think i can get the cpu usage (still need a sample time of  1 second), volume 
and network io. I still can't get the current memory and total memory. However, 
i believe the latter is a problem with libvirt, since i can't get the 
information through virsh as well.

On Fri, Apr 20, 2012 at 1:11 PM, Tomasz Paszkowski ss7...@gmail.com wrote:
Please also note that diagnostics commands are not working with libvirt/qemu,kvm



On Fri, Apr 20, 2012 at 1:23 PM, Razique Mahroua razique.mahr...@gmail.com 
wrote:
Hey, I think you would look into the diagnostic calls
the operator client (python-novaclient) has implemented it via $nova 
diagnostics, which likely give you the stats you are looking for

Nuage  Co - Razique Mahroua
razique.mahr...@gmail.com


Le 20 avr. 2012 à 13:17, Szymon Grzybowski a écrit :

Is there any way to get information about resource utilization from Openstack? 
Any hidden API or something like that? I'm looking for statistics about CPU, 
RAM usage etc. both from server itself (host) and Instances (Virtual Machines) 
inside openstack, because i'd like to write some piece of software which could 
analyze those data and for example, migrate one VM to another Host. Is it 
possible to do this right now in Openstack? Because all i can see on dashboard 
are stats about instance's type. I've seen in docs something about 
live-migration, but i can't find openstack's way to get informations about 
resources.

Where should i look for it in code if there is no official api, because 
Openstack has to collect such data right?
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp