cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
563
Views
0
Helpful
2
Replies
Highlighted

UCSD - Error adding HyperFlex Cluster

Hi team,

 

I need you help with the next issue: I'm trying to add a HyperFlex cluster to Cisco UCS Director 6.6 but I'm receiving the next error: Test connection failed: Not able to connect to HyperFlex account with cluster management IP: xx.xx.xx.xx may be due to invalid credentials. I verify the HyperFlex Cluster WEB access but it's alright and it's working fine. From UCSD in shelladmin console I'm receving the next outpuy from Inframgr Logs:

 

Press return to continue...
                Cisco UCS Director Shell Menu
Node:Standalone | Version:6.6.0.0 Build:66487 | UpTime:  17:50:32 up 41 min,  1 user

1)  Change ShellAdmin Password
2)  Display Services Status
3)  Stop Services
4)  Start Services
5)  Stop Database
6)  Start Database
7)  Backup Database
8)  Restore Database
9)  Time Sync
10) Ping Hostname/IP Address
11) Show Version
12) Generate Self-Signed Certificate and Certificate Signing Request
13) Import CA/Self-Signed Certificate
14) Configure Network Interface
15) Display Network Details
16) Enable Database for Cisco UCS Director Baremetal Agent
17) Add Cisco UCS Director Baremetal Agent Hostname/IP
18) Tail Inframgr Logs
19) Apply Patch
20) Shutdown Appliance
21) Reboot Appliance
22) Manage Root Access
23) Login as Root
24) Configure Multi Node Setup (Advanced Deployment)
25) Clean-up Patch Files
26) Collect logs from a Node
27) Collect Diagnostics
28) Enable/Disable HTTP
29) Reset MySQL User password
30) Apply Signed Patch
31) Terminate active GUI session(s) for user
32) Regenerate Device Connector REST API Access Key
33) Grant/Deny client access to MySQL port 3306
34) Quit

