Skip to content

Instantly share code, notes, and snippets.

Adam Israel AdamIsrael

Block or report user

Report or block AdamIsrael

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View openmano.yaml
series: xenial
charm: "cs:trusty/mariadb-3"
num_units: 1
"gui-x": "539"
"gui-y": "494.7050807568877"
- "0"

Assumptions: the charm name is fluentd

Submitting a layered charm

Register an account on launchpad, if you don't already have one. You'll need the name later in the process.

  1. Create a launchpad branch of the deployable charm
[~/charms/layers/fluentd] $ charm build
AdamIsrael /
Last active Apr 17, 2019
Ingest a charm into gitlab and perform some common review queue steps
#!/usr/bin/env python
Setup notes:
Git needs to be configured on the machine doing the ingestion.
git config --global "Administrator"
git config --global ""
In Gitlab:


This is a work-in-progress bug report.

Steps to recreate

Open new terminal and run:

In another terminal and run:

View gist:aa18a0d651f3f7735dda
2015-05-22 03:39:36 INFO juju.cmd supercommand.go:37 running jujud [1.24-beta3.1-trusty-amd64 gc]
2015-05-22 03:39:36 DEBUG juju.agent agent.go:425 read agent config, format "1.18"
2015-05-22 03:39:36 INFO juju.cmd.jujud machine.go:384 machine agent machine-0 start (1.24-beta3.1-trusty-amd64 [gc])
2015-05-22 03:39:36 DEBUG juju.wrench wrench.go:112 couldn't read wrench directory: stat /var/lib/juju/wrench: no such file or directory
2015-05-22 03:39:36 INFO juju.cmd.jujud upgrade.go:87 no upgrade steps required or upgrade steps for 1.24-beta3.1 have already been run.
2015-05-22 03:39:36 INFO network.go:194 setting prefer-ipv6 to false
2015-05-22 03:39:36 INFO juju.worker runner.go:261 start "api"
2015-05-22 03:39:36 INFO juju.worker runner.go:261 start "statestarter"
2015-05-22 03:39:36 INFO juju.api apiclient.go:331 dialing "wss://localhost:17070/environment/8bfca804-7bb2-48c7-8316-a355046f7546/api"
2015-05-22 03:39:36 INFO juju.worker runner.go:261 start "termination"
AdamIsrael / gist:b97ef47ebecb82219dce
Created May 22, 2015
juju status -- post-restart
View gist:b97ef47ebecb82219dce
$ juju status
environment: local
agent-state: started
agent-version: 1.24-beta3.1
dns-name: localhost
instance-id: localhost
series: trusty
state-server-member-status: has-vote
View gist:0c67c8553bb0a485e9ca
$ juju status --debug
2015-05-22 03:52:09 INFO juju.cmd supercommand.go:37 running juju [1.24-beta4-trusty-amd64 gc]
2015-05-22 03:52:09 DEBUG juju.api api.go:168 trying cached API connection settings - endpoints [localhost:17070]
2015-05-22 03:52:09 INFO juju.api api.go:280 connecting to API addresses: [localhost:17070]
2015-05-22 03:52:09 INFO juju.api apiclient.go:331 dialing "wss://localhost:17070/environment/8bfca804-7bb2-48c7-8316-a355046f7546/api"
2015-05-22 03:52:09 DEBUG juju.api apiclient.go:337 error dialing "wss://localhost:17070/environment/8bfca804-7bb2-48c7-8316-a355046f7546/api", will retry: websocket.Dial wss://localhost:17070/environment/8bfca804-7bb2-48c7-8316-a355046f7546/api: dial tcp connection refused
2015-05-22 03:52:11 INFO juju.api apiclient.go:331 dialing "wss://localhost:17070/environment/8bfca804-7bb2-48c7-8316-a355046f7546/api"
2015-05-22 03:52:11 DEBUG juju.api
AdamIsrael / gist:7ad1a5dd86f395060223
Last active Aug 29, 2015
This is the Vagrantfile I use for my day-to-day work for Juju development and testing.
View gist:7ad1a5dd86f395060223
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of. = "trusty/juju"
AdamIsrael / gist:7ead3157593f87b98de9
Created Mar 25, 2015
Generate yaml for haproxy charm
View gist:7ead3157593f87b98de9
#!/usr/bin/env python
import json
service = [
'service_name': 'demo',
'service_options': ['mode http', 'balance leastconn', 'option httpchk GET / HTTP/1.0'],
'server_options': ['maxconn 100'],
'servers': [
# Notes
I removed my previously-installed charm-tools but didn't clean up so I had to run `brew link` afterwards.
You can’t perform that action at this time.