Skip to content

Instantly share code, notes, and snippets.

View tinova's full-sized avatar

Tino Vázquez tinova

View GitHub Profile
#!/bin/ruby
require 'sinatra'
# Testing application for External Scheduler
# Returns valid response for the POST request
before do
content_type 'application/json'
end
diff --git a/src/fireedge/package-lock.json b/src/fireedge/package-lock.json
index ccda3fce1b..62a62d7c92 100644
--- a/src/fireedge/package-lock.json
+++ b/src/fireedge/package-lock.json
@@ -128,7 +128,6 @@
"eslint-config-opennebula": "2.0.2",
"eslint-import-resolver-alias": "1.1.2",
"eslint-import-resolver-webpack": "0.13.0",
- "file-loader": "^5.0.0",
"opennebula-generatepotfile": "1.0.0",
ERROR in ./src/client/components/Charts/MultiChart/helpers/scripts/exportPDF.js 18:0-57
Module not found: Error: Can't resolve 'file-loader' in '/Users/tinova/dev/nebula/src/fireedge'
resolve 'file-loader' in '/Users/tinova/dev/nebula/src/fireedge'
Parsed request is a module
using description file: /Users/tinova/dev/nebula/src/fireedge/package.json (relative path: .)
resolve as module
looking for modules in /Users/tinova/dev/nebula/src/fireedge/node_modules
single file module
using description file: /Users/tinova/dev/nebula/src/fireedge/package.json (relative path: ./node_modules/file-loader)
no extension
#proxy=127.0.0.1:9050
debug=net
server=1
#listen=1
#bind=0.0.0.0
onlynet=ipv4
txindex=1
rpcport=8332
rpcallowip=192.168.0.0/16
rpcbind=0.0.0.0
2023-03-29T08:53:58Z UpdateTip: new best=000000000000000000014476cf7d65f3a480f1c1f4691f3f3af7b6fdf7a02264 height=782486 version=0x20400000 log2_work=94.080243 tx=817474581 date='2023-03-25T17:53:56Z' progress=0.998894 cache=3.7MiB(29605txo)
2023-03-29T08:54:09Z ERROR: ConnectBlock(): CheckInputScripts on b019c9e6960ad1e0fd454bd041fdc2805e906de7816fe82583f64de6b70528cc failed with non-mandatory-script-verify-flag (Witness program hash mismatch)
2023-03-29T08:54:09Z InvalidChainFound: invalid block=0000000000000000000164dc3fe631329af3878c10f12275c01c74f3493c0e24 height=782487 log2_work=94.080257 date=2023-03-25T17:54:13Z
2023-03-29T08:54:09Z InvalidChainFound: current best=000000000000000000014476cf7d65f3a480f1c1f4691f3f3af7b6fdf7a02264 height=782486 log2_work=94.080243 date=2023-03-25T17:53:56Z
2023-03-29T08:54:09Z ERROR: ConnectTip: ConnectBlock 0000000000000000000164dc3fe631329af3878c10f12275c01c74f3493c0e24 failed, non-mandatory-script-verify-flag (Witness program hash mismatch)
2023-03-29T08:40:12Z ERROR: ConnectBlock: CheckQueue failed
2023-03-29T08:40:12Z InvalidChainFound: invalid block=0000000000000000000164dc3fe631329af3878c10f12275c01c74f3493c0e24 height=782487 log2_work=94.080257 date=2023-03-25T17:54:13Z
2023-03-29T08:40:12Z InvalidChainFound: current best=000000000000000000014476cf7d65f3a480f1c1f4691f3f3af7b6fdf7a02264 height=782486 log2_work=94.080243 date=2023-03-25T17:53:56Z
2023-03-29T08:40:12Z ERROR: ConnectTip: ConnectBlock 0000000000000000000164dc3fe631329af3878c10f12275c01c74f3493c0e24 failed, block-validation-failed
2023-03-29T08:40:12Z InvalidChainFound: invalid block=00000000000000000002e836449d808bf119470e09fe84ad5dbc79c7b616470c height=782489 log2_work=94.080284 date=2023-03-25T18:28:04Z
2023-03-29T08:40:12Z InvalidChainFound: current best=000000000000000000014476cf7d65f3a480f1c1f4691f3f3af7b6fdf7a02264 height=782486 log2_work=94.080243 date=2023-03-25T17:53:56Z
<<<<<<< HEAD
/** @type {string[]} Actions that can be scheduled */
export const VM_ACTIONS_WITH_SCHEDULE = [
VM_ACTIONS.TERMINATE,
VM_ACTIONS.TERMINATE_HARD,
VM_ACTIONS.UNDEPLOY,
VM_ACTIONS.UNDEPLOY_HARD,
VM_ACTIONS.HOLD,
VM_ACTIONS.RELEASE,
VM_ACTIONS.STOP,
# -------------------------------------------------------------------------- #
# Copyright 2002-2019, OpenNebula Project, OpenNebula Systems #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
HOST
----
VCENTER_CCR_REF="domain-c14" # Ref del cluster vCenter
# Ref de todos los DS definidos en el vCenter cluster e importados
VCENTER_DS_REF="datastore-10"
VCENTER_DS_REF="datastore-3428"
VCENTER_DS_REF="datastore-412"
VCENTER_DS_REF="datastore-4901"
# Get Datacenters, Clusters and Hosts
LIB_LOCATION = '/usr/lib/one'
$LOAD_PATH << LIB_LOCATION + '/ruby/vendors/rbvmomi/lib'
require 'rbvmomi'
if ARGV.length != 3
puts "USAGE: ruby get_all_hosts <vcenter> <user> <pass>"
exit -1