Re: juju 2.3.3 failing to bootstrap localhost

2018-02-21 Thread fengxia
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 ina

Re: juju 2.3.3 failing to bootstrap localhost

2018-02-21 Thread fengxia
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 sup

Re: juju 2.3.3 failing to bootstrap localhost

2018-02-21 Thread fengxia
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

juju 2.3.3 failing to bootstrap localhost

2018-02-21 Thread fengxia
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 re

Re: bootstrap failed

2018-01-02 Thread fengxia
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 wrote: /home

bootstrap failed

2017-12-20 Thread fengxia
ROTECTED 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 &

juju status ERROR current model controller devlocal not found

2017-12-04 Thread fengxia
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

Re: Juju patents

2017-11-14 Thread fengxia
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 servic

Re: set_state not setting the state immediately

2017-10-31 Thread fengxia
mber of additional benefits (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 <mailto:fx...@lenovo.com>>:

Re: charms.reactive 0.5.0

2017-10-06 Thread fengxia
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

"Attempting to connect to" takes a long time

2017-10-05 Thread fengxia
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 dev

Re: set_state not setting the state immediately

2017-10-05 Thread fengxia
" 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 charms.

Re: How to use LXC local image for new machine

2017-09-06 Thread fengxia
(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 wrote: According to https://bugs.launchpad.net/juju/+bug/1650651, juju 2.1 supports using

Re: How to deploy the same charm with different name?

2017-09-05 Thread fengxia
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 <mailto:fx...@lenovo.com>> wrote: Hi Juju, Previously, I was able to define two charms in bun

How to deploy the same charm with different name?

2017-09-04 Thread fengxia
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 ...

Re: How to use LXC local image for new machine

2017-08-31 Thread fengxia
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

How to use LXC local image for new machine

2017-08-31 Thread fengxia
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 create

How to use LXC local image for new machine

2017-08-31 Thread fengxia
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 create

Re: Juju-gui only show localhost as the deployment option

2017-08-30 Thread fengxia
patient with the questions and for all the answers! Much appreciated Best, Akshat On Wed, Aug 30, 2017 at 7:56 AM, fengxia <mailto:fx...@lenovo.com>> wrote: Hi Akshat, Juju controller does not support multiple cloud/provider. It's like a switch board, juju c

Re: Juju-gui only show localhost as the deployment option

2017-08-30 Thread fengxia
patient with the questions and for all the answers! Much appreciated Best, Akshat On Wed, Aug 30, 2017 at 7:56 AM, fengxia <mailto:fx...@lenovo.com>> wrote: Hi Akshat, Juju controller does not support multiple cloud/provider. It's like a switch board, juju c

Re: Juju-gui only show localhost as the deployment option

2017-08-29 Thread fengxia
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 r

Re: How to quickly re-deploy the same charm

2017-08-18 Thread fengxia
to get it out of the error state so that the upgrade happens. On Fri, Aug 18, 2017 at 2:32 PM, fengxia <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 and built a new version of t

Re: How to quickly re-deploy the same charm

2017-08-18 Thread fengxia
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 <mailto:fx...@lenovo.com>> wrote: Hi Juju, I'm testing a locally buil

Re: How to quickly re-deploy the same charm

2017-08-18 Thread fengxia
Thanks Tom. I'll give it a try right now. 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 <mailto:fx...@lenovo.com>> wrote: Hi Juju, I'm testing a locally buil

How to quickly re-deploy the same charm

2017-08-18 Thread fengxia
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 ver

Re: charm layers hooks/install, how are they "merged"?

2017-08-11 Thread fengxia
Make sense. Thank you Stuart. On 08/11/2017 06:31 AM, Stuart Bishop wrote: On 11 August 2017 at 09:02, fengxia 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 packa

charm layers hooks/install, how are they "merged"?

2017-08-10 Thread fengxia
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

How to read live feed of the output of juju debug-log?

2017-08-04 Thread fengxia
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

Re: How to set local charm path in bundle file

2017-08-04 Thread fengxia
print 'charm %s at %s not found:' % (charm, charm_path) return False bundle['services'][charm]['charm'] = charm_path # write back to bundle file with open(bundle_yml, 'w') as f: f.write(yaml.dump(bundle)) On 08/0

Re: How to set local charm path in bundle file

2017-08-03 Thread fengxia
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

How to set local charm path in bundle file

2017-08-03 Thread fengxia
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

Re: JUJU bootstrap error

2017-08-03 Thread fengxia
or juju - it'll take care of deploying it. On Thu, Aug 3, 2017 at 7:48 PM, wahi 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/2017 06:2

Re: JUJU bootstrap error

2017-08-03 Thread fengxia
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

Re: LXD bootstrap inside KVM failed

2017-08-02 Thread fengxia
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

Re: LXD bootstrap inside KVM failed

2017-08-02 Thread fengxia
sbin/sogo-ealarms-notify >/dev Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4315]: pam_unix(cron:session): session closed for user root Aug 02 15:40:02 mail.lctc-buildbot.labs.lenovo.com CRON[4316]: pam_unix(cron:session): session closed for user sogo On 08/02/2017 03:33 PM, fengxia wrote: Hi

Re: LXD bootstrap inside KVM failed

2017-08-02 Thread fengxia
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

LXD bootstrap inside KVM failed

2017-08-02 Thread fengxia
Hi Juju, I have a 16.04 KVM. Installed juju and LXD from apt. $ juju bootstrap localhost test ERROR creating LXD client: can't connect to the local LXD server: Get http://unix.socket/1.0: read unix @->/var/lib/lxd/unix.socket: read: connection reset by peer Please install LXD by running:

Re: Is a set state called multiple times?

2017-07-28 Thread fengxia
s 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 re

Re: Is a set state called multiple times?

2017-07-27 Thread fengxia
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, etc

Re: Is a set state called multiple times?

2017-07-27 Thread fengxia
will inherently 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 <mailto:fx...@lenovo.com>> wrote: Hi Juju, Once I set a state, set_state("here"

Re: Is a set state called multiple times?

2017-07-27 Thread fengxia
works when code runs 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

Is a set state called multiple times?

2017-07-26 Thread fengxia
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 state?

How to set state in @hook code block?

2017-07-19 Thread fengxia
Hi Juju, I think I read at some point in the official document that you can't set state from hook. However, this is what I'm trying to achieve: in @hook('config-changed'), I will pass in a file path as a config value. Files are part of the charm so they are installed in /var/lib/juju/agents

How do you run playbook from charm?

2017-07-11 Thread fengxia
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 charms.ansi

Re: Is it possible to return management to Juju after manual provision of a machine?

2017-07-05 Thread fengxia
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 run

Re: Is it possible to return management to Juju after manual provision of a machine?

2017-07-05 Thread fengxia
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

How to pass a value from @when code to a relation?

2017-06-21 Thread fengxia
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?

Re: juju deploy with a series

2017-06-15 Thread fengxia
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

Re: juju deploy with a series

2017-06-15 Thread fengxia
+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 need the alias to be "ju

Re: juju deploy with a series

2017-06-15 Thread fengxia
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 li

Re: juju deploy with a series

2017-06-15 Thread fengxia
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 show-m

set_remote() <-> get_local()?

2017-06-07 Thread fengxia
Hi Juju, provide and require are two ends of a pipe. If I use set_remote() from provide, require side can use get_remote() to retrieve the exchanged data. My question is, from require's prospective, shouldn't it be "get_local"? When provide set_remote or set_local, where is the data stored,

Re: Does relation scopes need to match?

2017-06-07 Thread fengxia
must 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? Fo

Does relation scopes need to match?

2017-06-07 Thread fengxia
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 thi

Re: How to count relations?

2017-06-07 Thread fengxia
. (There may be better ways of doing this!) Cheers Alex. On Wed, Jun 7, 2017 at 4:22 PM, fengxia mailto:fx...@lenovo.com>> wrote: Hi Juju, I'm building two charms and linking them with one relation, one charm ("A") will provide and the

How to count relations?

2017-06-07 Thread fengxia
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

Build charm for Python2 and CentOS

2017-05-27 Thread fengxia
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 modifi

Re: charm build -s centos7 does nothing special?

2017-05-23 Thread fengxia
On 05/20/2017 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 <mailto:fx...@lenovo.com>> wrote

Where is the source for "charm build" binary?

2017-05-21 Thread fengxia
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 Juju@lists.u

Here is how to make Juju charm working on CentOS7

2017-05-21 Thread fengxia
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

Re: charm build -s centos7 does nothing special?

2017-05-21 Thread fengxia
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

charm build -s centos7 does nothing special?

2017-05-19 Thread fengxia
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

Re: Juju maas node ssh permission denied

2017-05-19 Thread fengxia
you want to not use 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 <mailto:fx...@lenovo.com>> wrot

Juju maas node ssh permission denied

2017-05-19 Thread fengxia
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

Re: My beginners experience of juju charm development

2017-05-11 Thread fengxia
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 eng

Re: How to build juju for centOS

2017-05-11 Thread fengxia
: On Wed, May 10, 2017 at 3:08 PM fengxia 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/>… Using the same binar

Re: How to build juju for centOS

2017-05-10 Thread fengxia
4, "Andrew Wilkins" mailto:andrew.wilk...@canonical.com>> wrote: On Wed, May 10, 2017 at 3:08 PM fengxia mailto:fx...@lenovo.com>> wrote: I have followed dev instruction and can build Juju binaries for Ubuntu. The dev machine is also Ubuntu.

How to build juju for centOS

2017-05-10 Thread fengxia
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 foun

Set status message in Juju GUI

2017-04-25 Thread fengxia
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

Re: Can we do bundle within a bundle?

2017-04-20 Thread fengxia
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

Re: Can we do bundle within a bundle?

2017-04-20 Thread fengxia
:38 PM, Tom Barber wrote: Currently bundles are pretty dumb and nested bundles don't exist. Tom On 20 Apr 2017 20:29, "fengxia" <mailto:fx...@lenovo.com>> wrote: We have a design that calls for tree structure of entities, each will be mapped to a charm/bundle. So

Can we do bundle within a bundle?

2017-04-20 Thread fengxia
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 Ju

Re: Juju deploy same application twice, failed "application already exist"

2017-04-20 Thread fengxia
u, Apr 20, 2017 at 1:32 PM, fengxia <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 this command again w

Juju deploy same application twice, failed "application already exist"

2017-04-20 Thread fengxia
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 exi

Re: Do states have namespace?

2017-04-18 Thread fengxia
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 mailto:alex.kavan...@canonical.com>> wrote: Hi On Tue, Apr 18, 2017 at 1:50 PM, fengxia mailto:fx...@lenovo.com&g

Re: Do states have namespace?

2017-04-18 Thread fengxia
l have its own state. Can I ask what you're looking to achieve? Marco On Tue, Apr 18, 2017, 10:05 fengxia <mailto:fx...@lenovo.com>> wrote: Replying my own question: charmhelpers.core.unitdata shows how states are stored -- "reactive.state.xyz <http://reac

Re: Do states have namespace?

2017-04-18 Thread fengxia
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

Do states have namespace?

2017-04-18 Thread fengxia
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

Juju charm hook vs. state

2017-04-14 Thread fengxia
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 wh

Re: [ccp4bb] smeared spot in diffraction

2010-01-22 Thread Fengxia Liu
better 6. change loop. but my crystal is not thin plate and needle. I will try one by one next week, when machine is available to me, and let you know the result. Thanks again. Fengxia

[ccp4bb] cracking crystal

2009-09-01 Thread Fengxia Liu
Dear All, Could you please help me solve this problem? I have a sensitive crystal, the mother liquor is 10% PEG4k+ 100 mM Tris-buffer pH 8.5, crystal is big and good but very sensitive, when i put it in cryoprotectants, cracking happened. First i used artificial mother liquor + 25% v/v glycerol,

[jQuery] problem server?

2008-07-16 Thread fengxia
Hi tony Do you think there is the problem of the server for the site www.trirand.com/jqgrid ou www.trirand.com/blog I can't connect it