Skip to content

Instantly share code, notes, and snippets.

View whitmo's full-sized avatar
💭
state 26

Whit Morriss whitmo

💭
state 26
View GitHub Profile
======================================================================
ERROR: test_main (tests.test_generator.TestGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/whit/proj/cf/trusty/cloudfoundry/tests/test_generator.py", line 196, in test_main
main(['-d', tmpdir, '173'])
File "/home/whit/proj/cf/trusty/cloudfoundry/charmgen/generator.py", line 230, in main
g.generate(options.directory)
File "/home/whit/proj/cf/trusty/cloudfoundry/charmgen/generator.py", line 181, in generate
for service in self.release['topology']['services']:
root@ip-172-31-9-254:/etc/monit/conf.d# /var/vcap/jobs/nats/bin/nats_ctl start
/var/vcap/jobs/nats/bin/nats_ctl: line 9: /var/vcap/packages/common/utils.sh: No such file or directory
/var/vcap/jobs/nats/bin/nats_ctl: line 14: pid_guard: command not found
/var/vcap/jobs/nats/bin/nats_ctl: line 21: /var/vcap/packages/syslog_aggregator/setup_syslog_forwarder.sh: No such fil\
e or directory
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh1 = 1024
/var/vcap/jobs/nats/bin/nats_ctl: line 28: /var/vcap/packages/gnatsd/bin/gnatsd: No such file or directory
2014-07-23 15:14:08 INFO install Traceback (most recent call last):
2014-07-23 15:14:08 INFO install File "/var/lib/juju/agents/unit-nats-0/charm/hooks/install", line 2, in <module>
2014-07-23 15:14:08 INFO install from cloudfoundry.jobs import job_manager
2014-07-23 15:14:08 INFO install File "/var/lib/juju/agents/unit-nats-0/charm/hooks/cloudfoundry/jobs.py", line 4, in <module>
2014-07-23 15:14:08 INFO install from cloudfoundry import tasks
2014-07-23 15:14:08 INFO install File "/var/lib/juju/agents/unit-nats-0/charm/hooks/cloudfoundry/tasks.py", line 17, in <module>
2014-07-23 15:14:08 INFO install from cloudfoundry import templating
2014-07-23 15:14:08 INFO install File "/var/lib/juju/agents/unit-nats-0/charm/hooks/cloudfoundry/templating.py", line 10, in <module>
2014-07-23 15:14:08 INFO install from cloudfoundry.mapper import NestedDict, property_mapper
2014-07-23 15:14:08 INFO install File "/var/lib/juju/agents/unit-nats-0/charm/hooks/cloudfoundry/mapper.py", line 2, in <modu
@whitmo
whitmo / cfme.yml
Created August 15, 2014 19:14
excerpt from cf-manifest.yml
---
servicesmgmt:
authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
authorized-grant-types: authorization_code,client_credentials,password,implicit
autoapprove: true
override: true
redirect-uri: http://servicesmgmt.10.244.0.34.xip.io/auth/cloudfoundry/callback
scope: openid,cloud_controller.read,cloud_controller.write
secret: servicesmgmt-secret

Health Check

Services framework

{
 health: <one or more callbacks>
}
@whitmo
whitmo / stackorama.md
Created August 29, 2014 19:30
some ideas about the abstraction of stacks

Placement, stacks, and environments

I see you like workloads, so I put a workload in your workload

One of juju's strength's is standing up complex deployments as workloads. Frequently, these complex deployments represent infrastructure that also accepts workloads and hosting of service, ala:

  • openstack
class Waiter(list):
def __init__(self):
self.greenlets = []
def spawn(self, func, *args, **kw):
g = gevent.spawn(func, *args, **kw)
self.greenlets.append(g)
@property
def results(self):
@whitmo
whitmo / gist:3ea7f41f197302612a4f
Created September 11, 2014 00:19
blobstore error
Blobstore error: Failed to fetch object, underlying error: #<Errno::ENOSPC: No space left on device - /tmp/d20140910-8513-jcwiek/bosh-tmp-file-73e52cf1-35e4-427a-b766-f457a3a55993> /var/lib/gems/1.9.1/gems/blobstore_client-1.2710.0/lib/blobstore_client/simple_blobstore_client.rb:40:in `write'
/var/lib/gems/1.9.1/gems/blobstore_client-1.2710.0/lib/blobstore_client/simple_blobstore_client.rb:40:in `block in get_file'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient.rb:769:in `call'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient.rb:769:in `block in request'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient.rb:1095:in `call'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient.rb:1095:in `block in do_get_block'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient/session.rb:965:in `read_body_length'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient/session.rb:703:in `get_body'
/var/lib/gems/1.9.1/gems/httpclient-2.4.0/lib/httpclient.rb:1092:in `do_get_block'
/var/lib/gems/1
whit@JATO7:~$ juju debug-hooks-ext cf-webadmin/0
Customizing environment...Traceback (most recent call last):
File "/home/whit/.juju-plugins/juju-debug-hooks-ext", line 164, in <module>
config = customize(unit, opts)
File "/home/whit/.juju-plugins/juju-debug-hooks-ext", line 38, in customize
if os.path.exists(os.path.expanduser(config.get('init'))):
File "/usr/lib/python2.7/posixpath.py", line 261, in expanduser
if not path.startswith('~'):
AttributeError: 'NoneType' object has no attribute 'startswith'
ERROR subprocess encountered error code 1