Help get this topic noticed by sharing it on Twitter Twitter, Facebook Facebook, or email.
kenny

vkernel alarms are not created in vcenter

just upgraded from 3.5 to 4.1.
vops user is defined at the datacenter level (propogate enabled) within vcenter.
vops user has been granted all of the alarms permissions within vcenter.
check box to create alarms within vcenter is enabled on the connection page.

what am i missing?
1 person has
this problem
+1
Reply

  • Hi Kenny,

    I apologize for the delayed response. Could you create logs and send them to support@vkernel.com? Just reference this thread in your email.

    For creating logs, go into the web interface >> Settings >> General >> Miscellaneous and click on the hyperlink (near bottom) for debug information. Leave the box for DB dump unchecked.

    Thank you!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Jonathan Klick EMPLOYEE
    happy I’m conquering Monday one forum post at a time.
    Hi Kenny,

    Thank you for the logs!

    In the vkrm_error.log I'm seeing this multiple times:
    28-11-2011_08:23:00 (63433674) [UPDATE_ALARMS#163558065] ERROR com.vkernel.rm - Cannot update VKernel alarms in VCenter: Permission to perform this operation was denied.
    I think you may need to define the permissions higher than the datacenter level (at the vCenter level).

    I noticed some additional errors in the logs too (unrelated to the original problem). It appears the database has encountered some inconsistencies.

    28-11-2011_09:01:31 (65744803) [COLLECT_VMWARE_PERF#163558994] ERROR com.vkernel.rm  - Error while performing task: Task: 163558994 (160276792) - COLLECT_VMWARE_PERF with status=INPROGRESS and priority=10
    com.vkernel.utils.VKException: Error occurred during performance data collection
    at com.vkernel.rm.VMWareCollector.doTask(VMWareCollector.java:69)
    at com.vkernel.rm.Task.doTask(Task.java:638)
    at com.vkernel.rm.TaskLuncher.run(Task.java:117)
    at com.vkernel.rm.VMCollector$4.run(VMCollector.java:223)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: Failed to insert performance points.
    at com.vkernel.rm.collector.PerfDataWriter.savePerfData(PerfDataWriter.java:289)
    at com.vkernel.rm.collector.PerfDataWriter.savePerfData(PerfDataWriter.java:146)
    at com.vkernel.rm.collector.VMWarePerfCollector.saveData(VMWarePerfCollector.java:557)
    at com.vkernel.rm.collector.VMWarePerfCollector.run(VMWarePerfCollector.java:320)
    at com.vkernel.rm.VMWareCollector.doTask(VMWareCollector.java:58)
    ... 6 more
    Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "vk_perf_mem_active_pkey"


    Here's what you'll need to do to fix it.

    • Open a console window to the VKernel appliance

    • Login as root (default password is 'password')

    • Run this command
      /usr/local/vkernel/scripts/fixDataConsistency.sh


    In any case, please let me know if this helps or if you have additional questions
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • kenny
    jonathan,

    setting the permissions at the vcenter level did the trick! it took a few minutes, but the vkernel alarms are now within vcenter and i am seeing data within performance analyzer.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • kenny
    on the additional errors, i noticed something was wrong this morning when i was capturing the logs for support. i wasn't seeing any data on my dashboard or rightsizer.

    i ran the script and it showed "invalid records updated:146" while it was processing different tables within the database. the following tables were visible on the screen after the script executed:
    vk_perf_mem_active...
    vk_perf_mem_balloon...
    vk_perf_mem_net_usage...
    vk_perf_mem_swapped...

    all of the services (vkernel monitor,tomcat,postgresql,vkernel collector) were stopped and restarted.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • kenny
    just spot checked and everything looks ok after running the script. i checked the dashboard, rightsizer, CA, and RC.

    jonathan, thanks for your help!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Jonathan Klick EMPLOYEE
    happy I’m loving this part of my job.
    Fantastic! Glad I could help.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated