diff options
author | Paul Vaduva <Paul.Vaduva@enea.com> | 2017-11-20 15:18:54 +0100 |
---|---|---|
committer | Paul Vaduva <Paul.Vaduva@enea.com> | 2017-11-20 15:18:54 +0100 |
commit | 6efcc73a2e266a2a467be03073449975dc21b76f (patch) | |
tree | d3cc06818e50d8a06a7daf192d490e0fb4bf46d2 | |
parent | 68bbc38c93e9cf450d46875dd7aa1e9d6b539849 (diff) | |
download | doc-enea-nfv-6efcc73a2e266a2a467be03073449975dc21b76f.tar.gz |
tacker: updating the tacker section of documentation
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
-rw-r--r-- | book-enea-nfv-core-installation-guide/doc/tacker.xml | 59 |
1 files changed, 22 insertions, 37 deletions
diff --git a/book-enea-nfv-core-installation-guide/doc/tacker.xml b/book-enea-nfv-core-installation-guide/doc/tacker.xml index b8d6e6f..e1791db 100644 --- a/book-enea-nfv-core-installation-guide/doc/tacker.xml +++ b/book-enea-nfv-core-installation-guide/doc/tacker.xml | |||
@@ -28,13 +28,13 @@ | |||
28 | will create a hosts file for ansible | 28 | will create a hosts file for ansible |
29 | <literal>/etc/ansible/hosts</literal> of the form:<programlisting>********** | 29 | <literal>/etc/ansible/hosts</literal> of the form:<programlisting>********** |
30 | [controllers] | 30 | [controllers] |
31 | node-3 mac_addr+68:05:ca:46:8b:64 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** | 31 | node-5 mac_addr+68:05:ca:46:8b:64 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** |
32 | node-2 mac_addr+68:05:ca:46:8c:d4 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** | 32 | node-2 mac_addr+68:05:ca:46:8c:d4 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** |
33 | node-1 mac_addr+68:05:ca:46:8c:45 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** | 33 | node-1 mac_addr+68:05:ca:46:8c:45 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** |
34 | [main_cont] | 34 | [main_cont] |
35 | node-3 | 35 | node-5 |
36 | [computes] | 36 | [computes] |
37 | node-5 mac_addr+68:05:ca:46:8c:c9 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** | 37 | node-3 mac_addr+68:05:ca:46:8c:c9 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** |
38 | node-4 mac_addr+68:05:ca:46:8c:c2 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** | 38 | node-4 mac_addr+68:05:ca:46:8c:c2 ipmi_ip=0.0.0.0 ipmi_user=****** ipmi_pass=****** |
39 | [nodes:children] | 39 | [nodes:children] |
40 | controllers | 40 | controllers |
@@ -46,7 +46,7 @@ computes | |||
46 | <para>Use your favorite text editor to manually edit | 46 | <para>Use your favorite text editor to manually edit |
47 | <literal>ipmi_ip</literal> with the ip address of the ipmi interface, | 47 | <literal>ipmi_ip</literal> with the ip address of the ipmi interface, |
48 | <literal>ipmi_user</literal> with the user for accessing the ipmi | 48 | <literal>ipmi_user</literal> with the user for accessing the ipmi |
49 | interface, and <literal>ipmi_psss</literal> with the password used by | 49 | interface, and <literal>ipmi_pass</literal> with the password used by |
50 | the user to access the ipmi interface for all the nodes.</para> | 50 | the user to access the ipmi interface for all the nodes.</para> |
51 | </listitem> | 51 | </listitem> |
52 | 52 | ||
@@ -66,8 +66,12 @@ computes | |||
66 | <orderedlist> | 66 | <orderedlist> |
67 | <listitem> | 67 | <listitem> |
68 | <para>Log in using SSH to the controller node where Tacker has been | 68 | <para>Log in using SSH to the controller node where Tacker has been |
69 | installed (Example here node-5) and authenticate with | 69 | installed (Example here <literal>node-5</literal>) and authenticate |
70 | openstack:</para> | 70 | with openstack:</para> |
71 | |||
72 | <para>The controller where tacker has been installed is the one under | ||
73 | [<filename>main_cont</filename>] category in file | ||
74 | <literal>/etc/ansible/hosts</literal></para> | ||
71 | 75 | ||
72 | <programlisting>[root@fuel ~]# ssh node-5 | 76 | <programlisting>[root@fuel ~]# ssh node-5 |
73 | root@node-5:~# . openrc</programlisting> | 77 | root@node-5:~# . openrc</programlisting> |
@@ -82,28 +86,8 @@ root@node-5:~# . openrc</programlisting> | |||
82 | </listitem> | 86 | </listitem> |
83 | 87 | ||
84 | <listitem> | 88 | <listitem> |
85 | <para>Register a default VIM:</para> | 89 | <para>Create <filename>testvnf.yaml</filename> file with the following |
86 | 90 | contents:</para> | |
87 | <programlisting>(tacker_venv) root@node-5:~# tacker vim-register --is-default --config-file | ||
88 | testvim.yaml --description 'Default VIM' defaultVim</programlisting> | ||
89 | |||
90 | <para>The sample .yaml file has the following contents</para> | ||
91 | |||
92 | <programlisting>auth_url: '<keystone-auth_url>' | ||
93 | username: 'admin' | ||
94 | password: '<password>' | ||
95 | project_name: 'admin' | ||
96 | project_domain_name: 'Default' | ||
97 | user_domain_name: 'Default' | ||
98 | </programlisting> | ||
99 | </listitem> | ||
100 | |||
101 | <listitem> | ||
102 | <para>Define a VNF Descriptor (VNFD):</para> | ||
103 | |||
104 | <programlisting>(tacker_venv) root@node-5:~# tacker vnfd-create --vnfd-file testvnf.yaml TestVNF</programlisting> | ||
105 | |||
106 | <para>The sample .yaml file has the following contents:</para> | ||
107 | 91 | ||
108 | <programlisting>tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 | 92 | <programlisting>tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 |
109 | 93 | ||
@@ -125,7 +109,7 @@ topology_template: | |||
125 | disk_size: 1 GB | 109 | disk_size: 1 GB |
126 | properties: | 110 | properties: |
127 | image: TestVM | 111 | image: TestVM |
128 | flavor: m1.tiny | 112 | flavor: m1.micro |
129 | availability_zone: nova | 113 | availability_zone: nova |
130 | mgmt_driver: noop | 114 | mgmt_driver: noop |
131 | metadata: {metering.vnf: VDU1} | 115 | metadata: {metering.vnf: VDU1} |
@@ -184,6 +168,10 @@ topology_template: | |||
184 | op: eq | 168 | op: eq |
185 | metadata: VDU1 | 169 | metadata: VDU1 |
186 | actions: [respawn]</programlisting> | 170 | actions: [respawn]</programlisting> |
171 | |||
172 | <para>Define a VNF Descriptor (VNFD):</para> | ||
173 | |||
174 | <programlisting>(tacker_venv) root@node-5:~# tacker vnfd-create --vnfd-file testvnf.yaml TestVNF</programlisting> | ||
187 | </listitem> | 175 | </listitem> |
188 | 176 | ||
189 | <listitem> | 177 | <listitem> |
@@ -195,18 +183,15 @@ topology_template: | |||
195 | <listitem> | 183 | <listitem> |
196 | <para>Verify:</para> | 184 | <para>Verify:</para> |
197 | 185 | ||
198 | <programlisting>(tacker_venv) root@node-5:~# tacker vnf-list</programlisting> | 186 | <programlisting>(tacker_venv) root@node-5:~# tacker vnf-list |
199 | 187 | +------------+---------+-----------------------+--------+----------+-----------+ | |
200 | <programlisting>+------------+---------+-----------------------+--------+----------+-----------+ | ||
201 | | id | name | mgmt_url | status | vim_id | vnfd_id | | 188 | | id | name | mgmt_url | status | vim_id | vnfd_id | |
202 | +------------+---------+-----------------------+--------+----------+-----------+ | 189 | +------------+---------+-----------------------+--------+----------+-----------+ |
203 | | <VNF-UUID> | someVnf | {"VDU1": "<MGMT-IP>"} | ACTIVE | <VIM-ID> | <VNFD-ID> | | 190 | | <VNF-UUID> | someVnf | {"VDU1": "<MGMT-IP>"} | ACTIVE | <VIM-ID> | <VNFD-ID> | |
204 | +------------+---------+-----------------------+--------+----------+-----------+ | 191 | +------------+---------+-----------------------+--------+----------+-----------+</programlisting> |
205 | </programlisting> | ||
206 | 192 | ||
207 | <programlisting> root@node-5:~# nova list</programlisting> | 193 | <programlisting>root@node-5:~# nova list |
208 | 194 | +-----------+---------------+--------+------------+-------------+ | |
209 | <programlisting>+-----------+---------------+--------+------------+-------------+ | ||
210 | | ID | Name | Status | Task State | Power State | | 195 | | ID | Name | Status | Task State | Power State | |
211 | +-----------+---------------+--------+------------+-------------+ | 196 | +-----------+---------------+--------+------------+-------------+ |
212 | | <VM-UUID> | ta-<NAME> | ACTIVE | - | Running | | 197 | | <VM-UUID> | ta-<NAME> | ACTIVE | - | Running | |