Feature 10922: Stop, start and rebuild
[osm/LCM.git] / osm_lcm / tests / test_db_descriptors.py
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
12 # under the License.
13 #
14 # For those usages not covered by the Apache License, Version 2.0 please
15 # contact: esousa@whitestack.com or alfonso.tiernosepulveda@telefonica.com
16 ##
17 db_nsds_text = """
18 ---
19 - _admin:
20 created: 1566823353.971486
21 modified: 1566823353.971486
22 onboardingState: ONBOARDED
23 operationalState: ENABLED
24 projects_read:
25 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
26 projects_write:
27 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
28 storage:
29 descriptor: hackfest_3charmed_nsd/hackfest_3charmed_nsd.yaml
30 folder: 8c2f8b95-bb1b-47ee-8001-36dc090678da
31 fs: local
32 path: /app/storage/
33 pkg-dir: hackfest_3charmed_nsd
34 zipfile: package.tar.gz
35 usageState: NOT_IN_USE
36 userDefinedData: {}
37 _id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
38 constituent-vnfd:
39 - member-vnf-index: '1'
40 vnfd-id-ref: hackfest3charmed-vnf
41 - member-vnf-index: '2'
42 vnfd-id-ref: hackfest3charmed-vnf
43 description: NS with 2 VNFs hackfest3charmed-vnf connected by datanet and mgmtnet VLs
44 df:
45 - id: default-df
46 vnf-profile:
47 - id: '1'
48 virtual-link-connectivity:
49 - constituent-cpd-id:
50 - constituent-base-element-id: '1'
51 constituent-cpd-id: vnf-mgmt-ext
52 virtual-link-profile-id: mgmt
53 - constituent-cpd-id:
54 - constituent-base-element-id: '1'
55 constituent-cpd-id: vnf-data-ext
56 virtual-link-profile-id: datanet
57 vnfd-id: hackfest3charmed-vnf
58 - id: '2'
59 virtual-link-connectivity:
60 - constituent-cpd-id:
61 - constituent-base-element-id: '2'
62 constituent-cpd-id: vnf-mgmt-ext
63 virtual-link-profile-id: mgmt
64 - constituent-cpd-id:
65 - constituent-base-element-id: '2'
66 constituent-cpd-id: vnf-data-ext
67 virtual-link-profile-id: datanet
68 vnfd-id: hackfest3charmed-vnf
69 id: hackfest3charmed-ns
70 name: hackfest3charmed-ns
71 version: '1.0'
72 virtual-link-desc:
73 - id: mgmt
74 mgmt-network: true
75 vim-network-name: mgmt
76 - id: datanet
77 vnfd-id:
78 - hackfest3charmed-vnf
79
80 - _admin:
81 created: 1575031728.9257665
82 modified: 1575031728.9257665
83 onboardingState: ONBOARDED
84 operationalState: ENABLED
85 projects_read:
86 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
87 projects_write:
88 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
89 storage:
90 descriptor: multikdu_ns/multikdu_nsd.yaml
91 folder: d0f63683-9032-4c6f-8928-ffd4674b9f69
92 fs: local
93 path: /app/storage/
94 pkg-dir: multikdu_ns
95 zipfile: multikdu_ns.tar.gz
96 usageState: NOT_IN_USE
97 userDefinedData: {}
98 _id: d0f63683-9032-4c6f-8928-ffd4674b9f69
99 constituent-vnfd:
100 - member-vnf-index: multikdu
101 vnfd-id-ref: multikdu_knf
102 description: NS consisting of a single KNF multikdu_knf connected to mgmt network
103 id: multikdu_ns
104 logo: osm.png
105 name: multikdu_ns
106 short-name: multikdu_ns
107 vendor: OSM
108 version: '1.0'
109 vld:
110 - id: mgmtnet
111 mgmt-network: true
112 name: mgmtnet
113 type: ELAN
114 vim-network-name: mgmt
115 vnfd-connection-point-ref:
116 - member-vnf-index-ref: multikdu
117 vnfd-connection-point-ref: mgmt
118 vnfd-id-ref: multikdu_knf
119 """
120
121 db_nslcmops_text = """
122 ---
123 - _admin:
124 created: 1651100375.77829
125 modified: 1651100481.36625
126 projects_read:
127 - 7f563445c74147f78e29b193a6da42bb
128 projects_write:
129 - 7f563445c74147f78e29b193a6da42bb
130 worker: a5adf5972b63
131 detailed-status: success
132 _id: 6bd4362f-da74-4bd8-a825-fd00e610c644
133 id: 6bd4362f-da74-4bd8-a825-fd00e610c644
134 operationState: COMPLETED
135 queuePosition: 0
136 stage: ''
137 errorMessage: ''
138 detailedStatus:
139 statusEnteredTime: 1651100481.36625
140 nsInstanceId: 7e3ad9ce-39b8-4636-a661-7870f25bf800
141 lcmOperationType: update
142 startTime: 1651100375.77823
143 isAutomaticInvocation: false
144 operationParams:
145 updateType: CHANGE_VNFPKG
146 changeVnfPackageData:
147 vnfInstanceId: 6421c7c9-d865-4fb4-9a13-d4275d243e01
148 vnfdId: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
149 lcmOperationType: update
150 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
151 isCancelPending: false
152 links:
153 self: "/osm/nslcm/v1/ns_lcm_op_occs/6bd4362f-da74-4bd8-a825-fd00e610c644"
154 nsInstance: "/osm/nslcm/v1/ns_instances/f48163a6-c807-47bc-9682-f72caef5af85"
155 - _admin:
156 created: 1566823354.4148262
157 modified: 1566823354.4148262
158 projects_read:
159 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
160 projects_write:
161 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
162 worker: 86434c2948e2
163 operations:
164 - member_vnf_index: '1'
165 primitive: touch
166 primitive_params: /home/ubuntu/last-touch-1
167 operationState: COMPLETED
168 detailed-status: Done
169 - member_vnf_index: '1'
170 primitive: touch
171 primitive_params: /home/ubuntu/last-touch-2
172 operationState: COMPLETED
173 detailed-status: Done
174 - member_vnf_index: '2'
175 primitive: touch
176 primitive_params: /home/ubuntu/last-touch-3
177 operationState: FAILED
178 detailed-status: Unknown error
179 _id: a639fac7-e0bb-4225-8ecb-c1f8efcc125e
180 detailed-status: 'FAILED executing proxy charm initial primitives for member_vnf_index=1
181 vdu_id=None: charm error executing primitive verify-ssh-credentials for member_vnf_index=1
182 vdu_id=None: ''timeout after 600 seconds'''
183 id: a639fac7-e0bb-4225-8ecb-c1f8efcc125e
184 isAutomaticInvocation: false
185 isCancelPending: false
186 lcmOperationType: instantiate
187 links:
188 nsInstance: /osm/nslcm/v1/ns_instances/f48163a6-c807-47bc-9682-f72caef5af85
189 self: /osm/nslcm/v1/ns_lcm_op_occs/a639fac7-e0bb-4225-8ecb-c1f8efcc125e
190 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
191 operationParams:
192 additionalParamsForVnf:
193 - additionalParams:
194 touch_filename: /home/ubuntu/first-touch-1
195 touch_filename2: /home/ubuntu/second-touch-1
196 member-vnf-index: '1'
197 - additionalParams:
198 touch_filename: /home/ubuntu/first-touch-2
199 touch_filename2: /home/ubuntu/second-touch-2
200 member-vnf-index: '2'
201 lcmOperationType: instantiate
202 nsDescription: default description
203 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
204 nsName: ALF
205 nsdId: 8c2f8b95-bb1b-47ee-8001-36dc090678da
206 vimAccountId: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
207 operationState: FAILED
208 startTime: 1566823354.414689
209 statusEnteredTime: 1566824534.5112448
210
211 - _admin:
212 created: 1600000000.0000000
213 modified: 1600000000.0000000
214 projects_read:
215 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
216 projects_write:
217 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
218 worker: 86434c2948e2
219 _id: a639fac7-e0bb-4225-ffff-c1f8efcc125e
220 detailed-status: None
221 lcmOperationType: terminate
222 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
223 operationParams: {}
224 operationState: PROCESSING
225 startTime: 1600000000.0000000
226 statusEnteredTime: 1600000000.0000000
227
228 - _admin:
229 created: 1575034637.044651
230 modified: 1575034637.044651
231 projects_read:
232 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
233 projects_write:
234 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
235 _id: cf3aa178-7640-4174-b921-2330e6f2aad6
236 detailed-status: done
237 id: cf3aa178-7640-4174-b921-2330e6f2aad6
238 isAutomaticInvocation: false
239 isCancelPending: false
240 lcmOperationType: instantiate
241 links:
242 nsInstance: /osm/nslcm/v1/ns_instances/0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
243 self: /osm/nslcm/v1/ns_lcm_op_occs/cf3aa178-7640-4174-b921-2330e6f2aad6
244 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
245 operationParams:
246 lcmOperationType: instantiate
247 nsDescription: default description
248 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
249 nsName: multikdu
250 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
251 nsr_id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
252 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
253 vld:
254 - name: mgmtnet
255 vim-network-name: internal
256 operationState: COMPLETED
257 startTime: 1575034637.0445576
258 statusEnteredTime: 1575034663.8484545
259
260 - _admin:
261 created: 1575034637.044651
262 modified: 1575034637.044651
263 projects_read:
264 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
265 projects_write:
266 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
267 _id: 52770491-a765-40ce-97a1-c6e200bba7b3
268 detailed-status: done
269 id: 52770491-a765-40ce-97a1-c6e200bba7b3
270 isAutomaticInvocation: false
271 isCancelPending: false
272 lcmOperationType: instantiate
273 links:
274 nsInstance: /osm/nslcm/v1/ns_instances/c54b14cb-69a8-45bc-b011-d6bea187dc0a
275 self: /osm/nslcm/v1/ns_lcm_op_occs/52770491-a765-40ce-97a1-c6e200bba7b3
276 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
277 operationParams:
278 lcmOperationType: scale
279 nsInstanceId: c54b14cb-69a8-45bc-b011-d6bea187dc0a
280 scaleVnfData:
281 scaleByStepData:
282 member-vnf-index: native-kdu
283 scaling-group-descriptor: kdu_scaling_group
284 scaleVnfType: SCALE_OUT
285 scaleType: SCALE_VNF
286 operationState: COMPLETED
287 startTime: 1575034637.0445576
288 statusEnteredTime: 1575034663.8484545
289
290 - _admin:
291 created: 1575034637.044651
292 modified: 1575034637.044651
293 projects_read:
294 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
295 projects_write:
296 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
297 _id: 4013bbd2-b151-40ee-bcef-7e24ce5432f6
298 detailed-status: done
299 id: 4013bbd2-b151-40ee-bcef-7e24ce5432f6
300 isAutomaticInvocation: false
301 isCancelPending: false
302 lcmOperationType: instantiate
303 links:
304 nsInstance: /osm/nslcm/v1/ns_instances/c54b14cb-69a8-45bc-b011-d6bea187dc0a
305 self: /osm/nslcm/v1/ns_lcm_op_occs/4013bbd2-b151-40ee-bcef-7e24ce5432f6
306 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
307 operationParams:
308 lcmOperationType: scale
309 nsInstanceId: c54b14cb-69a8-45bc-b011-d6bea187dc0a
310 scaleVnfData:
311 scaleByStepData:
312 member-vnf-index: native-kdu
313 scaling-group-descriptor: kdu_scaling_group_2
314 scaleVnfType: SCALE_OUT
315 scaleType: SCALE_VNF
316 operationState: COMPLETED
317 startTime: 1575034637.0445576
318 statusEnteredTime: 1575034663.8484545
319
320 - _admin:
321 created: 1566823354.4148262
322 modified: 1566823354.4148262
323 projects_read:
324 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
325 projects_write:
326 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
327 worker: 86434c2948e2
328 operations:
329 - member_vnf_index: '1'
330 primitive: touch
331 primitive_params: /home/ubuntu/last-touch-1
332 operationState: COMPLETED
333 detailed-status: Done
334 _id: a639fac7-e0bb-4225-8ecb-c1f8efcc125f
335 detailed-status: done
336 id: a639fac7-e0bb-4225-8ecb-c1f8efcc125f
337 isAutomaticInvocation: false
338 isCancelPending: false
339 lcmOperationType: update
340 links:
341 nsInstance: /osm/nslcm/v1/ns_instances/f48163a6-c807-47bc-9682-f72caef5af85
342 self: /osm/nslcm/v1/ns_lcm_op_occs/a639fac7-e0bb-4225-8ecb-c1f8efcc125f
343 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
344 operationParams:
345 lcmOperationType: update
346 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
347 removeVnfInstanceId: 88d90b0c-faff-4b9f-bccd-017f33985984
348 updateType: REMOVE_VNF
349 operationState: FAILED
350 startTime: 1566823354.414689
351 statusEnteredTime: 1566824534.5112448
352
353 - _id: 1bd4b60a-e15d-49e5-b75e-2b3224f15dda
354 id: 1bd4b60a-e15d-49e5-b75e-2b3224f15dda
355 operationState: COMPLETED
356 queuePosition: 0
357 stage: ''
358 errorMessage: ''
359 detailedStatus:
360 statusEnteredTime: 1652349205.9499352
361 nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7
362 lcmOperationType: update
363 startTime: 1652349205.7415159
364 isAutomaticInvocation: false
365 operationParams:
366 updateType: OPERATE_VNF
367 operateVnfData:
368 vnfInstanceId: a6df8aa0-1271-4dfc-85a5-e0484fea303f
369 changeStateTo: start
370 additionalParam:
371 run-day1: false
372 vdu-id: mgmtVM
373 count-index: 0
374 lcmOperationType: update
375 nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7
376 isCancelPending: false
377 links:
378 self: "/osm/nslcm/v1/ns_lcm_op_occs/1bd4b60a-e15d-49e5-b75e-2b3224f15dda"
379 nsInstance: "/osm/nslcm/v1/ns_instances/52f0b3ac-1574-481f-a48f-528fc02912f7"
380 _admin:
381 created: 1652349205.7415788
382 modified: 1652349205.9499364
383 projects_read:
384 - e38990e1-6724-4292-ab6f-2ecc109f9af4
385 projects_write:
386 - e38990e1-6724-4292-ab6f-2ecc109f9af4
387 worker: fbf6b5aa99e2
388 detailed-status: Done
389
390 - _id: 6eace44b-2ef4-4de5-b15f-63f2e8898bfb
391 id: 6eace44b-2ef4-4de5-b15f-63f2e8898bfb
392 operationState: Error
393 queuePosition: 0
394 stage: ''
395 errorMessage: ''
396 detailedStatus:
397 statusEnteredTime: 1652349205.9499352
398 nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7
399 lcmOperationType: update
400 startTime: 1652349205.7415159
401 isAutomaticInvocation: false
402 operationParams:
403 updateType: OPERATE_VNF
404 operateVnfData:
405 vnfInstanceId: a6df8aa0-1271-4dfc-85a5-e0484fea303f
406 changeStateTo: stop
407 additionalParam:
408 run-day1: false
409 vdu-id: mgmtVM
410 count-index: 0
411 lcmOperationType: update
412 nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7
413 isCancelPending: false
414 links:
415 self: "/osm/nslcm/v1/ns_lcm_op_occs/1bd4b60a-e15d-49e5-b75e-2b3224f15dda"
416 nsInstance: "/osm/nslcm/v1/ns_instances/52f0b3ac-1574-481f-a48f-528fc02912f7"
417 _admin:
418 created: 1652349205.7415788
419 modified: 1652349205.9499364
420 projects_read:
421 - e38990e1-6724-4292-ab6f-2ecc109f9af4
422 projects_write:
423 - e38990e1-6724-4292-ab6f-2ecc109f9af4
424 worker: fbf6b5aa99e2
425 detailed-status: Done
426
427 """
428
429 db_nsrs_text = """
430 ---
431 - _admin:
432 created: 1566823354.3716335
433 deployed:
434 K8s: []
435 RO:
436 nsd_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
437 nsr_id: c9fe9908-3180-430d-b633-fca2f68db008
438 nsr_status: ACTIVE
439 vnfd:
440 - id: 1ab2a418-9fe3-4358-bf17-411e5155535f
441 member-vnf-index: '1'
442 - id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
443 member-vnf-index: '2'
444 VCA:
445 - application: alf-b-aa
446 ee_id: f48163a6-c807-47bc-9682-f72caef5af85.alf-b-aa
447 needed_terminate: True
448 detailed-status: Ready!
449 member-vnf-index: '1'
450 model: f48163a6-c807-47bc-9682-f72caef5af85
451 operational-status: active
452 primitive_id: null
453 ssh-public-key: ssh-rsa pub-key root@juju-145d3e-0
454 step: ssh-public-key-obtained
455 vdu_count_index: null
456 vdu_id: null
457 vdu_name: null
458 type: lxc_proxy_charm
459 vnfd_id: hackfest3charmed-vnf
460 - application: alf-c-ab
461 ee_id: f48163a6-c807-47bc-9682-f72caef5af85.alf-c-ab
462 needed_terminate: True
463 detailed-status: Ready!
464 member-vnf-index: '2'
465 model: f48163a6-c807-47bc-9682-f72caef5af85
466 operational-status: active
467 primitive_id: null
468 ssh-public-key: ssh-rsa pub-key root@juju-145d3e-0
469 step: ssh-public-key-obtained
470 vdu_count_index: null
471 vdu_id: null
472 vdu_name: null
473 type: lxc_proxy_charm
474 vnfd_id: hackfest3charmed-vnf
475 VCA-model-name: f48163a6-c807-47bc-9682-f72caef5af85
476 modified: 1566823354.3716335
477 nsState: INSTANTIATED
478 nslcmop: null
479 projects_read:
480 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
481 projects_write:
482 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
483 _id: f48163a6-c807-47bc-9682-f72caef5af85
484 additionalParamsForNs: null
485 admin-status: ENABLED
486 config-status: init
487 constituent-vnfr-ref:
488 - 88d90b0c-faff-4b9f-bccd-017f33985984
489 - 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
490 create-time: 1566823354.36234
491 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
492 description: default description
493 vcaStatus:
494 8c707f16-2d9b-49d6-af5e-2ce9985b2adf:
495 applications:
496 app-vnf-1fb8538dfc39:
497 can_upgrade_to: ''
498 charm: 'local:xenial/simple-1'
499 charm_profile: ''
500 charm_version: ''
501 endpoint_bindings: null
502 err: null
503 exposed: false
504 int_: null
505 life: ''
506 meter_statuses: { }
507 provider_id: null
508 public_address: ''
509 relations: { }
510 series: xenial
511 status:
512 data: { }
513 err: null
514 info: Ready!
515 kind: ''
516 life: ''
517 since: '2021-02-17T08:39:54.239185095Z'
518 status: active
519 unknown_fields: { }
520 version: ''
521 subordinate_to: [ ]
522 units:
523 app-vnf-1fb8538dfc39/0:
524 address: null
525 agent_status:
526 data: { }
527 err: null
528 info: ''
529 kind: ''
530 life: ''
531 since: '2021-02-17T08:52:18.077155028Z'
532 status: idle
533 unknown_fields: { }
534 version: 2.8.1
535 charm: ''
536 leader: true
537 machine: '0'
538 opened_ports: null
539 provider_id: null
540 public_address: 10.151.40.53
541 subordinates: { }
542 unknown_fields: { }
543 workload_status:
544 data: { }
545 err: null
546 info: Ready!
547 kind: ''
548 life: ''
549 since: '2021-02-17T08:39:54.239185095Z'
550 status: active
551 unknown_fields: { }
552 version: ''
553 workload_version: ''
554 unknown_fields:
555 charm-verion: ''
556 workload_version: ''
557 actions:
558 generate-ssh-key: >-
559 Generate a new SSH keypair for this unit. This will replace any
560 existing previously generated keypair.
561 get-ssh-public-key: Get the public SSH key for this unit.
562 reboot: Reboot the VNF virtual machine.
563 restart: Stop the service on the VNF.
564 run: Run an arbitrary command
565 start: Stop the service on the VNF.
566 stop: Stop the service on the VNF.
567 touch: Touch a file on the VNF.
568 upgrade: Upgrade the software on the VNF.
569 verify-ssh-credentials: >-
570 Verify that this unit can authenticate with server specified by
571 ssh-hostname and ssh-username.
572 configs:
573 boolean-option:
574 default: false
575 description: A short description of the configuration option
576 source: default
577 type: boolean
578 value: false
579 int-option:
580 default: 9001
581 description: A short description of the configuration option
582 source: default
583 type: int
584 value: 9001
585 ssh-hostname:
586 default: ''
587 description: The hostname or IP address of the machine to
588 source: user
589 type: string
590 value: 192.168.61.90
591 ssh-key-bits:
592 default: 4096
593 description: The number of bits to use for the SSH key.
594 source: default
595 type: int
596 value: 4096
597 ssh-key-type:
598 default: rsa
599 description: The type of encryption to use for the SSH key.
600 source: default
601 type: string
602 value: rsa
603 ssh-password:
604 default: ''
605 description: The password used to authenticate.
606 source: user
607 type: string
608 value: osm4u
609 ssh-private-key:
610 default: ''
611 description: DEPRECATED. The private ssh key to be used to authenticate.
612 source: default
613 type: string
614 value: ''
615 ssh-public-key:
616 default: ''
617 description: The public key of this unit.
618 source: default
619 type: string
620 value: ''
621 ssh-username:
622 default: ''
623 description: The username to login as.
624 source: user
625 type: string
626 value: ubuntu
627 string-option:
628 default: Default Value
629 description: A short description of the configuration option
630 source: default
631 type: string
632 value: Default Value
633 app-vnf-943ab4274bb6:
634 can_upgrade_to: ''
635 charm: 'local:xenial/simple-0'
636 charm_profile: ''
637 charm_version: ''
638 endpoint_bindings: null
639 err: null
640 exposed: false
641 int_: null
642 life: ''
643 meter_statuses: { }
644 provider_id: null
645 public_address: ''
646 relations: { }
647 series: xenial
648 status:
649 data: { }
650 err: null
651 info: Ready!
652 kind: ''
653 life: ''
654 since: '2021-02-17T08:39:15.165682713Z'
655 status: active
656 unknown_fields: { }
657 version: ''
658 subordinate_to: [ ]
659 units:
660 app-vnf-943ab4274bb6/0:
661 address: null
662 agent_status:
663 data: { }
664 err: null
665 info: ''
666 kind: ''
667 life: ''
668 since: '2021-02-17T08:46:06.473054303Z'
669 status: idle
670 unknown_fields: { }
671 version: 2.8.1
672 charm: ''
673 leader: true
674 machine: '1'
675 opened_ports: null
676 provider_id: null
677 public_address: 10.151.40.117
678 subordinates: { }
679 unknown_fields: { }
680 workload_status:
681 data: { }
682 err: null
683 info: Ready!
684 kind: ''
685 life: ''
686 since: '2021-02-17T08:39:15.165682713Z'
687 status: active
688 unknown_fields: { }
689 version: ''
690 workload_version: ''
691 unknown_fields:
692 charm-verion: ''
693 workload_version: ''
694 actions:
695 generate-ssh-key: >-
696 Generate a new SSH keypair for this unit. This will replace any
697 existing previously generated keypair.
698 get-ssh-public-key: Get the public SSH key for this unit.
699 reboot: Reboot the VNF virtual machine.
700 restart: Stop the service on the VNF.
701 run: Run an arbitrary command
702 start: Stop the service on the VNF.
703 stop: Stop the service on the VNF.
704 touch: Touch a file on the VNF.
705 upgrade: Upgrade the software on the VNF.
706 verify-ssh-credentials: >-
707 Verify that this unit can authenticate with server specified by
708 ssh-hostname and ssh-username.
709 configs:
710 boolean-option:
711 default: false
712 description: A short description of the configuration option
713 source: default
714 type: boolean
715 value: false
716 int-option:
717 default: 9001
718 description: A short description of the configuration option
719 source: default
720 type: int
721 value: 9001
722 ssh-hostname:
723 default: ''
724 description: The hostname or IP address of the machine to
725 source: user
726 type: string
727 value: 192.168.61.72
728 ssh-key-bits:
729 default: 4096
730 description: The number of bits to use for the SSH key.
731 source: default
732 type: int
733 value: 4096
734 ssh-key-type:
735 default: rsa
736 description: The type of encryption to use for the SSH key.
737 source: default
738 type: string
739 value: rsa
740 ssh-password:
741 default: ''
742 description: The password used to authenticate.
743 source: user
744 type: string
745 value: osm4u
746 ssh-private-key:
747 default: ''
748 description: DEPRECATED. The private ssh key to be used to authenticate.
749 source: default
750 type: string
751 value: ''
752 ssh-public-key:
753 default: ''
754 description: The public key of this unit.
755 source: default
756 type: string
757 value: ''
758 ssh-username:
759 default: ''
760 description: The username to login as.
761 source: user
762 type: string
763 value: ubuntu
764 string-option:
765 default: Default Value
766 description: A short description of the configuration option
767 source: default
768 type: string
769 value: Default Value
770 branches: { }
771 controller_timestamp: '2021-02-17T09:17:38.006569064Z'
772 machines:
773 '0':
774 agent_status:
775 data: { }
776 err: null
777 info: ''
778 kind: ''
779 life: ''
780 since: '2021-02-17T08:37:46.637167056Z'
781 status: started
782 unknown_fields: { }
783 version: 2.8.1
784 constraints: ''
785 containers: { }
786 display_name: ''
787 dns_name: 10.151.40.53
788 hardware: arch=amd64 cores=0 mem=0M
789 has_vote: false
790 id_: '0'
791 instance_id: juju-0f027b-0
792 instance_status:
793 data: { }
794 err: null
795 info: Running
796 kind: ''
797 life: ''
798 since: '2021-02-17T08:35:58.435458338Z'
799 status: running
800 unknown_fields: { }
801 version: ''
802 ip_addresses:
803 - 10.151.40.53
804 jobs:
805 - JobHostUnits
806 lxd_profiles: { }
807 modification_status:
808 data: { }
809 err: null
810 info: ''
811 kind: ''
812 life: ''
813 since: '2021-02-17T08:35:34.663795891Z'
814 status: idle
815 unknown_fields: { }
816 version: ''
817 network_interfaces:
818 eth0:
819 dns_nameservers: null
820 gateway: 10.151.40.1
821 ip_addresses:
822 - 10.151.40.53
823 is_up: true
824 mac_address: '00:16:3e:99:bf:c7'
825 space: null
826 unknown_fields: { }
827 primary_controller_machine: null
828 series: xenial
829 unknown_fields: { }
830
831 wants_vote: false
832 '1':
833 agent_status:
834 data: { }
835 err: null
836 info: ''
837 kind: ''
838 life: ''
839 since: '2021-02-17T08:37:00.893313184Z'
840 status: started
841 unknown_fields: { }
842 version: 2.8.1
843 constraints: ''
844 containers: { }
845 display_name: ''
846 dns_name: 10.151.40.117
847 hardware: arch=amd64 cores=0 mem=0M
848 has_vote: false
849 id_: '1'
850 instance_id: juju-0f027b-1
851 instance_status:
852 data: { }
853 err: null
854 info: Running
855 kind: ''
856 life: ''
857 since: '2021-02-17T08:36:23.354547217Z'
858 status: running
859 unknown_fields: { }
860 version: ''
861 ip_addresses:
862 - 10.151.40.117
863 jobs:
864 - JobHostUnits
865 lxd_profiles: { }
866 modification_status:
867 data: { }
868 err: null
869 info: ''
870 kind: ''
871 life: ''
872 since: '2021-02-17T08:35:34.768829507Z'
873 status: idle
874 unknown_fields: { }
875 version: ''
876 network_interfaces:
877 eth0:
878 dns_nameservers: null
879 gateway: 10.151.40.1
880 ip_addresses:
881 - 10.151.40.117
882 is_up: true
883 mac_address: '00:16:3e:99:fe:1c'
884 space: null
885 unknown_fields: { }
886 primary_controller_machine: null
887 series: xenial
888 unknown_fields: { }
889 wants_vote: false
890 model:
891 available_version: ''
892 cloud_tag: cloud-localhost
893 migration: null
894 name: 7c707f16-2d9b-49d6-af5e-2ce9985b2adf
895 region: localhost
896 unknown_fields:
897 meter-status:
898 color: ''
899 message: ''
900 model-status:
901 data: { }
902 info: ''
903 kind: ''
904
905 life: ''
906 since: '2021-02-17T08:35:31.856691457Z'
907 status: available
908 version: ''
909 sla: unsupported
910 type: iaas
911 version: 2.8.1
912 offers: { }
913 relations: [ ]
914 remote_applications: { }
915 unknown_fields: { }
916 executedActions:
917 - id: '6'
918 action: touch
919 status: completed
920 Code: '0'
921 output: ''
922 - id: '4'
923 action: touch
924 status: completed
925 Code: '0'
926 output: ''
927 - id: '2'
928 action: verify-ssh-credentials
929 status: completed
930 Code: '0'
931 output: ALF-1-mgmtvm-1
932 verified: 'True'
933 detailed-status: 'ERROR executing proxy charm initial primitives for member_vnf_index=1
934 vdu_id=None: charm error executing primitive verify-ssh-credentials for member_vnf_index=1
935 vdu_id=None: ''timeout after 600 seconds'''
936 id: f48163a6-c807-47bc-9682-f72caef5af85
937 instantiate_params:
938 nsDescription: default description
939 nsName: ALF
940 nsdId: 8c2f8b95-bb1b-47ee-8001-36dc090678da
941 vimAccountId: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
942 name: ALF
943 name-ref: ALF
944 ns-instance-config-ref: f48163a6-c807-47bc-9682-f72caef5af85
945 nsd:
946 _admin:
947 created: 1566823353.971486
948 modified: 1566823353.971486
949 onboardingState: ONBOARDED
950 operationalState: ENABLED
951 projects_read:
952 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
953 projects_write:
954 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
955 storage:
956 descriptor: hackfest_3charmed_nsd/hackfest_3charmed_nsd.yaml
957 folder: 8c2f8b95-bb1b-47ee-8001-36dc090678da
958 fs: local
959 path: /app/storage/
960 pkg-dir: hackfest_3charmed_nsd
961 zipfile: package.tar.gz
962 usageState: NOT_IN_USE
963 userDefinedData: {}
964 _id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
965 id: hackfest3charmed-ns
966 name: hackfest3charmed-ns
967 description: NS with 2 VNFs hackfest3charmed-vnf connected by datanet and mgmtnet VLs
968 designer: OSM
969 version: '1.0'
970 vnfd-id:
971 - hackfest3charmed-vnf
972 virtual-link-desc:
973 - id: mgmt
974 mgmt-network: "true"
975 - id: datanet
976 mgmt-network: "false"
977 df:
978 - id: hackfest_charmed_DF
979 vnf-profile:
980 - id: hackfest_vnf1 # member-vnf-index-ref: 1
981 vnfd-id: hackfest3charmed-vnf
982 virtual-link-connectivity:
983 - virtual-link-profile-id: mgmt
984 constituent-cpd-id:
985 - constituent-base-element-id: hackfest_vnf1
986 constituent-cpd-id: vnf-mgmt-ext
987 - virtual-link-profile-id: datanet
988 constituent-cpd-id:
989 - constituent-base-element-id: hackfest_vnf1
990 constituent-cpd-id: vnf-data-ext
991 - id: hackfest_vnf2 # member-vnf-index-ref: 2
992 vnfd-id: hackfest3charmed-vnf
993 virtual-link-connectivity:
994 - virtual-link-profile-id: mgmt
995 constituent-cpd-id:
996 - constituent-base-element-id: hackfest_vnf2
997 constituent-cpd-id: vnf-mgmt-ext
998 - virtual-link-profile-id: datanet
999 constituent-cpd-id:
1000 - constituent-base-element-id: hackfest_vnf2
1001 constituent-cpd-id: vnf-data-ext
1002 nsd-id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
1003 nsd-name-ref: hackfest3charmed-ns
1004 nsd-ref: hackfest3charmed-ns
1005 operational-events: []
1006 operational-status: running
1007 orchestration-progress: {}
1008 resource-orchestrator: osmopenmano
1009 nsState: INSTANTIATED
1010 short-name: ALF
1011 ssh-authorized-key: null
1012 flavor : [{"vcpu-count":1,"memory-mb":1024,"storage-gb":"10","vim_info":[],"name":"mgmtVM-flv","id":"0"}]
1013 affinity-or-anti-affinity-group : []
1014 image : [ { "image" : "ubuntu16.04", "vim_info" : [ ], "id" : "0" } ]
1015 vld:
1016 - id: mgmt
1017 name: null
1018 status: ACTIVE
1019 status-detailed: null
1020 vim-id: f99ae780-0e2f-4985-af41-574eae6919c0
1021 vim-network-name: mgmt
1022 - id: datanet
1023 name: ALF-datanet
1024 status: ACTIVE
1025 status-detailed: null
1026 vim-id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1027 vnfd-id:
1028 - 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1029 - _admin:
1030 created: 1575034637.011233
1031 current-operation: null
1032 deployed:
1033 K8s:
1034 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
1035 kdu-instance: stable-mongodb-0086856106
1036 kdu-model: stable/mongodb
1037 kdu-name: mongo
1038 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1039 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
1040 kdu-instance: stable-openldap-0092830263
1041 kdu-model: stable/mongodb
1042 kdu-name: mongo
1043 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1044 RO:
1045 detailed-status: Deployed at VIM
1046 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
1047 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
1048 nsr_status: ACTIVE
1049 operational-status: running
1050 vnfd:
1051 - id: b9493dae-a4c9-4b96-8965-329581efb0a1
1052 member-vnf-index: multikdu
1053 VCA: []
1054 modified: 1575034637.011233
1055 nsState: INSTANTIATED
1056 nslcmop: null
1057 operation-type: null
1058 projects_read:
1059 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1060 projects_write:
1061 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1062 _id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1063 additionalParamsForNs: null
1064 admin-status: ENABLED
1065 config-status: configured
1066 constituent-vnfr-ref:
1067 - 5ac34899-a23a-4b3c-918a-cd77acadbea6
1068 create-time: 1575034636.9990137
1069 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1070 description: default description
1071 vcaStatus: {}
1072 detailed-status: done
1073 id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1074 instantiate_params:
1075 nsDescription: default description
1076 nsName: multikdu
1077 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
1078 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1079 name: multikdu
1080 name-ref: multikdu
1081 ns-instance-config-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1082 nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
1083 nsd-name-ref: multikdu_ns
1084 nsd-ref: multikdu_ns
1085 operational-events: []
1086 operational-status: init
1087 orchestration-progress: {}
1088 resource-orchestrator: osmopenmano
1089 short-name: multikdu
1090 ssh-authorized-key: null
1091 vld:
1092 - id: mgmtnet
1093 name: null
1094 status: ACTIVE
1095 status-detailed: null
1096 vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
1097 vim-network-name: mgmt
1098 vnfd-id:
1099 - 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1100
1101 - _admin:
1102 created: 1575034637.011233
1103 current-operation: null
1104 deployed:
1105 K8s:
1106 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
1107 kdu-instance: native-kdu-0
1108 kdu-model: native-kdu-0
1109 kdu-name: native-kdu
1110 member-vnf-index: native-kdu
1111 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1112 RO:
1113 detailed-status: Deployed at VIM
1114 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
1115 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
1116 nsr_status: ACTIVE
1117 operational-status: running
1118 vnfd:
1119 - id: b9493dae-a4c9-4b96-8965-329581efb0a1
1120 member-vnf-index: native-kdu
1121 VCA: []
1122 modified: 1575034637.011233
1123 nsState: INSTANTIATED
1124 nslcmop: null
1125 operation-type: null
1126 projects_read:
1127 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1128 projects_write:
1129 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1130 _id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1131 additionalParamsForNs: null
1132 admin-status: ENABLED
1133 config-status: configured
1134 constituent-vnfr-ref:
1135 - 5ac34899-a23a-4b3c-918a-cd77acadbea6
1136 create-time: 1575034636.9990137
1137 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1138 description: default description
1139 detailed-status: done
1140 id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1141 instantiate_params:
1142 nsDescription: default description
1143 nsName: native-kdu
1144 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
1145 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1146 name: native-kdu
1147 name-ref: native-kdu
1148 ns-instance-config-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1149 nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
1150 nsd-name-ref: native-kdu_ns
1151 nsd-ref: native-kdu_ns
1152 operational-events: []
1153 operational-status: init
1154 orchestration-progress: {}
1155 resource-orchestrator: osmopenmano
1156 short-name: native-kdu
1157 ssh-authorized-key: null
1158 vld:
1159 - id: mgmtnet
1160 name: null
1161 status: ACTIVE
1162 status-detailed: null
1163 vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
1164 vim-network-name: mgmt
1165 vnfd-id:
1166 - d96b1cdf-5ad6-49f7-bf65-907ada989293
1167 """
1168
1169 ro_ns_text = """
1170 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1171 description: null
1172 name: ALF
1173 classifications: []
1174 sdn_nets: []
1175 nets:
1176 - created: false
1177 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1178 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1179 error_msg: null
1180 ns_net_osm_id: mgmt
1181 related: c6bac394-fa27-4c43-bb34-42f621a9d343
1182 sce_net_id: 8f215bab-c35e-41e6-a035-42bfaa07af9f
1183 sdn_net_id: null
1184 status: ACTIVE
1185 uuid: c6bac394-fa27-4c43-bb34-42f621a9d343
1186 vim_info: "{vim_info: null}"
1187 vim_name: null
1188 vim_net_id: f99ae780-0e2f-4985-af41-574eae6919c0
1189 vnf_net_id: null
1190 vnf_net_osm_id: null
1191 - created: true
1192 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1193 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1194 error_msg: null
1195 ns_net_osm_id: datanet
1196 related: 509d576c-120f-493a-99a1-5fea99dfe041
1197 sce_net_id: 3d766bbc-33a8-41aa-a986-2f35e8d25c16
1198 sdn_net_id: null
1199 status: ACTIVE
1200 uuid: 509d576c-120f-493a-99a1-5fea99dfe041
1201 vim_info: "{vim_info: null}"
1202 vim_name: ALF-datanet
1203 vim_net_id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1204 vnf_net_id: null
1205 vnf_net_osm_id: null
1206 - created: true
1207 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1208 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1209 error_msg: null
1210 ns_net_osm_id: null
1211 related: 277fed09-3220-4bfd-9052-b96b21a32daf
1212 sce_net_id: null
1213 sdn_net_id: null
1214 status: ACTIVE
1215 uuid: 277fed09-3220-4bfd-9052-b96b21a32daf
1216 vim_info: "{vim_info: null}"
1217 vim_name: ALF-internal
1218 vim_net_id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1219 vnf_net_id: 62e62fae-c12b-4ebc-9a9b-30031c6c16fa
1220 vnf_net_osm_id: internal
1221 - created: true
1222 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1223 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1224 error_msg: null
1225 ns_net_osm_id: null
1226 related: 92534d1a-e697-4372-a84d-aa0aa643b68a
1227 sce_net_id: null
1228 sdn_net_id: null
1229 status: ACTIVE
1230 uuid: 92534d1a-e697-4372-a84d-aa0aa643b68a
1231 vim_info: "{vim_info: null}"
1232 vim_name: ALF-internal
1233 vim_net_id: 09655387-b639-421a-b5f6-72b26d685fb4
1234 vnf_net_id: 13c6c77d-86a5-4914-832c-990d4ec7b54e
1235 vnf_net_osm_id: internal
1236 nsd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.2.hackfest3charmed-ns
1237 scenario_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
1238 scenario_name: hackfest3charmed-ns
1239 sfis: []
1240 sfps: []
1241 sfs: []
1242 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1243 uuid: c9fe9908-3180-430d-b633-fca2f68db008
1244 vnfs:
1245 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1246 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1247 ip_address: 10.205.1.46
1248 member_vnf_index: '1'
1249 mgmt_access: '{interface_id: 61549ee3-cd6c-4930-8b90-eaad97fe345b, required: ''False'',
1250 vm_id: 6cf4a48f-3b6c-4395-8221-119fa37de24a}
1251
1252 '
1253 sce_vnf_id: 83be04a8-c513-42ba-9908-22728f686d31
1254 uuid: 94724042-7576-4fb0-82ec-6a7ab642741c
1255 vms:
1256 - created_at: '2019-08-26T12:50:38'
1257 error_msg: null
1258 interfaces:
1259 - external_name: vnf-mgmt
1260 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1261 internal_name: mgmtVM-eth0
1262 ip_address: 10.205.1.46
1263 mac_address: fa:16:3e:b4:3e:b1
1264 sdn_port_id: null
1265 type: mgmt
1266 vim_info: "{vim_info: null}"
1267 vim_interface_id: 4d3cb8fd-7040-4169-a0ad-2486d2b006a1
1268 - external_name: null
1269 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1270 internal_name: mgmtVM-eth1
1271 ip_address: 192.168.54.2
1272 mac_address: fa:16:3e:6e:7e:78
1273 sdn_port_id: null
1274 type: bridge
1275 vim_info: "{vim_info: null}"
1276 vim_interface_id: 54ed68e2-9802-4dfe-b68a-280b3fc6e02d
1277 ip_address: 10.205.1.46
1278 name: mgmtVM
1279 related: d0b91293-a91d-4f08-b15f-0bf841216dfe
1280 status: ACTIVE
1281 uuid: d0b91293-a91d-4f08-b15f-0bf841216dfe
1282 vdu_osm_id: mgmtVM
1283 vim_info: "{vim_info: null}"
1284 vim_name: ALF-1-mgmtVM-1
1285 vim_vm_id: c2538499-4c30-41c0-acd5-80cb92f48061
1286 - created_at: '2019-08-26T12:50:38'
1287 error_msg: null
1288 interfaces:
1289 - external_name: null
1290 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1291 internal_name: dataVM-eth0
1292 ip_address: 192.168.54.3
1293 mac_address: fa:16:3e:d9:7a:5d
1294 sdn_port_id: null
1295 type: bridge
1296 vim_info: "{vim_info: null}"
1297 vim_interface_id: 1637f350-8840-4241-8ed0-4616bdcecfcf
1298 - external_name: vnf-data
1299 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1300 internal_name: dataVM-xe0
1301 ip_address: 192.168.24.3
1302 mac_address: fa:16:3e:d1:6c:0d
1303 sdn_port_id: null
1304 type: bridge
1305 vim_info: "{vim_info: null}"
1306 vim_interface_id: 54c73e83-7059-41fe-83a9-4c4ae997b481
1307 name: dataVM
1308 related: 5c08253d-8a35-474f-b0d3-c5297d174c13
1309 status: ACTIVE
1310 uuid: 5c08253d-8a35-474f-b0d3-c5297d174c13
1311 vdu_osm_id: dataVM
1312 vim_info: "{vim_info: null}"
1313 vim_name: ALF-1-dataVM-1
1314 vim_vm_id: 87973c3f-365d-4227-95c2-7a8abc74349c
1315 - created_at: '2019-08-26T13:40:54'
1316 error_msg: null
1317 interfaces:
1318 - external_name: null
1319 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1320 internal_name: dataVM-eth0
1321 ip_address: 192.168.54.5
1322 mac_address: fa:16:3e:e4:17:45
1323 sdn_port_id: null
1324 type: bridge
1325 vim_info: "{vim_info: null}"
1326 vim_interface_id: 7e246e40-8710-4c33-9c95-78fc3c02bc5b
1327 - external_name: vnf-data
1328 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1329 internal_name: dataVM-xe0
1330 ip_address: 192.168.24.5
1331 mac_address: fa:16:3e:29:6f:a6
1332 sdn_port_id: null
1333 type: bridge
1334 vim_info: "{vim_info: null}"
1335 vim_interface_id: ce81af7a-9adf-494b-950e-6581fd04ecc4
1336 name: dataVM
1337 related: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1338 status: ACTIVE
1339 uuid: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1340 vdu_osm_id: dataVM
1341 vim_info: "{vim_info: null}"
1342 vim_name: ALF-1-dataVM-2
1343 vim_vm_id: 4916533e-36c6-4861-9fe3-366a8fb0a5f8
1344 vnf_id: 1ab2a418-9fe3-4358-bf17-411e5155535f
1345 vnf_name: hackfest3charmed-vnf.1
1346 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.0.1
1347 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1348 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1349 ip_address: 10.205.1.47
1350 member_vnf_index: '2'
1351 mgmt_access: '{interface_id: 538604c3-5c5e-41eb-8f84-c0239c7fabcd, required: ''False'',
1352 vm_id: dd04d792-05c9-4ecc-bf28-f77384d00311}
1353
1354 '
1355 sce_vnf_id: c4f3607a-08ff-4f75-893c-fce507e2f240
1356 uuid: 00020403-e80f-4ef2-bb7e-b29669643035
1357 vms:
1358 - created_at: '2019-08-26T12:50:38'
1359 error_msg: null
1360 interfaces:
1361 - external_name: vnf-mgmt
1362 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1363 internal_name: mgmtVM-eth0
1364 ip_address: 10.205.1.47
1365 mac_address: fa:16:3e:cb:9f:c7
1366 sdn_port_id: null
1367 type: mgmt
1368 vim_info: "{vim_info: null}"
1369 vim_interface_id: dcd6d2de-3c68-481c-883e-e9d38c671dc4
1370 - external_name: null
1371 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1372 internal_name: mgmtVM-eth1
1373 ip_address: 192.168.231.1
1374 mac_address: fa:16:3e:1a:89:24
1375 sdn_port_id: null
1376 type: bridge
1377 vim_info: "{vim_info: null}"
1378 vim_interface_id: 50e538e3-aba0-4652-93bb-20487f3f28e1
1379 ip_address: 10.205.1.47
1380 name: mgmtVM
1381 related: 4543ab5d-578c-427c-9df2-affd17e21b66
1382 status: ACTIVE
1383 uuid: 4543ab5d-578c-427c-9df2-affd17e21b66
1384 vdu_osm_id: mgmtVM
1385 vim_info: "{vim_info: null}"
1386 vim_name: ALF-2-mgmtVM-1
1387 vim_vm_id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1388 - created_at: '2019-08-26T12:50:38'
1389 error_msg: null
1390 interfaces:
1391 - external_name: null
1392 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1393 internal_name: dataVM-eth0
1394 ip_address: 192.168.231.3
1395 mac_address: fa:16:3e:7e:ba:8c
1396 sdn_port_id: null
1397 type: bridge
1398 vim_info: "{vim_info: null}"
1399 vim_interface_id: 15274862-14ea-4527-b405-101cae8bc1a0
1400 - external_name: vnf-data
1401 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1402 internal_name: dataVM-xe0
1403 ip_address: 192.168.24.4
1404 mac_address: fa:16:3e:d2:e1:f5
1405 sdn_port_id: null
1406 type: bridge
1407 vim_info: "{vim_info: null}"
1408 vim_interface_id: 253ebe4e-38d5-46be-8777-dbb57510a2ec
1409 name: dataVM
1410 related: 6f03f16b-295a-47a1-9a69-2d069d574a33
1411 status: ACTIVE
1412 uuid: 6f03f16b-295a-47a1-9a69-2d069d574a33
1413 vdu_osm_id: dataVM
1414 vim_info: "{vim_info: null}"
1415 vim_name: ALF-2-dataVM-1
1416 vim_vm_id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1417 vnf_id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
1418 vnf_name: hackfest3charmed-vnf.2
1419 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.1.2
1420 """
1421
1422 ro_delete_action_text = """
1423 actions:
1424 - created_at: 1580140763.1099188
1425 description: DELETE
1426 instance_id: c9fe9908-3180-430d-b633-fca2f68db008
1427 modified_at: 1580140763.253148
1428 number_done: 1
1429 number_failed: 0
1430 number_tasks: 1
1431 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1432 uuid: delete
1433 vim_wim_actions:
1434 - action: DELETE
1435 created_at: 1580140763.1099188
1436 datacenter_vim_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1437 error_msg: null
1438 extra: '{params: [9b6a2ac4-767e-4ec9-9497-8ba63084c77f, null]}'
1439 instance_action_id: ACTION-1580140763.054037
1440 item: instance_nets
1441 item_id: 8cb06b72-c71d-4b58-b419-95025fa651d3
1442 modified_at: 1580140763.1099188
1443 related: 8cb06b72-c71d-4b58-b419-95025fa651d3
1444 status: SUPERSEDED
1445 task_index: 0
1446 vim_id: null
1447 wim_account_id: null
1448 wim_internal_id: null
1449 worker: null
1450 """
1451
1452 db_vim_accounts_text = """
1453 ---
1454 - _admin:
1455 created: 1566818150.3024442
1456 current_operation: 0
1457 deployed:
1458 RO: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1459 RO-account: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1460 detailed-status: Done
1461 modified: 1566818150.3024442
1462 operationalState: ENABLED
1463 operations:
1464 - detailed-status: Done
1465 lcmOperationType: create
1466 operationParams: null
1467 operationState: COMPLETED
1468 startTime: 1566818150.3025382
1469 statusEnteredTime: 1566818150.3025382
1470 worker: 86434c2948e2
1471 projects_read:
1472 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1473 projects_write:
1474 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1475 _id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1476 description: some description here
1477 name: vim1
1478 schema_version: '1.1'
1479 vim_password: 5g0yGX86qIhprX86YTMcpg==
1480 vim_tenant_name: osm
1481 vim_type: openstack
1482 vim_url: http://10.95.87.162:5000/v2.0
1483 vim_user: osm
1484 - _admin:
1485 created: 1566818150.3024442
1486 current_operation: 0
1487 deployed:
1488 RO: 9ac17c0d-4265-4333-843b-c3cbd1f93f88
1489 RO-account: 011895dc-ab34-4c9f-b06f-401a8ffb073b
1490 detailed-status: Done
1491 modified: 1566818150.3024442
1492 operationalState: ENABLED
1493 operations:
1494 - detailed-status: Done
1495 lcmOperationType: create
1496 operationParams: null
1497 operationState: COMPLETED
1498 startTime: 1566818150.3025382
1499 statusEnteredTime: 1566818150.3025382
1500 worker: 86434c2948e2
1501 projects_read:
1502 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1503 projects_write:
1504 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1505 _id: 05357241-1a01-416f-9e02-af20f65f51cd
1506 description: No description
1507 name: vim2
1508 schema_version: '1.1'
1509 vim_password: 5g0yGX86qIhprX86YTMcpg==
1510 vim_tenant_name: osm
1511 vim_type: dumy
1512 vim_url: http://10.95.88.162:5000/v2.0
1513 vim_user: osm
1514 """
1515
1516 db_k8sclusters_text = """
1517 - _admin:
1518 created: 1575031378.9268339
1519 current_operation: 0
1520 modified: 1575031378.9268339
1521 operationalState: ENABLED
1522 operations:
1523 - detailed-status: ''
1524 lcmOperationType: create
1525 operationParams: null
1526 operationState: ''
1527 startTime: 1575031378.926895
1528 statusEnteredTime: 1575031378.926895
1529 worker: 36681ccf7f32
1530 projects_read:
1531 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1532 projects_write:
1533 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1534 helm-chart:
1535 id: 73d96432-d692-40d2-8440-e0c73aee209c
1536 created: True
1537 helm-chart-v3:
1538 id: 73d96432-d692-40d2-8440-e0c73aee209c
1539 created: True
1540 _id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1541 credentials:
1542 apiVersion: v1
1543 users:
1544 - name: admin
1545 user:
1546 password: qhpdogJXhBLG+JiYyyE0LeNsJXHkCSMy+sGVzlnJqes=
1547 username: admin
1548 description: Cluster3
1549 k8s_version: '1.15'
1550 name: cluster3
1551 namespace: kube-system
1552 nets:
1553 net1: None
1554 schema_version: '1.11'
1555 vim_account: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1556 """
1557
1558 db_vnfds_revisions_text = """
1559 ---
1560 - _admin:
1561 created: 1566823352.7154346
1562 modified: 1566823353.9295402
1563 onboardingState: ONBOARDED
1564 operationalState: ENABLED
1565 projects_read:
1566 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1567 projects_write:
1568 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1569 storage:
1570 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
1571 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1572 fs: local
1573 path: /app/storage/
1574 pkg-dir: hackfest_3charmed_vnfd
1575 zipfile: package.tar.gz
1576 type: vnfd
1577 usageState: NOT_IN_USE
1578 userDefinedData: {}
1579 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:1
1580 id: hackfest3charmed-vnf
1581 description: >-
1582 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
1583 with cloud-init
1584 product-name: hackfest3charmed-vnf
1585 version: '1.0'
1586 mgmt-cp: vnf-mgmt-ext
1587 virtual-compute-desc:
1588 - id: mgmt-compute
1589 virtual-cpu:
1590 num-virtual-cpu: 1
1591 virtual-memory:
1592 size: 1
1593 - id: data-compute
1594 virtual-cpu:
1595 num-virtual-cpu: 1
1596 virtual-memory:
1597 size: 1
1598 kdu:
1599 - juju-bundle: stable/native-kdu
1600 name: native-kdu
1601 virtual-storage-desc:
1602 - id: mgmt-storage
1603 block-storage-data:
1604 size-of-storage: 10
1605 - id: data-storage
1606 block-storage-data:
1607 size-of-storage: 10
1608
1609 sw-image-desc:
1610 - id: hackfest3-mgmt
1611 name: hackfest3-mgmt
1612
1613 vdu:
1614 - id: mgmtVM
1615 name: mgmtVM
1616 cloud-init-file: cloud-config.txt
1617 sw-image-desc: hackfest3-mgmt
1618 virtual-compute-desc: mgmt-compute
1619 virtual-storage-desc: mgmt-storage
1620 int-cpd:
1621 - id: vnf-mgmt
1622 order: 1
1623 virtual-network-interface-requirement:
1624 - name: mgmtVM-eth0
1625 virtual-interface:
1626 type: VIRTIO
1627 - id: mgmtVM-internal
1628 int-virtual-link-desc: internal
1629 order: 2
1630 virtual-network-interface-requirement:
1631 - name: mgmtVM-eth1
1632 virtual-interface:
1633 type: VIRTIO
1634 - id: dataVM
1635 name: dataVM
1636 sw-image-desc: hackfest3-mgmt
1637 virtual-compute-desc: data-compute
1638 virtual-storage-desc: data-storage
1639 int-cpd:
1640 - id: dataVM-internal
1641 int-virtual-link-desc: internal
1642 order: 1
1643 virtual-network-interface-requirement:
1644 - name: dataVM-eth1
1645 virtual-interface:
1646 type: VIRTIO
1647 - id: vnf-data
1648 order: 2
1649 virtual-network-interface-requirement:
1650 - name: dataVM-eth0
1651 virtual-interface:
1652 type: VIRTIO
1653 monitoring-parameter:
1654 - id: dataVM_cpu_util
1655 name: dataVM_cpu_util
1656 performance-metric: cpu_utilization
1657
1658 int-virtual-link-desc:
1659 - id: internal
1660
1661 ext-cpd:
1662 - id: vnf-mgmt-ext
1663 int-cpd: # Connection to int-cpd
1664 vdu-id: mgmtVM
1665 cpd: vnf-mgmt
1666 - id: vnf-data-ext
1667 int-cpd: # Connection to int-cpd
1668 vdu-id: dataVM
1669 cpd: vnf-data
1670
1671 df:
1672 - id: hackfest_default
1673 vdu-profile:
1674 - id: mgmtVM
1675 min-number-of-instances: 1
1676 - id: dataVM
1677 min-number-of-instances: 1
1678 max-number-of-instances: 10
1679 instantiation-level:
1680 - id: default
1681 vdu-level:
1682 - vdu-id: mgmtVM
1683 number-of-instances: 1
1684 - vdu-id: dataVM
1685 number-of-instances: 1
1686 scaling-aspect:
1687 - id: scale_dataVM
1688 name: scale_dataVM
1689 max-scale-level: 10
1690 aspect-delta-details:
1691 deltas:
1692 - id: delta1
1693 vdu-delta:
1694 - id: vdudelta1
1695 number-of-instances: 1
1696 scaling-policy:
1697 - name: auto_cpu_util_above_threshold
1698 scaling-type: automatic
1699 enabled: true
1700 threshold-time: 0
1701 cooldown-time: 60
1702 scaling-criteria:
1703 - name: cpu_util_above_threshold
1704 scale-in-relational-operation: LE
1705 scale-in-threshold: '15.0000000000'
1706 scale-out-relational-operation: GE
1707 scale-out-threshold: '60.0000000000'
1708 vnf-monitoring-param-ref: dataVM_cpu_util
1709 scaling-config-action:
1710 - trigger: post-scale-out
1711 vnf-config-primitive-name-ref: touch
1712 - trigger: pre-scale-in
1713 vnf-config-primitive-name-ref: touch
1714 lcm-operations-configuration:
1715 operate-vnf-op-config:
1716 day1-2:
1717 - id: hackfest3charmed-vnf
1718 execution-environment-list:
1719 - id: simple-ee
1720 juju:
1721 charm: simple
1722 initial-config-primitive:
1723 - seq: "1"
1724 execution-environment-ref: simple-ee
1725 name: config
1726 parameter:
1727 - name: ssh-hostname
1728 value: <rw_mgmt_ip>
1729 - name: ssh-username
1730 value: ubuntu
1731 - name: ssh-password
1732 value: osm4u
1733 - seq: "2"
1734 execution-environment-ref: simple-ee
1735 name: touch
1736 parameter:
1737 - name: filename
1738 value: <touch_filename>
1739 config-primitive:
1740 - name: touch
1741 execution-environment-ref: simple-ee
1742 parameter:
1743 - data-type: STRING
1744 default-value: <touch_filename2>
1745 name: filename
1746 """
1747
1748 db_vnfds_text = """
1749 ---
1750 - _admin:
1751 created: 1566823352.7154346
1752 modified: 1566823353.9295402
1753 onboardingState: ONBOARDED
1754 operationalState: ENABLED
1755 projects_read:
1756 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1757 projects_write:
1758 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1759 storage:
1760 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
1761 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1762 fs: local
1763 path: /app/storage/
1764 pkg-dir: hackfest_3charmed_vnfd
1765 zipfile: package.tar.gz
1766 type: vnfd
1767 usageState: NOT_IN_USE
1768 userDefinedData: {}
1769 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1770 id: hackfest3charmed-vnf
1771 description: >-
1772 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
1773 with cloud-init
1774 product-name: hackfest3charmed-vnf
1775 version: '1.0'
1776 mgmt-cp: vnf-mgmt-ext
1777 virtual-compute-desc:
1778 - id: mgmt-compute
1779 virtual-cpu:
1780 num-virtual-cpu: 1
1781 virtual-memory:
1782 size: 1
1783 - id: data-compute
1784 virtual-cpu:
1785 num-virtual-cpu: 1
1786 virtual-memory:
1787 size: 1
1788
1789 virtual-storage-desc:
1790 - id: mgmt-storage
1791 block-storage-data:
1792 size-of-storage: 10
1793 - id: data-storage
1794 block-storage-data:
1795 size-of-storage: 10
1796
1797 sw-image-desc:
1798 - id: hackfest3-mgmt
1799 name: hackfest3-mgmt
1800
1801 vdu:
1802 - id: mgmtVM
1803 name: mgmtVM
1804 cloud-init-file: cloud-config.txt
1805 sw-image-desc: hackfest3-mgmt
1806 virtual-compute-desc: mgmt-compute
1807 virtual-storage-desc: mgmt-storage
1808 int-cpd:
1809 - id: vnf-mgmt
1810 order: 1
1811 virtual-network-interface-requirement:
1812 - name: mgmtVM-eth0
1813 virtual-interface:
1814 type: VIRTIO
1815 - id: mgmtVM-internal
1816 int-virtual-link-desc: internal
1817 order: 2
1818 virtual-network-interface-requirement:
1819 - name: mgmtVM-eth1
1820 virtual-interface:
1821 type: VIRTIO
1822 - id: dataVM
1823 name: dataVM
1824 sw-image-desc: hackfest3-mgmt
1825 virtual-compute-desc: data-compute
1826 virtual-storage-desc: data-storage
1827 int-cpd:
1828 - id: dataVM-internal
1829 int-virtual-link-desc: internal
1830 order: 1
1831 virtual-network-interface-requirement:
1832 - name: dataVM-eth1
1833 virtual-interface:
1834 type: VIRTIO
1835 - id: vnf-data
1836 order: 2
1837 virtual-network-interface-requirement:
1838 - name: dataVM-eth0
1839 virtual-interface:
1840 type: VIRTIO
1841 monitoring-parameter:
1842 - id: dataVM_cpu_util
1843 name: dataVM_cpu_util
1844 performance-metric: cpu_utilization
1845
1846 int-virtual-link-desc:
1847 - id: internal
1848
1849 ext-cpd:
1850 - id: vnf-mgmt-ext
1851 int-cpd: # Connection to int-cpd
1852 vdu-id: mgmtVM
1853 cpd: vnf-mgmt
1854 - id: vnf-data-ext
1855 int-cpd: # Connection to int-cpd
1856 vdu-id: dataVM
1857 cpd: vnf-data
1858
1859 df:
1860 - id: hackfest_default
1861 vdu-profile:
1862 - id: mgmtVM
1863 min-number-of-instances: 1
1864 - id: dataVM
1865 min-number-of-instances: 1
1866 max-number-of-instances: 10
1867 instantiation-level:
1868 - id: default
1869 vdu-level:
1870 - vdu-id: mgmtVM
1871 number-of-instances: 1
1872 - vdu-id: dataVM
1873 number-of-instances: 1
1874 scaling-aspect:
1875 - id: scale_dataVM
1876 name: scale_dataVM
1877 max-scale-level: 10
1878 aspect-delta-details:
1879 deltas:
1880 - id: delta1
1881 vdu-delta:
1882 - id: vdudelta1
1883 number-of-instances: 1
1884 scaling-policy:
1885 - name: auto_cpu_util_above_threshold
1886 scaling-type: automatic
1887 enabled: true
1888 threshold-time: 0
1889 cooldown-time: 60
1890 scaling-criteria:
1891 - name: cpu_util_above_threshold
1892 scale-in-relational-operation: LE
1893 scale-in-threshold: '15.0000000000'
1894 scale-out-relational-operation: GE
1895 scale-out-threshold: '60.0000000000'
1896 vnf-monitoring-param-ref: dataVM_cpu_util
1897 scaling-config-action:
1898 - trigger: post-scale-out
1899 vnf-config-primitive-name-ref: touch
1900 - trigger: pre-scale-in
1901 vnf-config-primitive-name-ref: touch
1902 lcm-operations-configuration:
1903 operate-vnf-op-config:
1904 day1-2:
1905 - id: hackfest3charmed-vnf
1906 execution-environment-list:
1907 - id: simple-ee
1908 juju:
1909 charm: simple
1910 initial-config-primitive:
1911 - seq: "1"
1912 execution-environment-ref: simple-ee
1913 name: config
1914 parameter:
1915 - name: ssh-hostname
1916 value: <rw_mgmt_ip>
1917 - name: ssh-username
1918 value: ubuntu
1919 - name: ssh-password
1920 value: osm4u
1921 - seq: "2"
1922 execution-environment-ref: simple-ee
1923 name: touch
1924 parameter:
1925 - name: filename
1926 value: <touch_filename>
1927 config-primitive:
1928 - name: touch
1929 execution-environment-ref: simple-ee
1930 parameter:
1931 - data-type: STRING
1932 default-value: <touch_filename2>
1933 name: filename
1934
1935 - _admin:
1936 created: 1575031727.5383403
1937 modified: 1575031727.5383403
1938 onboardingState: ONBOARDED
1939 operationalState: ENABLED
1940 projects_read:
1941 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1942 projects_write:
1943 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1944 storage:
1945 descriptor: multikdu_knf/multikdu_vnfd.yaml
1946 folder: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1947 fs: local
1948 path: /app/storage/
1949 pkg-dir: multikdu_knf
1950 zipfile: multikdu_knf.tar.gz
1951 usageState: NOT_IN_USE
1952 userDefinedData: {}
1953 _id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1954 connection-point:
1955 - name: mgmt
1956 description: KNF with two KDU using helm-charts
1957 id: multikdu_knf
1958 df:
1959 - id: "default_df"
1960 k8s-cluster:
1961 nets:
1962 - external-connection-point-ref: mgmt
1963 id: mgmtnet
1964 kdu:
1965 - helm-chart: stable/openldap:1.2.1
1966 name: ldap
1967 - helm-chart: stable/mongodb
1968 name: mongo
1969 mgmt-interface:
1970 cp: mgmt
1971 name: multikdu_knf
1972 short-name: multikdu_knf
1973 vendor: Telefonica
1974 version: '1.0'
1975
1976 - _admin:
1977 created: 1575031727.5383403
1978 modified: 1575031727.5383403
1979 onboardingState: ONBOARDED
1980 operationalState: ENABLED
1981 projects_read:
1982 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1983 projects_write:
1984 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1985 storage:
1986 descriptor: native-kdu_knf/native-kdu_vnfd.yaml
1987 folder: d96b1cdf-5ad6-49f7-bf65-907ada989293
1988 fs: local
1989 path: /app/storage/
1990 pkg-dir: native-kdu_knf
1991 zipfile: native-kdu_knf.tar.gz
1992 usageState: NOT_IN_USE
1993 userDefinedData: {}
1994 _id: d96b1cdf-5ad6-49f7-bf65-907ada989293
1995 connection-point:
1996 - name: mgmt
1997 description: KNF with two KDU using juju-bundle
1998 df:
1999 - id: native-kdu
2000 kdu-resource-profile:
2001 - id: scale-app
2002 kdu-name: native-kdu
2003 min-number-of-instances: 1
2004 resource-name: app
2005 - id: scale-app2
2006 kdu-name: native-kdu
2007 min-number-of-instances: 1
2008 max-number-of-instances: 10
2009 resource-name: app2
2010 scaling-aspect:
2011 - id: kdu_scaling_group
2012 name: kdu_scaling_group
2013 max-scale-level: 10
2014 aspect-delta-details:
2015 deltas:
2016 - id: native-kdu-delta
2017 kdu-resource-delta:
2018 - id: scale-app
2019 number-of-instances: 1
2020 - id: kdu_scaling_group_2
2021 name: kdu_scaling_group_2
2022 max-scale-level: 10
2023 aspect-delta-details:
2024 deltas:
2025 - id: native-kdu-delta
2026 kdu-resource-delta:
2027 - id: scale-app
2028 number-of-instances: 1
2029 - id: scale-app2
2030 number-of-instances: 2
2031 lcm-operations-configuration:
2032 operate-vnf-op-config:
2033 day1-2:
2034 - id: native-kdu
2035 initial-config-primitive:
2036 - name: changecontent
2037 parameter:
2038 - data-type: STRING
2039 name: application-name
2040 value: nginx
2041 - data-type: STRING
2042 name: customtitle
2043 value: Initial Config Primitive
2044 seq: '1'
2045 id: native-kdu_knf
2046 k8s-cluster:
2047 nets:
2048 - external-connection-point-ref: mgmt
2049 id: mgmtnet
2050 kdu:
2051 - juju-bundle: stable/native-kdu
2052 name: native-kdu
2053 mgmt-interface:
2054 cp: mgmt
2055 name: native-kdu_knf
2056 short-name: native-kdu_knf
2057 vendor: Ulak Haberlesme A.S.
2058 version: '1.0'
2059 """
2060
2061 db_vnfrs_text = """
2062 ---
2063 - _admin:
2064 created: 1566823354.3668208
2065 modified: 1566823354.3668208
2066 nsState: NOT_INSTANTIATED
2067 projects_read:
2068 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2069 projects_write:
2070 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2071 _id: 88d90b0c-faff-4b9f-bccd-017f33985984
2072 additionalParamsForVnf:
2073 touch_filename: /home/ubuntu/first-touch-1
2074 touch_filename2: /home/ubuntu/second-touch-1
2075 connection-point:
2076 - connection-point-id: vnf-mgmt
2077 id: vnf-mgmt
2078 name: vnf-mgmt
2079 - connection-point-id: vnf-data
2080 id: vnf-data
2081 name: vnf-data
2082 created-time: 1566823354.36234
2083 id: 88d90b0c-faff-4b9f-bccd-017f33985984
2084 ip-address: 10.205.1.46
2085 member-vnf-index-ref: '1'
2086 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2087 vdur:
2088 - _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
2089 count-index: 0
2090 interfaces:
2091 - ip-address: 10.205.1.46
2092 mac-address: fa:16:3e:b4:3e:b1
2093 mgmt-vnf: true
2094 name: mgmtVM-eth0
2095 ns-vld-id: mgmt
2096 - ip-address: 192.168.54.2
2097 mac-address: fa:16:3e:6e:7e:78
2098 name: mgmtVM-eth1
2099 vnf-vld-id: internal
2100 internal-connection-point:
2101 - connection-point-id: mgmtVM-internal
2102 id: mgmtVM-internal
2103 name: mgmtVM-internal
2104 ip-address: 10.205.1.46
2105 name: ALF-1-mgmtVM-1
2106 status: ACTIVE
2107 status-detailed: null
2108 vdu-id-ref: mgmtVM
2109 vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
2110 ns-image-id: 0
2111 ns-flavor-id: 0
2112 affinity-or-anti-affinity-group-id : []
2113 - _id: ab453219-2d9a-45c2-864d-2c0788385028
2114 count-index: 0
2115 interfaces:
2116 - ip-address: 192.168.54.3
2117 mac-address: fa:16:3e:d9:7a:5d
2118 name: dataVM-eth0
2119 vnf-vld-id: internal
2120 - ip-address: 192.168.24.3
2121 mac-address: fa:16:3e:d1:6c:0d
2122 name: dataVM-xe0
2123 ns-vld-id: datanet
2124 internal-connection-point:
2125 - connection-point-id: dataVM-internal
2126 id: dataVM-internal
2127 name: dataVM-internal
2128 ip-address: null
2129 name: ALF-1-dataVM-1
2130 status: ACTIVE
2131 status-detailed: null
2132 vdu-id-ref: dataVM
2133 vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
2134 ns-image-id: 0
2135 ns-flavor-id: 0
2136 affinity-or-anti-affinity-group-id : []
2137 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2138 vld:
2139 - id: internal
2140 name: ALF-internal
2141 status: ACTIVE
2142 status-detailed: null
2143 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2144 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2145 vnfd-ref: hackfest3charmed-vnf
2146 - _admin:
2147 created: 1566823354.3668208
2148 modified: 1566823354.3668208
2149 nsState: NOT_INSTANTIATED
2150 projects_read:
2151 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2152 projects_write:
2153 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2154 _id: 6421c7c9-d865-4fb4-9a13-d4275d243e01
2155 additionalParamsForVnf:
2156 touch_filename: /home/ubuntu/first-touch-1
2157 touch_filename2: /home/ubuntu/second-touch-1
2158 connection-point:
2159 - connection-point-id: vnf-mgmt
2160 id: vnf-mgmt
2161 name: vnf-mgmt
2162 - connection-point-id: vnf-data
2163 id: vnf-data
2164 name: vnf-data
2165 created-time: 1566823354.36234
2166 id: 6421c7c9-d865-4fb4-9a13-d4275d243e01
2167 ip-address: 10.205.1.46
2168 member-vnf-index-ref: '1'
2169 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2170 vdur:
2171 - _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
2172 count-index: 0
2173 interfaces:
2174 - ip-address: 10.205.1.46
2175 mac-address: fa:16:3e:b4:3e:b1
2176 mgmt-vnf: true
2177 name: mgmtVM-eth0
2178 ns-vld-id: mgmt
2179 - ip-address: 192.168.54.2
2180 mac-address: fa:16:3e:6e:7e:78
2181 name: mgmtVM-eth1
2182 vnf-vld-id: internal
2183 internal-connection-point:
2184 - connection-point-id: mgmtVM-internal
2185 id: mgmtVM-internal
2186 name: mgmtVM-internal
2187 ip-address: 10.205.1.46
2188 name: ALF-1-mgmtVM-1
2189 status: ACTIVE
2190 status-detailed: null
2191 vdu-id-ref: mgmtVM
2192 vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
2193 ns-image-id: 0
2194 ns-flavor-id: 0
2195 affinity-or-anti-affinity-group-id : []
2196 - _id: ab453219-2d9a-45c2-864d-2c0788385028
2197 count-index: 0
2198 interfaces:
2199 - ip-address: 192.168.54.3
2200 mac-address: fa:16:3e:d9:7a:5d
2201 name: dataVM-eth0
2202 vnf-vld-id: internal
2203 - ip-address: 192.168.24.3
2204 mac-address: fa:16:3e:d1:6c:0d
2205 name: dataVM-xe0
2206 ns-vld-id: datanet
2207 internal-connection-point:
2208 - connection-point-id: dataVM-internal
2209 id: dataVM-internal
2210 name: dataVM-internal
2211 ip-address: null
2212 name: ALF-1-dataVM-1
2213 status: ACTIVE
2214 status-detailed: null
2215 vdu-id-ref: dataVM
2216 vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
2217 ns-image-id: 0
2218 ns-flavor-id: 0
2219 affinity-or-anti-affinity-group-id : []
2220 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2221 vld:
2222 - id: internal
2223 name: ALF-internal
2224 status: ACTIVE
2225 status-detailed: null
2226 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2227 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2228 vnfd-ref: hackfest3charmed-vnf
2229 - _admin:
2230 created: 1566823354.3703845
2231 modified: 1566823354.3703845
2232 nsState: NOT_INSTANTIATED
2233 projects_read:
2234 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2235 projects_write:
2236 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2237 _id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
2238 additionalParamsForVnf:
2239 touch_filename: /home/ubuntu/first-touch-2
2240 touch_filename2: /home/ubuntu/second-touch-2
2241 connection-point:
2242 - connection-point-id: vnf-mgmt
2243 id: vnf-mgmt
2244 name: vnf-mgmt
2245 - connection-point-id: vnf-data
2246 id: vnf-data
2247 name: vnf-data
2248 created-time: 1566823354.36234
2249 id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
2250 ip-address: 10.205.1.47
2251 member-vnf-index-ref: '2'
2252 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2253 vdur:
2254 - _id: 190b4a2c-4f85-4cfe-9406-4cef7ffb1e67
2255 count-index: 0
2256 interfaces:
2257 - ip-address: 10.205.1.47
2258 mac-address: fa:16:3e:cb:9f:c7
2259 mgmt-vnf: true
2260 name: mgmtVM-eth0
2261 ns-vld-id: mgmt
2262 - ip-address: 192.168.231.1
2263 mac-address: fa:16:3e:1a:89:24
2264 name: mgmtVM-eth1
2265 vnf-vld-id: internal
2266 internal-connection-point:
2267 - connection-point-id: mgmtVM-internal
2268 id: mgmtVM-internal
2269 name: mgmtVM-internal
2270 ip-address: 10.205.1.47
2271 name: ALF-2-mgmtVM-1
2272 status: ACTIVE
2273 status-detailed: null
2274 vdu-id-ref: mgmtVM
2275 vim-id: 248077b2-e3b8-4a37-8b72-575abb8ed912
2276 ns-image-id: 0
2277 ns-flavor-id: 0
2278 affinity-or-anti-affinity-group-id : []
2279 - _id: 889b874d-e1c3-4e75-aa45-53a9b0ddabd9
2280 count-index: 0
2281 interfaces:
2282 - ip-address: 192.168.231.3
2283 mac-address: fa:16:3e:7e:ba:8c
2284 name: dataVM-eth0
2285 vnf-vld-id: internal
2286 - ip-address: 192.168.24.4
2287 mac-address: fa:16:3e:d2:e1:f5
2288 name: dataVM-xe0
2289 ns-vld-id: datanet
2290 internal-connection-point:
2291 - connection-point-id: dataVM-internal
2292 id: dataVM-internal
2293 name: dataVM-internal
2294 ip-address: null
2295 name: ALF-2-dataVM-1
2296 status: ACTIVE
2297 status-detailed: null
2298 vdu-id-ref: dataVM
2299 vim-id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
2300 ns-image-id: 0
2301 ns-flavor-id: 0
2302 affinity-or-anti-affinity-group-id : []
2303 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2304 vld:
2305 - id: internal
2306 name: ALF-internal
2307 status: ACTIVE
2308 status-detailed: null
2309 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2310 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2311 vnfd-ref: hackfest3charmed-vnf
2312 - _admin:
2313 created: 1575034637.009597
2314 modified: 1575034637.009597
2315 nsState: NOT_INSTANTIATED
2316 projects_read:
2317 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2318 projects_write:
2319 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2320 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2321 additionalParamsForVnf: null
2322 connection-point:
2323 - connection-point-id: null
2324 id: null
2325 name: mgmt
2326 created-time: 1575034636.9990137
2327 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2328 ip-address: null
2329 k8s-cluster:
2330 nets:
2331 - external-connection-point-ref: mgmt
2332 id: mgmtnet
2333 ns-vld-id: mgmtnet
2334 vim_net: internal
2335 kdur:
2336 - ip-address: null
2337 k8s-cluster:
2338 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2339 kdu-name: ldap
2340 helm-chart: stable/openldap:1.2.1
2341 - ip-address: null
2342 k8s-cluster:
2343 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2344 kdu-name: mongo
2345 helm-chart: stable/mongodb
2346 member-vnf-index-ref: multikdu
2347 nsr-id-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
2348 vdur: []
2349 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
2350 vnfd-id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2351 vnfd-ref: multikdu_knf
2352
2353 - _admin:
2354 created: 1575034637.009597
2355 modified: 1575034637.009597
2356 nsState: NOT_INSTANTIATED
2357 projects_read:
2358 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2359 projects_write:
2360 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2361 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2362 additionalParamsForVnf: null
2363 connection-point:
2364 - connection-point-id: null
2365 id: null
2366 name: mgmt
2367 created-time: 1575034636.9990137
2368 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2369 ip-address: null
2370 k8s-cluster:
2371 nets:
2372 - external-connection-point-ref: mgmt
2373 id: mgmtnet
2374 ns-vld-id: mgmtnet
2375 vim_net: internal
2376 kdur:
2377 - ip-address: null
2378 juju-bundle: app-bundle
2379 k8s-cluster:
2380 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2381 kdu-name: native-kdu
2382 member-vnf-index-ref: native-kdu
2383 nsr-id-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
2384 vdur: []
2385 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
2386 vnfd-id: d96b1cdf-5ad6-49f7-bf65-907ada989293
2387 vnfd-ref: native-kdu_knf
2388
2389 - _id: a6df8aa0-1271-4dfc-85a5-e0484fea303f
2390 id: a6df8aa0-1271-4dfc-85a5-e0484fea303f
2391 nsr-id-ref: 52f0b3ac-1574-481f-a48f-528fc02912f7
2392 member-vnf-index-ref: '1'
2393 additionalParamsForVnf:
2394 created-time: 1652105830.965044
2395 vnfd-ref: ha_proxy_charm-vnf
2396 vnfd-id: 8b42078a-9d42-4def-8b5d-7dd0f041d078
2397 vim-account-id: dff4014e-bb5e-441a-a28d-6dd5d86c7175
2398 vca-id:
2399 vdur:
2400 - _id: 392e010d-3a39-4516-acc0-76993c19691f
2401 alt-image-ids:
2402 - '1'
2403 - '2'
2404 - '3'
2405 cloud-init: 8b42078a-9d42-4def-8b5d-7dd0f041d078:file:cloud-config.txt
2406 count-index: 0
2407 id: 392e010d-3a39-4516-acc0-76993c19691f
2408 internal-connection-point:
2409 - connection-point-id: mgmtVM-eth0-int
2410 id: mgmtVM-eth0-int
2411 name: mgmtVM-eth0-int
2412 - connection-point-id: dataVM-xe0-int
2413 id: dataVM-xe0-int
2414 name: dataVM-xe0-int
2415 ip-address: 10.45.28.134
2416 ns-flavor-id: '0'
2417 ns-image-id: '0'
2418 ssh-access-required: true
2419 vdu-id-ref: mgmtVM
2420 vdu-name: mgmtVM
2421 vim_info:
2422 vim:05357241-1a01-416f-9e02-af20f65f51cd:
2423 vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2424 vim_status: ACTIVE
2425 vim_name: test_ns_ch-1-mgmtVM-0
2426 status: ACTIVE
2427 vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2428 name: test_ns_ch-1-mgmtVM-0
2429 vim_details:
2430 vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2431 vim_status: DONE
2432 vim_message:
2433 ip-address: 10.45.28.134
2434 _admin:
2435 created: 1652105830.9652078
2436 modified: 1652105830.9652078
2437 projects_read:
2438 - e38990e1-6724-4292-ab6f-2ecc109f9af4
2439 projects_write:
2440 - e38990e1-6724-4292-ab6f-2ecc109f9af4
2441 nsState: INSTANTIATED
2442 vdu:
2443 status: DONE
2444 vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2445 """
2446
2447 db_nslcmops_scale_text = """
2448 ---
2449 - _admin:
2450 created: 1565250912.2643092
2451 modified: 1570026174.83263
2452 projects_read:
2453 - d3581c99-31e3-45f9-b45c-49a290faedbc
2454 current_operation: '5'
2455 deployed:
2456 RO: d9aea288-b9b1-11e9-b19e-02420aff0006
2457 RO-account: d9bb2f1c-b9b1-11e9-b19e-02420aff0006
2458 detailed-status: Done
2459 modified: 1565250912.2643092
2460 operationalState: ENABLED
2461 operations:
2462 - member_vnf_index: '1'
2463 primitive: touch
2464 primitive_params: /home/ubuntu/last-touch-1
2465 operationState: COMPLETED
2466 detailed-status: Done
2467 - member_vnf_index: '1'
2468 primitive: touch
2469 primitive_params: /home/ubuntu/last-touch-2
2470 operationState: COMPLETED
2471 detailed-status: Done
2472 - member_vnf_index: '2'
2473 primitive: touch
2474 primitive_params: /home/ubuntu/last-touch-3
2475 operationState: COMPLETED
2476 detailed-status: Done
2477 projects_read:
2478 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2479 projects_write:
2480 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2481 worker: c4055a07655b
2482 deploy:
2483 RO: ACTION-1570026232.061742
2484 _id: 053967e8-7c1c-400f-ae82-3d45b291374b
2485 lcmOperationType: scale
2486 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2487 statusEnteredTime: 1570026243.09784
2488 startTime: 1570026174.8326
2489 operationParams:
2490 lcmOperationType: scale
2491 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2492 scaleVnfData:
2493 scaleByStepData:
2494 member-vnf-index: '1'
2495 scaling-group-descriptor: scale_scaling_group
2496 scaleVnfType: SCALE_IN
2497 scaleType: SCALE_VNF
2498 isAutomaticInvocation: false
2499 isCancelPending: false
2500 id: 053967e8-7c1c-400f-ae82-3d45b291374b
2501 links:
2502 nsInstance: "/osm/nslcm/v1/ns_instances/90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b"
2503 self: "/osm/nslcm/v1/ns_lcm_op_occs/053967e8-7c1c-400f-ae82-3d45b291374b"
2504 operationState: COMPLETED
2505 detailed-status: done
2506 """
2507
2508 ro_update_action_text = """
2509 action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
2510 details: progress 1/1
2511 nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
2512 status: DONE
2513 tasks:
2514 - action: DELETE
2515 action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
2516 item: vdu
2517 nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
2518 status: FINISHED
2519 target_record: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.0.vim_info.vim:2a3dc443-415b-4865-8420-f804b993c5a3
2520 target_record_id: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.e03e2281-c70e-44ef-ac3b-052b81efd31d
2521 task_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d:0
2522 """
2523
2524 test_ids = {
2525 # contains the ids of ns and operations of every test
2526 "TEST-A": {
2527 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2528 "instantiate": "a639fac7-e0bb-4225-8ecb-c1f8efcc125e",
2529 "terminate": "a639fac7-e0bb-4225-ffff-c1f8efcc125e",
2530 "update": "6bd4362f-da74-4bd8-a825-fd00e610c644",
2531 },
2532 "TEST-KDU": {
2533 "ns": "0bcb701c-ee4d-41ab-8ee6-f4156f7f114d",
2534 "instantiate": "cf3aa178-7640-4174-b921-2330e6f2aad6",
2535 "terminate": None,
2536 },
2537 "TEST-NATIVE-KDU": {
2538 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2539 "instantiate": "52770491-a765-40ce-97a1-c6e200bba7b3",
2540 "terminate": None,
2541 },
2542 "TEST-NATIVE-KDU-2": {
2543 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2544 "instantiate": "4013bbd2-b151-40ee-bcef-7e24ce5432f6",
2545 "terminate": None,
2546 },
2547 "TEST-UPDATE": {
2548 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2549 "vnf": "88d90b0c-faff-4b9f-bccd-017f33985984",
2550 "removeVnf": "a639fac7-e0bb-4225-8ecb-c1f8efcc125f",
2551 },
2552 "TEST-OP-VNF": {
2553 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2554 "nslcmops": "1bd4b60a-e15d-49e5-b75e-2b3224f15dda",
2555 "nslcmops1": "6eace44b-2ef4-4de5-b15f-63f2e8898bfb",
2556 "vnfrs": "a6df8aa0-1271-4dfc-85a5-e0484fea303f",
2557 },
2558 }