[Toaster] Toaster documentation, 1.6 release

Barros Pena, Belen belen.barros.pena at intel.com
Wed Mar 26 04:23:35 PDT 2014


Hi Scott, 

There is some more detail we need to add to the explanation about how to
delete builds from the Toaster database. This is Alex's explanation:

The buildslist and builddelete ​commands ​have some prerequisites in terms
of how they're invoked:

* in the default configuration, the current working directory needs ​to be
the 'build/' directory as to let the system find the "toaster.sqlite" file
in this directory

* in other database configuration, it may be possible to invoke from other
directories, provided that the toastermain/settings.py file is correctly
configured as to point to the correct database backend.

I recommend to always call manage.py from the "build/" directory.

Thanks!

Belén



On 19/03/2014 21:55, "Scott Rifenbark" <srifenbark at gmail.com> wrote:

>Here is a quick section on deleting a build from the toaster database.
>
>-----------------------------------
>
>Deleting a Build from the Toaster Database
>
>
>You can use the manage.py command, which is located in the
>/poky/bitbake/lib/toaster directory to identify and delete builds from
>the Toaster database.  Follow these steps to delete a build:
>
>
>1. Identify the build:  Run the following command from the toaster
>directory to display a user-readable, tabbed list of build IDs and
>identification information:
>
>
>     ./manage.py buildslist
>
>
>2. Delete a specific build: Using the build ID displayed in the previous
>step, run the following command to delete a specific build:
>
>
>     ./manage.py <build_id>
>
>
>The build and all related information is deleted from the Toaster
>database.  The deletion operation traverses the ForeignKey relationships
>recursively.
>
>
>
>
>
>On Wed, Mar 19, 2014 at 10:52 AM, Barros Pena, Belen
><belen.barros.pena at intel.com> wrote:
>
>Hi Scott,
>
>There is one more thing that needs to be documented: how to delete builds
>from the Toaster database.
>
>https://bugzilla.yoctoproject.org/show_bug.cgi?id=4625
>
>There is a file in the /poky/bitbake/lib/toaster directory called
>manage.py. You can run that file with additional commands. There are 2
>commands relevant to delete builds:
>
>1. buildslist
>This command is run ./manage.py buildslist and it will show you a
>user-readable tabbed list of build ids and identification information
>
>2. builddelete
>This command is run ./manage.py <build_id> and will delete the build with
>the specified id AND ALL related information (traversing the ForeignKey
>relationships recursively) from the database.
>
>Alex, feel free to add anything that might be missing above.
>
>Since it looks like pretty much everything related to Toaster will be
>documented in the wiki for 1.6, we should probably do the same with this
>one too, but I might add the information to the Toaster manual in the YP
>website as well.
>
>If you have any questions, let us know.
>
>Thanks!
>
>Belén
>
>
>
>On 18/03/2014 16:47, "Barros Pena, Belen" <belen.barros.pena at intel.com>
>wrote:
>
>>Hi Scott,
>>
>>As I mentioned, we would like to document how to set up a Toaster
>>instance
>>in a remote host. Alex Damian sent an email to the mailing list
>>explaining
>>the process back in February. This is it:
>>
>>https://lists.yoctoproject.org/pipermail/toaster/2014-February/000464.htm
>>l
>>
>>We are thinking of documenting this in the wiki for the moment, with
>>maybe
>>a link to it from the existing Toaster section in the Development Manual.
>>
>>Just contact any of us, or the Toaster mailing list, if you have any
>>questions.
>>
>>Thanks for your help with this!
>>
>>Belén
>>
>
>
>>--
>>_______________________________________________
>>toaster mailing list
>>toaster at yoctoproject.org
>>https://lists.yoctoproject.org/listinfo/toaster
>
>
>
>
>
>
>
>
>
>
>
>



More information about the toaster mailing list