972 Commits

Author SHA1 Message Date
Daniel Markstedt
ac97d4bbaa Use save() to upload files, to address file corruption issues with the previous solution. Also adds file ending validation which has been requested by users. 2021-09-20 12:47:39 -07:00
Daniel Markstedt
d434dfe918 Improve error message 2021-09-20 10:47:00 -07:00
Daniel Markstedt
d1ef834ffd Fix saving and loading device params in config files 2021-09-20 10:46:48 -07:00
Daniel Markstedt
12483a58f5 Bump point release of four dependencies, then lock down versions again 2021-09-20 08:58:36 -07:00
Daniel Markstedt
a6b0a40a78 Use compatible version clause for Python dependency management 2021-09-20 07:10:42 -07:00
Daniel Markstedt
8bc5789ba6 Revert granular SCHD detection on the web ui side, since there are a plethora of hard drive image file endings out there 2021-09-19 21:48:49 -07:00
Daniel Markstedt
5507d7c530 Allow for more recent python libraries, rather than fixed at a particular version 2021-09-19 19:38:24 -07:00
Daniel Markstedt
7f1c3f7395 Cleanup 2021-09-19 18:39:07 -07:00
Daniel Markstedt
591bbb4325 Store drive size instead of block number 2021-09-19 18:35:15 -07:00
Daniel Markstedt
54219f66d4 Update easyinstall.sh script 2021-09-19 17:11:38 -07:00
Daniel Markstedt
133372ff09 Move scsi id reservation management to the backend 2021-09-19 15:57:28 -07:00
Daniel Markstedt
40becc344a More descriptive text on index.html 2021-09-19 15:47:11 -07:00
Daniel Markstedt
523ad801a6 Fix typo 2021-09-19 15:42:24 -07:00
Daniel Markstedt
9795c553be
RaSCSI logo favicons (#237) 2021-09-19 14:36:43 -07:00
Daniel Markstedt
15febd1ee6
Disk image profile management using a sidecar config file (#242)
* Handle a case where reserved ids on the Web UI side are not actually reserved on the backend side

* Better error handling when no device is found in list_devices

* Better warning message

* Tag message as error

* Fix device_info

* Get reserved ids from the server instead of storing a client side state, which caused front and backend to get out of sync in certain cases.

* Initial implementation of sidecar configuration reading and writing

* Use bytes for drive image creation internally

* Add named drive section

* Move header to base.html

* Create the disk profile list page

* Make lists of HDDs, CDRs, and Removable drives

* Implement disk image + sidecar creation

* Implement CD-ROM device sidecar creation method

* Add more device configurations

* Add disclaimer

* Hide URL if none is provided

* Make the web ui use the new protobuf parameter maps

* Make daynaport attaching UI more flexible

* Use the protobuf interface to create image files

* Use new create image method for the sidecar flow as well

* Move file deletion logic to protobuf commands; Refactor saving/loading config files

* Update disk image creation

* Fix error

* Disk images the script makes are in Mac format

* Add blurb about the risks with using Lido driver (issue#40) to the easyinstall script, while pushing less for using that feature.

* Make shutdown and reboot async operations

* More informative footer contents

* Wordsmith the Mac drive options

* Link to relevant section in the wiki

* Added GET_IMAGE_FILES

* Added default folder to GET_IMAGE_FILES

* Renaming

* Updated setting image folder

* Lists available net interfaces as a drop down when attaching daynaport

* Macs should use the hds image file ending

* Fixed default image folder handling

* Refer to device properties, instead of sidecars

* Added NETWORK_INTERFACES_INFO

* Filter "lo"

* Use PF_INET in favor of PF_INET6

* Added network interfaces to server info

* Drive property file ending defined in one place; Add handling of common urllib and file system exceptions.

* Use protobuf interface to get network interface info

* Use protobuf interface for list_files

* Repeated field cleanup

* Renaming

* Added DEVICE_TYPES_INFO

* Comment update

* Added -y option to rasctl

* Add the remaining recommended drive profiles provided by rpajarola

* Fix typos

* Add warnings to CD-ROM descriptions

* Add more recommended Sun drives

* Add capacity to name

* Move footer into base.html

* Handle removable drive insertion in the attach method (easy to do with protobuf)

* Limit which arguments to pass to an image injection command

* Cleanup

* Sort image and config files alphabetically

* Make compatible with updated protobuf interface

* Sort drives alphabetically by name

* Decriptive text for CD-ROM section

* Better description

* Hyperlink to disks page instead of button

Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-19 14:29:01 -07:00
Uwe Seimet
6b082447c5
protobuf interface cleanup (#244)
* Repeated field cleanup

* Renaming

* Added DEVICE_TYPES_INFO

* Comment update

* Added -y option to rasctl

* Updated rasctl help message
2021-09-19 14:27:47 -07:00
Uwe Seimet
f782156e51
Added INFO_IMAGE_FILES and INFO_NETWORK_INTERFACES (#243)
* Added GET_IMAGE_FILES

* Added default folder to GET_IMAGE_FILES

* Renaming

* Updated setting image folder

* Fixed default image folder handling

* Added NETWORK_INTERFACES_INFO

* Filter "lo"

* Use PF_INET in favor of PF_INET6

* Added network interfaces to server info

* Filter rascsi_bridge

* Use list of available network interfaces as default parameters
2021-09-19 09:05:01 +02:00
Daniel Markstedt
5161a83999
Merge pull request #240 from akuker/feature_image_creation
rascsi support for creating/deleting/renaming image files in the default image folder
2021-09-18 11:28:51 -07:00
Uwe Seimet
3b83b014b4 Updated directory iterator options 2021-09-18 19:28:55 +02:00
Uwe Seimet
26c6a902f1 Fixed wrong parameter name 2021-09-18 08:53:02 +02:00
Uwe Seimet
7efed1a239 Added missing comments to .proto file 2021-09-17 23:18:46 +02:00
Uwe Seimet
fd97650712 Updated error messages 2021-09-17 22:22:40 +02:00
Uwe Seimet
ad0e454e66 Simplified filename validation 2021-09-17 20:14:03 +02:00
Uwe Seimet
5b3af7cf9d Improved filename validation 2021-09-17 19:59:12 +02:00
Uwe Seimet
9663144c45 Updated file validation 2021-09-17 19:54:42 +02:00
Uwe Seimet
7a1a2ec328 Updated error handling 2021-09-17 19:45:27 +02:00
Uwe Seimet
7018ccac64 Added PROTECT_IMAGE, UNPROTECT_IMAGE 2021-09-17 11:11:22 +02:00
Uwe Seimet
9266852ae2 Updated logging 2021-09-16 13:03:14 +02:00
Uwe Seimet
2aea71820c Fixed parameter name 2021-09-16 12:56:16 +02:00
Uwe Seimet
8629dea87f Replaced parameter lists by map with named parameters 2021-09-16 12:16:53 +02:00
Uwe Seimet
00a08e8d18 Help/Manpage update for rasctl 2021-09-15 22:00:48 +02:00
Uwe Seimet
2483687b8a Fixed typo 2021-09-15 17:50:00 +02:00
Uwe Seimet
3b250f0eff Added copy support to rasctl 2021-09-15 17:40:34 +02:00
Uwe Seimet
4cfeb32aa8 Added support for copying image files 2021-09-15 17:35:48 +02:00
Uwe Seimet
4ff271eeec Updated error handling 2021-09-15 16:35:51 +02:00
Uwe Seimet
7f68f9b91f Updated error handling 2021-09-15 16:33:50 +02:00
Uwe Seimet
c78ff8fce1 Fixed Eclipse warning 2021-09-15 16:26:18 +02:00
Uwe Seimet
f178221aff Error message update 2021-09-15 15:18:53 +02:00
Uwe Seimet
da110c4e8e Prevent image files in use from being deleted 2021-09-15 15:17:26 +02:00
Uwe Seimet
f6f572ee9e Fixed file permissions 2021-09-15 15:06:27 +02:00
Uwe Seimet
c72837a4a3 Added support for creating read-only image files 2021-09-15 14:51:01 +02:00
Uwe Seimet
7ed22bf33b Updated file size validation 2021-09-15 13:56:00 +02:00
Uwe Seimet
548ae19fa5 Check for existing image file when renaming 2021-09-15 13:37:14 +02:00
Uwe Seimet
4bf903f7f2 Updated logging 2021-09-15 13:35:39 +02:00
Uwe Seimet
2ffad76c64 Updated logging 2021-09-15 13:32:29 +02:00
Uwe Seimet
14437274e2 Comment update 2021-09-15 12:44:49 +02:00
Uwe Seimet
434ea0e3f7 Added RENAME_IMAGE 2021-09-15 12:26:01 +02:00
Uwe Seimet
492f332dd7 Updated file size check 2021-09-15 11:31:52 +02:00
Uwe Seimet
2a9969bf1d Comment update 2021-09-15 11:13:30 +02:00
Uwe Seimet
812a322e8d Added image file deletion 2021-09-15 11:08:23 +02:00