01-30-2014 07:03 AM
Hi,
hoping someone can help. I am trying to deploy the Cisco Nexus 1000V Release 4.2(1)SV2(2.1a) on a new ESXi 5.5 infrastructure. 2 x ESXi 5.5 hosts in a cluster managed by a VCSA 5.5.
I execute the java InstallerApp and proceed to select custom installation. The installer then asks for the Virtual Center server details which i enter. It successfully detects virtual center and proceeds to the next window where it asks for host details, datastore, vswitch etc. Here is where i am having the issue. I click browse to select the host. A window opens showing my cluster hierarchy and my two hosts. I select one of the hosts and click add host. All fine.
I then click the browse button next to Datastores and i get a java error "Error java.lang.NullPointerException"? Same error for both hosts. Error appears if i browse for datastores or vswitches. I've attached the java code run for the InstallerApp below. Would anyone know what is wrong here? I haven't found anyone else with this issue?
Thanks in advance for any help.
Rgds,
Padhraic
C:\Software\Cisco\Nexus1000v.4.2.1.SV2.2.1a\Nexus1000v.4.2.1.SV2.2.1a\VSM\Instal
ler_App>java -jar Nexus1000V-install_CNX.jar
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.Application logStartOf
Application
INFO: Application Instance Started at Thu Jan 30 14:56:27 GMT 2014 Type: VSM
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.Application logStartOf
Application
INFO: Application Logs at location : C:\Users\ADMINI~1\AppData\Local\Temp\2\
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
N1kvIpv4Address
INFO: N1KVIP null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
N1kvIpv6Address
INFO: N1KVIPV6 null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
SystemRole
INFO: SYSTEM ROLE: null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
Mgmt0Ip
INFO: mgmt_ip: null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
Mgmt0Subnet
INFO: mgmt_subnet: null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
Mgmt0Gateway
INFO: mgmt_gateway: null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
WizardWidth
INFO: wizard_width: default
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
WizardWidth
INFO: wizard_width: -1
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
WizardHeight
INFO: wizard_height: default
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
WizardHeight
INFO: wizard_height: -1
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.ApplicationHelper load
UpgradeFiles
INFO: upgrade files: null
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.Application getWizardB
yAppType
INFO: Appliance: Nexus 1000V standard
appType VSM
Jan 30, 2014 2:56:27 PM com.cisco.n1kv.installerv2.wizard.Application getWindowD
imensionsByOs
INFO: OS: Windows Server 2008 R2
Jan 30, 2014 2:56:39 PM com.cisco.n1kv.installerv2.wizard.pages.VcCredentialsPag
e allowNext
INFO: URL get name: vcUrl
Jan 30, 2014 2:56:39 PM com.cisco.n1kv.installerv2.controllers.VsmInstallationCo
ntroller setVcUrlTypeFromInput
INFO: VC Input: IP address
Jan 30, 2014 2:56:39 PM com.cisco.n1kv.installerv2.controllers.VsmInstallationCo
ntroller createVcConnection
INFO: new url: 10.68.12.23:443
Jan 30, 2014 2:56:39 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Initializing VC Host IP + Connection Port: Thu Jan 30 14:56:39 GMT 2014
Jan 30, 2014 2:56:40 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initVim
Port
INFO: Trying to open connection
Jan 30, 2014 2:56:40 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initVim
Port
INFO: USING PORT: https://10.68.12.23:443/sdk/
Jan 30, 2014 2:56:43 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initVim
Port
INFO: GOT VIM PORT
Jan 30, 2014 2:56:43 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Initializing VC Service Content: Thu Jan 30 14:56:43 GMT 2014
Jan 30, 2014 2:57:00 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initSer
viceContent
INFO: SERVICE Content time: 17565
Jan 30, 2014 2:57:00 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Connecting to VC: Thu Jan 30 14:57:00 GMT 2014
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Initializing Property Collectors: Thu Jan 30 14:57:01 GMT 2014
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Initializing VC Folder References: Thu Jan 30 14:57:01 GMT 2014
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Connection Initialization Complete: Thu Jan 30 14:57:01 GMT 2014
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper initAll
INFO: Init All complete
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getInve
ntory
INFO: FOLDER group-d1 Folder
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getInve
ntory
INFO: DC #0 datacenter-21 Datacenter
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getInve
ntory
INFO: ClusterComputeResource
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:57:01 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getVcDa
tacenter
INFO: FOLDER group-d1 Folder
Jan 30, 2014 2:57:02 PM com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvanc
ePage createNodes
INFO: CLUSTER!!!!!!!!!!!
Jan 30, 2014 2:57:02 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:57:02 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getClus
terHosts
INFO: Cluster MOR: domain-c157
Jan 30, 2014 2:57:02 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:57:02 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkHo
st
WARNING: Finding Host MOR by IP failed! Trying to search by DNS.
Jan 30, 2014 2:57:03 PM com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvanc
ePage createNodes
INFO: Adding hosts to cluster
Jan 30, 2014 2:57:03 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:57:04 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkHo
st
WARNING: Finding Host MOR by IP failed! Trying to search by DNS.
Jan 30, 2014 2:57:04 PM com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvanc
ePage createNodes
INFO: Adding hosts to cluster
Jan 30, 2014 2:58:42 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:58:42 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkHo
st
WARNING: Finding Host MOR by IP failed! Trying to search by DNS.
Jan 30, 2014 2:58:45 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:58:45 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getClus
terHosts
INFO: Cluster MOR: domain-c157
Jan 30, 2014 2:58:46 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:58:46 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkHo
st
WARNING: Finding Host MOR by IP failed! Trying to search by DNS.
Jan 30, 2014 2:58:46 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:58:46 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getData
stores
INFO: Retrieving datastores from Host...
Jan 30, 2014 2:58:46 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper getData
stores
INFO: Host MOR: host-159
Jan 30, 2014 2:58:46 PM com.cisco.n1kv.installerv2.utils.vmware.VcHelper checkCo
nnection
INFO: VC Session checked: active
Jan 30, 2014 2:58:48 PM com.cisco.n1kv.installerv2.controllers.VsmInstallationCo
ntroller getVswitches
SEVERE:
------
java.lang.NullPointerException
at com.cisco.n1kv.installerv2.utils.vmware.VcHelper.getSwitches(VcHelper
.java:2289)
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.getV
switches(VsmInstallationController.java:296)
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.getV
switchNames(VsmInstallationController.java:476)
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.load
PrimaryHostInfoForUi(VsmInstallationController.java:433)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage.fillIPI
nput(UserConfigAdvancePage.java:2352)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage.selectA
ctionPerformed(UserConfigAdvancePage.java:2335)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage.access$
1400(UserConfigAdvancePage.java:69)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage$19.acti
onPerformed(UserConfigAdvancePage.java:2050)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
------
com.cisco.n1kv.installerv2.objects.InstallerException: java.lang.NullPointerExce
ption
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.getV
switches(VsmInstallationController.java:299)
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.getV
switchNames(VsmInstallationController.java:476)
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.load
PrimaryHostInfoForUi(VsmInstallationController.java:433)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage.fillIPI
nput(UserConfigAdvancePage.java:2352)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage.selectA
ctionPerformed(UserConfigAdvancePage.java:2335)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage.access$
1400(UserConfigAdvancePage.java:69)
at com.cisco.n1kv.installerv2.wizard.pages.UserConfigAdvancePage$19.acti
onPerformed(UserConfigAdvancePage.java:2050)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.cisco.n1kv.installerv2.utils.vmware.VcHelper.getSwitches(VcHelper
.java:2289)
at com.cisco.n1kv.installerv2.controllers.VsmInstallationController.getV
switches(VsmInstallationController.java:296)
... 42 more
Solved! Go to Solution.
03-05-2014 01:42 AM
Thanks Michael,
I actually resolved the issue. It turned out to be in relation to the IBM OEM version of ESXi 5.5 which automatically creates a vSwitch called vSwitchUSB0 and assigns a USB uplink to the switch. It is used for an IMM_Network port group.
The USB0 uplink was causing the problem with the InstallerAPP. Once I deleted the uplink the InstallerApp worked as expected (only took 5 days to stumble upon that one!). The only issue is that the deletion of the uplink only lasts 30 seconds before its automatically created so you have to keep an eye on it and delete each time it reappears until the installerApp has completed installing the 1000V.
There is a way to disable the vSwitchUSB0 in the BIOS of the server (IBM x3850 M4 in our case)but I did not go down that route.
Regards
Padhraic Maguire
Senior Infrastructure Engineer
Tel : 01 6579700
Fax : 01 657 9799
Mobile : 086 8034687
padhraic.maguire@triangle.ie<mailto:Kevin.Lally@triangle.ie>
Triangle Computer Services • Wilton Plaza, Wilton Place • Dublin 2 • Phone 01 6579700 • http://www.triangle.ie<http://www.triangle.ie/>
02-19-2014 03:18 PM
Hello Padhraic,
I recieved the following response.
Issue resolved by customer and documented in
http://wwwin-tools.cisco.com/casekwery/getServiceRequest.do?id=629030473
+Customer had configured USB switch created on each ESXi host, vSwitchUSB0. The uplink on
this switch was causing all the problems
+He was able to find the issue after comparing his setup with another production server .
+The issue was fixed after removing the same.
Please let me know if this sums up the solution.
-Mike
02-20-2014 01:03 AM
Hi Mike,
That’s not exactly accurate. The IBM x3850 M4 server has an embedded OEM ESXi installed on USB. The was version 5.1 when the server was initially installed. I upgraded to v5.5.
This OEM version of ESXi automatically creates a vSwitchUSB0 with a IMM_Network port group. This switch has a single uplink called USB0.
The switch causes the issue with the Cisco 1000V InstallerApp. Deleting the switch or even simply the USB uplink on the switch causes the InstallerApp to operate as expected.
The only issue is that deleting the switch or uplink only lasts a short space of time with the switch being recreated after 30 seconds in ESXi5.1. It may stay removed for longer in ESXi5.5.
This issue is present in multiple versions of the Cisco 1000V InstallerApp in conjunction with IBM OEM ESXi5.1 and ESXi5.5. It may be present in other versions of IBM OEM ESXi but these are the only two I have tested.
Regards
Padhraic Maguire
Senior Infrastructure Engineer
Tel : 01 6579700
Fax : 01 657 9799
Mobile : 086 8034687
padhraic.maguire@triangle.ie<mailto:Kevin.Lally@triangle.ie>
Triangle Computer Services • Wilton Plaza, Wilton Place • Dublin 2 • Phone 01 6579700 • http://www.triangle.ie<http://www.triangle.ie/>
03-04-2014 01:21 PM
Hello Padhraic,
I would recommend you re-post on your situation here: Server Networking - Cisco Support Community. They have more resources dedicated to specific troubleshooting which this community isn't really geared towards. Please let us know if you find the answer you are looking for.
-Mike
03-05-2014 01:42 AM
Thanks Michael,
I actually resolved the issue. It turned out to be in relation to the IBM OEM version of ESXi 5.5 which automatically creates a vSwitch called vSwitchUSB0 and assigns a USB uplink to the switch. It is used for an IMM_Network port group.
The USB0 uplink was causing the problem with the InstallerAPP. Once I deleted the uplink the InstallerApp worked as expected (only took 5 days to stumble upon that one!). The only issue is that the deletion of the uplink only lasts 30 seconds before its automatically created so you have to keep an eye on it and delete each time it reappears until the installerApp has completed installing the 1000V.
There is a way to disable the vSwitchUSB0 in the BIOS of the server (IBM x3850 M4 in our case)but I did not go down that route.
Regards
Padhraic Maguire
Senior Infrastructure Engineer
Tel : 01 6579700
Fax : 01 657 9799
Mobile : 086 8034687
padhraic.maguire@triangle.ie<mailto:Kevin.Lally@triangle.ie>
Triangle Computer Services • Wilton Plaza, Wilton Place • Dublin 2 • Phone 01 6579700 • http://www.triangle.ie<http://www.triangle.ie/>
03-21-2014 08:28 AM
Glad you got it figured out and thanks for taking the time to post your solution for the rest of the community!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide