Skip to content

Instantly share code, notes, and snippets.

View NeilHanlon's full-sized avatar

Neil Hanlon NeilHanlon

View GitHub Profile

Keybase proof

I hereby claim:

  • I am NeilHanlon on github.
  • I am nhanlon (https://keybase.io/nhanlon) on keybase.
  • I have a public key whose fingerprint is 0875 C0B8 BAC3 2CD7 A733 4A8B 2C41 CBEF 36F1 C00B

To claim this, I am signing this object:

#!/bin/bash
baddisks=()
for disk in "/" "/disk2" "/disk3" ; do
if [[ -d ${disk} ]]; then
touch ${disk}/test 2>/dev/null || baddisks+=(${disk})
rm ${disk}/test 2>/dev/null
fi
done
count="${#baddisks[@]}"
2016-12-19 17:31:03 [app] [W] Error has occurred while listing VMs on c4 Xen (Xenserver)
| Fog::Service::NotFound: xenserver has no compute service
| /opt/rh/rh-ruby22/root/usr/local/share/gems/gems/fog-core-1.42.0/lib/fog/core/services_mixin.rb:18:in `rescue in new'
| /opt/rh/rh-ruby22/root/usr/local/share/gems/gems/fog-core-1.42.0/lib/fog/core/services_mixin.rb:8:in `new'
| /opt/rh/rh-ruby22/root/usr/local/share/gems/gems/fog-core-1.42.0/lib/fog/compute.rb:54:in `new'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.3.1/app/models/foreman_xen/xenserver.rb:360:in `client'
| /usr/share/foreman/app/models/compute_resource.rb:162:in `vms'
| /usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:133:in `load_vms'
| /usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:4:in `index'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
[main]
use_srv_records=true
srv_domain=%s.%s
environment = %s
vardir = /var/lib/puppet
ssldir = $vardir/ssl
confdir = /etc/puppet
pluginsource = puppet:///plugins
pluginfactsource = puppet:///pluginfacts
^M Installing : katello-agent-2.4.0-3.el6.noarch 11/11
Stopping goferd[FAILED]^M
Starting goferdTraceback (most recent call last):
File "/usr/bin/goferd", line 17, in <module>
from gofer.agent.main import main
File "/usr/lib/python2.6/site-packages/gofer/agent/main.py", line 25, in <module>
LogHandler.install()
File "/usr/lib/python2.6/site-packages/gofer/agent/logutil.py", line 45, in install
handler = LogHandler(address='/dev/log', facility=SysLogHandler.LOG_DAEMON)
File "/usr/lib64/python2.6/logging/handlers.py", line 721, in __init__
Oct 24 14:17:07 m4katello01.m4. pulp[3834]: celery.beat:INFO: Scheduler: Sending due task download_deferred_content (pulp.server.controllers.repository.queue_download_deferred)
Oct 24 14:17:07 m4katello01.m4. pulp[3834]: celery.beat:ERROR: (3834-82944) Message Error: Couldn't apply scheduled task download_deferred_content: Exception from Agent: {u'error_code': 7, u'error_text': 'Queue celery: create() failed: jexception 0x010c EmptyFilePool::createSymLink() threw JERR__SYMLINK: Symbolic link operation failed (file="/var/lib/qpidd/.qpidd/qls/p001/efp/2048k/in_use/ee7a4c7e-b14e-4745-8523-a713b1ac73dc.jrnl" symlink="/var/lib/qpidd/.qpidd/qls/jrnl2/celery/ee7a4c7e-b14e-4745-8523-a713b1ac73dc.jrnl" errno=13 (Permission denied)) (/builddir/build/BUILD/qpid-cpp-1.35.0/src/qpid/linearstore/MessageStoreImpl.cpp:425)'}
Oct 24 14:17:07 m4katello01.m4. pulp[3834]: celery.beat:ERROR: (3834-82944) [' File "/usr/bin/celery", line 9, in <module>\n load_entry_point(\'celery==3.1.11\', \'console_scripts\', \'celery\')()\n'
[nhanlon@p4deploy01 ~]$ cat /l/etc/instance.cfg|grep -v "#" | wc -l
1059
Error: Package: tfm-rubygem-logging-1.8.2-4.el6.noarch (foreman)
Requires: sclo-ror42-rubygem(multi_json) >= 1.8.4
Error: Package: tfm-rubygem-azure-core-0.1.1-0.9.el6.noarch (@foreman-plugins)
Requires: tfm-rubygem(nokogiri) < 2.0
Removing: tfm-rubygem-nokogiri-1.6.6.2-2.el6.x86_64 (@foreman)
tfm-rubygem(nokogiri) = 1.6.6.2-2.el6
Obsoleted By: tfm-runtime-3.1-3.el6.x86_64 (foreman)
Not found
Error: Package: tfm-runtime-3.1-3.el6.x86_64 (foreman)
Requires: sclo-ror42-runtime
create database ehr;
use ehr;
CREATE TABLE patient
(
id INT NOT NULL AUTO_INCREMENT,
name NOT NULL VARCHAR(255),
d_id INT NOT NULL,
password VARCHAR(255) NOT NULL,