Commit Graph

62 Commits

Author SHA1 Message Date
amulet1 752b6fe06f Merged $body into $action parameter in purestorage_api_request() 2025-01-25 12:22:14 -05:00
amulet1 71542b1b94 Replaced purestorage_request() with purestorage_api_request()
Combined $type and $method parameters into $action hash reference
2025-01-25 12:21:53 -05:00
amulet1 725e99023f Made purestorage_request() static 2025-01-25 12:21:13 -05:00
amulet1 4a1bec377f Started redesign of purestorage_request()
Simplified code, eliminated purestorage_get_auth_token()
2025-01-25 12:19:14 -05:00
Timur Kumakbayev 78a46db7c4 Merge pull request #17 from kolesa-team/development
Do not convert to prerelease
2025-01-20 03:03:24 +05:00
timansky 3a76010d96 Do not convert to prerelease 2025-01-20 03:02:51 +05:00
Timur Kumakbayev fc989677bb Merge pull request #16 from kolesa-team/temp
More fixes
v0.0.4
2025-01-20 02:33:23 +05:00
Timur Kumakbayev d9018eec0f Merge pull request #14 from PwrBank/main
Troubleshooting commands
2025-01-19 20:56:17 +05:00
PwrBank c6770fc4cd Update README.md
Updated troubleshooting commands, as suggested by @timansky
2025-01-17 06:49:47 -06:00
amulet1 6474161796 Unmap volume before renaming it
PVE storage subsystem does not unmap disk before moving it to another guest.

Also added check to make sure the target volume (if specified) does not exist.
2025-01-16 15:41:31 -05:00
amulet1 829cf63e1f Added purestorage_get_volume_info() and purestorage_get_existing_volume_info()
The functions return first matching volume object.

Use purestorage_get_existing_volume_info() in purestorage_get_wwn()
2025-01-16 15:41:07 -05:00
amulet1 660d9bff76 Make hgsuffix truly optional
Replaced the default value "pve" with ""

Resolves #5
2025-01-16 15:40:30 -05:00
PwrBank e9342bee43 Merge branch 'kolesa-team:main' into main 2025-01-16 11:32:40 -06:00
PwrBank d97f93c340 Update README.md
Added some troubleshooting commands
2025-01-16 11:32:29 -06:00
Timur Kumakbayev 265904dfa3 Merge pull request #10 from kolesa-team/development
Release v0.0.3
v0.0.3
2025-01-16 21:57:34 +05:00
timansky 6e68385d96 remove zigmund from codeowners 2025-01-16 21:56:45 +05:00
timansky b8e620f4c1 Merge remote-tracking branch 'origin/main' into development 2025-01-16 21:56:29 +05:00
Timur Kumakbayev f508c00b4f Merge pull request #13 from PwrBank/main
Update README.md
2025-01-16 21:34:26 +05:00
PwrBank 077514702f Update README.md
Fixed type on the manual install instructions
2025-01-16 08:25:58 -06:00
timansky e4aae03d51 README added lvm case 2025-01-16 08:59:08 +05:00
Timur Kumakbayev 081c0b8459 Merge pull request #12 from amulet1/main
Various fixes and improvements (#9)
2025-01-16 08:55:19 +05:00
amulet1 246cba516e Added wrapper to run_command() to streamline error handling
Replaced run_command() occurences with exec_command() which takes care of errors

Setting $DEBUG set to 2+ will show shell commands we are executing in the log
2025-01-15 12:47:39 -05:00
Dmitry Petrov 17ddc7ecc4 Merge pull request #4 from kolesa-team/main
Merge README.md changes
2025-01-15 09:43:30 -05:00
Timur Kumakbayev 621ebf7dd2 Merge pull request #8 from PwrBank/patch-1 2025-01-15 18:36:34 +05:00
PwrBank c26a4a659e Update README.md
Clarified to create the Custom folder if it does not exist
Corrected the copy command
2025-01-15 07:12:53 -06:00
Timur Kumakbayev c3830d827f Merge pull request #6 from amulet1/fixes
Various fixes
2025-01-15 16:42:09 +05:00
Timur Kumakbayev 6dbf308f17 Merge pull request #4 from kolesa-team/development
- snapshot eradicate on remove
2025-01-15 16:42:01 +05:00
Dmitry Petrov 16721e35d1 Updated recommended multipah.conf file
Added Pure wwids to blacklist_exceptions section.
2025-01-14 14:32:45 -05:00
Dmitry Petrov d2fecfd95a unmap_volume(): Do not die if volume is already unmapped
(accidentally reintroduced the issue in prior commit)
2025-01-14 13:35:00 -05:00
Dmitry Petrov a8de2749c5 unmap_volume(): Use $wwid instead of $path where possible
Other changes:
  * Replaced readlink() with abs_path()
  * Added error check for blockdev call
2025-01-14 11:43:40 -05:00
Dmitry Petrov 4484ff1a01 Simplified rename_volume() 2025-01-13 20:03:35 -05:00
Dmitry Petrov 3f1c997a75 Cleanup: removed unneeded assert_* functions 2025-01-13 15:34:21 -05:00
Dmitry Petrov 13b66fdfaf parse_volume(): return volume format as 'raw'
This fixes an issue with migration of EFI disks.
2025-01-13 14:51:54 -05:00
Dmitry Petrov 01d502007c Show slave disk names on one line in unmap_volume() 2025-01-13 12:30:26 -05:00
Dmitry Petrov c06e2f24c0 Add $storeid to cache key in list_images() and status()
This allows to have multiple instances of the plugin with different parameters.
2025-01-13 12:12:12 -05:00
dpetrov67 d0f4d285fe Merge pull request #3 from dpetrov67/fixes-2
Merge fixes-2 branch into main
2025-01-09 14:30:48 -05:00
dpetrov67 3c7e0ca365 Merge pull request #2 from lnxbil/patch-1
correct name for storage.cfg
2025-01-09 14:18:47 -05:00
Andreas Steinel 288300aa1f correct name for storage.cfg
The configuration file is not storage.conf, but storage.cfg.
2025-01-09 08:33:29 +01:00
dpetrov67 ac595ce025 purestorage_volume_connection(): be silent on non-fatal errors
Instead of reporting errors when volume is already connected to/removed from a host, add "was already" to the info output.
2025-01-07 15:11:39 -05:00
dpetrov67 b8199a39de Eliminated purestorage_rescan_diskmap()
Call "multipath -r" on volume resize only.
2025-01-07 08:56:37 -05:00
dpetrov67 3702c5670e purestorage_rescan_diskmap(): rescan node on resize 2025-01-07 08:34:45 -05:00
dpetrov67 8f09da2161 purestorage_volume_connection(): minor clean up and refactoring
Also merged pure_host() into  purestorage_volume_connection().
2025-01-07 08:06:41 -05:00
dpetrov67 d41eddf46a purestorage_resize_volume(): minor clean up and refactoring 2025-01-07 08:02:39 -05:00
dpetrov67 61a60a5203 purestorage_remove_volume(): minor cleanup and frefactoring 2025-01-07 07:55:57 -05:00
dpetrov67 e4f9792f66 purestorage_create_volume(): minor cleanup and refactoring 2025-01-07 07:36:51 -05:00
dpetrov67 791f08b690 alloc_image(): Do not try to remove volume if we failed to create it 2025-01-07 07:31:48 -05:00
dpetrov67 3d23f66fd6 Always try to deactivate volume before removal
There are border cases when volume can remain mapped or connected to array even if the vm is not running.

Ideally, this should be done at the higher level (Storage.pm?), but the current storage implementation does not do it.
2025-01-07 07:28:13 -05:00
dpetrov67 3dc6baaa0c multipath-related clean up
Sew issue #1.
2025-01-06 21:06:00 -05:00
dpetrov67 3ce60e55e4 Simplified purestorage_get_wwn()
Use purestorage_list_volumes2() to return information for the specified volume name.

Exclude destroyed volumes to never return a serial number of a previously destroyed volume with the same name.
2025-01-05 19:45:12 -05:00
dpetrov67 78a67d852c Added purestorage_list_volumes2() allowing to filter by name(s) 2025-01-05 19:26:41 -05:00