Comments (4)
➤ Ivan Popovych commented:
Should be resolved in IMA release versions
from node-cli.
➤ Oleksandr Sydorenko commented:
Still actual for node-CLI 2.0.1-develop.11
DISKMOUNTPOINT_FILEPATH reading from the backup file (which is SKALE_DIR, 'node_data' file), not from the newly defined by the validator [ENV_FILE]_
Steps to reproduce
1.create dir BACKUP_FOLDER_PATH = /home/ubuntu/backup and run cmd on the old node
skale node backup [BACKUP_FOLDER_PATH]
- Download .tar.gz archive to new node
- Change elastic-IP for the node on the AWS
- Upload .tar.gz archive and edit DISK_MOUNTPOINT field in the init-env file
(to check the path to disk fdisk -l ) - restore archive on new node
skale node restore [BACKUP_FOLDER_PATH] [INIT-ENV]
Actual state:
2021-07-13 14:32:25,636 - INFO - Generating resource allocation file ...
2021-07-13 14:32:26,686 - ERROR - Error during shell execution: blockdev: cannot open /dev/xvdd: No such file or directory
Command execution failed with Command '['blockdev', '--getsize64', '/dev/xvdd']' returned non-zero exit status 1.. Recheck your inputs
Traceback (most recent call last):
File "node_cli/main.py", line 108, in
File "site-packages/click/core.py", line 829, in call
File "site-packages/click/core.py", line 782, in main
File "site-packages/click/core.py", line 1259, in invoke
File "site-packages/click/core.py", line 1259, in invoke
File "site-packages/click/core.py", line 1066, in invoke
File "site-packages/click/core.py", line 610, in invoke
File "node_cli/utils/helper.py", line 291, in wrapper
File "node_cli/cli/node.py", line 172, in restore_node
File "node_cli/utils/decorators.py", line 37, in inner
File "node_cli/core/node.py", line 159, in restore
File "node_cli/core/resources.py", line 119, in update_resource_allocation
File "node_cli/core/resources.py", line 79, in compose_resource_allocation_config
File "node_cli/core/resources.py", line 160, in verify_disk_size
File "node_cli/core/resources.py", line 175, in get_disk_size
File "node_cli/utils/helper.py", line 96, in run_cmd
File "subprocess.py", line 444, in check_returncode
subprocess.CalledProcessError: Command '['blockdev', '--getsize64', '/dev/xvdd']' returned non-zero exit status 1.
2021-07-13 14:32:26,687 - ERROR - Command failed with Command '['blockdev', '--getsize64', '/dev/xvdd']' returned non-zero exit status 1.
Traceback (most recent call last):
File "node_cli/main.py", line 108, in
File "site-packages/click/core.py", line 829, in call
File "site-packages/click/core.py", line 782, in main
File "site-packages/click/core.py", line 1259, in invoke
File "site-packages/click/core.py", line 1259, in invoke
File "site-packages/click/core.py", line 1066, in invoke
File "site-packages/click/core.py", line 610, in invoke
File "node_cli/utils/helper.py", line 291, in wrapper
File "node_cli/cli/node.py", line 172, in restore_node
File "node_cli/utils/decorators.py", line 37, in inner
File "node_cli/core/node.py", line 159, in restore
File "node_cli/core/resources.py", line 119, in update_resource_allocation
File "node_cli/core/resources.py", line 79, in compose_resource_allocation_config
File "node_cli/core/resources.py", line 160, in verify_disk_size
File "node_cli/core/resources.py", line 175, in get_disk_size
File "node_cli/utils/helper.py", line 96, in run_cmd
File "subprocess.py", line 444, in check_returncode
subprocess.CalledProcessError: Command '['blockdev', '--getsize64', '/dev/xvdd']' returned non-zero exit status 1.
from node-cli.
➤ Automation for Jira commented:
Corresponding Pull Request #529
from node-cli.
➤ Oleksandr Salamatov commented:
Verified
node-cli: 2.0.1-develop.16
root@ip-172-31-25-128:# skale node restore skale-node-backup-2021-09-15-13-16-42.tar.gz init-env
2021-09-15 13:27:12,118 - INFO - Unpacking backup archive...
2021-09-15 13:27:12,198 - INFO - Configuring docker
2021-09-15 13:27:12,198 - INFO - Ensuring docker service dir
2021-09-15 13:27:12,199 - INFO - Ensuring docker service override config
2021-09-15 13:27:12,199 - INFO - Ensuring docker daemon config
2021-09-15 13:27:12,199 - INFO - Updating docker daemon config
2021-09-15 13:27:12,199 - INFO - Docker config changes [<DockerConfigResult.UNCHANGED: 0>, <DockerConfigResult.UNCHANGED: 0>, <DockerConfigResult.UNCHANGED: 0>, <DockerConfigResult.CHANGED: 1>]
2021-09-15 13:27:12,200 - INFO - Executing daemon-reload
2021-09-15 13:27:12,371 - INFO - Restarting docker service
2021-09-15 13:27:13,955 - INFO - Waiting for docker inititalization
2021-09-15 13:27:13,955 - INFO - Socket initialized successfully
2021-09-15 13:27:13,955 - INFO - Docker configuration finished
2021-09-15 13:27:13,956 - INFO - Creating symlink /root/.skale/.env → /root/.skale/config/.env
2021-09-15 13:27:13,956 - INFO - Configuring iptables...
2021-09-15 13:27:14,095 - INFO - /root/.skale/docker-lvmpy exists, removing...
2021-09-15 13:27:14,098 - INFO - Sync repo https://github.com/skalenetwork/docker-lvmpy.git → /root/.skale/docker-lvmpy
2021-09-15 13:27:14,098 - INFO - Cloning https://github.com/skalenetwork/docker-lvmpy.git → /root/.skale/docker-lvmpy
2021-09-15 13:27:14,557 - INFO - Updating /root/.skale/docker-lvmpy sources
2021-09-15 13:27:14,557 - INFO - Fetching docker-lvmpy changes
2021-09-15 13:27:14,756 - INFO - Checkouting docker-lvmpy to 1.0.1-develop.6
2021-09-15 13:27:27,507 - INFO - docker-lvmpy installed
2021-09-15 13:27:27,507 - INFO - Configuring shared space volume
2021-09-15 13:27:27,605 - INFO - Creating volume - size: 22399942656, name: shared-space
2021-09-15 13:27:28,881 - INFO - Running base set of containers
2021-09-15 13:29:27,609 - INFO - Running monitoring containers
2021-09-15 13:29:35,877 - INFO - Running containers for Telegram notifications
2021-09-15 13:29:56,914 - INFO - Generating resource allocation file ...
Node is restored from backup
root@ip-172-31-25-128:# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 33.3M 1 loop /snap/amazon-ssm-agent/3552
loop1 7:1 0 55.5M 1 loop /snap/core18/1997
loop2 7:2 0 70.4M 1 loop /snap/lxd/19647
loop3 7:3 0 32.3M 1 loop /snap/snapd/11588
xvda 202:0 0 100G 0 disk
└─xvda1 202:1 0 100G 0 part /
xvdb 202:16 0 200G 0 disk
├─schains-shared--space 253:0 0 20.9G 0 lvm /mnt/schains-shared-space
└─schains-harsh--kuma 253:1 0 20.7G 0 lvm /mnt/schains-harsh-kuma
root@ip-172-31-25-128:~# skale node info
2021-09-15 13:27:12,118 - INFO - Unpacking backup archive...
2021-09-15 13:27:12,198 - INFO - Configuring docker
2021-09-15 13:27:12,198 - INFO - Ensuring docker service dir
2021-09-15 13:27:12,199 - INFO - Ensuring docker service override config
2021-09-15 13:27:12,199 - INFO - Ensuring docker daemon config
2021-09-15 13:27:12,199 - INFO - Updating docker daemon config
2021-09-15 13:27:12,199 - INFO - Docker config changes [<DockerConfigResult.UNCHANGED: 0>, <DockerConfigResult.UNCHANGED: 0>, <DockerConfigResult.UNCHANGED: 0>, <DockerConfigResult.CHANGED: 1>]
2021-09-15 13:27:12,200 - INFO - Executing daemon-reload
2021-09-15 13:27:12,371 - INFO - Restarting docker service
2021-09-15 13:27:13,955 - INFO - Waiting for docker inititalization
2021-09-15 13:27:13,955 - INFO - Socket initialized successfully
2021-09-15 13:27:13,955 - INFO - Docker configuration finished
2021-09-15 13:27:13,956 - INFO - Creating symlink /root/.skale/.env → /root/.skale/config/.env
2021-09-15 13:27:13,956 - INFO - Configuring iptables...
2021-09-15 13:27:14,095 - INFO - /root/.skale/docker-lvmpy exists, removing...
2021-09-15 13:27:14,098 - INFO - Sync repo https://github.com/skalenetwork/docker-lvmpy.git → /root/.skale/docker-lvmpy
2021-09-15 13:27:14,098 - INFO - Cloning https://github.com/skalenetwork/docker-lvmpy.git → /root/.skale/docker-lvmpy
2021-09-15 13:27:14,557 - INFO - Updating /root/.skale/docker-lvmpy sources
2021-09-15 13:27:14,557 - INFO - Fetching docker-lvmpy changes
2021-09-15 13:27:14,756 - INFO - Checkouting docker-lvmpy to 1.0.1-develop.6
2021-09-15 13:27:27,507 - INFO - docker-lvmpy installed
2021-09-15 13:27:27,507 - INFO - Configuring shared space volume
2021-09-15 13:27:27,605 - INFO - Creating volume - size: 22399942656, name: shared-space
2021-09-15 13:27:28,881 - INFO - Running base set of containers
2021-09-15 13:29:27,609 - INFO - Running monitoring containers
2021-09-15 13:29:35,877 - INFO - Running containers for Telegram notifications
2021-09-15 13:29:56,914 - INFO - Generating resource allocation file ...
Node is restored from backup
root@ip-172-31-25-128:
Node info
Name: 1parta-node3
ID: 47
IP: 35.80.118.70
Public IP: 35.80.118.70
Port: 10000
Domain name: node3.skalenodes.com
Status: Active
from node-cli.
Related Issues (20)
- Introduce codecoverage and push data to codecov
- Introduce termcolor module to print meaningful information
- raise SystemExit() instead of sys.exit()
- Make a formula for node-cli in homebrew HOT 1
- urllib3, chardet, charset_normalizer dependency issue HOT 1
- Upgrade to use python 3.11
- Ubuntu 20.04 support HOT 1
- Add the OS version check for Watchdog API HOT 3
- No logs printed in node-cli log files HOT 2
- Failing skale node-sync command (cannot find docker/lvmpy.json) HOT 5
- Command [vgremove schains -y] failed, error: Logical volume schains/shared-space in use. HOT 6
- Downgrade checks to a warning and not a hard fail
- Upgrade node-cli sync node version with 2.3.0 changes HOT 2
- Add repair option for sync-node-cli
- Node-cli don't pull changes in skale-node after unsuccessful node update
- Node-cli don't pull image kubernetes/pause
- Update OS version info during the execution of "skale node turn-on" command
- Allow to change block device name
- Can't sync and start chaos (staging-fast-active-bellatrix) HOT 2
- Broadcasts aren't sent after node restore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-cli.