Ticket #70 (closed bug: duplicate)

Opened 1 year ago

Last modified 1 year ago

Problems with HoneyClient::Manager::VM::getIPaddrVM()

Reported by: anonymous Assigned to: kindlund
Priority: normal Milestone: 1.0
Component: HoneyClient::Manager::VM Version: 0.99
Severity: minor Keywords: vm, IP, address
Cc:

Description (Last modified by kindlund)

# About to run extended tests.
# Note: These extended tests will take *significant* time to complete (10-30 minutes).
# Do you want to run extended tests? [no] yes
ok 54 - init()
ok 55 - destroy()
not ok 56 - HoneyClient::Util::SOAP->handleFault(): Error occurred during processing.
# HoneyClient::Manager::VM->_connectVM(): Could not connect to VM (/root/HoneyClient-Manager-0.99/t/test_vm/winXPPro.vmx).
# HoneyClient::Manager::VM->_connectVM(): {'err' => bless( {'errNo' => '0','errStr' => 'Success'}, 'err' )}
# 
#   Failed test 'HoneyClient::Util::SOAP->handleFault(): Error occurred during processing.
# HoneyClient::Manager::VM->_connectVM(): Could not connect to VM (/root/HoneyClient-Manager-0.99/t/test_vm/winXPPro.vmx).
# HoneyClient::Manager::VM->_connectVM(): {'err' => bless( {'errNo' => '0','errStr' => 'Success'}, 'err' )}
# '
#   at t/honeyclient_manager_vm.t line 256.
ok 57 - enumerate()
not ok 58 - HoneyClient::Util::SOAP->handleFault(): Error occurred during processing.
# HoneyClient::Manager::VM->_connectVM(): Could not connect to VM (/root/HoneyClient-Manager-0.99/t/test_vm/winXPPro.vmx).
# HoneyClient::Manager::VM->_connectVM(): {'err' => bless( {'errNo' => '0','errStr' => 'Success'}, 'err' )}
# 

And more same error.

When i run the statupmanager, the process into a infinite buclue, with the call getIPaddrVM.

honeyclient:~# ./startup.sh 
Starting new session...
VM Daemon Listening On: http://localhost:8089/HoneyClient/Manager/VM
Calling setMasterVM()...
Result: 1
Calling quickCloneVM()...
Result: /vm/clones/bcbec8844dbee5b69814a023b0/master.vmx
Calling isRegisteredVM()...
Calling isRegisteredVM()...
Result: /vm/clones/bcbec8844dbee5b69814a023b0/master.vmx
Calling getStateVM()...
OFF
Calling getStateVM()...
ON
Calling getMACaddrVM()...
Result: 00:0c:29:09:db:5d
Calling getIPaddrVM()...
Calling getNameVM()...
Result: bcbec8844dbee5b69814a023b0
Calling getIPaddrVM()...
Calling getNameVM()...
Result: bcbec8844dbee5b69814a023b0

Attachments

Change History

08/16/07 04:09:08 changed by anonymous

change the permission id to root for the problem of test.

the other problem, i dont have idea.

08/16/07 04:12:55 changed by anonymous

Ok, the exact problem is:

Use of uninitialized value in pattern match (m//) at t/honeyclient_manager_vm.t line 795, <STDIN> line 2. not ok 74 - getIPaddrVM(config ⇒ '/root/HoneyClient-Manager-0.99/t/test_vm/winXPPro.vmx') # Failed test 'getIPaddrVM(config ⇒ '/root/HoneyClient-Manager-0.99/t/test_vm/winXPPro.vmx')' # at t/honeyclient_manager_vm.t line 795. # undef # doesn't match '/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/' # The getIPaddrVM() call failed. Attempted to retrieve the IP address of test VM (/root/HoneyClient-Manager-0.99/t/test_vm/winXPPro.vmx).

08/16/07 19:41:00 changed by kindlund

  • status changed from new to assigned.
  • description changed.
  • priority changed from high to normal.
  • milestone set to 1.0.
  • keywords set to vm, IP, address.
  • severity changed from major to minor.

It sounds like the code is unable to get the IP address of the clone. It attempts to get this IP address by reading the /var/log/messages file, as that is where the VMware Server's dhcpd daemon logs it's data to. Please check to make sure that this is the proper location where syslog data is written to. If syslog data is written to a different location, then you'll need to update your /etc/honeyclient.xml and change the "/var/log/messages" entry to the appropriate file.

Hope this helps,

— Darien

08/17/07 06:21:25 changed by kindlund

  • summary changed from Report test, call to vm funcs to Problems with HoneyClient::Manager::VM::getIPaddrVM().

08/29/07 14:31:38 changed by kindlund

  • status changed from assigned to closed.
  • version changed from none to 0.99.
  • resolution set to duplicate.

Duplicate ticket. See #81 for complete solution.


Add/Change #70 (Problems with HoneyClient::Manager::VM::getIPaddrVM())




Change Properties
Action