We have a design that calls for tree structure of entities, each will be
mapped to a charm/bundle. So how to bundle a list of bundles?
--
Feng xia
Engineer
Lenovo USA
Phone: 5088011794
fx...@lenovo.com
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums
--
Juju mailing list
Thank you for the pointer. I'll take a look. Can it package local charms?
On 04/20/2017 03:58 PM, Junaid Ali wrote:
Fengxia,
juju-deployer
<https://launchpad.net/%7Etvansteenburgh/+archive/ubuntu/ppa> could be
helpful here to incorporate multiple bundles. Charm-testing repo
:38 PM, Tom Barber wrote:
Currently bundles are pretty dumb and nested bundles don't exist.
Tom
On 20 Apr 2017 20:29, "fengxia" <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
We have a design that calls for tree structure of entities, each
will be mapped to
Hi,
I have developed a charm called "test". Using command line to deploy
from local repo:
$ juju deploy $JUJU_REPOSITORY/trusty/test
First one went well. Issuing this command again will give error:
08:28:49 ERROR cmd supercommand.go:460 cannot add application "test":
application already
u, Apr 20, 2017 at 1:32 PM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi,
I have developed a charm called "test". Using command line to
deploy from local repo:
$ juju deploy $JUJU_REPOSITORY/trusty/test
First one went well. Issuing t
n the same DB.
Can someone verify this?
On 04/18/2017 08:50 AM, fengxia wrote:
I did a quick experiment:
1. Created two layers in one charm, each layer has a few states,
set_state() can trigger @when defined in other layers.
2. Use the same set of states, now splitting them in two charms
I did a quick experiment:
1. Created two layers in one charm, each layer has a few states,
set_state() can trigger @when defined in other layers.
2. Use the same set of states, now splitting them in two charms => @when
don't trigger anymore.
So does this mean states have a namespace by the
I'm learning charm development and confused about state vs. hook.
I used @when_not("state.0") to mark the very first function that gets
executed. In document it also says "install" hook will be the first to
execute. Tried @hooks.hook("install") but it just failed at charm
installation.
So
I see. Thanks for the pointer. This is very helpful in our design.
On 04/18/2017 09:30 AM, Marco Ceppi wrote:
On Tue, Apr 18, 2017 at 8:57 AM Alex Kavanagh
<alex.kavan...@canonical.com <mailto:alex.kavan...@canonical.com>> wrote:
Hi
On Tue, Apr 18, 2017 at 1:50 PM,
.
Can I ask what you're looking to achieve?
Marco
On Tue, Apr 18, 2017, 10:05 fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Replying my own question:
charmhelpers.core.unitdata shows how states are stored --
"reactive.state.xyz <http://reactive.
the sanity of these external resources we want to guard.
On 07/28/2017 05:37 AM, Alex Kavanagh wrote:
Hi fengxia
As Cory says, it's much better to think of the set_state() and
remove_state() as binary flags; in fact in the upcoming version,
set_state becomes set_flag() and remove_state
For anyone, the solution is rather strange:
$ sudo service stop bind9
$ sudo lxd start
Reference: https://github.com/lxc/lxd/issues/2046
On 08/02/2017 03:33 PM, fengxia wrote:
Hi Juju,
I have a 16.04 KVM. Installed juju and LXD from apt.
$ juju bootstrap localhost test
ERROR creating LXD
Here is an update. Manually run this command,
$ sudo lxd --group lxd
Then $ lxc list works. So the LXD service was not started after reboot.
Permission issue?
On 08/02/2017 03:33 PM, fengxia wrote:
Hi Juju,
I have a 16.04 KVM. Installed juju and LXD from apt.
$ juju bootstrap localhost
Another thing to check. Is your VM in the "READY" state?
On 08/03/2017 03:12 AM, wahi wrote:
Dear all,
Recently I am investingating the installation of Openstack using MAAS
and JUJU.
I installaed MAAS on bare metals server Ubuntu 16.04, I have another
server also which has Ubuntu 16.04.
I
u - it'll take care of
deploying
it.
On Thu, Aug 3, 2017 at 7:48 PM, wahi <w...@sci.am> wrote:
Hi Fengxia,
Thanks for your response.
Actually the VM is deployed already by MAAS, do I need to
commission it
and
not go to the deployment ? is the deployment will be by JUJU ?
On 08/03/2
Hi Juju,
Trying to deploy a bundle which consists of local charms.
$JUJU_REPOSITORY=/home/fengxia/workspace/dist
in this folder, all charms are in "trusty/"
Bundle file is located in /home/fengxia/workspace/project/test.yaml:
services:
# solution
solution:
charm: ./trust
2.0.2-xenial-amd64 it still is.
On 08/03/2017 04:40 PM, Dmitrii Shcherbakov wrote:
Hi Feng,
Just use an absolute path:
https://github.com/juju/docs/pull/1980
Best Regards,
Dmitrii Shcherbakov
Field Software Engineer
IRC (freenode): Dmitrii-Sh
On Thu, Aug 3, 2017 at 11:34 PM, fengxia <
Make sense. Thank you Stuart.
On 08/11/2017 06:31 AM, Stuart Bishop wrote:
On 11 August 2017 at 09:02, fengxia <fx...@lenovo.com> wrote:
Hi Juju,
I'm building a charm by including two layers in layer.yaml:
includes:
- 'layer:basic'
- 'layer:pylxca'
Pylxca is a library I pa
Hi Juju,
I'm building a charm by including two layers in layer.yaml:
includes:
- 'layer:basic'
- 'layer:pylxca'
Pylxca is a library I packaged into a "layer" format for reuse.
Both layers have a folder called "hooks", and each has a hook called
"install". The curious result is that after
Hi Juju,
I'm curious how you run playbook from charms?
Here are two approaches I have done so far. It gets me going. But I'm
wondering whether there is a better way to do this. Comments?
--
Previously I have been using
state("next")
On 07/27/2017 03:56 PM, Cory Johns wrote:
fengxia,
It's probably more enlightening to think of them as "flags" rather
than states. (Indeed, the next release of charms.reactive will
deprecate calling them states and will provide set_flag, remove_flag,
e
loop to
themselves.
But I don't what alternative is in charm's context.
On 07/27/2017 04:13 AM, Alex Kavanagh wrote:
Hi
On Thu, Jul 27, 2017 at 2:37 AM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Juju,
Once I set a state, set_state("here"), I
s in the right hook context
- interface class reference is only passed in decorated functions if the
hook inside the interface code ran
- Only the first occurrence of a unit joining a relation can be caught
with handler
- Interfaces have 90% identical code which is just boilerplate
Just my 0.02€
On 2
Hi Juju,
Once I set a state, set_state("here"), I want to make sure its @when
will only be executed ONCE (when "here" from False->True).
So my thought is to remove_state("here") in its @when("here") code
block. If I don't, will this @when be called multiple times if I don't
reset this
Hi NAZ,
Like Andrew already pointed out, you can issue `juju deploy your-char
--to 9` to run your charms.
Then on the juju CLI side, use `juju debug-log` to get a running debug
log. Whatever the charm error is, you should see it flashing across the
screen. Also, hooks and states will be run
Hi NAZ,
Like Andrew already pointed out, you can issue `juju deploy your-charm
--to 9` to run your charms.
Then on the juju CLI side, use `juju debug-log` to get a running debug
log. Whatever the charm error is, you should see it flashing across the
screen. Also, hooks and states will be
Hi Juju,
I have tried status_set(), which will show up in juju debug-log, but how
to make some message appear on Juju GUI?
I'm building a charm that I want to feedback user of progress. What's
the right tool for this?
--
Feng xia
Engineer
Lenovo USA
Phone: 5088011794
fx...@lenovo.com
Hi Juju,
Is there a way to read juju debug-log output as a live data stream?
The thought is to take the log as an input to sth like ELK for
monitoring and analysis.
--
Feng xia
Engineer
Lenovo USA
Phone: 5088011794
fx...@lenovo.com
Lenovo.com
Twitter | Facebook | Instagram | Blogs
try to get it out
of the error state so that the upgrade happens.
On Fri, Aug 18, 2017 at 2:32 PM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Juju,
So here is what I got:
1. juju status shows `mycharm` is in an error state.
2. Fixed the bug a
ppens from there.
Did I miss a step somewhere?
On 08/18/2017 09:07 AM, Tom Barber wrote:
juju upgrade-charm is I suspect what you're looking for .
Tom
On Fri, Aug 18, 2017 at 1:58 PM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Juju,
I'm testing a lo
Hi Juju,
I'm testing a locally built charm using `localhost` (LXD) setup.
Everytime `juju deploy` will take a good 5-10 minutes just to download
and install python packages before the charm code runs.
I'm wondering what's a good practice to cut down this in dev iteration?
So if I build a
I'm a researcher at Lenovo US. I myself started researching Juju and
charms about 4 months ago and can relate to many of Erik's comments. To
add to this discussion, here are my experience and thoughts:
1. Design document.
Reading official document and tutorials are good but not satisfying to
:
On Wed, May 10, 2017 at 3:08 PM fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
I have followed dev instruction and can build Juju binaries for
Ubuntu. The dev machine is also Ubuntu.
$go install -v github.com/juju/juju/ <http://github.com/juju/juju/>…
Wilkins" <andrew.wilk...@canonical.com
<mailto:andrew.wilk...@canonical.com>> wrote:
On Wed, May 10, 2017 at 3:08 PM fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
I have followed dev instruction and can build Juju binaries
for U
I have followed dev instruction and can build Juju binaries for Ubuntu.
The dev machine is also Ubuntu.
$go install -v github.com/juju/juju/…
Using the same binaries will not however bootstrap with "--config
default-series=centos", nor "add-machine --series centos". Both failed
at "no tools
Hi Juju,
I'm designing an application, where charm A and B are linked by a A-B
relation.
In A there are a few states, and I want to parse a file to extract some
values, then pass these values to charm B to consume. How do I make
these values available to B then? via relation? or other mean?
Hi Juju,
I made a hello world charm based on charm tutorial, which includes
layer-basic. I noticed that "charm build" can take a switch "-s series".
I specified "-s centos7", and diff the result from default built which
is "trusty". There is no material different between two builds.
Is this
7 03:17 AM, John Meinel wrote:
I would guess the charm can define series specific build instructions,
but that layer-basic doesn't, itself, have different instructions for
centos7.
John
=:->
On Sat, May 20, 2017 at 10:07 AM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wro
Hi Juju,
I ran into an issue which I couldn't figure out. I setup a MAAS
controller, can manually provision node directly using MAAS and was able
to ssh to it, so I suppose MAAS is all working well.
Then if I use $ juju deploy to start a node, I could not ssh to this
node. What is the right
Juju,
I have created a wiki on how to build charm that is Python2 compatible.
In our case, we want to deploy charms to CentOS7, and default charm
build has built-in assumption to use Python3 and Ubuntu.
https://github.com/lenovo/workload-solution/wiki/python2-charm
The method requires
Hi Juju,
I'm building two charms and linking them with one relation, one charm
("A") will provide and the other ("B") will require.
The deployment will have one "A" and three "B"s. How do I know all three
Bs have joined? I'm thinking to use a counter in A's relation, then at
relation-joined
(There may be better ways of doing this!)
Cheers
Alex.
On Wed, Jun 7, 2017 at 4:22 PM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Juju,
I'm building two charms and linking them with one relation,
one charm ("A&quo
Hi Juju,
I'm learning to write a relation. One thing that's puzzling to me is the
scope. The question is, must provide and require use the same scope?
For experiment, I have a scope.GLOBAL provide and scope.UNIT require. In
deployment, there is one provide unit and three require units. In
use UNIT? if so, what about the provide end, should it be
UNIT? GLOBAL? SERVICE?
On 06/07/2017 09:22 PM, fengxia wrote:
Hi Juju,
I'm learning to write a relation. One thing that's puzzling to me is
the scope. The question is, must provide and require use the same scope?
For experiment, I
+1
On 06/15/2017 10:47 PM, Andrew Wilkins wrote:
On Fri, Jun 16, 2017 at 1:36 AM John Meinel > wrote:
"juju show-machine 10" is likely to tell you why we are failing to
provision the machine.
My guess is that we acctually
John,
There are multiple issues with this since we have just gone through a
similar effort:
1. LXD does not support CentOS image.
2. Default "charm build" will produce a dist that will not run on
CentOS, even with "--series centos7".
On 06/15/2017 01:34 PM, John Meinel wrote:
"juju
There was a bug filed back in 2015:
https://bugs.launchpad.net/juju/+bug/1495978
It has information on how to make a work around to run CentOS in LXD.
On 06/15/2017 12:37 PM, Daniel Bidwell wrote:
I am trying to deploy a charm that I am writing for both ubuntu and
centos. "lxc image alias
The patch and instructions are listed here:
https://github.com/juju/juju/pull/6954
We didn't go this route. In our project, we ended up using MAAS to
provision CentOS node to test charms.
On 06/15/2017 10:51 PM, fengxia wrote:
+1
On 06/15/2017 10:47 PM, Andrew Wilkins wrote:
On Fri, Jun
juju ssh then you need to specify the ubuntu
user name on the images. On my MAAS the address of machine 0 is 10.0.0.8
ssh ubuntu@10.0.0.8 <mailto:ubuntu@10.0.0.8>
Does that not work for you?
On Fri, May 19, 2017 at 8:12 AM fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Anyone can shed some lights on this? I think charm build -s centos7 does
nothing special to the build.
Btw, /usr/bin/charm is a binary. Where can I find the source?
On 05/20/2017 02:07 AM, fengxia wrote:
Hi Juju,
I made a hello world charm based on charm tutorial, which includes
layer-basic
Juju,
As part of my research of juju charms, we have a requirement to make
charm compatible with Centos7 and RHEL. However, charm is now using
Python3 (in some places) and it will fail at "import yum" on CentOS7. I
have googled it for a few days now and there is limited information on
how to
Hi Juju,
I have used "charm build" to build my own charms. I noticed
/usr/bin/charm is a binary file. Where is the source?
--
Feng xia
Engineer
Lenovo USA
Phone: 5088011794
fx...@lenovo.com
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums
--
Juju mailing list
Like the move from "state" to "flag" terminology ~~
On 10/05/2017 10:38 AM, Cory Johns wrote:
Greetings,
Today we released version 0.5.0 of charms.reactive. The full
changelog can be found at
https://charmsreactive.readthedocs.io/en/latest/changelog.html with
the changes from this release
Hi Juju,
Boostrapping a local LXD controller, it sits at "Attempting to connect
to..." for a good 5-10 minutes. Any idea what it is doing, and how to
speed it up?
_
Host: Ubuntu 16.04
Juju: 2.2.4-xenial-amd64
CLI: juju bootstrap localhost
" An assumption is being made that the state changes get committed
immediately, but these changes are actually transactional and
following the same transactional behaviour as the Juju hook
environment [1]."
To chip in my experience as 6-month into learning charms and writing a
few simple
(juju bootstrap localhost [pick a name])
It is now using a local image w/ alias `juju/trusty/amd64`.
Thank you Juju.
On 09/01/2017 06:47 AM, Stuart Bishop wrote:
On 1 September 2017 at 02:37, fengxia <fx...@lenovo.com> wrote:
According to https://bugs.launchpad.net/juju/+bug/1650651, ju
Hi Juju,
Previously, I was able to define two charms in bundle, both have `charm`
(the path to charm files) set to the same location, but with different
names, and `juju deploy this-bundle` will create two applications.
For example (bundle):
Sevices:
A:
charm: ./trusty/mycharm
stions and for all
the answers! Much appreciated
Best,
Akshat
On Wed, Aug 30, 2017 at 7:56 AM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Akshat,
Juju controller does not support multiple cloud/provider. It's
like a switch board, juju can only talk
stions and for all
the answers! Much appreciated
Best,
Akshat
On Wed, Aug 30, 2017 at 7:56 AM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Akshat,
Juju controller does not support multiple cloud/provider. It's
like a switch board, juju can only talk
Hi Juju,
I'm using `localhost` provider for dev test. I have create a LXD
controller, and each time `juju deploy` will create a new container
(series/trusty).
I'm experimenting to use a local image so `juju deploy` can use. So far:
1. Created an image, "gold-copy"
2. `lxc image alias
the container.
Below is dump from `lxc image [image-name] info`:
fengxia@local-charmdev:~/workspace/wss$ lxc image info trusty
Fingerprint:
203a6ae7d45cbe5c1411ad3f17b9b2429cb5ddfec69019fa96ce5710c4871504
Size: 365.92MB
Architecture: x86_64
Public: no
Timestamps:
Uploaded: 2017/08/31 14:32 UTC
Ah, how wonderful!
On 09/04/2017 03:56 PM, Tom Barber wrote:
simply:
juju deploy [charm] newcharmname
is what you're after.
Tom
On Mon, Sep 4, 2017 at 8:49 PM, fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>> wrote:
Hi Juju,
Previously, I was able to defin
Hi Akshat,
Juju controller does not support multiple cloud/provider. It's like a
switch board, juju can only talk to one controller at a time.
However, I do think there are use case of supporting multiple clouds
with one orchestrator. I'm not sure whether juju team has sth like that
on its
I'm having difficulty understanding these patents.
Descriptions and diagrams are generic, with many "..." etc type of
notions, "chef, puppet, juju, ...". Doesn't it make this open-ended,
thus can include just about anything it wants?
Also, modeling a component then using them to form a
the machines are up and running.
Any idea of what this error is about, and how to debug it?
(dev) fengxia@ubuntu:~$ juju status
ERROR current model for controller devlocal not found
(dev) fengxia@ubuntu:~$ juju list-controllers
Use --refresh flag
ts
(such as being able to leverage existing Puppet scripts and quicker
charms).
Please create more issues if I've missed something, and add your
comments to the issues.
Kind regards
Merlijn
2017-10-05 20:50 GMT+02:00 fengxia <fx...@lenovo.com
<mailto:fx...@lenovo.com>>:
required but no TTY available.
What does it mean? I looked at my user's password expiration settings on
the host using `chage`:
(dev) fengxia@ubuntu:~$ sudo chage -l fengxia
Last password change : Dec 07, 2017
Password expires : never
Password inactive
Hi Juju,
Is anyone seeing this? I'm running the same setup as yesterday's, then
updated `apt update && apt upgrade` this morning. All of a sudden `juju
bootstrap localhost ..` stuck at Attempting to connect. LXC container
was created and had an IP, but juju won't connect somehow?
1. Tried
Here is a debug trace running via `juju bootstrap --show-log --debug
(dev) fengxia@ubuntu:~$ juju bootstrap localhost devlocal
Creating Juju controller "devlocal" on localhost/localhost
Looking for packaged Juju agent version 2.3.3 for amd64
To conf
Some progress. It's complaining about "password expired"? What does it mean?
Here is a debug trace running via `juju bootstrap --show-log --debug
----
(dev) fengxia@ubuntu:~$ juju bootstrap --show-log --debug localhost devlocal
21:17:23 INFO juju.cmd supercom
This is it! Thank you Chris.
On 12/21/2017 01:19 AM, Chris MacNaughton wrote:
SSH will refuse to use a key that is not protected, if you run ‘chmod 0600
/home/fengxia/.local/share/juju/ssh/juju_id_rsa’, that error should go away.
Chris
On Dec 21, 2017, at 04:49, fengxia <fx...@lenovo.
TED PRIVATE KEY FILE! @
@@@
Permissions 0755 for '/home/fengxia/.local/share/juju/ssh/juju_id_rsa'
are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/feng
72 matches
Mail list logo