Skip to content

Instantly share code, notes, and snippets.

View arcolife's full-sized avatar

Archit Sharma arcolife

View GitHub Profile
[stack@gprfc043 ~]$ openstack baremetal node list
+--------------------------------------+------+--------------------------------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+------+--------------------------------------+-------------+--------------------+-------------+
| 0f4ff894-32e3-4d69-81c5-bc1631117a75 | None | b03c0be0-2405-4a87-b1bc-12c1ef6e0974 | power on | active | False |
| 30fe129f-f991-49c6-9214-886d22d950af | None | c372f8a2-b80f-48a3-815d-ab648da021b8 | power on | active | False |
| 976b5961-6cbd-4208-8c7e-4ccd5473da40 | None | aa99c0c4-7342-43e7-a518-46351018380e | power on | active | False |
| 92f1d5c2-13d2-483b-a74a-0893f2e32452 | None | a22967ce-7fcb-48d0-a117-a858ac75743f | power on | active | False |
| f67fdbca-a8cd-4c1f-a
@arcolife
arcolife / evm.log
Created September 19, 2017 10:40
MiQ Generic Worker traceback
...
[----] I, [2017-09-19T06:34:45.962417 #55145:467134] INFO -- : MIQ(MiqQueue.put) Message id: [367811], id: [], Zone: [
default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [7], Task id: [], Command: [ManageIQ::Prov
iders::Openstack::CloudManager.sync_cloud_tenants_with_tenants], Timeout: [600], Priority: [100], State: [ready], Delive
r On: [], Data: [], Args: []
...
[----] I, [2017-09-19T06:34:51.119265 #55458:467134] INFO -- : MIQ(MiqGenericWorker::Runner#get_message_via_drb) Messag
e id: [367811], MiqWorker id: [10709], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance
id: [7], Task id: [], Command: [ManageIQ::Providers::Openstack::CloudManager.sync_cloud_tenants_with_tenants], Timeout:
[600], Priority: [100], State: [dequeue], Deliver On: [], Data: [], Args: [], Dequeued in: [5.167517768] seconds
[root@gprfc041 ~]# getenforce
Disabled
[root@gprfc041 ~]# setenforce 1
setenforce: SELinux is disabled
[root@gprfc041 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@gprfc041 ~]# uname -a
Linux gprfc041.<>.redhat.com 3.10.0-693.2.2.el7.x86_64 #1 SMP Sat Sep 9 03:55:24 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
----------------------------
@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