reference.rst 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. **********************
  3. Concepts and Reference
  4. **********************
  5. In order to configure and use Toaster, you should understand some
  6. concepts and have some basic command reference material available. This
  7. final chapter provides conceptual information on layer sources,
  8. releases, and JSON configuration files. Also provided is a quick look at
  9. some useful ``manage.py`` commands that are Toaster-specific.
  10. Information on ``manage.py`` commands is available across the Web and
  11. this manual by no means attempts to provide a command
  12. comprehensive reference.
  13. Layer Source
  14. ============
  15. In general, a "layer source" is a source of information about existing
  16. layers. In particular, we are concerned with layers that you can use
  17. with the Yocto Project and Toaster. This chapter describes a particular
  18. type of layer source called a "layer index."
  19. A layer index is a web application that contains information about a set
  20. of custom layers. A good example of an existing layer index is the
  21. OpenEmbedded Layer Index. A public instance of this layer index exists
  22. at :oe_layerindex:`/`. You can find the code for this
  23. layer index's web application at :yocto_git:`/layerindex-web/`.
  24. When you tie a layer source into Toaster, it can query the layer source
  25. through a :wikipedia:`REST <Representational_state_transfer>`
  26. API, store the information about the layers in the Toaster database, and
  27. then show the information to users. Users are then able to view that
  28. information and build layers from Toaster itself without having to
  29. clone or edit the BitBake layers configuration file ``bblayers.conf``.
  30. Tying a layer source into Toaster is convenient when you have many
  31. custom layers that need to be built on a regular basis by a community of
  32. developers. In fact, Toaster comes pre-configured with the OpenEmbedded
  33. Metadata Index.
  34. .. note::
  35. You do not have to use a layer source to use Toaster. Tying into a
  36. layer source is optional.
  37. Setting Up and Using a Layer Source
  38. -----------------------------------
  39. To use your own layer source, you need to set up the layer source and
  40. then tie it into Toaster. This section describes how to tie into a layer
  41. index in a manner similar to the way Toaster ties into the OpenEmbedded
  42. Metadata Index.
  43. Understanding Your Layers
  44. ~~~~~~~~~~~~~~~~~~~~~~~~~
  45. The obvious first step for using a layer index is to have several custom
  46. layers that developers build and access using the Yocto Project on a
  47. regular basis. This set of layers needs to exist and you need to be
  48. familiar with where they reside. You will need that information when you
  49. set up the code for the web application that "hooks" into your set of
  50. layers.
  51. For general information on layers, see the
  52. ":ref:`overview-manual/yp-intro:the yocto project layer model`"
  53. section in the Yocto Project Overview and Concepts Manual. For information on how
  54. to create layers, see the ":ref:`dev-manual/layers:understanding and creating layers`"
  55. section in the Yocto Project Development Tasks Manual.
  56. Configuring Toaster to Hook Into Your Layer Index
  57. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58. If you want Toaster to use your layer index, you must host the web
  59. application in a server to which Toaster can connect. You also need to
  60. give Toaster the information about your layer index. In other words, you
  61. have to configure Toaster to use your layer index. This section
  62. describes two methods by which you can configure and use your layer
  63. index.
  64. In the previous section, the code for the OpenEmbedded Metadata Index
  65. (i.e. :oe_layerindex:`/`) was referenced. You can use
  66. this code, which is at :yocto_git:`/layerindex-web/`, as a base to create
  67. your own layer index.
  68. Use the Administration Interface
  69. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  70. Access the administration interface through a browser by entering the
  71. URL of your Toaster instance and adding "``/admin``" to the end of the
  72. URL. As an example, if you are running Toaster locally, use the
  73. following URL::
  74. http://127.0.0.1:8000/admin
  75. The administration interface has a "Layer sources" section that includes
  76. an "Add layer source" button. Click that button and provide the required
  77. information. Make sure you select "layerindex" as the layer source type.
  78. Use the Fixture Feature
  79. ^^^^^^^^^^^^^^^^^^^^^^^
  80. The Django fixture feature overrides the default layer server when you
  81. use it to specify a custom URL. To use the fixture feature, create (or
  82. edit) the file ``bitbake/lib/toaster.orm/fixtures/custom.xml``, and then
  83. set the following Toaster setting to your custom URL:
  84. .. code-block:: xml
  85. <?xml version="1.0" ?>
  86. <django-objects version="1.0">
  87. <object model="orm.toastersetting" pk="100">
  88. <field name="name" type="CharField">CUSTOM_LAYERINDEX_SERVER</field>
  89. <field name="value" type="CharField">https://layers.my_organization.org/layerindex/branch/master/layers/</field>
  90. </object>
  91. <django-objects>
  92. When you start Toaster for the first time, or
  93. if you delete the file ``toaster.sqlite`` and restart, the database will
  94. populate cleanly from this layer index server.
  95. Once the information has been updated, verify the new layer information
  96. is available by using the Toaster web interface. To do that, visit the
  97. "All compatible layers" page inside a Toaster project. The layers from
  98. your layer source should be listed there.
  99. If you change the information in your layer index server, refresh the
  100. Toaster database by running the following command:
  101. .. code-block:: shell
  102. $ bitbake/lib/toaster/manage.py lsupdates
  103. If Toaster can reach the API URL, you should see a message telling you that
  104. Toaster is updating the layer source information.
  105. Releases
  106. ========
  107. When you create a Toaster project using the web interface, you are asked
  108. to choose a "Release." In the context of Toaster, the term "Release"
  109. refers to a set of layers and a BitBake version the OpenEmbedded build
  110. system uses to build something. As shipped, Toaster is pre-configured
  111. with releases that correspond to Yocto Project release branches.
  112. However, you can modify, delete, and create new releases according to
  113. your needs. This section provides some background information on
  114. releases.
  115. Pre-Configured Releases
  116. -----------------------
  117. As shipped, Toaster is configured to use a specific set of releases. Of
  118. course, you can always configure Toaster to use any release. For
  119. example, you might want your project to build against a specific commit
  120. of any of the "out-of-the-box" releases. Or, you might want your project
  121. to build against different revisions of OpenEmbedded and BitBake.
  122. As shipped, Toaster is configured to work with the following releases:
  123. - *Yocto Project &DISTRO; "&DISTRO_NAME;" or OpenEmbedded "&DISTRO_NAME;":*
  124. This release causes your Toaster projects to build against the head
  125. of the &DISTRO_NAME_NO_CAP; branch at
  126. :yocto_git:`/poky/log/?h=&DISTRO_NAME_NO_CAP;` or
  127. :oe_git:`/openembedded-core/commit/?h=&DISTRO_NAME_NO_CAP;`.
  128. - *Yocto Project "Master" or OpenEmbedded "Master":* This release
  129. causes your Toaster Projects to build against the head of the master
  130. branch, which is where active development takes place, at
  131. :yocto_git:`/poky/log/` or :oe_git:`/openembedded-core/log/`.
  132. - *Local Yocto Project or Local OpenEmbedded:* This release causes your
  133. Toaster Projects to build against the head of the ``poky`` or
  134. ``openembedded-core`` clone you have local to the machine running
  135. Toaster.
  136. Configuring Toaster
  137. ===================
  138. In order to use Toaster, you must configure the database with the
  139. default content. The following subsections describe various aspects of
  140. Toaster configuration.
  141. Configuring the Workflow
  142. ------------------------
  143. The ``bldcontrol/management/commands/checksettings.py`` file controls
  144. workflow configuration. Here is the process to
  145. initially populate this database.
  146. #. The default project settings are set from
  147. ``orm/fixtures/settings.xml``.
  148. #. The default project distro and layers are added from
  149. ``orm/fixtures/poky.xml`` if poky is installed. If poky is not
  150. installed, they are added from ``orm/fixtures/oe-core.xml``.
  151. #. If the ``orm/fixtures/custom.xml`` file exists, then its values are
  152. added.
  153. #. The layer index is then scanned and added to the database.
  154. Once these steps complete, Toaster is set up and ready to use.
  155. Customizing Pre-Set Data
  156. ------------------------
  157. The pre-set data for Toaster is easily customizable. You can create the
  158. ``orm/fixtures/custom.xml`` file to customize the values that go into
  159. the database. Customization is additive, and can either extend or
  160. completely replace the existing values.
  161. You use the ``orm/fixtures/custom.xml`` file to change the default
  162. project settings for the machine, distro, file images, and layers. When
  163. creating a new project, you can use the file to define the offered
  164. alternate project release selections. For example, you can add one or
  165. more additional selections that present custom layer sets or distros,
  166. and any other local or proprietary content.
  167. Additionally, you can completely disable the content from the
  168. ``oe-core.xml`` and ``poky.xml`` files by defining the section shown
  169. below in the ``settings.xml`` file. For example, this option is
  170. particularly useful if your custom configuration defines fewer releases
  171. or layers than the default fixture files.
  172. The following example sets "name" to "CUSTOM_XML_ONLY" and its value to
  173. "True".
  174. .. code-block:: xml
  175. <object model="orm.toastersetting" pk="99">
  176. <field type="CharField" name="name">CUSTOM_XML_ONLY</field>
  177. <field type="CharField" name="value">True</field>
  178. </object>
  179. Understanding Fixture File Format
  180. ---------------------------------
  181. Here is an overview of the file format used by the
  182. ``oe-core.xml``, ``poky.xml``, and ``custom.xml`` files.
  183. The following subsections describe each of the sections in the fixture
  184. files, and outline an example section of the XML code. you can use to
  185. help understand this information and create a local ``custom.xml`` file.
  186. Defining the Default Distro and Other Values
  187. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  188. This section defines the default distro value for new projects. By
  189. default, it reserves the first Toaster Setting record "1". The following
  190. demonstrates how to set the project default value for
  191. :term:`DISTRO`:
  192. .. code-block:: xml
  193. <!-- Set the project default value for DISTRO -->
  194. <object model="orm.toastersetting" pk="1">
  195. <field type="CharField" name="name">DEFCONF_DISTRO</field>
  196. <field type="CharField" name="value">poky</field>
  197. </object>
  198. You can override
  199. other default project values by adding additional Toaster Setting
  200. sections such as any of the settings coming from the ``settings.xml``
  201. file. Also, you can add custom values that are included in the BitBake
  202. environment. The "pk" values must be unique. By convention, values that
  203. set default project values have a "DEFCONF" prefix.
  204. Defining BitBake Version
  205. ~~~~~~~~~~~~~~~~~~~~~~~~
  206. The following defines which version of BitBake is used for the following
  207. release selection:
  208. .. code-block:: xml
  209. <!-- Bitbake versions which correspond to the metadata release -->
  210. <object model="orm.bitbakeversion" pk="1">
  211. <field type="CharField" name="name">&DISTRO_NAME_NO_CAP;</field>
  212. <field type="CharField" name="giturl">git://git.yoctoproject.org/poky</field>
  213. <field type="CharField" name="branch">&DISTRO_NAME_NO_CAP;</field>
  214. <field type="CharField" name="dirpath">bitbake</field>
  215. </object>
  216. Defining Release
  217. ~~~~~~~~~~~~~~~~
  218. The following defines the releases when you create a new project:
  219. .. code-block:: xml
  220. <!-- Releases available -->
  221. <object model="orm.release" pk="1">
  222. <field type="CharField" name="name">&DISTRO_NAME_NO_CAP;</field>
  223. <field type="CharField" name="description">Yocto Project &DISTRO; "&DISTRO_NAME;"</field>
  224. <field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
  225. <field type="CharField" name="branch_name">&DISTRO_NAME_NO_CAP;</field>
  226. <field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=&DISTRO_NAME_NO_CAP;">Yocto Project &DISTRO_NAME; branch</a>.</field>
  227. </object>
  228. The "pk" value must match the above respective BitBake version record.
  229. Defining the Release Default Layer Names
  230. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  231. The following defines the default layers for each release:
  232. .. code-block:: xml
  233. <!-- Default project layers for each release -->
  234. <object model="orm.releasedefaultlayer" pk="1">
  235. <field rel="ManyToOneRel" to="orm.release" name="release">1</field>
  236. <field type="CharField" name="layer_name">openembedded-core</field>
  237. </object>
  238. The 'pk' values in the example above should start at "1" and increment
  239. uniquely. You can use the same layer name in multiple releases.
  240. Defining Layer Definitions
  241. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  242. Layer definitions are the most complex. The following defines each of
  243. the layers, and then defines the exact layer version of the layer used
  244. for each respective release. You must have one ``orm.layer`` entry for
  245. each layer. Then, with each entry you need a set of
  246. ``orm.layer_version`` entries that connects the layer with each release
  247. that includes the layer. In general all releases include the layer.
  248. .. code-block:: xml
  249. <object model="orm.layer" pk="1">
  250. <field type="CharField" name="name">openembedded-core</field>
  251. <field type="CharField" name="layer_index_url"></field>
  252. <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
  253. <field type="CharField" name="vcs_web_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
  254. <field type="CharField" name="vcs_web_tree_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
  255. <field type="CharField" name="vcs_web_file_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
  256. </object>
  257. <object model="orm.layer_version" pk="1">
  258. <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
  259. <field type="IntegerField" name="layer_source">0</field>
  260. <field rel="ManyToOneRel" to="orm.release" name="release">1</field>
  261. <field type="CharField" name="branch">&DISTRO_NAME_NO_CAP;</field>
  262. <field type="CharField" name="dirpath">meta</field>
  263. </object> <object model="orm.layer_version" pk="2">
  264. <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
  265. <field type="IntegerField" name="layer_source">0</field>
  266. <field rel="ManyToOneRel" to="orm.release" name="release">2</field>
  267. <field type="CharField" name="branch">HEAD</field>
  268. <field type="CharField" name="commit">HEAD</field>
  269. <field type="CharField" name="dirpath">meta</field>
  270. </object>
  271. <object model="orm.layer_version" pk="3">
  272. <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
  273. <field type="IntegerField" name="layer_source">0</field>
  274. <field rel="ManyToOneRel" to="orm.release" name="release">3</field>
  275. <field type="CharField" name="branch">master</field>
  276. <field type="CharField" name="dirpath">meta</field>
  277. </object>
  278. The layer "pk" values above must be unique, and typically start at "1". The
  279. layer version "pk" values must also be unique across all layers, and typically
  280. start at "1".
  281. Remote Toaster Monitoring
  282. =========================
  283. Toaster has an API that allows remote management applications to
  284. directly query the state of the Toaster server and its builds in a
  285. machine-to-machine manner. This API uses the
  286. :wikipedia:`REST <Representational_state_transfer>` interface and the
  287. transfer of JSON files. For example, you might monitor
  288. a build inside a container through well supported known HTTP ports in
  289. order to easily access a Toaster server inside the container. In this
  290. example, when you use this direct JSON API, you avoid having web page
  291. parsing against the display the user sees.
  292. Checking Health
  293. ---------------
  294. Before you use remote Toaster monitoring, you should do a health check.
  295. To do this, ping the Toaster server using the following call to see if
  296. it is still alive::
  297. http://host:port/health
  298. Be sure to provide values for host and port. If the server is alive, you will
  299. get the response HTML:
  300. .. code-block:: html
  301. <!DOCTYPE html>
  302. <html lang="en">
  303. <head><title>Toaster Health</title></head>
  304. <body>Ok</body>
  305. </html>
  306. Determining Status of Builds in Progress
  307. ----------------------------------------
  308. Sometimes it is useful to determine the status of a build in progress.
  309. To get the status of pending builds, use the following call::
  310. http://host:port/toastergui/api/building
  311. Be sure to provide values for host and port. The output is a JSON file that
  312. itemizes all builds in progress. This file includes the time in seconds since
  313. each respective build started as well as the progress of the cloning, parsing,
  314. and task execution. Here is sample output for a build in progress:
  315. .. code-block:: JSON
  316. {"count": 1,
  317. "building": [
  318. {"machine": "beaglebone",
  319. "seconds": "463.869",
  320. "task": "927:2384",
  321. "distro": "poky",
  322. "clone": "1:1",
  323. "id": 2,
  324. "start": "2017-09-22T09:31:44.887Z",
  325. "name": "20170922093200",
  326. "parse": "818:818",
  327. "project": "my_rocko",
  328. "target": "core-image-minimal"
  329. }]
  330. }
  331. The JSON data for this query is returned in a
  332. single line. In the previous example the line has been artificially
  333. split for readability.
  334. Checking Status of Builds Completed
  335. -----------------------------------
  336. Once a build is completed, you get the status when you use the following
  337. call::
  338. http://host:port/toastergui/api/builds
  339. Be sure to provide values for host and port. The output is a JSON file that
  340. itemizes all complete builds, and includes build summary information. Here
  341. is sample output for a completed build:
  342. .. code-block:: JSON
  343. {"count": 1,
  344. "builds": [
  345. {"distro": "poky",
  346. "errors": 0,
  347. "machine": "beaglebone",
  348. "project": "my_rocko",
  349. "stop": "2017-09-22T09:26:36.017Z",
  350. "target": "quilt-native",
  351. "seconds": "78.193",
  352. "outcome": "Succeeded",
  353. "id": 1,
  354. "start": "2017-09-22T09:25:17.824Z",
  355. "warnings": 1,
  356. "name": "20170922092618"
  357. }]
  358. }
  359. The JSON data for this query is returned in a single line. In the
  360. previous example the line has been artificially split for readability.
  361. Determining Status of a Specific Build
  362. --------------------------------------
  363. Sometimes it is useful to determine the status of a specific build. To
  364. get the status of a specific build, use the following call::
  365. http://host:port/toastergui/api/build/ID
  366. Be sure to provide values for
  367. host, port, and ID. You can find the value for ID from the Builds
  368. Completed query. See the ":ref:`toaster-manual/reference:checking status of builds completed`"
  369. section for more information.
  370. The output is a JSON file that itemizes the specific build and includes
  371. build summary information. Here is sample output for a specific
  372. build:
  373. .. code-block:: JSON
  374. {"build":
  375. {"distro": "poky",
  376. "errors": 0,
  377. "machine": "beaglebone",
  378. "project": "my_rocko",
  379. "stop": "2017-09-22T09:26:36.017Z",
  380. "target": "quilt-native",
  381. "seconds": "78.193",
  382. "outcome": "Succeeded",
  383. "id": 1,
  384. "start": "2017-09-22T09:25:17.824Z",
  385. "warnings": 1,
  386. "name": "20170922092618",
  387. "cooker_log": "/opt/user/poky/build-toaster-2/tmp/log/cooker/beaglebone/build_20170922_022607.991.log"
  388. }
  389. }
  390. The JSON data for this query is returned in a single line. In the
  391. previous example the line has been artificially split for readability.
  392. Useful Commands
  393. ===============
  394. In addition to the web user interface and the scripts that start and
  395. stop Toaster, command-line commands are available through the ``manage.py``
  396. management script. You can find general documentation on ``manage.py``
  397. at the
  398. `Django <https://docs.djangoproject.com/en/2.2/topics/settings/>`__
  399. site. However, several ``manage.py`` commands have been created that are
  400. specific to Toaster and are used to control configuration and back-end
  401. tasks. You can locate these commands in the
  402. :term:`Source Directory` (e.g. ``poky``) at
  403. ``bitbake/lib/manage.py``. This section documents those commands.
  404. .. note::
  405. - When using ``manage.py`` commands given a default configuration,
  406. you must be sure that your working directory is set to the
  407. :term:`Build Directory`. Using ``manage.py`` commands from the
  408. :term:`Build Directory` allows Toaster to find the ``toaster.sqlite``
  409. file, which is located in the :term:`Build Directory`.
  410. - For non-default database configurations, it is possible that you
  411. can use ``manage.py`` commands from a directory other than the
  412. :term:`Build Directory`. To do so, the ``toastermain/settings.py`` file
  413. must be configured to point to the correct database backend.
  414. ``buildslist``
  415. --------------
  416. The ``buildslist`` command lists all builds that Toaster has recorded.
  417. Access the command as follows:
  418. .. code-block:: shell
  419. $ bitbake/lib/toaster/manage.py buildslist
  420. The command returns a list, which includes numeric
  421. identifications, of the builds that Toaster has recorded in the current
  422. database.
  423. You need to run the ``buildslist`` command first to identify existing
  424. builds in the database before using the
  425. :ref:`toaster-manual/reference:``builddelete``` command. Here is an
  426. example that assumes default repository and :term:`Build Directory` names:
  427. .. code-block:: shell
  428. $ cd poky/build
  429. $ python ../bitbake/lib/toaster/manage.py buildslist
  430. If your Toaster database had only one build, the above
  431. :ref:`toaster-manual/reference:``buildslist```
  432. command would return something like the following::
  433. 1: qemux86 poky core-image-minimal
  434. ``builddelete``
  435. ---------------
  436. The ``builddelete`` command deletes data associated with a build. Access
  437. the command as follows:
  438. .. code-block::
  439. $ bitbake/lib/toaster/manage.py builddelete build_id
  440. The command deletes all the build data for the specified
  441. build_id. This command is useful for removing old and unused data from
  442. the database.
  443. Prior to running the ``builddelete`` command, you need to get the ID
  444. associated with builds by using the
  445. :ref:`toaster-manual/reference:``buildslist``` command.
  446. ``perf``
  447. --------
  448. The ``perf`` command measures Toaster performance. Access the command as
  449. follows:
  450. .. code-block:: shell
  451. $ bitbake/lib/toaster/manage.py perf
  452. The command is a sanity check that returns page loading times in order to
  453. identify performance problems.
  454. ``checksettings``
  455. -----------------
  456. The ``checksettings`` command verifies existing Toaster settings. Access
  457. the command as follows:
  458. .. code-block:: shell
  459. $ bitbake/lib/toaster/manage.py checksettings
  460. Toaster uses settings that are based on the database to configure the
  461. building tasks. The ``checksettings`` command verifies that the database
  462. settings are valid in the sense that they have the minimal information
  463. needed to start a build.
  464. In order for the ``checksettings`` command to work, the database must be
  465. correctly set up and not have existing data. To be sure the database is
  466. ready, you can run the following:
  467. .. code-block:: shell
  468. $ bitbake/lib/toaster/manage.py syncdb
  469. $ bitbake/lib/toaster/manage.py migrate orm
  470. $ bitbake/lib/toaster/manage.py migrate bldcontrol
  471. After running these commands, you can run the ``checksettings`` command.
  472. ``runbuilds``
  473. -------------
  474. The ``runbuilds`` command launches scheduled builds. Access the command
  475. as follows:
  476. .. code-block:: shell
  477. $ bitbake/lib/toaster/manage.py runbuilds
  478. The ``runbuilds`` command checks if scheduled builds exist in the database
  479. and then launches them per schedule. The command returns after the builds
  480. start but before they complete. The Toaster Logging Interface records and
  481. updates the database when the builds complete.