Paste #569211

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
1)$ juju --version
1.25.6-trusty-amd64

For juju version 1.25.6, $charm create test and 2)$juju charm create test1   both commands are working fine.  

ubuntu@juju-machine-0-lxc-1:~/test1$ tree
.
|-- config.yaml
|-- hooks
|   |-- config-changed
|   |-- install
|   |-- relation-name-relation-broken
|   |-- relation-name-relation-changed
|   |-- relation-name-relation-departed
|   |-- relation-name-relation-joined
|   |-- start
|   |-- stop
|   `-- upgrade-charm
|-- icon.svg
|-- metadata.yaml
`-- README.ex

1 directory, 13 files


I am able to see the "hooks folder: and inside files. [for juju version 1.25.6]


2)$ juju --version
2.0-beta15-xenial-amd64

vedams@ubuntu-juju:~/charms/trusty$  charm create test
INFO: Using default charm template (reactive-python). To select a different template, use the -t option.
INFO: Generating charm for test in ./test
INFO: No test in apt cache; creating an empty charm instead.
Cloning into '/tmp/tmpYQ024L'...
remote: Counting objects: 22, done.
remote: Total 22 (delta 0), reused 0 (delta 0), pack-reused 22
Unpacking objects: 100% (22/22), done.
Checking connectivity... done.


vedams@ubuntu-juju:~/charms/trusty/test$ ls
total 36
-rw-rw-r-- 1 vedams vedams  2160 Sep  8 20:23 README.ex
-rw-rw-r-- 1 vedams vedams   471 Sep  8 20:23 metadata.yaml
-rw-rw-r-- 1 vedams vedams 10123 Sep  8 20:23 icon.svg
-rw-rw-r-- 1 vedams vedams   375 Sep  8 20:23 config.yaml
-rw-rw-r-- 1 vedams vedams    70 Sep  8 20:23 layer.yaml
drwxrwxr-x 2 vedams vedams  4096 Sep  8 20:23 reactive
drwxrwxr-x 2 vedams vedams  4096 Sep  8 20:23 tests


Here, for test charm "Hooks folder' is not there.

vedams@ubuntu-juju:~/charms/trusty/test$ juju  charm create test1
error: unrecognized command: charm create

$ juju  charm create test1 [This command not working]

I followed https://jujucharms.com/docs/2.0/authors-charm-writing