ClusterLabs / ClusterLabs/crmsh
Failed to run drbd script
- Dominant language
- Python
- Stars
- 143
- Forks
- 96
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 16
Description
I tried configure drbd resource with parameter `install=true` but with this error:
```
#crm script run drbd install=true
INFO: DRBD Block Device
INFO: Nodes: esmaster02, esmaster01
Install packages for DRBD...ERROR: [esmaster02]: Remote error: Exited with error code 1, Error output: #######################################
# Pristup pouze autorizovanym osobam! #
# Access for authorized users only! #
#######################################
Traceback (most recent call last):
File "/tmp/crm-tmp-5d4c03fdf41059ebcadd/str2tmp-5d4c03fd5168eb5e4e88", line 5, in
crm_init.install_packages(['drbd', 'drbd-kmp-default'])
File "/tmp/crm-tmp-5d4c03fdf41059ebcadd/crm_init.py", line 210, in install_packages
crm_script.exit_fail("Failed to install %s: %s" % (pkg, e))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)
ERROR: [esmaster01-spc]: Error (1): Traceback (most recent call last):
File "/tmp/crm-tmp-5d4c03fdf41059ebcadd/str2tmp-5d4c03fd5168eb5e4e88", line 5, in
crm_init.install_packages(['drbd', 'drbd-kmp-default'])
File "/tmp/crm-tmp-5d4c03fdf41059ebcadd/crm_init.py", line 210, in install_packages
crm_script.exit_fail("Failed to install %s: %s" % (pkg, e))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)
ERROR: Install packages for DRBD (rc=False)
ERROR: [esmaster02]: (rc=0) #######################################
# Pristup pouze autorizovanym osobam! #
# Access for authorized users only! #
#######################################
```
My environment:
```
#crm --version
crm 3.0.0
```
```
#uname -a
Linux esmaster01 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
```
Contributor guide
Research direction
Start with crm_init.py at install_packages, line 210, and reproduce `crm script run drbd install=true` in the reported environment. Check how the localized remote package-installation error is handled, then verify the command reports the original failure without raising UnicodeEncodeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100