SELECT> 18
2019-01-16 17:50:25,809 [pool-64-thread-18] INFO  executeRackServerMotherBoardData(InfraHistoricalDataAggregatorTask.java:1103) - Infra Historical data aggregation for ComputeMotherBoardStatistics, MemoryUnit, ProcessorUnit completed
2019-01-16 17:50:25,810 [pool-64-thread-18] INFO  executeSPvNICStatsData(InfraHistoricalDataAggregatorTask.java:430) - Executing Aggregator for SP vNIC Stats InfraHistoricalData
2019-01-16 17:50:25,841 [pool-64-thread-18] INFO  executeSPvNICStatsData(InfraHistoricalDataAggregatorTask.java:527) - Infra Historical data aggregation for ComputeMotherBoardStatistics, MemoryUnit, ProcessorUnit completed
2019-01-16 17:50:25,842 [pool-64-thread-18] INFO  executevNICEtherStatistics(InfraHistoricalDataAggregatorTask.java:295) - Executing Aggregator for SP vNICEther Statatistics InfraHistoricalData
2019-01-16 17:50:26,020 [pool-64-thread-18] INFO  executevNICEtherStatistics(InfraHistoricalDataAggregatorTask.java:400) - Infra Historical data aggregation for vNIC Ether Port completed
2019-01-16 17:50:26,021 [pool-64-thread-18] INFO  executeFabricInterConnectPortDataForMini(InfraHistoricalDataAggregatorTask.java:1113) - Executing Aggregator for FabricInterconnect Port data
2019-01-16 17:50:26,035 [pool-64-thread-18] INFO  executeFabricInterConnectPortDataForMini(InfraHistoricalDataAggregatorTask.java:1304) - Infra Historical data aggregation for ComputeMotherBoardStatistics, MemoryUnit, ProcessorUnit completed
2019-01-16 17:50:26,035 [pool-64-thread-18] INFO  execute(InfraHistoricalDataAggregatorTask.java:127) - Infra Historical data aggregation completed. AggrTime=745
2019-01-16 17:50:27,540 [pool-64-thread-19] INFO  executeLocally(SystemTaskExecutor.java:151) - Executing task locally: CMDB.FTPUploader
2019-01-16 17:50:33,709 [Thread-18] INFO  processTriggers(TriggerManager.java:92) - Checking 0 triggers
2019-01-16 17:50:37,184 [ORR-InfraMgr:AFC9CF4A9F] INFO  run(OperationRequestReceiver.java:38) - Received operational request, added to queue.
2019-01-16 17:50:37,184 [ORP-1-49] INFO  run(OperationRequestProcessor.java:77) - Executing request... requestId=119; opName=doFormSubmit
2019-01-16 17:50:37,185 [ORP-1-49] INFO  doFormSubmit(APIProvider.java:1247) - FORM SUBMIT custom.add.account.form.HyperFlex?podName=POD-Created
2019-01-16 17:50:37,185 [ORP-1-49] INFO  definePage(FormBindings.java:801) - Field = HyperFlexgeneric.props.id.podName, LovProviderName =
2019-01-16 17:50:37,187 [ORP-1-49] INFO  definePage(FormBindings.java:801) - Field = HyperFlexspecific.props.id.policy, LovProviderName =
2019-01-16 17:50:37,187 [ORP-1-49] INFO  validatePageData(PhysicalAccountAddForm.java:187) - POD-Created
2019-01-16 17:50:37,187 [ORP-1-49] INFO  validatePageData(PhysicalAccountAddForm.java:192) - POD-Created
2019-01-16 17:50:37,190 [ORP-1-49] INFO  newAccountAdded(PhysicalAccountManager.java:57) - Processing new account addition: HYPERFLEX
2019-01-16 17:50:37,192 [ORP-1-49] INFO  handleAddAccount(AbstractAccountHandler.java:42) - adding account to system
2019-01-16 17:50:37,193 [ORP-1-49] INFO  getPodType(PodModel.java:87) - Getting pod type for datacenter  POD-Created
2019-01-16 17:50:37,195 [ORP-1-49] INFO  getPodType(PodModel.java:99) - Pod type of the datacenter is HyperFlexPod
2019-01-16 17:50:37,195 [ORP-1-49] INFO  canAddComponentToDC(DatacenterLicChecker.java:405) - Checking add component for HyperFlexPod,2,POD-Created,HyperFlex
2019-01-16 17:50:37,195 [ORP-1-49] INFO  getPodType(PodModel.java:87) - Getting pod type for datacenter  POD-Created
2019-01-16 17:50:37,196 [ORP-1-49] INFO  getPodType(PodModel.java:99) - Pod type of the datacenter is HyperFlexPod
2019-01-16 17:50:37,196 [ORP-1-49] INFO  getActiveCount(DatacenterLicChecker.java:381) - The license byte code 77
2019-01-16 17:50:37,211 [ORP-1-49] INFO  canAddComponentToDC(DatacenterLicChecker.java:441) - Active count 0
2019-01-16 17:50:37,211 [ORP-1-49] INFO  canAddComponentToDC(DatacenterLicChecker.java:446) - Max count: 1
2019-01-16 17:50:37,212 [ORP-1-49] INFO  canAddComponentToDC(DatacenterLicChecker.java:470) - Pod Limit is good (0)
2019-01-16 17:50:37,217 [ORP-1-49] INFO  isLimitOK(LimitTracker.java:444) - No limit check policy available for code 77 using default enforcement
2019-01-16 17:50:37,226 [ORP-1-49] INFO  generateRestUrl(HXRestConnection.java:343) - HyperFlex Operation: url=https://xx.xx.xx.xx/rest/about
2019-01-16 17:50:37,226 [ORP-1-49] INFO  generateRestUrl(HXRestConnection.java:343) - HyperFlex Operation: url=https://xx.xx.xx.xx/rest/about
2019-01-16 17:50:37,255 [ORP-1-49] INFO  generateRestUrl(HXRestConnection.java:343) - HyperFlex Operation: url=https://xx.xx.xx.xx/aaa/v1/auth?grant_type=password
2019-01-16 17:50:37,295 [ORP-1-49] INFO  JsonPostUrl(HXRestUtil.java:274) - Response Code : 401
2019-01-16 17:50:37,295 [ORP-1-49] INFO  JsonPostUrl(HXRestUtil.java:275) - Response Message : Unauthorized
2019-01-16 17:50:37,296 [ORP-1-49] ERROR execute(HXRestConnection.java:124) - Acessing token failed for HX cluster: Server returned HTTP response code: 401 for URL: https://xx.xx.xx.xx/aaa/v1/auth?grant_type=password
2019-01-16 17:50:37,296 [ORP-1-49] ERROR executeHyperFlexOperation(HyperFlexAPI.java:69) - Error in executing the command: Server=xx.xx.xx.xx:22 Command=null
2019-01-16 17:50:37,297 [ORP-1-49] ERROR doInventory(HyperFlexInventoryItemHandler.java:119) - Exception in doInventory method of HyperFlex Inventory ItemHandler
com.cloupia.feature.hyperflex.connector.rest.TokenNotFoundException: Server returned HTTP response code: 401 for URL: https://xx.xx.xx.xx/aaa/v1/auth?grant_type=password
        at com.cloupia.feature.hyperflex.connector.rest.HXRestConnection.getAccessToken(HXRestConnection.java:88)
        at com.cloupia.feature.hyperflex.connector.rest.HXRestConnection.execute(HXRestConnection.java:122)
        at com.cloupia.feature.hyperflex.connector.HXConnectionContext.execute(HXConnectionContext.java:19)
        at com.cloupia.feature.hyperflex.connector.HyperFlexAPI.executeHyperFlexOperation(HyperFlexAPI.java:59)
        at com.cloupia.feature.hyperflex.connector.HyperFlexAPI.executeHyperFlexOperation(HyperFlexAPI.java:40)
        at com.cloupia.feature.hyperflex.inventory.HyperFlexInventoryItemHandler.doInventory(HyperFlexInventoryItemHandler.java:84)
        at com.cloupia.feature.hyperflex.handlers.HyperFlexSystemInfoConfigItemHandler.doInventory(HyperFlexSystemInfoConfigItemHandler.java:20)
        at com.cloupia.feature.hyperflex.HyperFlexAccountTestConnectionHandler.triggerHyperFlexSubSystemInfoInventory(HyperFlexAccountTestConnectionHandler.java:129)
        at com.cloupia.feature.hyperflex.HyperFlexAccountTestConnectionHandler.testConnection(HyperFlexAccountTestConnectionHandler.java:65)
        at com.cloupia.lib.connector.account.AbstractAccountHandler.doTestConnectivity(AbstractAccountHandler.java:330)
        at com.cloupia.lib.connector.account.AbstractAccountHandler.handleAddAccount(AbstractAccountHandler.java:86)
        at com.cloupia.lib.connector.account.PhysicalAccountManager.newAccountAdded(PhysicalAccountManager.java:89)
        at com.cloupia.lib.connector.account.PhysicalAccountAddForm.validatePageData(PhysicalAccountAddForm.java:301)
        at com.cloupia.service.cIM.inframgr.forms.wizard.WizardController.handlePageValidate(WizardController.java:768)
        at com.cloupia.service.cIM.inframgr.forms.wizard.WizardController.handleValidate(WizardController.java:1017)
        at com.cloupia.service.cIM.inframgr.forms.wizard.WizardController.doFormSubmit(WizardController.java:415)
        at com.cloupia.service.cIM.inframgr.APIProvider.doFormSubmit(APIProvider.java:1263)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.cloupia.fw.services.provider.ServiceProvider.executeOperation(ServiceProvider.java:762)
        at com.cloupia.fw.services.provider.OperationRequestProcessor.run(OperationRequestProcessor.java:95)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
