| Summary: | Ability to add custom layer directory sources for Toaster | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Toaster | Reporter: | David Reyna <david.reyna> |
| Component: | toaster | Assignee: | Alexandru Damian <alexandru.damian> |
| Status: | RESOLVED FIXED | QA Contact: | Mihail Stanciu <stanciux.mihail> |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | alexandru.c.georgescu, alexandru.damian, belen.barros.pena, bluelightning, bogdanx.a.voiculescu, cristiana.voicu |
| Version: | 1.7 | ||
| Target Milestone: | 1.8 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
David Reyna
2014-07-09 05:15:17 UTC
This is assigned to me, but on the first go the configuration of layer sources will probably be done via editing directly the Toaster settings and configuration files. Changing assignee to Alex. Implemented the "Local" layer source, with layers URLs set to localhost directories. The layer sources are managed through the admin interface. The layers can be imported as local layer sources through the layer import functionality. A project with local layers can only be built on the localhost build environment, and it cannot be exported (implementation in progress). I tried to add a new layer in the admin page and that worked and the backend table orm_layersource was populated with the manual added layer:
select * from orm_layersource;
id = 1
name = Local Poky
sourcetype = 0
apiurl = /home/ionut/work/weekly/poky/
id = 2
name = meta-selftest
sourcetype = 0
apiurl = /home/ionut/work/weekly/poky/meta-selftest
The only thing for which I cannot validate this feature as Verified Fixed is that I cannot see/add the layer in the "New project page".
Is there another way to check that the manually added layer will be taken into consideration for the next build ?
Cheers,
Ionut
See above. According to Alex this is a duplicate of 6595. When it comes time to test that, Michael or Alex can explain how to verify the layer has been added from the backend (although I would have thought the best way to test it would be to actually run the build.) *** This bug has been marked as a duplicate of bug 6595 *** According to Belen this is not in fact a duplicate of 6595. Her comments: "[This bug] is about providing Toaster administrators with a way of creating their own layer sources, a process which involves 2 steps: 1. Create and populate your own instance of the layer index 2. Configure Toaster to pull information from that layer index Bug 6595 is about providing "normal" Toaster users (i.e. not administrators) a way of importing a layer. The import layer page does this. So these are not duplicates, and the ability to configure a custom layer source in Toaster should be tested." Sorry for the confusion. This bug is fixed, as it is possible to add custom layer sources through the Django admin interface. The layer sources do not appear in the "New Project" page. The proper way to test this functionality is: 1. Install a local copy of the layerindex application 2. Add a particular layer info in this layer index application instance 3. Add the layer index instance as a new layer source inside Toaster 4. Perform "lsupdates" comman in toaster manage.py and verify that it completes 5. Verify the layer added at 2. is available in "All layers" list in Toaster. Pay attention to the branch names used at step 2 - they need to match with the release names used at step 5. |