Skip to content

Commit 927e51a

Browse files
Merge pull request TheGrandWazoo#131 from TheGrandWazoo/master
Version 2.3.0-1
2 parents 36f8ec7 + dc5a5c2 commit 927e51a

File tree

15 files changed

+1427
-141
lines changed

15 files changed

+1427
-141
lines changed

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

README.md

Lines changed: 54 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,66 @@
1-
# FreeNAS ZFS over iSCSI interface [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TCLNEMBUYQUXN&source=url)
2-
3-
## Thank you for all that have donated to the project
1+
# TrueNAS ZFS over iSCSI interface [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TCLNEMBUYQUXN&source=url)
2+
3+
### Updates 2023-02-12<br/> - Added `systemctl restart pvescheduler.service` command to the package.
4+
#### Roadmap
5+
* Fix automated builds.
6+
* Production - 'main' repo component.
7+
* Package the patches with the deb package.
8+
* Remove the need for the git dependency.
9+
* Change to LWP::UserAgent
10+
* Remove depenancy of the REST::Client because LWP::UserAgent is already installed and used by Proxmox VE.
11+
* Change from FreeNAS to TrueNAS.
12+
* Cleanup the FreeNAS repo and name everything to TrueNAS to be inline with the product.
13+
* Add API key for direct TrueNAS services.
14+
* Will be a new enable field and API key and will only be used by the plugin.
15+
* You will still need the SSH keys, username, and password because of Proxmox VE using `iscsiadm` to get the list of disks.
16+
* This is tricky because the format needs to be that of the output of 'zfs list' which is not part of the LunCmd but that of the backend Proxmox VE system and the API's do a bunch of JSON stuff.
17+
18+
## Thank you for all that have recently donated to the project - Updated 2022-06-04
19+
Alexander Finkhäuser - Recurring
20+
Bjarte Kvamme - Recurring
21+
Jonathan Schober - Recurring
22+
Frederic Silvi
23+
Security Camera
24+
Vincent Cui
25+
Jakub Jochec
26+
27+
Mark Komarinski
28+
Jesse Bryan
29+
Maksym Vasylenko
30+
Daniel Most
31+
Velocity Host
32+
Robert Hancock
433
Clevvi Technology
5-
Mark Elkins - Reoccuring
34+
Mark Elkins
635
Marc Hodler
736
Martin Gonzalez
837

38+
### 'main' repo (Follows a release branch - Current 2.x) Currently unavailable.
39+
Will be production ready code that has been tested (as best as possible) from the 'testing' repo.
940

10-
I have created a debian repo that holds a package to install scripts into the Proxmox VE system that will automatically do all the necessary patching when one or any combo of the following files are changed in the Proxmox VE stream:
11-
```
12-
/usr/share/pve-manager/js/pvemanagerlib.js <- From package pve-manager
13-
/usr/share/pve-docs/api-viewer/apidoc.js <- From package pve-docs
14-
/usr/share/perl5/PVE/Storage/ZFSPlugin.pm <- From package libpve-storage-perl
15-
```
16-
It will also install the /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm (The FreeNAS API plugin), git and librest-client-perl
41+
### 'testing' repo (Follows the master branch)
42+
Will be 'beta' code for features, bugs, and updates.
1743

18-
If you wish, you may remove the directory 'freenas-proxmox' where your system is currently
19-
housing the repo and then issue the following to have a clean system before installing the
20-
package.
21-
22-
On Proxmox 5
44+
## New Installs.
45+
Issue the following from a command line:
2346
```bash
24-
apt install --reinstall pve-manager pve-docs libpve-storage-perl
47+
curl https://ksatechnologies.jfrog.io/artifactory/ksa-repo-gpg/ksatechnologies-release.gpg -o /etc/apt/trusted.gpg.d/ksatechnologies-release.gpg
48+
curl https://ksatechnologies.jfrog.io/artifactory/ksa-repo-gpg/ksatechnologies-repo.list -o /etc/apt/sources.list.d/ksatechnologies-repo.list
2549
```
2650

27-
On Proxmox 6
28-
```bash
29-
apt reinstall pve-manager pve-docs libpve-storage-perl
30-
```
31-
32-
Issue the following to install the repo and get your Proxmox VE updating the FreeNAS patches automatically:
33-
```bash
34-
wget http://repo.ksatechnologies.com/debian/pve/ksatechnologies-release.gpg -O /etc/apt/trusted.gpg.d/ksatechnologies-repo.gpg
35-
echo "deb http://repo.ksatechnologies.com/debian/pve stable freenas-proxmox" > /etc/apt/sources.list.d/ksatechnologies-repo.list
36-
```
37-
38-
### I will be using a 'testing' repo to develop the new phase of the Proxmox VE FreeNAS plugin.
39-
#### This next phase will introduce the following...
40-
* Auto detection of the Proxmox VE version
41-
* Auto detection of the FreeNAS version so it will use the V1 or V2 API's or you can select it manually via the Proxmox VE FreeNAS modal
42-
* Remove the need for SSH keys and use the API
43-
* This is tricky because the format needs to be that of the output of'zfs list' which is not part of the LunCmd but that of the backend Proxmox VE system and the API's do a bunch of JSON stuff.
44-
45-
#### If you'd like, you may also issue the following commands now or later to use the 'testing' repo.
46-
#### Just comment the 'stable' line and uncomment the 'testing' line in
47-
#### /etc/apt/sources.list.d/ksatechnologies-repo.list to use. 'testing' is disabled be default.
51+
Then issue the following to install the package
4852
```bash
49-
echo "" >> /etc/apt/sources.list.d/ksatechnologies-repo.list
50-
echo "# deb http://repo.ksatechnologies.com/debian/pve testing freenas-proxmox" >> /etc/apt/sources.list.d/ksatechnologies-repo.list
53+
apt update
54+
apt install freenas-proxmox
5155
```
5256

53-
Then issue the following to install the package
57+
Before freenas-proxmox-2.2.0-0-beta8 please issue the following:
5458
```
55-
apt update
56-
apt install freenas-proxmox
59+
systemctl restart pvescheduler.service
5760
```
61+
due to this post https://github.com/TheGrandWazoo/freenas-proxmox/issues/109#issuecomment-1367527917
5862

59-
Then just do your regular upgrade via apt to your system; the package will automatically
60-
issue all commands to patch the files.
63+
Then just do your regular upgrade via apt at the command line or the Proxmox Update subsystem; the package will automatically issue all commands to patch the files.
6164
```bash
6265
apt update
6366
apt [full|dist]-upgrade
@@ -67,16 +70,16 @@ If you wish not to use the package you may remove it at anytime with
6770
```
6871
apt [remove|purge] freenas-proxmox
6972
```
70-
This will place you back to a normal and unpatched Proxmox VE install.
73+
This will place you back to a normal and non-patched Proxmox VE install.
7174

72-
Please be aware that this plugin uses the FreeNAS APIs and NOT the ssh/scp interface like the other plugins use, but...
75+
#### NOTE: Please be aware that this plugin uses the TrueNAS APIs but still uses SSH keys due to the underlying Proxmox VE perl modules that use the ```iscsiadm``` command.
7376

74-
You will still need to configure the SSH connector for listing the ZFS Pools because this is currently being done in a Proxmox module (ZFSPoolPlugin.pm). To configure this please follow the steps at https://pve.proxmox.com/wiki/Storage:_ZFS_over_iSCSI that have to do with SSH between Proxmox VE and FreeNAS. The code segment should start out `mkdir /etc/pve/priv/zfs`.
77+
You will still need to configure the SSH connector for listing the ZFS Pools because this is currently being done in a Proxmox module (ZFSPoolPlugin.pm). To configure this please follow the steps at https://pve.proxmox.com/wiki/Storage:_ZFS_over_iSCSI that have to do with SSH between Proxmox VE and TrueNAS. The code segment should start out `mkdir /etc/pve/priv/zfs`.
7578

7679
1. Remember to follow the instructions mentioned above for the SSH keys.
7780

78-
1. Refresh the Proxmox GUI in your browser to load the new Javascript code.
81+
2. Refresh the Proxmox GUI in your browser to load the new Javascript code.
7982

80-
1. Add your new FreeNAS ZFS-over-iSCSI storage using the FreeNAS-API.
83+
3. Add your new TrueNAS ZFS-over-iSCSI storage using the TrueNAS-API.
8184

82-
1. Thanks for your support.
85+
4. Thanks for your support.

0 commit comments

Comments
 (0)