2019-01-16 17:50:37,297 [ORP-1-49] ERROR testConnection(HyperFlexAccountTestConnectionHandler.java:105) - Not able to connect to HyperFlex.. Check credentials
2019-01-16 17:50:37,297 [ORP-1-49] ERROR testConnection(HyperFlexAccountTestConnectionHandler.java:106) - Error message: Server returned HTTP response code: 401 for URL: https://xx.xx.xx.xx/aaa/v1/auth?grant_type=password

 

I restart services, restart DB, even I restart Virtual Machine but same issue. Could you help me on this???

 

Nestor Gomez

2 REPLIES 2
Highlighted
Cisco Employee

 

2019-01-16 17:50:37,226 [ORP-1-49] INFO  generateRestUrl(HXRestConnection.java:343) - HyperFlex Operation: url=https://xx.xx.xx.xx/rest/about
2019-01-16 17:50:37,226 [ORP-1-49] INFO  generateRestUrl(HXRestConnection.java:343) - HyperFlex Operation: url=https://xx.xx.xx.xx/rest/about
2019-01-16 17:50:37,255 [ORP-1-49] INFO  generateRestUrl(HXRestConnection.java:343) - HyperFlex Operation: url=https://xx.xx.xx.xx/aaa/v1/auth?grant_type=password
2019-01-16 17:50:37,295 [ORP-1-49] INFO  JsonPostUrl(HXRestUtil.java:274) - Response Code : 401
2019-01-16 17:50:37,295 [ORP-1-49] INFO  JsonPostUrl(HXRestUtil.java:275) - Response Message : Unauthorized
2019-01-16 17:50:37,296 [ORP-1-49] ERROR execute(HXRestConnection.java:124) - Acessing token failed for HX cluster: Server returned HTTP response code: 401 for URL: https://xx.xx.xx.xx/aaa/v1/auth?grant_type=password

The logs indicate you're failing trying to generate a REST API access token. The issue is either you're inputting the wrong password, or the password has a special character that UCSD does not like.

 

See the HX admin guide for what special characters you should try to avoid using. In the past, I have seen characters such as '@', '$', '%' cause issues.

 

Highlighted

I have same the problem. I try to troubleshoot and solved this problem.

 

Please see the HX Admin Guide

 

First, you try login to Hyperflex Cluster via cli. Use username 'root' and 'admin' to ensure the usernames can be login.

 

When you integration Hyperflex Cluster to UCSD, please try login with username 'root' and password 'yourpassword'. If still failed you can try username 'admin' and password 'yourpassword'.

 

The your password must be special character.

 

 

Content for Community-Ad
This widget could not be displayed.