An example of connecting to your local LXD daemon.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log_file": "/etc/ublue/first-setup.log", | |
"distro_name": "uBlue OS", | |
"distro_logo": "org.vanillaos.FirstSetup", | |
"pre_run": [], | |
"post_run": [], | |
"tour": { | |
"get-involved": { | |
"icon": "system-users-symbolic", | |
"title": "Get Involved", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log_file": "/etc/ublue/first-setup.log", | |
"distro_name": "uBlue OS", | |
"distro_logo": "org.vanillaos.FirstSetup", | |
"pre_run": [], | |
"post_run": [], | |
"tour": { | |
"get-involved": { | |
"icon": "system-users-symbolic", | |
"title": "Get Involved", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
juju-log: Connecting to controller... ws://10.182.5.117:17070 as admin/admin | |
Traceback (most recent call last): | |
File "test_controller.py", line 253, in <module> | |
main() | |
File "test_controller.py", line 246, in main | |
if ns.login(): | |
File "test_controller.py", line 122, in login | |
self.client = self.loop.run_until_complete(self.connect()) | |
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete | |
return future.result() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multipass@big-bowerbird:~$ wget https://osm-download.etsi.org/ftp/osm-5.0-five/install_osm.sh | |
--2018-11-21 14:51:57-- https://osm-download.etsi.org/ftp/osm-5.0-five/install_osm.sh | |
Resolving osm-download.etsi.org (osm-download.etsi.org)... 195.238.226.47 | |
Connecting to osm-download.etsi.org (osm-download.etsi.org)|195.238.226.47|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 858 [text/x-sh] | |
Saving to: ‘install_osm.sh’ | |
install_osm.sh 100%[===================================================================================================================================================================>] 858 --.-KB/s in 0s | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from charms.reactive import when, when_not, set_flag | |
from charmhelpers.core.hookenv import log, config | |
from charms.reactive.flags import register_trigger | |
# Register a trigger so that we can respond to config.changed, even if | |
# it's being cleared by another handler | |
register_trigger(when='config.changed', | |
set_flag='trigger.config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will create xenial (and trusty, et al) lxd images that will | |
# be used by the lxd provider in juju 2.1+ It is for use with the lxd | |
# provider for local development and preinstalls a common set of production | |
# packages. | |
# | |
# This is important, as between them, basenode and layer-basic install ~111 | |
# packages, before we even get to any packages installed by your charm. | |
# |
lxc launch ubuntu:16.04 charm-snap -c security.nesting=true -c security.privileged=true
lxc exec charm-snap -- apt update
lxc exec charm-snap -- apt install -y squashfuse
# Restart required to avoid 'Setup snap "core" (3748) security profiles (cannot setup udev for snap "core": cannot reload udev rules: exit status 2'
lxc restart charm-snap
lxc exec charm-snap -- snap install charm
lxc exec charm-snap -- sh -c "rm -rf charms/layers; mkdir -p charms/layers; cd charms/layers; charm create simple; cd simple; charm build"
INFO: Using default charm template (reactive-python). To select a different template, use the -t option.
This document is intended to aid the development workflow described in Developer HowTo for UI Module for Open Source Mano.
In order to develop in your preferred IDE/text editor, you can "bind mount" a directory from your local computer into an LXD container running on the same host.
First, find out your uid:
$ id
id
uid=1000(stone) gid=1000(stone) groups=1000(stone),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),129(lxd),131(kismet),138(libvirtd)
NewerOlder