Ubuntu Pastebin

Paste from gnuoy at Fri, 27 May 2016 12:21:15 +0000

Download as text
 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
$ git clone git@github.com:gnuoy/charm-congress.git
Cloning into 'charm-congress'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 27 (delta 2), reused 26 (delta 1), pack-reused 0
Receiving objects: 100% (27/27), 5.20 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2/2), done.
Checking connectivity... done.
$ cd charm-congress
$ charm build -s trusty  -obuild src                                                                                                                                                                           
build: Destination charm directory: build/trusty/congress
build: Please add a `repo` key to your layer.yaml, e.g. repo: git@github.com:gnuoy/charm-congress.git
build: Processing layer: layer:openstack-api
build: Processing layer: layer:openstack-principle
build: Processing layer: layer:openstack
build: Processing layer: layer:basic
build: Processing layer: congress
build: Processing interface: mysql-shared
build: Processing interface: rabbitmq
build: Processing interface: keystone
$ cat /tmp/congress.yaml 
congress:
  source-branch:
    'stable/liberty'
$ juju deploy --series trusty --config /tmp/congress.yaml $(pwd)/build/trusty/congress                                                                                                                         
$ juju add-relation congress mysql
$ juju add-relation congress keystone 
$ juju add-relation congress rabbitmq-server
$ . ~/openstack-charm-testing/novarc
$ openstack congress datasource create neutronv2 "neutronv2" \
>   --config username=$OS_USERNAME \
>   --config tenant_name=$OS_TENANT_NAME \
>   --config password=$OS_PASSWORD \
>   --config auth_url=$OS_AUTH_URL
+-------------+---------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                     |
+-------------+---------------------------------------------------------------------------------------------------------------------------+
| config      | {u'username': u'admin', u'tenant_name': u'admin', u'password': u'openstack', u'auth_url': u'http://10.5.0.123:5000/v2.0'} |
| description | None                                                                                                                      |
| driver      | neutronv2                                                                                                                 |
| enabled     | True                                                                                                                      |
| id          | 5b4f5121-7cab-4af4-b6b2-3eb8547986e5                                                                                      |
| name        | neutronv2                                                                                                                 |
| type        | None                                                                                                                      |
+-------------+---------------------------------------------------------------------------------------------------------------------------+
$ openstack congress datasource list
+--------------------------------------+-----------+---------+------+------------------------------------------------------------------------------------------------------------------+
| id                                   | name      | enabled | type | config                                                                                                           |
+--------------------------------------+-----------+---------+------+------------------------------------------------------------------------------------------------------------------+
| 5b4f5121-7cab-4af4-b6b2-3eb8547986e5 | neutronv2 | True    | None | {'username': 'admin', 'tenant_name': 'admin', 'password': '<hidden>', 'auth_url': 'http://10.5.0.123:5000/v2.0'} |
+--------------------------------------+-----------+---------+------+------------------------------------------------------------------------------------------------------------------+
Download as text