Skip to content

Instantly share code, notes, and snippets.

View arcolife's full-sized avatar

Archit Sharma arcolife

View GitHub Profile
@arcolife
arcolife / error.txt
Created September 14, 2017 10:21
packstack error
lcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20170914-144941-iMcY45/openstack-setup.log
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
^[[C^[[D^[[A^[[D^[[C^[[C^[[C^[[C^[[6;7~Pre installing Puppet and discovering hosts' details [ DONE ]
@arcolife
arcolife / log.md
Last active September 5, 2017 09:57
openstack BAGL lab snapshots

Sept 5th 2017

$ nova list
+--------------------------------------+------------------------+--------+------------+-------------+---------------------+
| ID                                   | Name                   | Status | Task State | Power State | Networks            |
+--------------------------------------+------------------------+--------+------------+-------------+---------------------+
| 902f4f5f-01f2-40c9-bd93-0ecf16a53d82 | overcloud-compute-0    | ACTIVE | -          | Running     | ctlplane=192.0.2.7  |
| 1c69cb21-532b-423d-8833-eaa65688f2c6 | overcloud-compute-1    | ACTIVE | -          | Running     | ctlplane=192.0.2.14 |
| f00e67e6-5dc1-416f-af8d-d60ffc44cfe1 | overcloud-compute-2    | ACTIVE | -          | Running     | ctlplane=192.0.2.12 |
[root@716e9ac6062a vmdb]# grep 'vendor "' spec/factories/*.rb
spec/factories/host.rb: vmm_vendor "redhat"
spec/factories/miq_template.rb: vendor "openstack"
spec/factories/physical_server.rb: vendor "lenovo"
spec/factories/template_google.rb: factory(:template_google, :class => "ManageIQ::Providers::Google::CloudManager::Template", :parent => :template_cloud) { vendor "google" }
spec/factories/template_microsoft.rb: factory(:template_microsoft, :class => "ManageIQ::Providers::Microsoft::InfraManager::Template", :parent => :template_infra) { vendor "microsoft" }
spec/factories/template_redhat.rb: factory(:template_redhat, :class => "ManageIQ::Providers::Redhat::InfraManager::Template", :parent => :template_infra) { vendor "redhat" }
spec/factories/template_vmware_cloud.rb: vendor "vmware"
spec/factories/vm_google.rb: vendor "google"
spec/factories/vm_or_template.rb: vendor "openstack"
$ bundle exec rake --tasks
rake about # List versions of all Rails frameworks and the environment
rake app:template # Applies the template supplied by LOCATION=(/path/to/template) or URL
rake app:update # Update configs and some other initially generated files (or use just up...
rake assets:clean[keep] # Remove old compiled assets
rake assets:clobber # Remove compiled assets
rake assets:environment # Load asset compile environment
rake assets:precompile # Compile all the assets named in config.assets.precompile
rake cache_digests:dependencies # Lookup first-level dependencies for TEMPLATE (like messages/show or com...
@arcolife
arcolife / cfme_advanced_settings.yaml
Created August 29, 2017 13:29
CFME 5815 advanced settings
---
:api:
:token_ttl: 10.minutes
:authentication_timeout: 30.seconds
:authentication:
:basedn:
:bind_dn:
:bind_pwd:
:bind_timeout: 30
:follow_referrals: false
@arcolife
arcolife / rhevm OCP node.md
Last active August 16, 2017 10:13
rhevm OCP node restart log

get OCP node vm names in RHVM


ovirt-shell --url https://<rhevm.url.com>/ovirt-engine/api -u admin@internal --insecure -E "list vms --query "name=vm*"  --show-all | egrep '^name |guest_info-ips-ip-address.*10'" > ips

egrep ' 10\.' -B 1 ips  | sed s/--//g > ocp_ips
# egrep ' 10\.' -B 1 ips  | sed s/--//g | sed '/^\s*$/d' > refined_ocp_ips

# cat ~/.psql_history | grep 'update vm_dynamic set' | awk '{ print $(NF)}' | sed -e s/\'//g  -e 's/;//g' -e 's/)//g' > ocp_nodes
less ocp_ips  | grep name | awk '{print $NF}' | sort > ocp_nodes_all
@arcolife
arcolife / evm.log
Last active August 10, 2017 11:03
error'ed log lines
[----] E, [2017-08-09T08:44:32.927049 #3104:12a113c] ERROR -- : MIQ(MiqQueue#deliver) Message id: [5246422], timed out after 600.004238745 seconds. Timeout threshold [600]
[----] E, [2017-08-09T08:44:40.332310 #3104:12a113c] ERROR -- : MIQ(MiqGenericWorker::Runner) ID [1841] PID [3104] GUID [a6166ca2-7cf1-11e7-893a-001a4a223911] Exiting worker due to timeout error Worker exiting.
[----] E, [2017-08-09T09:05:27.346387 #15892:5d6ace0] ERROR -- : <VIM> ******* Errno::ECONNREFUSED
[----] E, [2017-08-09T09:05:27.346600 #15892:5d6ace0] ERROR -- : <VIM> Connection refused - connect(2) for "dhcp-8-99-172.com" port 443 (dhcp-8-99-172.com:443)
[----] E, [2017-08-09T09:05:27.346743 #15892:5d6ace0] ERROR -- : <VIM> /opt/rh/cfme-gemset/gems/httpclient-2.7.2/lib/httpclient/session.rb:597:in `initialize'
[----] E, [2017-08-09T09:05:27.352894 #15892:12a113c] ERROR -- : <VIM> MiqVimBroker.getMiqVim: failed to create new connection for dhcp-8-99-172.com_root
[----] E, [2017-08-09T09:05:27.353056 #15892:12a113c] ERROR -- : <VI
@arcolife
arcolife / sar-index.cfg.example
Created August 8, 2017 09:46
sarjitsu backend conf sample (standalone runs)
[ElasticSearch]
host = 0.0.0.0
port = 9200
[Settings]
index_prefix = sarjitsu
index_version = 1
bulk_action_count = 2000
number_of_shards = 5
number_of_replicas = 1
@arcolife
arcolife / docker_images.out
Created August 4, 2017 06:12
sarjitsu essential docker images
sarjitsu api 465a6dd113ae 4 weeks ago 851.6 MB
sarjitsu proxy 6f6b6beade38 4 weeks ago 674 MB
sarjitsu backend 5844b1162ebe 4 weeks ago 865.7 MB
sarjitsu grafana d5556e843baa 4 weeks ago 905.5 MB
sarjitsu metricstore_official 8a1d7ea224d6 4 weeks ago 306.7 MB
sarjitsu elasticsearch c3a70b68e495 4 weeks ago 930.5 MB
docker.io/redis <none> 9d8fa9aa0e5b 10 days ago 27.48 MB
docker.io/fedora 25 c904f9bc02af 8 weeks ago 496.1 MB
@arcolife
arcolife / ovirt-engine-dwhd.log
Created August 3, 2017 15:25
RHVM DWH error after restart
2017-08-03 11:20:57|ETL Service Stopped
2017-08-03 11:20:59|ETL Service Started
ovirtEngineDbDriverClass|org.postgresql.Driver
ovirtEngineHistoryDbJdbcConnection|jdbc:postgresql://localhost:5432/ovirt_engine_history?sslfactory=org.postgresql.ssl.NonValidatingFactory
hoursToKeepDaily|0
hoursToKeepHourly|720
ovirtEngineDbPassword|**********************
runDeleteTime|3
ovirtEngineDbJdbcConnection|jdbc:postgresql://localhost:5432/engine?sslfactory=org.postgresql.ssl.NonValidatingFactory
runInterleave|20