aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory
AgeCommit message (Collapse)AuthorFilesLines
2022-09-29Laas Dashboard Front End ImprovementsJustin Choquette1-1/+1
Change-Id: Ib9aa21747bd57faef94db7795cd89119ad4b0a9d Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
2022-01-25Fix migrationsroot1-0/+18
Change-Id: I5444a822bb690c37368193c2718614a62f64432e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-12-15Fix CI file serialization to not break newlines, add to admin utilsSawyer Bergeron1-0/+1
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ib7b223012687554a086f622e3edbe524b49dab6c Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-11-01Add Cloud Init SupportSawyer Bergeron8-10/+337
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 Bergeron2-13/+26
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ie1eee0a59929f8da39f16bb6bc17ae3de4f1cba9 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2021-03-24Remove duplicate migrationSean Smith1-14/+0
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I456b61f3ad25823dbcf2468b303c1e68ff41df7b
2021-03-08Release VLAN on booking endSean Smith1-2/+1
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Ib17fd871501a2af46bb78bbdfc68112a66e763c0
2021-02-08Add migration to set rconfig hostname to a valid linux hostnameSawyer Bergeron1-0/+14
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ib737dc25de37dd9d1c29a4e15f95da0fb68ddfc8 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-12-18Reduce log spam: deletion on resource bundles should be deprecated2.1.42.1.3Sawyer Bergeron1-1/+3
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I6bffc393f7a6f93c4b8cd8d4c8bacba0c23fb256 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-12-18Repair migration chain2.1.2Sawyer Bergeron1-0/+18
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Iaedcaf76111694bc7a3d8c44bd98f29d508610c5
2020-12-18Fix hostname default to be valid linux hostname2.1.1-rc12.1.1Sawyer Bergeron1-1/+1
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I898c4e4a03261a1bf0f3f56dbc32104c9b5f3ee9
2020-12-09Update booking detail page and API after model refactorSawyer Bergeron1-1/+1
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I2d1d5d7031c82a2088aa68b772c7bbdf225f3c9a Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-11-09Add migrations for pulling prod to current masterSawyer Bergeron1-0/+59
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I4f11316b161e6e04e1e5cb811482adc22e3e69f3
2020-10-22Fix quick booking allocation of private vlans for podsSawyer Bergeron1-3/+4
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ie515da2c28fcbc51d8fa87e24a3ff64c234d1bee Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-10-15Add helper functions for booking specific hostsSawyer Bergeron1-1/+5
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ib651a00ffb4e0aca9004397a61835cde01f6ccf3 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-08-28Allow creating Networks in AdminSean Smith1-1/+1
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Ie47d7170c12d73fc42a2c4756449154c98a14a8e
2020-08-24Fix small issueSean Smith1-1/+1
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Iddd8e06d00a8956610936b280e1538380defac30
2020-08-24Fix non allocation issuesSean Smith1-2/+14
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Ifcd47f8f5e00940ec472ab13fa0b3371c77a9cb7
2020-08-07Fix vlan deallocation and ownershipSawyer Bergeron2-5/+22
Change-Id: I74bd2d062611ba1ca997cfb50a91d2396e70526b Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-07-28Allow Null Values in Admin InterfaceSean Smith1-1/+1
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I6f3213ea47073ef4427a1f301ac6340e848e0891
2020-07-27Merge "Make static OPNFV references dynamic"Sawyer Bergeron1-1/+1
2020-07-27Make static OPNFV references dynamicSean Smith1-1/+1
Change-Id: I3830a30a927834b642052643d94c39a9faec4d54 Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
2020-07-15Fix Flake8 ViolationsTrevor Bramwell1-1/+1
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-06-23Quick Booking Menu Resource Availibilityssmith1-0/+5
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I79f411af8996698d2c553185eed0221792a348d0
2020-05-28Some small fixes to launch Akrainossmith2-17/+27
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: If64d15afa456b7bdf25d40015decb37b1a20da54
2020-05-20Reworks resource tests into model validation where possible.ssmith3-4/+57
Change-Id: Ieb77cc38a42345107c2cac62ba1499bd7974ad77 Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
2020-05-15Merge resource branchSawyer Bergeron6-13/+54
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-03-17Merge "Quick Deploy Fixes." into resourceSawyer Bergeron4-22/+37
2020-03-17Quick Deploy Fixes.Parker Berberian4-22/+37
Change-Id: I46d410af62e4962d235346ba56472aaacb9d3ff2 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-16Fix Server Interface MigrationParker Berberian1-1/+4
Before, the relation between host and interface was being lost Change-Id: I347ac71d7667adcedd2deea03edde155895e6a23 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-16Fixing and adding tests for the new resource models.Parker Berberian1-0/+7
Change-Id: I4dd0569411b415a3e8a8de43d4b99e927e5b7821 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-27Improve Data MigrationParker Berberian4-131/+94
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 Berberian1-0/+449
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 Berberian3-25/+29
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 Berberian4-276/+320
Change-Id: Ice88f53135f57aca8e2de4d69274e7d490f981a4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-10Add getInterface() to Resource APIParker Berberian1-0/+10
Change-Id: I714b6054bfc199d55de9619672768f8fc1355747 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-06Merge "Fix booking errors"Parker Berberian2-2/+11
2020-02-06Merge "Updates Interface Models"Parker Berberian1-1/+1
2020-02-04Updates Interface ModelsParker Berberian1-1/+1
Removes a redundant name field and adds an explicit ForeignKey mapping between Interface and InterfaceProfile Change-Id: I3472ef53b889d8d5557e4f083a15940c2022877d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-30Fix booking errorsBrandon Lo2-2/+11
This implements Host model's "release" method and replaces an instance of Network to PhysicalNetwork. Change-Id: I99b0bedbde2dcd63411cbb1fbf9b4905fc9570b1 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2020-01-28Comments and DocumentationParker Berberian5-62/+38
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-20/+160
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-11-07Allow public marked grb and configs to be shownBrandon Lo2-0/+37
Change-Id: I97f4965e8522cac1ceb5c0492e9aa0a2e128d266 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-10-08Rename pharos to laasAric Gardner2-2/+2
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-15Merge "Checks if host is working"Sawyer Bergeron1-1/+2
2019-08-07Checks if host is workingParker Berberian1-1/+2
Adds an additional check to ensure that the host is working before using it for a booking. Change-Id: I69731ca10ad59b6b774d04bdf6f3e628e6a07a79 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-28Adds Hostname ValidatorParker Berberian2-2/+64
Creates a single place to validate hostnames, with public fields for regex that can be copied to the frontend. We do hostname validation inconsistently all over the place, we should move to using this single validator. Change-Id: I7b71fd89843a7e5b7f9d93dcb23f4645abe71dd0 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-09Merge "Allow query to fail"Parker Berberian1-2/+7
2019-05-08Merge "Adds pdf and idf into api"Parker Berberian1-6/+9
2019-05-08Merge "Fix vlan leak"Parker Berberian1-6/+5