aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow
AgeCommit message (Collapse)AuthorFilesLines
2019-04-15Fixing Network ModelsParker Berberian2-172/+136
Change-Id: Ia2cdf069e90c8091e8d984c368e47f375aed02ea Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-13Bookings no longer default to 0 daysSawyer Bergeron1-2/+2
This commit rectifies bookings defaulting to (and allowing) a length of 0 on the booking meta step Change-Id: I5a9a516fc7cb2b5e9f30ec1b4ad93f7c31d1acbc Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-03-01Enhance PDF/IDF SupportParker Berberian1-1/+2
Improves PDF template and code organization and adds an IDF template. To complete these templates, the lab must be able to report L3 network info and ipmi info at the least. A change to the API to allow for this has to be made. Change-Id: I4b9d2e73eb3940300f7e95fa2f9f4ddd0d606c60 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-22Fixed Selection of single hosts in quick bookingParker Berberian1-0/+2
Change-Id: I8ca860ee23f9df44e38da76d539729771d32c455 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-18Merge "Fixed all Flake8 errors"Parker Berberian5-14/+20
2019-02-12Fixed all Flake8 errorsParker Berberian5-14/+20
Change-Id: I1186429df8989461e2384f1f3e533c55cebfb1b4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-29Fixed PTL ChecksParker Berberian1-5/+18
First, this commit correctly parses the gerrit urls and can redirect itself to the raw info file if the user provides the html rendered one. This commit also fixes the way it checks the user against the found PTLs. The returned data changed format when support was added for sub-PTLs and the checks were never updated. Change-Id: I5801d207ec823c718a5beb5d5e78ee5780ec65e0 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-22Fixed timezone issue in the Snapshot WorkflowParker Berberian1-2/+2
The snapshot workflow was using the python datetime module directly, which breaks on the strict timezone requirements of the live dashboard. This commit uses the django timezone module instead Change-Id: I04b43b127bd3d8eb8ac72aa9c84e24a5f154a880 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-18OverHaul the Snapshot WorkflowParker Berberian3-2/+19
Makes the Snapshot workflow much prettier and more functional. Change-Id: Icdd66f64e6d336ad49ed3cf638a301d0ca92fda9 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-18Add Quick-Booking WorkflowSawyer Bergeron1-4/+4
Users can now quickly provision a single-host pod without having to configure unecessary networking. This is intended to be analogous to the workflow used during LaaS 1.0, and to speed up the process of creating a booking for users who do not need more than a single host (for virtual deployments) Change-Id: Ia19cea9a42bbb1df57aad05af8f8ea821395664d Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-03Merge "Requires a Jumphost per POD"Parker Berberian1-0/+7
2019-01-03Merge "Implement Segmented Workflows"Parker Berberian7-199/+168
2019-01-03Requires a Jumphost per PODParker Berberian1-0/+7
It was assumed but never enforced that each pod configuration elects at least one host as the "jumphost". This commit makes that a requirement when creating a configuration. Change-Id: If55f1aa231b3cba8713f325f158796d85466b02a Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-03Implement Segmented WorkflowsSawyer Bergeron7-199/+168
A major source of bugs has been how we've approached inlining workflows. We no longer inline them as of this commit, and instead use a stack structure. This commits the result of workflows to the database before other workflows try to read them, so we don't have to maintain a code path for when something is or isn't committed to db. This patchset allows for workflows to pass limited information to preset selections Change-Id: I3d040c7f3024c7420017ae4ec66a23219303dcb6 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-02Quick fix for dictionary accessParker Berberian1-1/+1
the line .labs needed to be changed to ['labs'] Change-Id: I6d2aa2eca0413186ddf482aba7f01e4e53c0265b Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-02Merge "Renders Pod Destriptor File earlier"Parker Berberian1-0/+6
2019-01-02Renders Pod Destriptor File earlierParker Berberian1-0/+6
Currently, the PDF is rendered 'on-demand' every time you visit the booking detail page. This change renders the pdf once and saves it in the booking model. Advantages: - saves computation of re-rendering pdf constantly - fixes issue where pdf fails to render after booking expires Change-Id: I58d20fadce088d78ebd22f1d6f67cab371823542 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-12-19Merge "Force Lab Selection on POD Creation"Parker Berberian1-3/+6
2018-12-14Force Lab Selection on POD CreationParker Berberian1-3/+6
Currently, a user can leave the "Define Hardware" step without choosing which lab thier pod should be at. This causes errors later in the pod creation process. This commit forces one lab to be selected before they can leave the first step. Change-Id: I7315bc8781ebeb66bcd32fdba30535100b59a3ff Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-12-14Checks Sub Project LeadsParker Berberian1-8/+77
Fatih Pointed out to me the existence of ptl's of sub projects, which show up differently in the INFO.yaml files. This commit also adds support for gerrit.opnfv.org and git.opnfv.org links. I don't remember why we were only accepting github links, but that seems strange. Change-Id: Ica64c4ee7d5c0ce4fa6bfbcbabb1c4ca7cf06018 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-11-26Fixed Misc BugsParker Berberian2-2/+16
Some corner cases that cause issues recently came to our attention. Fixes issues in the booking workflow and the Notification system. Change-Id: Ie16118ba1bdbeff86bb41a16dc783337b921d527 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-11-26Fix all flake8 errorsParker Berberian13-238/+306
The flake8 command in test.sh finds no longer finds any errors. This may form a basis of a jenkins verify job as a sort of 'weak compile-time checks' The flake8 command will not complain about line length, and will not complain about django's manage.py file Change-Id: Ic47cb4fc7ada55e64485661ab6881aef475018ff Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-11-07Merge "Rewrite Notification subsystem"Trevor Bramwell1-3/+4
2018-11-07Rewrite Notification subsystemParker Berberian1-3/+4
In this commit: - delete a lot of really bad and / or unused code - redesign a much simpler Notification model - create and send notifications to the user's inbox on booking start & end - migrations - emails user when booking is ready and when it ends Not in this commit: - Creating notifications from lab messages - warning messages when a booking is about to end - creating "summary" notifications when e.g. a booking has been fulfilled by a lab Change-Id: I69b4dc36c3f2bce76d810106baadeef5a562cc7d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-26Improved Collaborators UXParker Berberian1-2/+2
Some small improvements based on feedback from Trevor. - Changed lable from "users" to "collaborators" to try and be more clear - Do not show your own name in the dropdown by default - You cannot select yourself as a collaborator Change-Id: Ie2e9070232765ed9eabe6657924ed8addaa0165a Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-17Fix TypoParker Berberian1-1/+0
In one of the patchsets of LaaS 2.0 a typo was added. Change-Id: I02ff24bea345279df6643c0b1a4358ab2eff1d31 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-15Lab as a Service 2.0Parker Berberian17-0/+3199
See changes here: https://wiki.opnfv.org/display/INF/Pharos+Laas Change-Id: I59ada5f98e70a28d7f8c14eab3239597e236ca26 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>