I am getting attribute errors when specifying rack in command line e.g.
python example_ssh.py --config ../configs/rack4_config.yml --debug <-- works
python example_ssh.py --config ../configs/rack4_config.yml --rack rack4 --debug <-- doesn't work
Error:
File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 128, in <module> TEST = FirstTest() File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 52, in __init__ super().__init__(testName='example_test', qcId='1') File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/testControl.py", line 116, in __init__ rack = self.rackControl.getRackByName( rackName ) File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/rackController.py", line 383, in getRackByName if ( element.config ["name"] == rackName ): AttributeError: 'rack' object has no attribute 'config'
python example_ssh.py --config ../configs/rack4_config.yml --slotName slot1 --debug Traceback (most recent call last): File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 128, in <module> TEST = FirstTest() File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 52, in __init__ super().__init__(testName='example_test', qcId='1') File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/testControl.py", line 126, in __init__ slot = rack.getSlotByName( slotName ) File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/rackController.py", line 323, in getSlotByName for x in self.slots: AttributeError: 'rack' object has no attribute 'slots'
I am getting attribute errors when specifying rack in command line e.g.
python example_ssh.py --config ../configs/rack4_config.yml --debug <-- works python example_ssh.py --config ../configs/rack4_config.yml --rack rack4 --debug <-- doesn't work
Error:
File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 128, in <module> TEST = FirstTest() File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 52, in __init__ super().__init__(testName='example_test', qcId='1') File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/testControl.py", line 116, in __init__ rack = self.rackControl.getRackByName( rackName ) File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/rackController.py", line 383, in getRackByName if ( element.config ["name"] == rackName ): AttributeError: 'rack' object has no attribute 'config'
sample config:
globalConfig: includes: deviceConfig: "../configs/rack4_device_config.yml" local: log: directory: "./logs" delimiter: "/"
rackConfig: rack4: name: "rack4" description: "example config at my desk" slot1: name: "slot1" devices:
I get similar errors specifying slotName
python example_ssh.py --config ../configs/rack4_config.yml --slotName slot1 --debug Traceback (most recent call last): File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 128, in <module> TEST = FirstTest() File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 52, in __init__ super().__init__(testName='example_test', qcId='1') File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/testControl.py", line 126, in __init__ slot = rack.getSlotByName( slotName ) File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/rackController.py", line 323, in getSlotByName for x in self.slots: AttributeError: 'rack' object has no attribute 'slots'