<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8984</bug_id>
          
          <creation_ts>2016-01-22 12:45:57 +0000</creation_ts>
          <short_desc>In the production set up, the build environment object is not created</short_desc>
          <delta_ts>2016-01-27 10:24:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>2.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58136</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-22 12:45:57 +0000</bug_when>
    <thetext>When setting up Toaster in what we&apos;ve called the production set up, the build environment object is not created, and must be created manually. This makes the toaster set up process somehow harder.

We should automate this step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58145</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-22 15:27:56 +0000</bug_when>
    <thetext>Fortunately it seems to be documentation issue.

This is an incorrect piece of doc:
Get Toaster to create the database schema, default data, and gather the statically-served files:

     $ cd  /var/www/toaster/poky/
     $ ./bitbake/lib/toaster/manage.py syncdb --migrate
     $ ./bitbake/lib/toaster/manage.py loadconf ./meta-yocto/conf/toasterconf.json
     $ ./bitbake/lib/toaster/manage.py lsupdates
     $ ./bitbake/lib/toaster/manage.py collectstatic

The set of commands is now different. Here is what should be done instead:
$ cd  /var/www/toaster/poky/
$ ./bitbake/lib/toaster/manage.py syncdb
$ ./bitbake/lib/toaster/manage.py migrate
$ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58146</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-22 16:14:58 +0000</bug_when>
    <thetext>just figured out that ./bitbake/lib/toaster/manage.py collectstatic is still needed for production setup.

so, the right set of commands is:
    $ cd  /var/www/toaster/poky/
    $ ./bitbake/lib/toaster/manage.py syncdb
    $ ./bitbake/lib/toaster/manage.py migrate
    $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings
    $ ./bitbake/lib/toaster/manage.py collectstatic

Below description should also be adjusted according to new set of commands:

For the above set of commands, after moving to the poky directory, the syncdb command with the migrate option makes sure the database schema has had changes propagated correctly (i.e. migrations). See the syncdb command for more information.

The loadconf command loads the ./meta-yocto/conf/toasterconf.json JSON file.

The lsupdates command fetches information about machines, recipes and layers available as part of OpenEmbedded. The information is fetched from the OpenEmbedded Metadata Index. This information provides easy access to metadata from Toaster, and it is key for Toaster&apos;s usability. It is not recommended that you use Toaster without fetching this information.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58176</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-25 12:34:17 +0000</bug_when>
    <thetext>Documentation changes submitted for review

https://lists.yoctoproject.org/pipermail/toaster/2016-January/003735.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58263</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-27 10:24:18 +0000</bug_when>
    <thetext>Changes merged to the manual. See

http://www.yoctoproject.org/docs/2.0/toaster-manual/toaster-manual.html#toaster-installation-steps

http://www.yoctoproject.org/docs/2.1/toaster-manual/toaster-manual.html#toaster-installation-steps</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>