irTwit
Dabbler
- Joined
- Aug 18, 2014
- Messages
- 48
Checking with the community if this is a bug.
Using a python script to update a replication resource with the API (PUT /api/v1.0/storage/replication/(int: id)/). The below settings will not update but the other settings will. This also happens when sending just one update at a time.
Problem Settings
"repl_remote_cipher"
"repl_remote_dedicateduser"
"repl_remote_dedicateduser_enabled"
"repl_remote_hostkey"
"repl_remote_hostname"
"repl_remote_port"
There is also an unexpected key:value ("pk": "6") returned in the results; the value always being equal to the replication "id".
Build: FreeNAS-9.10-STABLE-201604261518. I tried FreeNAS-9.3-STABLE-201512121950 with the same results.
Using a python script to update a replication resource with the API (PUT /api/v1.0/storage/replication/(int: id)/). The below settings will not update but the other settings will. This also happens when sending just one update at a time.
Problem Settings
"repl_remote_cipher"
"repl_remote_dedicateduser"
"repl_remote_dedicateduser_enabled"
"repl_remote_hostkey"
"repl_remote_hostname"
"repl_remote_port"
There is also an unexpected key:value ("pk": "6") returned in the results; the value always being equal to the replication "id".
Build: FreeNAS-9.10-STABLE-201604261518. I tried FreeNAS-9.3-STABLE-201512121950 with the same results.
Code:
ORIGINAL SETTINGS
{
"id": 6,
"repl_begin": "00:00:00",
"repl_compression": "lz4",
"repl_enabled": false,
"repl_end": "23:59:00",
"repl_filesystem": "pond/backup",
"repl_followdelete": true,
"repl_lastsnapshot": "",
"repl_limit": 0,
"repl_remote_cipher": "standard",
"repl_remote_dedicateduser": "www",
"repl_remote_dedicateduser_enabled": true,
"repl_remote_hostkey": "localhost ssh-rsa AAAA",
"repl_remote_hostname": "localhost2",
"repl_remote_port": 23,
"repl_status": "",
"repl_userepl": true,
"repl_zfs": "ExtBackup_02"
}
PAYLOAD SENT (Problem settings only.)
{
"repl_remote_cipher": "fast",
"repl_remote_dedicateduser": "ftp",
"repl_remote_dedicateduser_enabled": false,
"repl_remote_hostkey": "localhost ssh-rsa BBBB",
"repl_remote_hostname": "localhost",
"repl_remote_port": 22
}
RESULT (Problem settings remained unchanged and "pk" key present.)
{
"id": 6,
"pk": "6",
"repl_begin": "00:00:00",
"repl_compression": "lz4",
"repl_enabled": false,
"repl_end": "23:59:00",
"repl_filesystem": "pond/backup",
"repl_followdelete": true,
"repl_lastsnapshot": "",
"repl_limit": 0,
"repl_remote_cipher": "standard",
"repl_remote_dedicateduser": "www",
"repl_remote_dedicateduser_enabled": true,
"repl_remote_hostkey": "localhost ssh-rsa AAAA",
"repl_remote_hostname": "localhost2",
"repl_remote_port": 23,
"repl_status": "",
"repl_userepl": true,
"repl_zfs": "ExtBackup_02"
}
Last edited: