Skip to content

Instantly share code, notes, and snippets.

View adam-stokes's full-sized avatar
🦧

Adam Stokes adam-stokes

🦧
  • North Carolina
  • 16:04 (UTC -04:00)
View GitHub Profile
$ kubectl get svc -o wide
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
default-http-backend 10.152.183.155 <none> 80/TCP 2h app=default-http-backend
ghosty-ghost 10.152.183.21 ae05a6a678a0c11e7bc240626b5106b1-1310603334.us-east-1.elb.amazonaws.com 80:30719/TCP 31s app=ghosty-ghost
ghosty-mariadb 10.152.183.90 <none> 3306/TCP 31s app=ghosty-mariadb
kubernetes 10.152.183.1 <none> 443/TCP 2h <none>
diff --git a/conjureup/controllers/clouds/common.py b/conjureup/controllers/clouds/common.py
index 6bd84ba..cd28782 100644
--- a/conjureup/controllers/clouds/common.py
+++ b/conjureup/controllers/clouds/common.py
@@ -1,33 +1,27 @@
import asyncio
-
-from conjureup import events
+from juju.utils import run_with_interrupt
+from conjureup import events, utils
diff --git a/conjureup/controllers/clouds/common.py b/conjureup/controllers/clouds/common.py
index 6bd84ba..367902f 100644
--- a/conjureup/controllers/clouds/common.py
+++ b/conjureup/controllers/clouds/common.py
@@ -1,33 +1,25 @@
import asyncio
-from conjureup import events
+from conjureup import events, utils
from conjureup.models.provider import LocalhostError, LocalhostJSONError
class Field:
""" Field class with validation
"""
def __init__(self,
label=None,
widget=None,
key=None,
storable=True,
error=None,
class VSphere(BaseProvider):
def __init__(self):
super().__init__()
self.auth_type = 'userpass'
self.cloud_type = 'vsphere'
self.endpoint = None
self.user = None
self.password = None
self.endpoint_w = Field(
label='api endpoint',
2017-08-02 10:45:07,383 [DEBUG] conjure-up/ghost - utils.py:194 - Executing script: /home/adam/.cache/conjure-up/ghost/steps/00_deploy-done
2017-08-02 11:16:17,313 [DEBUG] conjure-up/ghost - events.py:55 - Setting ModelSettled at conjureup/controllers/deploy/common.py:79 in task _wait_for_applications at conjureup/controllers/deploy/tui.py:13
2017-08-02 11:16:17,313 [INFO] conjure-up/ghost - common.py:81 - Model settled.
2017-08-02 11:16:17,315 [INFO] conjure-up/ghost - common.py:16 - Setting environment var: BLOGURL=http://localhost
2017-08-02 11:16:17,315 [INFO] conjure-up/ghost - utils.py:179 - Running step: step-01_set_url.
2017-08-02 11:16:17,316 [DEBUG] conjure-up/ghost - utils.py:194 - Executing script: /home/adam/.cache/conjure-up/ghost/steps/step-01_set_url
2017-08-02 11:16:18,044 [DEBUG] conjure-up/ghost - events.py:55 - Setting PostDeployComplete at conjureup/controllers/runsteps/tui.py:25
2017-08-02 11:16:18,046 [DEBUG] conjure-up/ghost - events.py:55 - Setting Shutdown at conjureup/controllers/ru
@adam-stokes
adam-stokes / prefs.js
Created July 20, 2017 21:16
TomorrowNight Theme for Secure Shell
term_.prefs_.set('color-palette-overrides', {
"0":"#000000",
"1":"#cc6666",
"2":"#b5bd68",
"3":"#f0c674",
"4":"#81a2be",
"5":"#b294bb",
"6":"#8abeb7",
"7":"#ffffff",
"8":"#000000",
[adam:~] $ snap find conjure-up
Name Version Developer Notes Summary
conjure-up 2.2.2 canonical classic Package runtime for conjure-up spells
[adam:~] $ snap info conjure-up
name: conjure-up
summary: "Package runtime for conjure-up spells"
publisher: canonical
contact: https://github.com/conjure-up/conjure-up
description: |
This package provides conjure-up, an interface to installing spells that
Exception: Failed to create LXD conjureup1 network bridge: error: Failed to run: dnsmasq --strict-order --bind-interfaces --pid-file=/var/snap/conjure-up/common/lxd/networks/conjureup1/dnsmasq.pid --except-interface=lo --interface=conjureup1 --listen-address=10.60.32.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/conjure-up/common/lxd/networks/conjureup1/dnsmasq.leases --dhcp-hostsfile=/var/snap/conjure-up/common/lxd/networks/conjureup1/dnsmasq.hosts --dhcp-range 10.60.32.2,10.60.32.254,1h -s lxd -S /lxd/ -u lxd: dnsmasq: failed to create listening socket for 10.60.32.1: Address already in use
[adam:~/Projects/conjure-up] [conjure-dev] bug/921-force-lxd-profile-update ± conjure-up.lxc network attach-profile conjureup1 default eth0 eth0
error: device already exists
[adam:~/Projects/conjure-up] [conjure-dev] bug/921-force-lxd-profile-update 1 ± conjure-up.lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
nictype: bridged
parent: lxdbr0
type: nic