2018-11-29 23:01:25 [pool-22-thread-1] DEBUG c.v.v.v.u.u.vrli.VRLINtpConfigurator - Request body: {"timeReference": "NTP_SERVER","ntpServers": ["10.x.x.x","10.x.x.x"]}
2018-11-29 23:01:26 [pool-22-thread-1] ERROR c.v.v.v.u.u.vrli.VRLINtpConfigurator - POST request to vRLI loginsight-cluster.vcf.vmware.corp failed. Response code 404
2018-11-29 23:01:26 [pool-22-thread-1] ERROR c.v.v.vrm.upgrade.task.UpdateNtps - Error: Failed post request in vRLI {}
com.vmware.vrack.vrm.upgrade.NtpConfigurationException: Failed post request in vRLI
at com.vmware.vrack.vrm.upgrade.utils.vrli.VRLINtpConfigurator.postRequest(VRLINtpConfigurator.java:104)
at com.vmware.vrack.vrm.upgrade.task.UpdateNtps.queryAndUpdateOverApi(UpdateNtps.java:440)
at com.vmware.vrack.vrm.upgrade.task.UpdateNtps.updateNtpsForVRLI(UpdateNtps.java:279)
at com.vmware.vrack.vrm.upgrade.task.UpdateNtps.executeUpgradeTask(UpdateNtps.java:194)
at com.vmware.vrack.vrm.upgrade.task.core.UpgradeTask$1.call(UpgradeTask.java:82)
at com.vmware.vrack.vrm.upgrade.task.core.UpgradeTask$1.call(UpgradeTask.java:76)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2018-11-29 23:01:26 [pool-22-thread-1] ERROR c.v.v.vrm.upgrade.task.UpdateNtps - Failed to set Ntps
com.vmware.vrack.vrm.upgrade.UpgradeException: com.vmware.vrack.vrm.upgrade.NtpConfigurationException: Failed post request in vRLI
Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "select * from vrmkeyspace.loginsight"
Note: You will see output similar to the following:
id | adminemail | createddate | dalversion | enhancedloggingenabled | externalloginsightserveraddress | externalsyslogserveraddress | hostname | ipaddress | modifieddate | name | scope | state | vipaddress | vipfqdn | vmsize
--------------------------------------+------------+--------------------------+------------+------------------------+---------------------------------+-----------------------------+--------------------------------+---------------+--------------------------+-----------------+--------+-------+---------------+-----------------------------------+--------
87748610-6a87-11e8-a2d7-55408a7195d1 | null | 2018-06-07 22:56:33+0000 | 1 | False | null | null | loginsight-vm-1.vcf.corp.local | 192.x.x.x | 2018-06-07 22:56:33+0000 | loginsight-vm-1 | public | null | 192.x.x.x | loginsight-cluster.vcf.corp.local | xsmall
8774ad21-6a87-11e8-a2d7-55408a7195d1 | null | 2018-06-07 22:56:33+0000 | 1 | null | null | null | loginsight-vm-3.vcf.corp.local | 192.x.x.x | 2018-06-07 22:56:33+0000 | loginsight-vm-3 | public | null | null | null | xsmall
8774ad20-6a87-11e8-a2d7-55408a7195d1 | null | 2018-06-07 22:56:33+0000 | 1 | null | null | null | loginsight-vm-2.vcf.corp.local | 192.x.x.x | 2018-06-07 22:56:33+0000 | loginsight-vm-2 | public | null | null | null | xsmall
Note: Make a note of the id value for each row as it will be used in a later step.
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "delete from loginsight where id=87748610-6a87-11e8-a2d7-55408a7195d1"
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "delete from loginsight where id=8774ad21-6a87-11e8-a2d7-55408a7195d1"
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "delete from loginsight where id=8774ad20-6a87-11e8-a2d7-55408a7195d1"
Note: Replace the id values in the previous commands with those noted in Step 3.
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "insert into loginsight(id,createddate,dalversion,enhancedloggingenabled,hostname, ipaddress,modifieddate,name,scope,vipaddress,vipfqdn,vmsize) values (87748610-6a87-11e8-a2d7-55408a7195d1, '2018-06-07 22:56:33+0000', '1',True,'loginsight-vm-1.vcf.corp.local', '192.x.x.x', '2018-06-07 22:56:33+0000', 'loginsight-vm-1','public','192.168.16.18','loginsight-cluster.vcf.corp.local','sxmall')"
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "insert into loginsight(id,createddate,dalversion,enhancedloggingenabled,hostname,ipaddress,modifieddate,name,scope,vmsize) values (8774ad21-6a87-11e8-a2d7-55408a7195d1, '2018-06-07 22:56:33+0000', '1',True,'loginsight-vm-2.vcf.corp.local', '192.x.x.x', '2018-06-07 22:56:33+0000', 'loginsight-vm-1','public','sxmall')"
/opt/vmware/cassandra/apache-cassandra-2.2.4/bin/cqlsh -e "insert into loginsight(id,createddate,dalversion,enhancedloggingenabled,hostname,ipaddress,modifieddate,name,scope,vmsize) values (87748610-6a87-11e8-a2d7-55408a7195d1, '2018-06-07 22:56:33+0000', '1',True,'loginsight-vm-1.vcf.corp.local', '192.x.x.x', '2018-06-07 22:56:33+0000', 'loginsight-vm-1','public','sxmall')"
Note: Replace the environment-specific values (names, IP addresses, sizes, dates, etc...) with the values saved in Step 4.