Move to frostfs-node

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2022-12-23 20:35:35 +03:00 committed by Stanislav Bogatyrev
parent 42554a9298
commit 923f84722a
934 changed files with 3470 additions and 3451 deletions

View file

@ -3,5 +3,5 @@
wallet: wallets/wallet.json # path to the NEP-6 wallet file or path to private key file or WIF
address: Nf5YDCHrrtFCbetGT8TF1kwH1SjnJjT9N1 # account address in the NEP-6 wallet, omit for default address
password: secret # account password, use "" for empty password
rpc-endpoint: s01.neofs.devenv:8080 # NeoFS API endpoint of NeoFS node
rpc-endpoint: s01.frostfs.devenv:8080 # NeoFS API endpoint of NeoFS node
endpoint: localhost:8090 # Control API endpoint of NeoFS node

View file

@ -1,6 +1,6 @@
---
endpoint: 'localhost:8090'
wallet: '/etc/neofs/ir/wallet.json'
wallet: '/etc/frostfs/ir/wallet.json'
password: ''
#ir: true

View file

@ -22,7 +22,7 @@ NEOFS_IR_CONTROL_GRPC_ENDPOINT=localhost:8090
NEOFS_IR_GOVERNANCE_DISABLE=false
NEOFS_IR_NODE_PERSISTENT_STATE_PATH=.neofs-ir-state
NEOFS_IR_NODE_PERSISTENT_STATE_PATH=.frostfs-ir-state
NEOFS_IR_LOCODE_DB_PATH=/path/to/locode.db

View file

@ -40,7 +40,7 @@ governance:
node:
persistent_state:
path: .neofs-ir-state # Path to application state file
path: .frostfs-ir-state # Path to application state file
locode:
db:

View file

@ -1,5 +1,5 @@
---
endpoint: 'localhost:8091'
wallet: '/etc/neofs/storage/wallet.json'
wallet: '/etc/frostfs/storage/wallet.json'
password: ''

View file

@ -13,7 +13,7 @@ NEOFS_NODE_KEY=./wallet.key
NEOFS_NODE_WALLET_PATH=./wallet.json
NEOFS_NODE_WALLET_ADDRESS=NcpJzXcSDrh5CCizf4K9Ro6w4t59J5LKzz
NEOFS_NODE_WALLET_PASSWORD=password
NEOFS_NODE_ADDRESSES="s01.neofs.devenv:8080 /dns4/s02.neofs.devenv/tcp/8081 grpc://127.0.0.1:8082 grpcs://localhost:8083"
NEOFS_NODE_ADDRESSES="s01.frostfs.devenv:8080 /dns4/s02.frostfs.devenv/tcp/8081 grpc://127.0.0.1:8082 grpcs://localhost:8083"
NEOFS_NODE_ATTRIBUTE_0=Price:11
NEOFS_NODE_ATTRIBUTE_1="UN-LOCODE:RU MSK"
NEOFS_NODE_RELAY=true
@ -37,14 +37,14 @@ NEOFS_TREE_REPLICATION_WORKER_COUNT=32
# gRPC section
## 0 server
NEOFS_GRPC_0_ENDPOINT=s01.neofs.devenv:8080
NEOFS_GRPC_0_ENDPOINT=s01.frostfs.devenv:8080
### TLS config
NEOFS_GRPC_0_TLS_ENABLED=true
NEOFS_GRPC_0_TLS_CERTIFICATE=/path/to/cert
NEOFS_GRPC_0_TLS_KEY=/path/to/key
## 1 server
NEOFS_GRPC_1_ENDPOINT=s02.neofs.devenv:8080
NEOFS_GRPC_1_ENDPOINT=s02.frostfs.devenv:8080
### TLS config
NEOFS_GRPC_1_TLS_ENABLED=false

View file

@ -20,8 +20,8 @@
"password": "password"
},
"addresses": [
"s01.neofs.devenv:8080",
"/dns4/s02.neofs.devenv/tcp/8081",
"s01.frostfs.devenv:8080",
"/dns4/s02.frostfs.devenv/tcp/8081",
"grpc://127.0.0.1:8082",
"grpcs://localhost:8083"
],
@ -54,7 +54,7 @@
},
"grpc": {
"0": {
"endpoint": "s01.neofs.devenv:8080",
"endpoint": "s01.frostfs.devenv:8080",
"tls": {
"enabled": true,
"certificate": "/path/to/cert",
@ -62,13 +62,13 @@
}
},
"1": {
"endpoint": "s02.neofs.devenv:8080",
"endpoint": "s02.frostfs.devenv:8080",
"tls": {
"enabled": false
}
},
"2": {
"endpoint": "s03.neofs.devenv:8080",
"endpoint": "s03.frostfs.devenv:8080",
"tls": {
"enabled": true,
"use_insecure_crypto": true

View file

@ -18,8 +18,8 @@ node:
address: "NcpJzXcSDrh5CCizf4K9Ro6w4t59J5LKzz" # address of a NEO account in the wallet; ignored if key is presented
password: "password" # password for a NEO account in the wallet; ignored if key is presented
addresses: # list of addresses announced by Storage node in the Network map
- s01.neofs.devenv:8080
- /dns4/s02.neofs.devenv/tcp/8081
- s01.frostfs.devenv:8080
- /dns4/s02.frostfs.devenv/tcp/8081
- grpc://127.0.0.1:8082
- grpcs://localhost:8083
attribute_0: "Price:11"
@ -45,16 +45,16 @@ node:
ca: "/ca/path" # path to optional CA certificate
grpc:
- endpoint: s01.neofs.devenv:8080 # endpoint for gRPC server
- endpoint: s01.frostfs.devenv:8080 # endpoint for gRPC server
tls:
enabled: true # use TLS for a gRPC connection (min version is TLS 1.2)
certificate: /path/to/cert # path to TLS certificate
key: /path/to/key # path to TLS key
- endpoint: s02.neofs.devenv:8080 # endpoint for gRPC server
- endpoint: s02.frostfs.devenv:8080 # endpoint for gRPC server
tls:
enabled: false # use TLS for a gRPC connection
- endpoint: s03.neofs.devenv:8080
- endpoint: s03.frostfs.devenv:8080
tls:
enabled: true
use_insecure_crypto: true # allow using insecure ciphers with TLS 1.2

View file

@ -2,8 +2,8 @@
Here is a template for simple storage node configuration in N3 Mainnet.
Make sure to specify correct values instead of `<...>` placeholders.
Do not change `contracts` section. Run the latest neofs-node release with
the fixed config `neofs-node -c config.yml`
Do not change `contracts` section. Run the latest frostfs-node release with
the fixed config `frostfs-node -c config.yml`
To use NeoFS in the Mainnet, you need to deposit assets to NeoFS contract.
The contract sript hash is `2cafa46838e8b564468ebd868dcafdd99dce6221`
@ -15,12 +15,12 @@ Use `grpcs://` scheme in the announced address if you enable TLS in grpc server.
```yaml
node:
addresses:
- grpcs://neofs.my.org:8080
- grpcs://frostfs.my.org:8080
grpc:
num: 1
0:
endpoint: neofs.my.org:8080
endpoint: frostfs.my.org:8080
tls:
enabled: true
certificate: /path/to/cert

View file

@ -6,7 +6,7 @@ docker image and run it with docker-compose.
## Build image
Prepared **neofs-storage-testnet** image is available at Docker Hub.
Prepared **frostfs-storage-testnet** image is available at Docker Hub.
However, if you need to rebuild it for some reason, run
`make image-storage-testnet` command.
@ -67,11 +67,11 @@ NEOFS_NODE_ATTRIBUTE_2=UN-LOCODE:RU LED
```
You can validate UN/LOCODE attribute in
[NeoFS LOCODE database](https://github.com/nspcc-dev/neofs-locode-db/releases/tag/v0.1.0)
with neofs-cli.
[NeoFS LOCODE database](https://github.com/TrueCloudLab/frostfs-locode-db/releases/tag/v0.1.0)
with frostfs-cli.
```
$ neofs-cli util locode info --db ./locode_db --locode 'RU LED'
$ frostfs-cli util locode info --db ./locode_db --locode 'RU LED'
Country: Russia
Location: Saint Petersburg (ex Leningrad)
Continent: Europe
@ -80,11 +80,11 @@ Coordinates: 59.53, 30.15
```
It is recommended to pass the node's key as a file. To do so, convert your wallet
WIF to 32-byte hex (via `neofs-cli` for example) and save it to a file.
WIF to 32-byte hex (via `frostfs-cli` for example) and save it to a file.
```
// Print WIF in a 32-byte hex format
$ neofs-cli util keyer Kwp4Q933QujZLUCcn39tzY94itNQJS4EjTp28oAMzuxMwabm3p1s
$ frostfs-cli util keyer Kwp4Q933QujZLUCcn39tzY94itNQJS4EjTp28oAMzuxMwabm3p1s
PrivateKey 11ab917cd99170cb8d0d48e78fca317564e6b3aaff7f7058952d6175cdca0f56
PublicKey 02be8b2e837cab232168f5c3303f1b985818b7583682fb49026b8d2f43df7c1059
WIF Kwp4Q933QujZLUCcn39tzY94itNQJS4EjTp28oAMzuxMwabm3p1s
@ -99,18 +99,18 @@ $ echo '11ab917cd99170cb8d0d48e78fca317564e6b3aaff7f7058952d6175cdca0f56' | xxd
Then, specify the path to this file in `docker-compose.yml`
```yaml
volumes:
- neofs_storage:/storage
- frostfs_storage:/storage
- ./my_wallet.key:/node.key
```
NeoFS objects will be stored on your machine. By default, docker-compose
is configured to store objects in named docker volume `neofs_storage`. You can
is configured to store objects in named docker volume `frostfs_storage`. You can
specify a directory on the filesystem to store objects there.
```yaml
volumes:
- /home/username/neofs/rc3/storage:/storage
- /home/username/frostfs/rc3/storage:/storage
- ./my_wallet.key:/node.key
```
@ -120,7 +120,7 @@ Run the node with `docker-compose up` command and stop it with `docker-compose d
### Debug
To print node logs, use `docker logs neofs-testnet`. To print debug messages in
To print node logs, use `docker logs frostfs-testnet`. To print debug messages in
log, set up log level to debug with this env:
```yaml

View file

@ -4,12 +4,12 @@ version: "2.4"
services:
storage01:
image: nspccdev/neofs-storage-testnet:0.27.7
container_name: neofs-testnet
container_name: frostfs-testnet
env_file: node_config.env
network_mode: host
restart: always
volumes:
- neofs_storage:/storage
- frostfs_storage:/storage
- <NEOFS_NODE_KEY>:/node.key
stop_signal: SIGINT
@ -28,4 +28,4 @@ services:
- ./prometheus.yml:/configs/prometheus.yml
volumes:
neofs_storage:
frostfs_storage:

View file

@ -4,7 +4,7 @@ global:
monitor: 'user_metrics'
scrape_configs:
- job_name: 'neofs-node-user'
- job_name: 'frostfs-node-user'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']