SM: R3.1.1 build 40: monitory and inventory data not populated and throws errors
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Committed
|
High
|
Nitish Krishna Kaveri | |||
R3.2 |
Fix Committed
|
High
|
Nitish Krishna Kaveri | |||
Trunk |
Fix Committed
|
High
|
Nitish Krishna Kaveri |
Bug Description
SM: R3.1.1 build 40: monitory and inventory data not populated and throws errors
After successfully provisioning a ubuntu mitaka R3.1.1 build 40 target with SM , issue show monitoring
root@nodeg19:~# server-manager show monitoring
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Wed Nov 9 18:43:53 2016
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/bin/
79 import cgitb
80 cgitb.enable(
81
82 server_
83 # End if __name__
server_manager = <function server_manager>
sys = <module 'sys' (built-in)>
sys.argv = ['/usr/
/usr/bin/
73 args = parser.
74 argv = sys.argv[2:]
75 commands_
76 # End of server_manager
77
global commands_dict = {'add': <function add_config>, 'delete': <function delete_config>, 'provision': <function provision_server>, 'reimage': <function reimage_server>, 'restart': <function restart_server>, 'run_inventory': <function run_inventory>, 'show': <function show_config>, 'status': <function show_server_
args = Namespace(
args.command = 'show'
argv = ['monitoring']
/opt/contrail/
311 sys.exit(
312 # end except
313 rest_api_params = args.func(args)
314 resp = send_REST_
315 smgr_client_
rest_api_params undefined
args = Namespace(
args.func = <bound method ServerMgrIPMIQu
/opt/contrail/
73 rest_api_
74 rest_api_
75 if args.type:
76 rest_api_
77 if args.type == "status":
args = Namespace(
args.type undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'Namespace' object has no attribute 'type'",)
message = "'Namespace' object has no attribute 'type'"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/bin/
server_
File "/usr/bin/
commands_
File "/opt/contrail/
rest_api_params = args.func(args)
File "/opt/contrail/
if args.type:
AttributeError: 'Namespace' object has no attribute 'type'
SM config.ini
-------------
[SERVER-MANAGER]
listen_ip_addr = 10.204.217.59
listen_port = 9001
database_name = smgr_data.db
server_
html_root_dir = /var/www/html/
cobbler = true
monitoring = true
cobbler_ip_address = 10.204.217.59
cobbler_port =
cobbler_username = testing
cobbler_password = testing
ipmi_username = ADMIN
ipmi_password = ADMIN
ipmi_interface =
ipmi_type = ipmilan
puppet_dir = /etc/puppet/
puppet_
puppet_
collectors = ['10.204.
http_introspect
sandesh_log_level = SYS_ERR
[CLUSTER]
[SERVER]
[IMAGE]
[MONITORING]
monitoring_
monitoring_plugin = server_
[INVENTORY]
inventory_plugin = server_
~
~
Please find attachment in SM UI also
Error in Monitoring