Re: [Openstack] Export tenant configuration
On 1/23/2014 1:32 PM, Clint Byrum wrote: If you use Heat to manage your resources you already have this. Just deploy your stack again. There is work landing now which will allow Heat to adopt existing resources. So that would be a good format to use as the serialization of all the things in your cloud. Then you just need a tool that lists out everything and saves in the format. That would be quite useful to help drive Heat adoption I think. :) That sounds great! I'm not familiar with Heat. So, do you mean that if I deploy my OpenStack cluster via Heat (like TripleO?), Heat will take care of all the configurations including the database schema and its contents. I just need to export what I want via Heat and then import them(conf files, database contents, keystone backend data...) in the new deployment (maybe upgrade). Heat also takes care of database upgrade or migration, right? Please correct me if there's some misunderstanding. -- Nick Ma skywalker.n...@gmail.com ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] Export tenant configuration
AFAIK, in OpenStack, all the data is stored in sql server and there's no so-called automatic script for this task, but you can dump the desired data from sql server and restore them into the new sql server. You can have a try. Nick Ma On 1/21/2014 10:24 PM, Salvo Rapisarda wrote: Hello, in OpenStack there is a function that export/import the structure of a project (Network,Volume,VMs,ecc...) ? For example, I want to export a complex network configuration from a Grizzly installation to Havana installation. I know that with a bash script it's possible to re-create my tenant via nova command but exists an automated version? It is possible ? Thanks, Salvo. ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack -- Nick Ma skywalker.n...@gmail.com ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] Export tenant configuration
But you surely know that MySQL is not the only SQL back-end for OpenStack services. ;-) This is why I was looking for an alternative solution for export/import the structure of my project. Salvo. Il 22/01/2014 15.57, Nick Ma ha scritto: AFAIK, in OpenStack, all the data is stored in sql server and there's no so-called automatic script for this task, but you can dump the desired data from sql server and restore them into the new sql server. You can have a try. Nick Ma On 1/21/2014 10:24 PM, Salvo Rapisarda wrote: Hello, in OpenStack there is a function that export/import the structure of a project (Network,Volume,VMs,ecc...) ? For example, I want to export a complex network configuration from a Grizzly installation to Havana installation. I know that with a bash script it's possible to re-create my tenant via nova command but exists an automated version? It is possible ? Thanks, Salvo. ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack -- Salvo ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] Export tenant configuration
On Wed, 2014-01-22 at 17:21 +0100, Salvo Rapisarda wrote: But you surely know that MySQL is not the only SQL back-end for OpenStack services. ;-) I don't see any mention of MySQL below by Nick Ma. This is why I was looking for an alternative solution for export/import the structure of my project. What do you mean by structure of my project? The data for the various resources consumed by your project is stored in a number of databases. Additionally, with data about the project itself is stored in the Keystone back-end storage (either RDBMS, KVS or LDAP). If you want to port the network configuration from Grizzly to Havana, UI would just make a snapshot of your Quantum database in Grizzly and start your Havana database from that snapshot, and run the db schema migrations on it. Best, -jay Salvo. Il 22/01/2014 15.57, Nick Ma ha scritto: AFAIK, in OpenStack, all the data is stored in sql server and there's no so-called automatic script for this task, but you can dump the desired data from sql server and restore them into the new sql server. You can have a try. Nick Ma On 1/21/2014 10:24 PM, Salvo Rapisarda wrote: Hello, in OpenStack there is a function that export/import the structure of a project (Network,Volume,VMs,ecc...) ? For example, I want to export a complex network configuration from a Grizzly installation to Havana installation. I know that with a bash script it's possible to re-create my tenant via nova command but exists an automated version? It is possible ? Thanks, Salvo. ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] Export tenant configuration
Some open source packages produce a list of commands that need to run in order to re-create a specific item. So, for a project, there would be a command to create the project, set quota, ... This is more friendly for tweaking afterwards (such as create me a project with -devel after the name) and can be made long term portable (assuming the commands are... ) Not sure it's the best approach for OpenStack but it is worth considering.. Tim -Original Message- From: Jay Pipes [mailto:jaypi...@gmail.com] Sent: 22 January 2014 20:24 To: Salvo Rapisarda Cc: Openstack Subject: Re: [Openstack] Export tenant configuration On Wed, 2014-01-22 at 20:06 +0100, Salvo Rapisarda wrote: Il 22/01/2014 18.18, Jay Pipes ha scritto: On Wed, 2014-01-22 at 17:21 +0100, Salvo Rapisarda wrote: But you surely know that MySQL is not the only SQL back-end for OpenStack services. ;-) I don't see any mention of MySQL below by Nick Ma. Sorry, you are right. MySQL is my OpenStack sql backend. :) This is why I was looking for an alternative solution for export/import the structure of my project. What do you mean by structure of my project? The data for the various resources consumed by your project is stored in a number of databases. Additionally, with data about the project itself is stored in the Keystone back-end storage (either RDBMS, KVS or LDAP). If you want to port the network configuration from Grizzly to Havana, UI would just make a snapshot of your Quantum database in Grizzly and start your Havana database from that snapshot, and run the db schema migrations on it. Best, -jay I know, but I think can be helpful to use a tool for generate, for example, an XML file of my Project that is compatible with the all releases of OpenStack. I think helpful and XML file should not be used in the same sentence. That said, I'm not sure such a thing would really be possible. So many schema changes happen from one release to another, never mind changes in capabilities for underlying technologies like libvirt, OVS, etc... Best, -jay ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] Export tenant configuration
Excerpts from Salvo Rapisarda's message of 2014-01-22 11:06:17 -0800: Il 22/01/2014 18.18, Jay Pipes ha scritto: On Wed, 2014-01-22 at 17:21 +0100, Salvo Rapisarda wrote: But you surely know that MySQL is not the only SQL back-end for OpenStack services. ;-) I don't see any mention of MySQL below by Nick Ma. Sorry, you are right. MySQL is my OpenStack sql backend. :) This is why I was looking for an alternative solution for export/import the structure of my project. What do you mean by structure of my project? The data for the various resources consumed by your project is stored in a number of databases. Additionally, with data about the project itself is stored in the Keystone back-end storage (either RDBMS, KVS or LDAP). If you want to port the network configuration from Grizzly to Havana, UI would just make a snapshot of your Quantum database in Grizzly and start your Havana database from that snapshot, and run the db schema migrations on it. Best, -jay I know, but I think can be helpful to use a tool for generate, for example, an XML file of my Project that is compatible with the all releases of OpenStack. If you use Heat to manage your resources you already have this. Just deploy your stack again. There is work landing now which will allow Heat to adopt existing resources. So that would be a good format to use as the serialization of all the things in your cloud. Then you just need a tool that lists out everything and saves in the format. That would be quite useful to help drive Heat adoption I think. :) ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
[Openstack] Export tenant configuration
Hello, in OpenStack there is a function that export/import the structure of a project (Network,Volume,VMs,ecc...) ? For example, I want to export a complex network configuration from a Grizzly installation to Havana installation. I know that with a bash script it's possible to re-create my tenant via nova command but exists an automated version? It is possible ? Thanks, Salvo. ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack