View Issue Details

IDProjectCategoryView StatusLast Update
0015290CentOS-7fence-agentspublic2018-09-18 12:13
Reporteritprofessional 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0015290: [abrt] fence-agents-amt-ws: fence_amt_ws:138:set_power_status:AttributeError: 'NoneType' object has no attribute 'text'
DescriptionDescription of problem:
Fencing using command "pcs stonith fence <node>" is done, but reports error "Unable to fence '<node>', and pacemaker does not change the <node> status from UNCLEAN to OFFLINE.

Version-Release number of selected component:
fence-agents-amt-ws-4.0.11-86.el7_5.2

Truncated backtrace:
fence_amt_ws:138:set_power_status:AttributeError: 'NoneType' object has no attribute 'text'

Traceback (most recent call last):
  File "/usr/sbin/fence_amt_ws", line 243, in <module>
    main()
  File "/usr/sbin/fence_amt_ws", line 238, in main
    None, reboot_cycle)
  File "/usr/share/fence/fencing.py", line 1101, in fence_action
    if not set_multi_power_fn(tn, options, set_power_fn, get_power_fn, sync_set_power_fn):
  File "/usr/share/fence/fencing.py", line 990, in set_multi_power_fn
    return async_set_multi_power_fn(tn, options, set_power_fn, get_power_fn, retry_attempts)
  File "/usr/share/fence/fencing.py", line 954, in async_set_multi_power_fn
    set_power_fn(tn, options)
  File "/usr/sbin/fence_amt_ws", line 138, in set_power_status
    return_value = xml_find(client_doc, CIM_PowerManagementService, item).text
AttributeError: 'NoneType' object has no attribute 'text'

Local variables in innermost frame:
client_doc: None
target_state: '8'
doc: <pywsman.XmlDoc; proxy of <Swig Object of type 'WsXmlDocH' at 0x7f1f1f799540> >
options: {'--ipport': '16992', '--plugs': ['met2'], '--power-timeout': '20', '--shell-timeout': '3', '--login-timeout': '5', '--method': 'ONOFF', '--delay': '0', 'device_opt': ['ipaddr', 'no_login', 'passwd', 'boot_option', 'no_port', 'method', 'ipport', 'inet4_only', 'inet6_only', 'passwd_script', 'help', 'debug', 'verbose', 'version', 'action', 'agent', 'power_timeout', 'shell_timeout', 'login_timeout', 'power_wait', 'retry_on', 'delay', 'port_as_ip', 'port', 'separator'], '--separator': ',', '--ip': '10.100.7.2', '--action': 'off', '--power-wait': '0', '--retry-on': '1', '--plug': 'met2', '--password': '<OLD-PASSWORD-WAS-USED>'}
item: 'ReturnValue'
client: <pywsman.Client; proxy of <Swig Object of type '_WsManClient *' at 0x7f1f1f799450> >
client_options: <pywsman.ClientOptions; proxy of <Swig Object of type 'client_opt_t *' at 0x7f1f1f799570> >
method: 'RequestPowerStateChange'
_: None
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python -tt /usr/sbin/fence_amt_ws
dso_list: fence-agents-common-4.0.11-86.el7_5.2.x86_64
executable: /usr/sbin/fence_amt_ws
kernel: 3.10.0-862.3.3.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 0
TagsNo tags attached.
abrt_hashf48a5c011af75351e69f910373eaafae54bb0dc1
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/e32fdaf9e07e00f75c2416810db59f42ca3f03d8

Activities

itprofessional

itprofessional

2018-09-18 12:12

reporter  

backtrace (1,954 bytes)
fence_amt_ws:138:set_power_status:AttributeError: 'NoneType' object has no attribute 'text'

Traceback (most recent call last):
  File "/usr/sbin/fence_amt_ws", line 243, in <module>
    main()
  File "/usr/sbin/fence_amt_ws", line 238, in main
    None, reboot_cycle)
  File "/usr/share/fence/fencing.py", line 1101, in fence_action
    if not set_multi_power_fn(tn, options, set_power_fn, get_power_fn, sync_set_power_fn):
  File "/usr/share/fence/fencing.py", line 990, in set_multi_power_fn
    return async_set_multi_power_fn(tn, options, set_power_fn, get_power_fn, retry_attempts)
  File "/usr/share/fence/fencing.py", line 954, in async_set_multi_power_fn
    set_power_fn(tn, options)
  File "/usr/sbin/fence_amt_ws", line 138, in set_power_status
    return_value = xml_find(client_doc, CIM_PowerManagementService, item).text
AttributeError: 'NoneType' object has no attribute 'text'

Local variables in innermost frame:
client_doc: None
target_state: '8'
doc: <pywsman.XmlDoc; proxy of <Swig Object of type 'WsXmlDocH' at 0x7f1f1f799540> >
options: {'--ipport': '16992', '--plugs': ['met2'], '--power-timeout': '20', '--shell-timeout': '3', '--login-timeout': '5', '--method': 'ONOFF', '--delay': '0', 'device_opt': ['ipaddr', 'no_login', 'passwd', 'boot_option', 'no_port', 'method', 'ipport', 'inet4_only', 'inet6_only', 'passwd_script', 'help', 'debug', 'verbose', 'version', 'action', 'agent', 'power_timeout', 'shell_timeout', 'login_timeout', 'power_wait', 'retry_on', 'delay', 'port_as_ip', 'port', 'separator'], '--separator': ',', '--ip': '10.100.7.2', '--action': 'off', '--power-wait': '0', '--retry-on': '1', '--plug': 'met2', '--password': '<OLD-PASSWORD-WAS-USED>'}
item: 'ReturnValue'
client: <pywsman.Client; proxy of <Swig Object of type '_WsManClient *' at 0x7f1f1f799450> >
client_options: <pywsman.ClientOptions; proxy of <Swig Object of type 'client_opt_t *' at 0x7f1f1f799570> >
method: 'RequestPowerStateChange'
_: None
backtrace (1,954 bytes)
environ (721 bytes)
NOTIFY_SOCKET=/run/systemd/notify
PCMK_mcp=true
PCMK_debug=0
HA_LOGD=no
HA_logfile=/var/log/cluster/corosync.log
HA_use_logd=off
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LANG=ru_RU.UTF-8
PCMK_watchdog=false
PCMK_use_logd=off
PCMK_cluster_type=corosync
PCMK_quorum_type=corosync
PCMK_logfacility=daemon
HA_mcp=true
VALGRIND_OPTS=--leak-check=full --trace-children=no --vgdb=no --num-callers=25 --log-file=/var/lib/pacemaker/valgrind-%p --suppressions=/usr/share/pacemaker/tests/valgrind-pcmk.suppressions --gen-suppressions=all
HA_LOGFACILITY=daemon
HA_quorum_type=corosync
LC_ALL=C
PCMK_logfile=/var/log/cluster/corosync.log
HA_debug=0
PCMK_service=stonith-ng
HA_cluster_type=corosync
HA_logfacility=daemon
environ (721 bytes)
fence-amt-ws-error-report.log (2,310 bytes)
itprofessional

itprofessional

2018-09-18 12:13

reporter  

machineid (135 bytes)
systemd=3c7835035fbc4fd2a51e7869ca12e493
sosreport_uploader-dmidecode=87df3f745e3e006b3a203dd2e00c4981e5d4b9e9a147fc00ac855f052d9822ca
machineid (135 bytes)

Issue History

Date Modified Username Field Change
2018-09-18 12:12 itprofessional New Issue
2018-09-18 12:12 itprofessional File Added: backtrace
2018-09-18 12:12 itprofessional File Added: environ
2018-09-18 12:12 itprofessional File Added: fence-amt-ws-error-report.log
2018-09-18 12:13 itprofessional File Added: machineid