Skip to content

Instantly share code, notes, and snippets.

Failures:
1) ManageIQ::Providers::Lenovo::PhysicalInfraManager::Refresher will perform a full refresh with ems1
Failure/Error: EmsRefresh.refresh(ems)
ActiveRecord::HasManyThroughSourceAssociationNotFoundError:
Could not find the source association(s) :management_devices in model Hardware. Try 'has_many :physical_chassis_management_devices, :through => :physical_chassis_hardwares, :source => <name>'. Is it one of vm_or_template, vm, miq_template, host, computer_system, physical_switch, networks, firmwares, disks, hard_disks, floppies, cdroms, partitions, volumes, guest_devices, storage_adapters, nics, ports, physical_ports, or connected_physical_switches?
# /home/tadej/xlab/wwt/manageiq/app/models/manageiq/providers/inventory/persister.rb:29:in `persist!'
# /home/tadej/xlab/wwt/manageiq/app/models/manageiq/providers/base_manager/refresher.rb:162:in `save_inventory'
# /home/tadej/xlab/wwt/manageiq/app/models/manageiq/providers/base_manager/refresher.rb:96:in `block in r
@tadeboro
tadeboro / playbook.yml
Created July 16, 2018 20:49
Testing Redfish playbook
- name: Redfish test
gather_facts: false
connection: local
hosts: localhost
tasks:
- name: Runy dummy redfish task
redfish_system:
id: /redfish/v1/Systems/1
base_url: "http://localhost:8000"
username: demo
@tadeboro
tadeboro / Compress.java
Created January 7, 2017 21:35
Creating tar.gz in java using Apache Commons Compress
package compress;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.FileVisitResult;