aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
AgeCommit message (Collapse)AuthorFilesLines
2023-08-21minor status changesJustin Choquette1-1/+1
Change-Id: Ia29c2879ddea67bdb6b30c4e871d8cb97be38d41 Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2023-08-18MVPJustin Choquette2-21/+89
Change-Id: Ib590302f49e7e66f8d04841fb6cb97baf623f51a Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2023-08-07User subsystemJustin Choquette3-13/+237
Change-Id: Ibef4ede9b2d6a3ea465f79a9b5cbcc821afbccae Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2023-07-21LaaS 3.0 Almost MVPJustin Choquette12-2314/+454
Change-Id: Ided9a43cf3088bb58a233dc459711c03f43e11b8 Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2022-12-16Merge "Laas Dashboard Front End Improvements"Sawyer Bergeron1-1/+1
2022-09-29Laas Dashboard Front End ImprovementsJustin Choquette2-2/+6
Change-Id: Ib9aa21747bd57faef94db7795cd89119ad4b0a9d Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2022-09-07added booking details api endpointRaven Hodgdon2-1/+103
Change-Id: I716ea72bcb57762b6fc9c684233deb42ee49f8af Signed-off-by: jhodgdon <jhodgdon@iol.unh.edu>
2022-09-07Merge changes I6f602266,I6b403a62,Id9d6df5cSawyer Bergeron1-0/+15
* changes: rebuilt host import admin util added util to get booking data in a range of years Fix for booking statistics
2022-06-07API Malformed Token re-fixlaas-3.0Justin Choquette1-1/+5
Change-Id: Ie9d93a9c6f6aeee46aac8ff4d0d4d85270fe1da9 Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu> Fixed flake8 issue. Change-Id: I3e889e4f8c6ff1a5ed5d007e1b1ff7e50f3687da Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2022-03-29Fix for booking statisticsraven hodgdon1-0/+15
Signed-off-by: jhodgon <jhodgdon@iol.unh.edu> Change-Id: Id9d6df5c4df6227fdfa8ca60963b74ad85b1221f
2022-01-25Fix migrationsroot1-14/+0
Change-Id: I5444a822bb690c37368193c2718614a62f64432e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-12-15Merge "Reorder conflicting leaf migrations"Sawyer Bergeron2-1/+15
2021-12-15Reorder conflicting leaf migrationsSawyer Bergeron2-1/+15
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I0c06f6f6ceccc17431d319577b72dfe75bea7cff Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-12-15Merge "Only pass alphanumeric usernames"Sawyer Bergeron1-1/+3
2021-12-15Add migration to mark cifiles as generated vs user-providedSawyer Bergeron1-0/+14
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I2a7011f26a53dd1e56ed8c9853fb4a4b31cc863b
2021-12-15Only pass alphanumeric usernamesSawyer Bergeron1-1/+3
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I005557eca3925677f458c7a2a767a103dcc692fd
2021-12-15Fix CI file serialization to not break newlines, add to admin utilsSawyer Bergeron1-6/+9
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ib7b223012687554a086f622e3edbe524b49dab6c Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-12-03Prevent yaml from inserting newlines on "wide" CI filesSawyer Bergeron1-1/+1
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ie2ad9021122b2015856b3f43c92eca31b8bafc1e
2021-11-19Fix yaml load with lib updateSawyer Bergeron1-1/+1
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I8126507bf64059ff53e3fea9d0b655c4913d4285
2021-11-01Start adding cloud config support to booking apiSawyer Bergeron2-7/+29
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Idbad76db40b08e41cdc41789b487c9d476852c57 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-11-01Add Cloud Init SupportSawyer Bergeron6-11/+448
Squashed commit of the following: commit afcee3cad5c091e78e909b83f8df49accf1af5b6 Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Mon Oct 11 22:02:16 2021 +0000 Prod cobbler hotfixes Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I092bc6d85a3b2c77bfbe24f3af0d2b7a5f75a8c3 commit 5ce0a52b17e530436c298e1b581d37bac853f5a7 Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Thu Oct 7 17:14:01 2021 -0400 Manually merge CI files Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ic63d5da699578007ef2f2cc373350ded06c66971 commit 5b70b8f1b8bbbe6aeec43b8d8dfdc6b7cc68bc9c Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Thu Sep 30 16:33:01 2021 -0400 Fixes for collaborator field Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I3dbdedf26fa84617ea7680a0f99e032d88f1ea98 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> commit 529b2521627b17142284c55c744812129edc71e8 Merge: d555513 e9d72ce Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Thu Sep 30 14:03:55 2021 +0000 Merge "Push cloud config content for generated files into userdata_raw" into cobbler commit d55551394df73645e49ae2ae3e730a9f1c6af81d Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Thu Sep 30 10:02:32 2021 -0400 Better error handling for quick deploy Change-Id: I03a725dfee9ce2f119d72ef940cd08df5aee3dcc Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> commit e9d72ce78a85c6ff2f3f8591bcbf4115f97318d5 Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Tue Sep 28 19:11:49 2021 -0400 Push cloud config content for generated files into userdata_raw Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ieb8bd9b8b172b6bf11062f67f41fc78154cc7c89 commit 95d39c60f7e8062cabc8c1665080a2d2c8904234 Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Sat Sep 25 16:18:12 2021 -0400 Allow for "pod specific" vlan allocation for LFEDGE allocation case Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I8b75410145027f43eaf6de7bd5f1813af38d3e7f Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> commit 2ebb82b5f344de1e17abd70c51c4cce765761dd1 Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Thu Sep 23 16:37:43 2021 -0400 Fix collaborator field with recent changes Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Id305de9b1567adf103c47d5180b0b28ebfdf1b5e commit a819fc1df86721eda36eee89d0235c89b3159d6b Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Tue Sep 7 11:28:35 2021 -0400 Add user specified CI file entry Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ia920130612da8fcde9d1a0d5dde7861904857162 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> commit d93346a716bde5237b7cfef5c10ea56e4922b59a Author: Adam Hassick <ahassick@iol.unh.edu> Date: Tue Jul 27 13:05:16 2021 +0000 Make C-I serialization work with current netconf rules Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: If967e5e1f268c5bee3ad4496847662cf4de1187c Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> commit 6ffb1fdf6ce7825770148bada5a4c54899e4ed36 Author: Adam Hassick <ahassick@iol.unh.edu> Date: Tue Jun 29 16:49:27 2021 -0400 Cobbler model changes, new endpoints Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> Change-Id: If0a94730e92747127cef121ec4930a4c8bae6c92 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> commit 49e2b407003b69551ddafa851639e83ec42a5b09 Author: Jacob Hodgdon <jhodgdon@iol.unh.edu> Date: Fri May 14 15:42:56 2021 -0400 Color fixes for rebrand Signed-off-by: Jacob Hodgdon <jhodgdon@iol.unh.edu> Change-Id: I5cf4ede598afa377db7ecec17d8dfef085e130ac commit a908da441bf6efcdb289a46d0c2761840138b1a5 Author: Sawyer Bergeron <sbergeron@iol.unh.edu> Date: Tue Jun 8 11:15:56 2021 -0400 Draft for cloud-init file generation Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I07f3a4a1ab67531cba2cc7e3de22e9bb860706e1 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I392505174cbc07214c31c42aab2474a748e47913 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-10-15Merge User Booking API Rev 1 (Try 3)Sawyer Bergeron9-8/+453
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ie1eee0a59929f8da39f16bb6bc17ae3de4f1cba9 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-12-10Fix job serialization error for specific_job2.1.0-rc32.1.0Sawyer Bergeron1-0/+3
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I8c49e33a33389cf362ff680735f6e538162a5414
2020-11-09Analytics changesSean Smith4-2/+153
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Iaea350b3042f9c866939a9d1a79bdef1e165c1a7 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-11-09Add migrations for pulling prod to current masterSawyer Bergeron1-0/+18
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I4f11316b161e6e04e1e5cb811482adc22e3e69f3
2020-07-31Merge "Fix Pod detail menu and re-imaging"Sawyer Bergeron1-3/+3
2020-07-31Fix Pod detail menu and re-imagingSean Smith1-3/+3
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I483c9e9c6dc8d492cc9340ab42b6b2d518f52950
2020-07-30Hotfix: disable deltas for prodSawyer Bergeron1-17/+4
Deltas are currently severely broken, and need to be turned into more granular tasks instead. This patch results in coarser tasks, but results in correct behavior at least Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Idd71b314355a1372e68e1f1161355bd4b8834c08
2020-07-30Fix clearing interface config on job endSawyer Bergeron1-4/+5
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ia38de492c01de66a14f6966fcf35db5e51f007c5
2020-07-28Fixes for prod deploySawyer Bergeron1-1/+1
broken configstate causes hosts not to power on when they should vlan manager needs to actually return allocated vlans Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I1060a6599fb44bd2ca239d35fbf7e69d13f499a6
2020-07-27Merge "Fix Flake8 Violations"Sawyer Bergeron2-1/+3
2020-07-23Fixes get_user for api.Sean Smith1-7/+9
Change-Id: I2111c8dc3a66dc1e6d4b8ccab53d4a14acafd913 Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
2020-07-15Fix Flake8 ViolationsTrevor Bramwell3-7/+9
Several minor issues found through flake8 should now be fixed in the code. Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org> Change-Id: I4f6e5dac5ed8378911598ded714602bbb3f6bd6b
2020-05-15Merge resource branchSawyer Bergeron1-1/+1
This pulls master up to date to include changes to models and surrounding infra that allow for multi-node templates and merging of pods Squashed commit of the following: commit abc8f27d9c6b05fb3afcb9b00dc35c0f2232d1a6 Author: Sawyer Bergeron <sawyerbergeron@gmail.com> Date: Thu Apr 2 14:05:26 2020 -0400 Start fixing workflow for model changes Change-Id: I79df975ef45abf2e6e69594d358bbd205938828f Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.com> Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> commit 7a7e2182acd0ea94e19aba4926c3a12771b30a6d Author: sms1097 <ssmith@iol.unh.edu> Date: Tue Mar 31 15:13:06 2020 -0400 Working on workflow refactoring Change-Id: I4141b6aca98aff7bff9cb78a7d5594e25eb45e98 Signed-off-by: Sean Smith <ssmith@iol.unh.edu> commit c09050ae2814f07af58557b40f9ed3559063d2c7 Merge: 71438d9 b5ccdc4 Author: Parker Berberian <pberberian@iol.unh.edu> Date: Tue Mar 24 20:34:16 2020 +0000 Merge "Able to delete configurations and view lab details" into resource commit b5ccdc4ffbb883c20f2f6f69aeef5002aef5db53 Author: sms1097 <ssmith@iol.unh.edu> Date: Thu Mar 19 17:08:12 2020 -0400 Able to delete configurations and view lab details Change-Id: Ib15c86d84f4cc7e7745551889ce91c89b5de46e2 Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Id6748c6bea67773a861921394d88579730246598 commit 71438d9a35cdb316cece865c9d410aeffb0053d8 Merge: 5460d0d a758223 Author: Parker Berberian <pberberian@iol.unh.edu> Date: Thu Mar 19 18:51:09 2020 +0000 Merge "Add / Fix tests for refactor" into resource commit 5460d0d447b075433a763f9bfa33448b88ec8393 Merge: a9063a3 f55d839 Author: Parker Berberian <pberberian@iol.unh.edu> Date: Wed Mar 18 15:59:37 2020 +0000 Merge "Fixed the quick booking form resource template filtering. Added some more models to the admin page." into resource commit f55d839a029ab1f5ab1273872e71a97fa1d5108b Author: Adam Hassick <ahassick@iol.unh.edu> Date: Tue Mar 17 11:35:40 2020 -0400 Fixed the quick booking form resource template filtering. Added some more models to the admin page. Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> Change-Id: I2d2e7aeb96b10c231804a62f37a476039c954b7b commit a9063a347c4ebef0e53a17f198468bb135772810 Author: Parker Berberian <pberberian@iol.unh.edu> Date: Wed Mar 18 10:29:51 2020 -0400 Fixes Some Issues with Quick Booking Seen in the Akraino lab Signed-off-by: Parker Berberian <pberberian@iol.unh.edu> Change-Id: I2a1e843fbaa7984225f2f80742dad59dc348fbf2 commit a758223f44c6fec595b055d7c9b232b00e9174a0 Author: Parker Berberian <pberberian@iol.unh.edu> Date: Tue Mar 17 11:07:32 2020 -0400 Add / Fix tests for refactor Change-Id: I0526d1942f87707082a4eb1c8c98910f84481c23 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu> Author: Parker Berberian <pberberian@iol.unh.edu> Add "Pod" Column to booking list Signed-off-by: Parker Berberian <pberberian@iol.unh.edu> Change-Id: I270913283bf1e5815cadf622ba2fd5f98bb61675 Author: Parker Berberian <pberberian@iol.unh.edu> Fixes that make the Akraino dashboard work Signed-off-by: Parker Berberian <pberberian@iol.unh.edu> Change-Id: I81746473a4511ef7d46445a7b16809a6e9da100f Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I4b428e7c8a8d401d7bae95cba01077feb0332a7f Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-04-14Add user + user list to APISawyer Bergeron3-1/+35
Change-Id: I15cf0c33b9d452fda47f97e3d9b43e00c1bf9bfd Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-03-17Merge "Quick Deploy Fixes." into resourceSawyer Bergeron1-7/+13
2020-03-17Quick Deploy Fixes.Parker Berberian1-7/+13
Change-Id: I46d410af62e4962d235346ba56472aaacb9d3ff2 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-16Fix Query in api MakeHardwareConfigParker Berberian1-1/+1
Change-Id: I9ced78e73f49343bcb41b8e0de25d8b0223b14bd Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-27Improve Data MigrationParker Berberian4-26/+52
Improved migration files so that they preserve data Change-Id: I53283fd3fd207ed3f9773beea7b1ce2062b5bd9f Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-20Add Migration FilesParker Berberian2-0/+72
Adds migration files with some custom logic to accompany the refactoring in resource_inventory. Change-Id: Id3b3e46913c1f9a102426a5c33d7a282f46e8b28 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-13Fix ImportsParker Berberian1-2/+2
Fixes stale import statements. The dashboard can now come up and we can run our unit tests Change-Id: I7189afb2cd37aaa2492de065c236b6aa9a35de5b Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-12Modifies Resource Models for ongoing refactorParker Berberian1-79/+106
Change-Id: Ice88f53135f57aca8e2de4d69274e7d490f981a4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-28Comments and DocumentationParker Berberian5-28/+86
This change adds a ton of comments and documentation across all the code. Change-Id: Ifee0a2f534e8584f14b0f13af4dda8dc70eb7553 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-28Begin Resource RefactorParker Berberian3-112/+83
Begins the Resource Refactor by creating new interfaces to the resources through a Resource super class and using that new interface in the api Change-Id: I15a8179bfe915d2cde6d658d056e11cbd2c70e43 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-10-08Rename pharos to laasAric Gardner1-1/+1
related to change: https://gerrit.opnfv.org/gerrit/c/releng/+/68161 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org> Change-Id: I4985eb116fd2c214f3639eb991f27b5d75b5ab7c Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-08-13Adds Downtime AwarenessParker Berberian4-0/+88
This adds a Downtime model and relevant operations so that the dashboard knows when a lab is down for maintenance and can act accordingly. This change doesn't modify the front end at all, but it does pass relevant downtime info to the templates so that they can be updated in a future change. Change-Id: Idb88b15838b949f352f11a31a1fce9749d283d28 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-07-08Update DependenciesParker Berberian1-9/+1
Removes or upgrades the dependencies in requirements.txt Change-Id: I4e66348fc80259b4a2f64ca912556f7d847f0645 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-05Adds TestsParker Berberian2-12/+54
Adds more complete tests and fixes some bugs found in those tests Change-Id: Icc0433215df511bc0b2bfa264bacf8796d6de86f Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-24Add and Fix testsParker Berberian1-153/+102
Makes the existing code less terrible and adds more unit tests Change-Id: Ia3662323eb22ed238829418869ff0363f00337ef Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-08Adds pdf and idf into apiParker Berberian6-6/+171
The Pod Descriptor File (pdf) and Installer descriptor file (idf) are now hosted in the api. The url endpoint where the lab can retrieve them are now part of a software task. An OPNFV task also contains a new dictionary that describes how bridges should be configured on the jumphost. This information is not contained in the pdf/idf but is needed by the lab. Change-Id: I6971279979ba180725926035bd9db481aafb1073 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>