Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus datasource patching fails with single HA Front-end #6343

Closed
2 of 3 tasks
sk4zuzu opened this issue Oct 6, 2023 · 0 comments · Fixed by OpenNebula/docs#2753
Closed
2 of 3 tasks

Prometheus datasource patching fails with single HA Front-end #6343

sk4zuzu opened this issue Oct 6, 2023 · 0 comments · Fixed by OpenNebula/docs#2753

Comments

@sk4zuzu
Copy link
Contributor

sk4zuzu commented Oct 6, 2023

Description
The patch_datasources.rb tool fails when OpenNebula runs on single FE in HA mode (leader w/o followers).

To Reproduce
Deploy the prometheus feature on single FE in HA mode.

Expected behavior
Prometheus datasources should be patched (no error).

Details

  • Affected Component: Prometheus
  • Hypervisor: KVM
  • Version: 6.6

Additional context
This problem is most likely caused by (SERVER is not a list in this case):

{
  "ZONE": {
    "ID": "0",
    "NAME": "OpenNebula",
    "STATE": "0",
    "TEMPLATE": {
      "ENDPOINT": "http://localhost:2633/RPC2"
    },
    "SERVER_POOL": {
      "SERVER": {
        "ENDPOINT": "http://n1a1:2633/RPC2",
        "ID": "0",
        "NAME": "n1a1",
        "STATE": "3",
        "TERM": "1",
        "VOTEDFOR": "0",
        "COMMIT": "21",
        "LOG_INDEX": "21",
        "FEDLOG_INDEX": "-1"
      }
    }
  }
}

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@mkutouski mkutouski self-assigned this Nov 9, 2023
@tinova tinova closed this as completed Nov 10, 2023
@tinova tinova reopened this Nov 10, 2023
@tinova tinova added this to the Release 6.8.1 milestone Nov 10, 2023
mkutouski added a commit to OpenNebula/docs that referenced this issue Nov 10, 2023
Signed-off-by: Mikalai Kutouski <mkutouski@opennebula.io>
mkutouski added a commit to OpenNebula/docs that referenced this issue Nov 10, 2023
tinova pushed a commit to OpenNebula/docs that referenced this issue Nov 10, 2023
@tinova tinova linked a pull request Nov 10, 2023 that will close this issue
@tinova tinova closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants