Skip to content

Instantly share code, notes, and snippets.

[openshift@ip-172-18-1-13 ~]$ journalctl -u atomic-openshift-master -n 100 > logs
[openshift@ip-172-18-1-13 ~]$ cat logs
-- Logs begin at Sun 2016-01-31 23:24:44 EST, end at Mon 2016-02-01 11:32:33 EST. --
Feb 01 11:32:24 ip-172-18-1-13.localdomain atomic-openshift-master[14815]: I0201 11:32:24.440259 14815 master.go:237] Started OAuth2 API at 0.0.0.0:443/oauth
Feb 01 11:32:24 ip-172-18-1-13.localdomain atomic-openshift-master[14815]: I0201 11:32:24.440265 14815 master.go:237] Started Login endpoint at 0.0.0.0:443/login
Feb 01 11:32:24 ip-172-18-1-13.localdomain atomic-openshift-master[14815]: I0201 11:32:24.440270 14815 master.go:237] Started Web Console 0.0.0.0:443/console/
Feb 01 11:32:24 ip-172-18-1-13.localdomain atomic-openshift-master[14815]: I0201 11:32:24.440276 14815 master.go:237] Started Swagger Schema API at 0.0.0.0:443/swaggerapi/
Feb 01 11:32:24 ip-172-18-1-13.localdomain atomic-openshift-master[14815]: I0201 11:32:24.659934 14815 ensure.go:184] Ignoring bootstrap policy file because
2015-01-15 14:22:28,454 INFO process-manager [139879117629392] [process_manager.py:65] Launching ['/var/lib/cattle/pyagent/cattle/process_watcher.sh']
2015-01-15 14:22:28,457 INFO process-manager [139879117629392] [process_manager.py:68] Launched ['/var/lib/cattle/pyagent/cattle/process_watcher.sh'] as pid 472
2015-01-15 14:22:28,466 INFO agent [139879117629392] [__init__.py:15] Loading Plugin: host-api from /var/lib/cattle/pyagent/cattle/plugins
2015-01-15 14:22:28,466 INFO agent [139879117629392] [__init__.py:15] Loading Plugin: libvirt_config_drive from /var/lib/cattle/pyagent/cattle/plugins
2015-01-15 14:22:28,467 INFO libvirt [139879117629392] [__init__.py:17] Failed to find libvirt python
2015-01-15 14:22:28,468 INFO libvirt [139879117629392] [__init__.py:41] Disabling libvirt
2015-01-15 14:22:28,471 INFO agent [139879117629392] [__init__.py:15] Loading Plugin: libvirt_directory_pool from /var/lib/cattle/pyagent/cattle/plugins
2015-01-15 14:22:28,471 INFO agent [139879117629392] [__init__.py:15] Loading
@barkerd427
barkerd427 / logs
Created January 15, 2015 14:32
Error from Rancher
08:30:11 # docker logs 949d2c2cfb74
CATTLE_DB_CATTLE_MYSQL_HOST=
CATTLE_DB_CATTLE_MYSQL_PORT=
CATTLE_GRAPHITE_HOST=
CATTLE_GRAPHITE_PORT=
CATTLE_HOME=/var/lib/cattle
CATTLE_LOGBACK_OUTPUT_GELF_HOST=
CATTLE_LOGBACK_OUTPUT_GELF_PORT=
[BOOTSTRAP] Starting Cattle
[BOOTSTRAP] CATTLE_HOME=/var/lib/cattle
@barkerd427
barkerd427 / gist:a77663d3117c10bfb430
Created December 11, 2014 03:00
Second chef-client run
root@kc7aeonmap001:/root
20:33:21 # chef-client
[2014-12-10T20:34:01-06:00] INFO: *** Chef 10.24.0 ***
[2014-12-10T20:34:02-06:00] INFO: [inet6] no default interface, picking the first ipaddress
[2014-12-10T20:34:03-06:00] INFO: Run List is [role[Hadoop-jdk6], role[Hadoop-client-role], role[dnsmasq-hadoop-kc7], role[aeon_mapreduce_kc7staging], role[aeon_orgsecurity_mapreduce_staging], role[aeon_cron_kc7staging], role[salt_shaker_kc7staging], role[aeon_formulary_mapreduce_staging], role[aeon_temporary_storage_cron_staging], role[pharmacy_mappings_pre-prod], role[aeon_orders_reference_mapreduce_staging], role[zabbix_agent_non_prod_jmx_disabled], role[statesman_cli_install_staging], role[concept_tags_2_staging], role[hdfs_tmp_cleanup_staging], role[aeon_eventset_mapreduce_kc7staging]]
[2014-12-10T20:34:03-06:00] INFO: Run List expands to [java, kepler-tools-cookbook, cdh4::base, dnsmasq, cerner_splunk, aeon_mapreduce, aeon_org_security_mapreduce, aeon_cron, salt_shaker, aeon_formulary_mapreduce, aeon_formulary_m
@barkerd427
barkerd427 / gist:1241bb00d2b6beef6413
Created December 11, 2014 02:56
Run splunk command that failed in chef-client
root@kc7aeonmap001:/root
20:31:05 # /opt/splunkforwarder/bin/splunk help commands --accept-license --answer-yes --no-prompt
This appears to be your first time running this version of Splunk.
This page shows you the syntax and summary of the Splunk CLI commands. A command is an action
that you can perform on an object. Some commands don't require an object or parameters. Some
commands have a default parameter that can be specified by its value alone.
@barkerd427
barkerd427 / gist:4ad76e5a983f628d26b3
Created December 11, 2014 02:53
Remove splunkforwarder and run chef-client
root@kc7aeonmap001:/root
20:27:06 # rpm -e splunkforwarder
root@kc7aeonmap001:/root
20:27:12 # rpm -q splunkforwarder
package splunkforwarder is not installed
root@kc7aeonmap001:/root
20:27:27 # chef-client
[2014-12-10T20:30:17-06:00] INFO: *** Chef 10.24.0 ***
[2014-12-10T20:30:18-06:00] INFO: [inet6] no default interface, picking the first ipaddress
[2014-12-10T20:30:19-06:00] INFO: Run List is [role[Hadoop-jdk6], role[Hadoop-client-role], role[dnsmasq-hadoop-kc7], role[aeon_mapreduce_kc7staging], role[aeon_orgsecurity_mapreduce_staging], role[aeon_cron_kc7staging], role[salt_shaker_kc7staging], role[aeon_formulary_mapreduce_staging], role[aeon_temporary_storage_cron_staging], role[pharmacy_mappings_pre-prod], role[aeon_orders_reference_mapreduce_staging], role[zabbix_agent_non_prod_jmx_disabled], role[statesman_cli_install_staging], role[concept_tags_2_staging], role[hdfs_tmp_cleanup_staging], role[aeon_eventset_mapreduce_kc7staging]]
@barkerd427
barkerd427 / gist:6bbf59d7fffc7d118bfb
Created December 10, 2014 21:51
Error from cerner_splunk cookbook
root@kc7aeonmap001:/root
15:47:38 # chef-client
[2014-12-10T15:47:44-06:00] INFO: *** Chef 10.24.0 ***
[2014-12-10T15:47:46-06:00] INFO: [inet6] no default interface, picking the first ipaddress
[2014-12-10T15:47:47-06:00] INFO: Run List is [role[Hadoop-jdk6], role[Hadoop-client-role], role[dnsmasq-hadoop-kc7], role[aeon_mapreduce_kc7staging], role[aeon_orgsecurity_mapreduce_staging], role[aeon_cron_kc7staging], role[salt_shaker_kc7staging], role[aeon_formulary_mapreduce_staging], role[aeon_temporary_storage_cron_staging], role[pharmacy_mappings_pre-prod], role[aeon_orders_reference_mapreduce_staging], role[zabbix_agent_non_prod_jmx_disabled], role[statesman_cli_install_staging], role[concept_tags_2_staging], role[hdfs_tmp_cleanup_staging], role[aeon_eventset_mapreduce_kc7staging]]
[2014-12-10T15:47:47-06:00] INFO: Run List expands to [java, kepler-tools-cookbook, cdh4::base, dnsmasq, cerner_splunk, aeon_mapreduce, aeon_org_security_mapreduce, aeon_cron, salt_shaker, aeon_formulary_mapreduce, aeon_formulary_m
require "instagram"
require "restclient"
require "twitter"
require 'koala'
hashtag = "danpluslaura"
INSTAGRAM_ACCESS_TOKEN = "############"
INSTAGRAM_CLIENT_ID = "###########"
INSTAGRAM_CLIENT_SECRET = "###########"