Feature 10509 manual scaling for native k8s charm
[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: 1566823354.4148262
125 modified: 1566823354.4148262
126 projects_read:
127 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
128 projects_write:
129 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
130 worker: 86434c2948e2
131 operations:
132 - member_vnf_index: '1'
133 primitive: touch
134 primitive_params: /home/ubuntu/last-touch-1
135 operationState: COMPLETED
136 detailed-status: Done
137 - member_vnf_index: '1'
138 primitive: touch
139 primitive_params: /home/ubuntu/last-touch-2
140 operationState: COMPLETED
141 detailed-status: Done
142 - member_vnf_index: '2'
143 primitive: touch
144 primitive_params: /home/ubuntu/last-touch-3
145 operationState: FAILED
146 detailed-status: Unknown error
147 _id: a639fac7-e0bb-4225-8ecb-c1f8efcc125e
148 detailed-status: 'FAILED executing proxy charm initial primitives for member_vnf_index=1
149 vdu_id=None: charm error executing primitive verify-ssh-credentials for member_vnf_index=1
150 vdu_id=None: ''timeout after 600 seconds'''
151 id: a639fac7-e0bb-4225-8ecb-c1f8efcc125e
152 isAutomaticInvocation: false
153 isCancelPending: false
154 lcmOperationType: instantiate
155 links:
156 nsInstance: /osm/nslcm/v1/ns_instances/f48163a6-c807-47bc-9682-f72caef5af85
157 self: /osm/nslcm/v1/ns_lcm_op_occs/a639fac7-e0bb-4225-8ecb-c1f8efcc125e
158 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
159 operationParams:
160 additionalParamsForVnf:
161 - additionalParams:
162 touch_filename: /home/ubuntu/first-touch-1
163 touch_filename2: /home/ubuntu/second-touch-1
164 member-vnf-index: '1'
165 - additionalParams:
166 touch_filename: /home/ubuntu/first-touch-2
167 touch_filename2: /home/ubuntu/second-touch-2
168 member-vnf-index: '2'
169 lcmOperationType: instantiate
170 nsDescription: default description
171 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
172 nsName: ALF
173 nsdId: 8c2f8b95-bb1b-47ee-8001-36dc090678da
174 vimAccountId: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
175 operationState: FAILED
176 startTime: 1566823354.414689
177 statusEnteredTime: 1566824534.5112448
178
179 - _admin:
180 created: 1600000000.0000000
181 modified: 1600000000.0000000
182 projects_read:
183 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
184 projects_write:
185 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
186 worker: 86434c2948e2
187 _id: a639fac7-e0bb-4225-ffff-c1f8efcc125e
188 detailed-status: None
189 lcmOperationType: terminate
190 nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
191 operationParams: {}
192 operationState: PROCESSING
193 startTime: 1600000000.0000000
194 statusEnteredTime: 1600000000.0000000
195
196 - _admin:
197 created: 1575034637.044651
198 modified: 1575034637.044651
199 projects_read:
200 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
201 projects_write:
202 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
203 _id: cf3aa178-7640-4174-b921-2330e6f2aad6
204 detailed-status: done
205 id: cf3aa178-7640-4174-b921-2330e6f2aad6
206 isAutomaticInvocation: false
207 isCancelPending: false
208 lcmOperationType: instantiate
209 links:
210 nsInstance: /osm/nslcm/v1/ns_instances/0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
211 self: /osm/nslcm/v1/ns_lcm_op_occs/cf3aa178-7640-4174-b921-2330e6f2aad6
212 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
213 operationParams:
214 lcmOperationType: instantiate
215 nsDescription: default description
216 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
217 nsName: multikdu
218 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
219 nsr_id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
220 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
221 vld:
222 - name: mgmtnet
223 vim-network-name: internal
224 operationState: COMPLETED
225 startTime: 1575034637.0445576
226 statusEnteredTime: 1575034663.8484545
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: 52770491-a765-40ce-97a1-c6e200bba7b3
236 detailed-status: done
237 id: 52770491-a765-40ce-97a1-c6e200bba7b3
238 isAutomaticInvocation: false
239 isCancelPending: false
240 lcmOperationType: instantiate
241 links:
242 nsInstance: /osm/nslcm/v1/ns_instances/c54b14cb-69a8-45bc-b011-d6bea187dc0a
243 self: /osm/nslcm/v1/ns_lcm_op_occs/52770491-a765-40ce-97a1-c6e200bba7b3
244 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
245 operationParams:
246 lcmOperationType: scale
247 nsInstanceId: c54b14cb-69a8-45bc-b011-d6bea187dc0a
248 scaleVnfData:
249 scaleByStepData:
250 member-vnf-index: native-kdu
251 scaling-group-descriptor: kdu_scaling_group
252 scaleVnfType: SCALE_OUT
253 scaleType: SCALE_VNF
254 operationState: COMPLETED
255 startTime: 1575034637.0445576
256 statusEnteredTime: 1575034663.8484545
257
258 - _admin:
259 created: 1575034637.044651
260 modified: 1575034637.044651
261 projects_read:
262 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
263 projects_write:
264 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
265 _id: 4013bbd2-b151-40ee-bcef-7e24ce5432f6
266 detailed-status: done
267 id: 4013bbd2-b151-40ee-bcef-7e24ce5432f6
268 isAutomaticInvocation: false
269 isCancelPending: false
270 lcmOperationType: instantiate
271 links:
272 nsInstance: /osm/nslcm/v1/ns_instances/c54b14cb-69a8-45bc-b011-d6bea187dc0a
273 self: /osm/nslcm/v1/ns_lcm_op_occs/4013bbd2-b151-40ee-bcef-7e24ce5432f6
274 nsInstanceId: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
275 operationParams:
276 lcmOperationType: scale
277 nsInstanceId: c54b14cb-69a8-45bc-b011-d6bea187dc0a
278 scaleVnfData:
279 scaleByStepData:
280 member-vnf-index: native-kdu
281 scaling-group-descriptor: kdu_scaling_group_2
282 scaleVnfType: SCALE_OUT
283 scaleType: SCALE_VNF
284 operationState: COMPLETED
285 startTime: 1575034637.0445576
286 statusEnteredTime: 1575034663.8484545
287 """
288
289 db_nsrs_text = """
290 ---
291 - _admin:
292 created: 1566823354.3716335
293 deployed:
294 K8s: []
295 RO:
296 nsd_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
297 nsr_id: c9fe9908-3180-430d-b633-fca2f68db008
298 nsr_status: ACTIVE
299 vnfd:
300 - id: 1ab2a418-9fe3-4358-bf17-411e5155535f
301 member-vnf-index: '1'
302 - id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
303 member-vnf-index: '2'
304 VCA:
305 - application: alf-b-aa
306 ee_id: f48163a6-c807-47bc-9682-f72caef5af85.alf-b-aa
307 needed_terminate: True
308 detailed-status: Ready!
309 member-vnf-index: '1'
310 model: f48163a6-c807-47bc-9682-f72caef5af85
311 operational-status: active
312 primitive_id: null
313 ssh-public-key: ssh-rsa pub-key root@juju-145d3e-0
314 step: ssh-public-key-obtained
315 vdu_count_index: null
316 vdu_id: null
317 vdu_name: null
318 vnfd_id: hackfest3charmed-vnf
319 - application: alf-c-ab
320 ee_id: f48163a6-c807-47bc-9682-f72caef5af85.alf-c-ab
321 needed_terminate: True
322 detailed-status: Ready!
323 member-vnf-index: '2'
324 model: f48163a6-c807-47bc-9682-f72caef5af85
325 operational-status: active
326 primitive_id: null
327 ssh-public-key: ssh-rsa pub-key root@juju-145d3e-0
328 step: ssh-public-key-obtained
329 vdu_count_index: null
330 vdu_id: null
331 vdu_name: null
332 vnfd_id: hackfest3charmed-vnf
333 VCA-model-name: f48163a6-c807-47bc-9682-f72caef5af85
334 modified: 1566823354.3716335
335 nsState: INSTANTIATED
336 nslcmop: null
337 projects_read:
338 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
339 projects_write:
340 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
341 _id: f48163a6-c807-47bc-9682-f72caef5af85
342 additionalParamsForNs: null
343 admin-status: ENABLED
344 config-status: init
345 constituent-vnfr-ref:
346 - 88d90b0c-faff-4b9f-bccd-017f33985984
347 - 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
348 create-time: 1566823354.36234
349 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
350 description: default description
351 vcaStatus:
352 8c707f16-2d9b-49d6-af5e-2ce9985b2adf:
353 applications:
354 app-vnf-1fb8538dfc39:
355 can_upgrade_to: ''
356 charm: 'local:xenial/simple-1'
357 charm_profile: ''
358 charm_version: ''
359 endpoint_bindings: null
360 err: null
361 exposed: false
362 int_: null
363 life: ''
364 meter_statuses: { }
365 provider_id: null
366 public_address: ''
367 relations: { }
368 series: xenial
369 status:
370 data: { }
371 err: null
372 info: Ready!
373 kind: ''
374 life: ''
375 since: '2021-02-17T08:39:54.239185095Z'
376 status: active
377 unknown_fields: { }
378 version: ''
379 subordinate_to: [ ]
380 units:
381 app-vnf-1fb8538dfc39/0:
382 address: null
383 agent_status:
384 data: { }
385 err: null
386 info: ''
387 kind: ''
388 life: ''
389 since: '2021-02-17T08:52:18.077155028Z'
390 status: idle
391 unknown_fields: { }
392 version: 2.8.1
393 charm: ''
394 leader: true
395 machine: '0'
396 opened_ports: null
397 provider_id: null
398 public_address: 10.151.40.53
399 subordinates: { }
400 unknown_fields: { }
401 workload_status:
402 data: { }
403 err: null
404 info: Ready!
405 kind: ''
406 life: ''
407 since: '2021-02-17T08:39:54.239185095Z'
408 status: active
409 unknown_fields: { }
410 version: ''
411 workload_version: ''
412 unknown_fields:
413 charm-verion: ''
414 workload_version: ''
415 actions:
416 generate-ssh-key: >-
417 Generate a new SSH keypair for this unit. This will replace any
418 existing previously generated keypair.
419 get-ssh-public-key: Get the public SSH key for this unit.
420 reboot: Reboot the VNF virtual machine.
421 restart: Stop the service on the VNF.
422 run: Run an arbitrary command
423 start: Stop the service on the VNF.
424 stop: Stop the service on the VNF.
425 touch: Touch a file on the VNF.
426 upgrade: Upgrade the software on the VNF.
427 verify-ssh-credentials: >-
428 Verify that this unit can authenticate with server specified by
429 ssh-hostname and ssh-username.
430 configs:
431 boolean-option:
432 default: false
433 description: A short description of the configuration option
434 source: default
435 type: boolean
436 value: false
437 int-option:
438 default: 9001
439 description: A short description of the configuration option
440 source: default
441 type: int
442 value: 9001
443 ssh-hostname:
444 default: ''
445 description: The hostname or IP address of the machine to
446 source: user
447 type: string
448 value: 192.168.61.90
449 ssh-key-bits:
450 default: 4096
451 description: The number of bits to use for the SSH key.
452 source: default
453 type: int
454 value: 4096
455 ssh-key-type:
456 default: rsa
457 description: The type of encryption to use for the SSH key.
458 source: default
459 type: string
460 value: rsa
461 ssh-password:
462 default: ''
463 description: The password used to authenticate.
464 source: user
465 type: string
466 value: osm4u
467 ssh-private-key:
468 default: ''
469 description: DEPRECATED. The private ssh key to be used to authenticate.
470 source: default
471 type: string
472 value: ''
473 ssh-public-key:
474 default: ''
475 description: The public key of this unit.
476 source: default
477 type: string
478 value: ''
479 ssh-username:
480 default: ''
481 description: The username to login as.
482 source: user
483 type: string
484 value: ubuntu
485 string-option:
486 default: Default Value
487 description: A short description of the configuration option
488 source: default
489 type: string
490 value: Default Value
491 app-vnf-943ab4274bb6:
492 can_upgrade_to: ''
493 charm: 'local:xenial/simple-0'
494 charm_profile: ''
495 charm_version: ''
496 endpoint_bindings: null
497 err: null
498 exposed: false
499 int_: null
500 life: ''
501 meter_statuses: { }
502 provider_id: null
503 public_address: ''
504 relations: { }
505 series: xenial
506 status:
507 data: { }
508 err: null
509 info: Ready!
510 kind: ''
511 life: ''
512 since: '2021-02-17T08:39:15.165682713Z'
513 status: active
514 unknown_fields: { }
515 version: ''
516 subordinate_to: [ ]
517 units:
518 app-vnf-943ab4274bb6/0:
519 address: null
520 agent_status:
521 data: { }
522 err: null
523 info: ''
524 kind: ''
525 life: ''
526 since: '2021-02-17T08:46:06.473054303Z'
527 status: idle
528 unknown_fields: { }
529 version: 2.8.1
530 charm: ''
531 leader: true
532 machine: '1'
533 opened_ports: null
534 provider_id: null
535 public_address: 10.151.40.117
536 subordinates: { }
537 unknown_fields: { }
538 workload_status:
539 data: { }
540 err: null
541 info: Ready!
542 kind: ''
543 life: ''
544 since: '2021-02-17T08:39:15.165682713Z'
545 status: active
546 unknown_fields: { }
547 version: ''
548 workload_version: ''
549 unknown_fields:
550 charm-verion: ''
551 workload_version: ''
552 actions:
553 generate-ssh-key: >-
554 Generate a new SSH keypair for this unit. This will replace any
555 existing previously generated keypair.
556 get-ssh-public-key: Get the public SSH key for this unit.
557 reboot: Reboot the VNF virtual machine.
558 restart: Stop the service on the VNF.
559 run: Run an arbitrary command
560 start: Stop the service on the VNF.
561 stop: Stop the service on the VNF.
562 touch: Touch a file on the VNF.
563 upgrade: Upgrade the software on the VNF.
564 verify-ssh-credentials: >-
565 Verify that this unit can authenticate with server specified by
566 ssh-hostname and ssh-username.
567 configs:
568 boolean-option:
569 default: false
570 description: A short description of the configuration option
571 source: default
572 type: boolean
573 value: false
574 int-option:
575 default: 9001
576 description: A short description of the configuration option
577 source: default
578 type: int
579 value: 9001
580 ssh-hostname:
581 default: ''
582 description: The hostname or IP address of the machine to
583 source: user
584 type: string
585 value: 192.168.61.72
586 ssh-key-bits:
587 default: 4096
588 description: The number of bits to use for the SSH key.
589 source: default
590 type: int
591 value: 4096
592 ssh-key-type:
593 default: rsa
594 description: The type of encryption to use for the SSH key.
595 source: default
596 type: string
597 value: rsa
598 ssh-password:
599 default: ''
600 description: The password used to authenticate.
601 source: user
602 type: string
603 value: osm4u
604 ssh-private-key:
605 default: ''
606 description: DEPRECATED. The private ssh key to be used to authenticate.
607 source: default
608 type: string
609 value: ''
610 ssh-public-key:
611 default: ''
612 description: The public key of this unit.
613 source: default
614 type: string
615 value: ''
616 ssh-username:
617 default: ''
618 description: The username to login as.
619 source: user
620 type: string
621 value: ubuntu
622 string-option:
623 default: Default Value
624 description: A short description of the configuration option
625 source: default
626 type: string
627 value: Default Value
628 branches: { }
629 controller_timestamp: '2021-02-17T09:17:38.006569064Z'
630 machines:
631 '0':
632 agent_status:
633 data: { }
634 err: null
635 info: ''
636 kind: ''
637 life: ''
638 since: '2021-02-17T08:37:46.637167056Z'
639 status: started
640 unknown_fields: { }
641 version: 2.8.1
642 constraints: ''
643 containers: { }
644 display_name: ''
645 dns_name: 10.151.40.53
646 hardware: arch=amd64 cores=0 mem=0M
647 has_vote: false
648 id_: '0'
649 instance_id: juju-0f027b-0
650 instance_status:
651 data: { }
652 err: null
653 info: Running
654 kind: ''
655 life: ''
656 since: '2021-02-17T08:35:58.435458338Z'
657 status: running
658 unknown_fields: { }
659 version: ''
660 ip_addresses:
661 - 10.151.40.53
662 jobs:
663 - JobHostUnits
664 lxd_profiles: { }
665 modification_status:
666 data: { }
667 err: null
668 info: ''
669 kind: ''
670 life: ''
671 since: '2021-02-17T08:35:34.663795891Z'
672 status: idle
673 unknown_fields: { }
674 version: ''
675 network_interfaces:
676 eth0:
677 dns_nameservers: null
678 gateway: 10.151.40.1
679 ip_addresses:
680 - 10.151.40.53
681 is_up: true
682 mac_address: '00:16:3e:99:bf:c7'
683 space: null
684 unknown_fields: { }
685 primary_controller_machine: null
686 series: xenial
687 unknown_fields: { }
688
689 wants_vote: false
690 '1':
691 agent_status:
692 data: { }
693 err: null
694 info: ''
695 kind: ''
696 life: ''
697 since: '2021-02-17T08:37:00.893313184Z'
698 status: started
699 unknown_fields: { }
700 version: 2.8.1
701 constraints: ''
702 containers: { }
703 display_name: ''
704 dns_name: 10.151.40.117
705 hardware: arch=amd64 cores=0 mem=0M
706 has_vote: false
707 id_: '1'
708 instance_id: juju-0f027b-1
709 instance_status:
710 data: { }
711 err: null
712 info: Running
713 kind: ''
714 life: ''
715 since: '2021-02-17T08:36:23.354547217Z'
716 status: running
717 unknown_fields: { }
718 version: ''
719 ip_addresses:
720 - 10.151.40.117
721 jobs:
722 - JobHostUnits
723 lxd_profiles: { }
724 modification_status:
725 data: { }
726 err: null
727 info: ''
728 kind: ''
729 life: ''
730 since: '2021-02-17T08:35:34.768829507Z'
731 status: idle
732 unknown_fields: { }
733 version: ''
734 network_interfaces:
735 eth0:
736 dns_nameservers: null
737 gateway: 10.151.40.1
738 ip_addresses:
739 - 10.151.40.117
740 is_up: true
741 mac_address: '00:16:3e:99:fe:1c'
742 space: null
743 unknown_fields: { }
744 primary_controller_machine: null
745 series: xenial
746 unknown_fields: { }
747 wants_vote: false
748 model:
749 available_version: ''
750 cloud_tag: cloud-localhost
751 migration: null
752 name: 7c707f16-2d9b-49d6-af5e-2ce9985b2adf
753 region: localhost
754 unknown_fields:
755 meter-status:
756 color: ''
757 message: ''
758 model-status:
759 data: { }
760 info: ''
761 kind: ''
762
763 life: ''
764 since: '2021-02-17T08:35:31.856691457Z'
765 status: available
766 version: ''
767 sla: unsupported
768 type: iaas
769 version: 2.8.1
770 offers: { }
771 relations: [ ]
772 remote_applications: { }
773 unknown_fields: { }
774 executedActions:
775 - id: '6'
776 action: touch
777 status: completed
778 Code: '0'
779 output: ''
780 - id: '4'
781 action: touch
782 status: completed
783 Code: '0'
784 output: ''
785 - id: '2'
786 action: verify-ssh-credentials
787 status: completed
788 Code: '0'
789 output: ALF-1-mgmtvm-1
790 verified: 'True'
791 detailed-status: 'ERROR executing proxy charm initial primitives for member_vnf_index=1
792 vdu_id=None: charm error executing primitive verify-ssh-credentials for member_vnf_index=1
793 vdu_id=None: ''timeout after 600 seconds'''
794 id: f48163a6-c807-47bc-9682-f72caef5af85
795 instantiate_params:
796 nsDescription: default description
797 nsName: ALF
798 nsdId: 8c2f8b95-bb1b-47ee-8001-36dc090678da
799 vimAccountId: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
800 name: ALF
801 name-ref: ALF
802 ns-instance-config-ref: f48163a6-c807-47bc-9682-f72caef5af85
803 nsd:
804 _admin:
805 created: 1566823353.971486
806 modified: 1566823353.971486
807 onboardingState: ONBOARDED
808 operationalState: ENABLED
809 projects_read:
810 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
811 projects_write:
812 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
813 storage:
814 descriptor: hackfest_3charmed_nsd/hackfest_3charmed_nsd.yaml
815 folder: 8c2f8b95-bb1b-47ee-8001-36dc090678da
816 fs: local
817 path: /app/storage/
818 pkg-dir: hackfest_3charmed_nsd
819 zipfile: package.tar.gz
820 usageState: NOT_IN_USE
821 userDefinedData: {}
822 _id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
823 id: hackfest3charmed-ns
824 name: hackfest3charmed-ns
825 description: NS with 2 VNFs hackfest3charmed-vnf connected by datanet and mgmtnet VLs
826 designer: OSM
827 version: '1.0'
828 vnfd-id:
829 - hackfest3charmed-vnf
830 virtual-link-desc:
831 - id: mgmt
832 mgmt-network: "true"
833 - id: datanet
834 mgmt-network: "false"
835 df:
836 - id: hackfest_charmed_DF
837 vnf-profile:
838 - id: hackfest_vnf1 # member-vnf-index-ref: 1
839 vnfd-id: hackfest3charmed-vnf
840 virtual-link-connectivity:
841 - virtual-link-profile-id: mgmt
842 constituent-cpd-id:
843 - constituent-base-element-id: hackfest_vnf1
844 constituent-cpd-id: vnf-mgmt-ext
845 - virtual-link-profile-id: datanet
846 constituent-cpd-id:
847 - constituent-base-element-id: hackfest_vnf1
848 constituent-cpd-id: vnf-data-ext
849 - id: hackfest_vnf2 # member-vnf-index-ref: 2
850 vnfd-id: hackfest3charmed-vnf
851 virtual-link-connectivity:
852 - virtual-link-profile-id: mgmt
853 constituent-cpd-id:
854 - constituent-base-element-id: hackfest_vnf2
855 constituent-cpd-id: vnf-mgmt-ext
856 - virtual-link-profile-id: datanet
857 constituent-cpd-id:
858 - constituent-base-element-id: hackfest_vnf2
859 constituent-cpd-id: vnf-data-ext
860 nsd-id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
861 nsd-name-ref: hackfest3charmed-ns
862 nsd-ref: hackfest3charmed-ns
863 operational-events: []
864 operational-status: failed
865 orchestration-progress: {}
866 resource-orchestrator: osmopenmano
867 short-name: ALF
868 ssh-authorized-key: null
869 flavor : [{"vcpu-count":1,"memory-mb":1024,"storage-gb":"10","vim_info":[],"name":"mgmtVM-flv","id":"0"}]
870 image : [ { "image" : "ubuntu16.04", "vim_info" : [ ], "id" : "0" } ]
871 vld:
872 - id: mgmt
873 name: null
874 status: ACTIVE
875 status-detailed: null
876 vim-id: f99ae780-0e2f-4985-af41-574eae6919c0
877 vim-network-name: mgmt
878 - id: datanet
879 name: ALF-datanet
880 status: ACTIVE
881 status-detailed: null
882 vim-id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
883 vnfd-id:
884 - 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
885 - _admin:
886 created: 1575034637.011233
887 current-operation: null
888 deployed:
889 K8s:
890 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
891 kdu-instance: stable-mongodb-0086856106
892 kdu-model: stable/mongodb
893 kdu-name: mongo
894 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
895 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
896 kdu-instance: stable-openldap-0092830263
897 kdu-model: stable/mongodb
898 kdu-name: mongo
899 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
900 RO:
901 detailed-status: Deployed at VIM
902 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
903 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
904 nsr_status: ACTIVE
905 operational-status: running
906 vnfd:
907 - id: b9493dae-a4c9-4b96-8965-329581efb0a1
908 member-vnf-index: multikdu
909 VCA: []
910 modified: 1575034637.011233
911 nsState: INSTANTIATED
912 nslcmop: null
913 operation-type: null
914 projects_read:
915 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
916 projects_write:
917 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
918 _id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
919 additionalParamsForNs: null
920 admin-status: ENABLED
921 config-status: configured
922 constituent-vnfr-ref:
923 - 5ac34899-a23a-4b3c-918a-cd77acadbea6
924 create-time: 1575034636.9990137
925 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
926 description: default description
927 vcaStatus: {}
928 detailed-status: done
929 id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
930 instantiate_params:
931 nsDescription: default description
932 nsName: multikdu
933 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
934 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
935 name: multikdu
936 name-ref: multikdu
937 ns-instance-config-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
938 nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
939 nsd-name-ref: multikdu_ns
940 nsd-ref: multikdu_ns
941 operational-events: []
942 operational-status: init
943 orchestration-progress: {}
944 resource-orchestrator: osmopenmano
945 short-name: multikdu
946 ssh-authorized-key: null
947 vld:
948 - id: mgmtnet
949 name: null
950 status: ACTIVE
951 status-detailed: null
952 vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
953 vim-network-name: mgmt
954 vnfd-id:
955 - 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
956
957 - _admin:
958 created: 1575034637.011233
959 current-operation: null
960 deployed:
961 K8s:
962 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
963 kdu-instance: native-kdu-0
964 kdu-model: native-kdu-0
965 kdu-name: native-kdu
966 member-vnf-index: native-kdu
967 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
968 RO:
969 detailed-status: Deployed at VIM
970 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
971 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
972 nsr_status: ACTIVE
973 operational-status: running
974 vnfd:
975 - id: b9493dae-a4c9-4b96-8965-329581efb0a1
976 member-vnf-index: native-kdu
977 VCA: []
978 modified: 1575034637.011233
979 nsState: INSTANTIATED
980 nslcmop: null
981 operation-type: null
982 projects_read:
983 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
984 projects_write:
985 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
986 _id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
987 additionalParamsForNs: null
988 admin-status: ENABLED
989 config-status: configured
990 constituent-vnfr-ref:
991 - 5ac34899-a23a-4b3c-918a-cd77acadbea6
992 create-time: 1575034636.9990137
993 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
994 description: default description
995 detailed-status: done
996 id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
997 instantiate_params:
998 nsDescription: default description
999 nsName: native-kdu
1000 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
1001 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1002 name: native-kdu
1003 name-ref: native-kdu
1004 ns-instance-config-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1005 nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
1006 nsd-name-ref: native-kdu_ns
1007 nsd-ref: native-kdu_ns
1008 operational-events: []
1009 operational-status: init
1010 orchestration-progress: {}
1011 resource-orchestrator: osmopenmano
1012 short-name: native-kdu
1013 ssh-authorized-key: null
1014 vld:
1015 - id: mgmtnet
1016 name: null
1017 status: ACTIVE
1018 status-detailed: null
1019 vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
1020 vim-network-name: mgmt
1021 vnfd-id:
1022 - d96b1cdf-5ad6-49f7-bf65-907ada989293
1023 """
1024
1025 ro_ns_text = """
1026 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1027 description: null
1028 name: ALF
1029 classifications: []
1030 sdn_nets: []
1031 nets:
1032 - created: false
1033 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1034 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1035 error_msg: null
1036 ns_net_osm_id: mgmt
1037 related: c6bac394-fa27-4c43-bb34-42f621a9d343
1038 sce_net_id: 8f215bab-c35e-41e6-a035-42bfaa07af9f
1039 sdn_net_id: null
1040 status: ACTIVE
1041 uuid: c6bac394-fa27-4c43-bb34-42f621a9d343
1042 vim_info: "{vim_info: null}"
1043 vim_name: null
1044 vim_net_id: f99ae780-0e2f-4985-af41-574eae6919c0
1045 vnf_net_id: null
1046 vnf_net_osm_id: null
1047 - created: true
1048 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1049 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1050 error_msg: null
1051 ns_net_osm_id: datanet
1052 related: 509d576c-120f-493a-99a1-5fea99dfe041
1053 sce_net_id: 3d766bbc-33a8-41aa-a986-2f35e8d25c16
1054 sdn_net_id: null
1055 status: ACTIVE
1056 uuid: 509d576c-120f-493a-99a1-5fea99dfe041
1057 vim_info: "{vim_info: null}"
1058 vim_name: ALF-datanet
1059 vim_net_id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1060 vnf_net_id: null
1061 vnf_net_osm_id: null
1062 - created: true
1063 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1064 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1065 error_msg: null
1066 ns_net_osm_id: null
1067 related: 277fed09-3220-4bfd-9052-b96b21a32daf
1068 sce_net_id: null
1069 sdn_net_id: null
1070 status: ACTIVE
1071 uuid: 277fed09-3220-4bfd-9052-b96b21a32daf
1072 vim_info: "{vim_info: null}"
1073 vim_name: ALF-internal
1074 vim_net_id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1075 vnf_net_id: 62e62fae-c12b-4ebc-9a9b-30031c6c16fa
1076 vnf_net_osm_id: internal
1077 - created: true
1078 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1079 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1080 error_msg: null
1081 ns_net_osm_id: null
1082 related: 92534d1a-e697-4372-a84d-aa0aa643b68a
1083 sce_net_id: null
1084 sdn_net_id: null
1085 status: ACTIVE
1086 uuid: 92534d1a-e697-4372-a84d-aa0aa643b68a
1087 vim_info: "{vim_info: null}"
1088 vim_name: ALF-internal
1089 vim_net_id: 09655387-b639-421a-b5f6-72b26d685fb4
1090 vnf_net_id: 13c6c77d-86a5-4914-832c-990d4ec7b54e
1091 vnf_net_osm_id: internal
1092 nsd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.2.hackfest3charmed-ns
1093 scenario_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
1094 scenario_name: hackfest3charmed-ns
1095 sfis: []
1096 sfps: []
1097 sfs: []
1098 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1099 uuid: c9fe9908-3180-430d-b633-fca2f68db008
1100 vnfs:
1101 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1102 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1103 ip_address: 10.205.1.46
1104 member_vnf_index: '1'
1105 mgmt_access: '{interface_id: 61549ee3-cd6c-4930-8b90-eaad97fe345b, required: ''False'',
1106 vm_id: 6cf4a48f-3b6c-4395-8221-119fa37de24a}
1107
1108 '
1109 sce_vnf_id: 83be04a8-c513-42ba-9908-22728f686d31
1110 uuid: 94724042-7576-4fb0-82ec-6a7ab642741c
1111 vms:
1112 - created_at: '2019-08-26T12:50:38'
1113 error_msg: null
1114 interfaces:
1115 - external_name: vnf-mgmt
1116 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1117 internal_name: mgmtVM-eth0
1118 ip_address: 10.205.1.46
1119 mac_address: fa:16:3e:b4:3e:b1
1120 sdn_port_id: null
1121 type: mgmt
1122 vim_info: "{vim_info: null}"
1123 vim_interface_id: 4d3cb8fd-7040-4169-a0ad-2486d2b006a1
1124 - external_name: null
1125 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1126 internal_name: mgmtVM-eth1
1127 ip_address: 192.168.54.2
1128 mac_address: fa:16:3e:6e:7e:78
1129 sdn_port_id: null
1130 type: bridge
1131 vim_info: "{vim_info: null}"
1132 vim_interface_id: 54ed68e2-9802-4dfe-b68a-280b3fc6e02d
1133 ip_address: 10.205.1.46
1134 name: mgmtVM
1135 related: d0b91293-a91d-4f08-b15f-0bf841216dfe
1136 status: ACTIVE
1137 uuid: d0b91293-a91d-4f08-b15f-0bf841216dfe
1138 vdu_osm_id: mgmtVM
1139 vim_info: "{vim_info: null}"
1140 vim_name: ALF-1-mgmtVM-1
1141 vim_vm_id: c2538499-4c30-41c0-acd5-80cb92f48061
1142 - created_at: '2019-08-26T12:50:38'
1143 error_msg: null
1144 interfaces:
1145 - external_name: null
1146 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1147 internal_name: dataVM-eth0
1148 ip_address: 192.168.54.3
1149 mac_address: fa:16:3e:d9:7a:5d
1150 sdn_port_id: null
1151 type: bridge
1152 vim_info: "{vim_info: null}"
1153 vim_interface_id: 1637f350-8840-4241-8ed0-4616bdcecfcf
1154 - external_name: vnf-data
1155 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1156 internal_name: dataVM-xe0
1157 ip_address: 192.168.24.3
1158 mac_address: fa:16:3e:d1:6c:0d
1159 sdn_port_id: null
1160 type: bridge
1161 vim_info: "{vim_info: null}"
1162 vim_interface_id: 54c73e83-7059-41fe-83a9-4c4ae997b481
1163 name: dataVM
1164 related: 5c08253d-8a35-474f-b0d3-c5297d174c13
1165 status: ACTIVE
1166 uuid: 5c08253d-8a35-474f-b0d3-c5297d174c13
1167 vdu_osm_id: dataVM
1168 vim_info: "{vim_info: null}"
1169 vim_name: ALF-1-dataVM-1
1170 vim_vm_id: 87973c3f-365d-4227-95c2-7a8abc74349c
1171 - created_at: '2019-08-26T13:40:54'
1172 error_msg: null
1173 interfaces:
1174 - external_name: null
1175 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1176 internal_name: dataVM-eth0
1177 ip_address: 192.168.54.5
1178 mac_address: fa:16:3e:e4:17:45
1179 sdn_port_id: null
1180 type: bridge
1181 vim_info: "{vim_info: null}"
1182 vim_interface_id: 7e246e40-8710-4c33-9c95-78fc3c02bc5b
1183 - external_name: vnf-data
1184 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1185 internal_name: dataVM-xe0
1186 ip_address: 192.168.24.5
1187 mac_address: fa:16:3e:29:6f:a6
1188 sdn_port_id: null
1189 type: bridge
1190 vim_info: "{vim_info: null}"
1191 vim_interface_id: ce81af7a-9adf-494b-950e-6581fd04ecc4
1192 name: dataVM
1193 related: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1194 status: ACTIVE
1195 uuid: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1196 vdu_osm_id: dataVM
1197 vim_info: "{vim_info: null}"
1198 vim_name: ALF-1-dataVM-2
1199 vim_vm_id: 4916533e-36c6-4861-9fe3-366a8fb0a5f8
1200 vnf_id: 1ab2a418-9fe3-4358-bf17-411e5155535f
1201 vnf_name: hackfest3charmed-vnf.1
1202 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.0.1
1203 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1204 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1205 ip_address: 10.205.1.47
1206 member_vnf_index: '2'
1207 mgmt_access: '{interface_id: 538604c3-5c5e-41eb-8f84-c0239c7fabcd, required: ''False'',
1208 vm_id: dd04d792-05c9-4ecc-bf28-f77384d00311}
1209
1210 '
1211 sce_vnf_id: c4f3607a-08ff-4f75-893c-fce507e2f240
1212 uuid: 00020403-e80f-4ef2-bb7e-b29669643035
1213 vms:
1214 - created_at: '2019-08-26T12:50:38'
1215 error_msg: null
1216 interfaces:
1217 - external_name: vnf-mgmt
1218 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1219 internal_name: mgmtVM-eth0
1220 ip_address: 10.205.1.47
1221 mac_address: fa:16:3e:cb:9f:c7
1222 sdn_port_id: null
1223 type: mgmt
1224 vim_info: "{vim_info: null}"
1225 vim_interface_id: dcd6d2de-3c68-481c-883e-e9d38c671dc4
1226 - external_name: null
1227 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1228 internal_name: mgmtVM-eth1
1229 ip_address: 192.168.231.1
1230 mac_address: fa:16:3e:1a:89:24
1231 sdn_port_id: null
1232 type: bridge
1233 vim_info: "{vim_info: null}"
1234 vim_interface_id: 50e538e3-aba0-4652-93bb-20487f3f28e1
1235 ip_address: 10.205.1.47
1236 name: mgmtVM
1237 related: 4543ab5d-578c-427c-9df2-affd17e21b66
1238 status: ACTIVE
1239 uuid: 4543ab5d-578c-427c-9df2-affd17e21b66
1240 vdu_osm_id: mgmtVM
1241 vim_info: "{vim_info: null}"
1242 vim_name: ALF-2-mgmtVM-1
1243 vim_vm_id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1244 - created_at: '2019-08-26T12:50:38'
1245 error_msg: null
1246 interfaces:
1247 - external_name: null
1248 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1249 internal_name: dataVM-eth0
1250 ip_address: 192.168.231.3
1251 mac_address: fa:16:3e:7e:ba:8c
1252 sdn_port_id: null
1253 type: bridge
1254 vim_info: "{vim_info: null}"
1255 vim_interface_id: 15274862-14ea-4527-b405-101cae8bc1a0
1256 - external_name: vnf-data
1257 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1258 internal_name: dataVM-xe0
1259 ip_address: 192.168.24.4
1260 mac_address: fa:16:3e:d2:e1:f5
1261 sdn_port_id: null
1262 type: bridge
1263 vim_info: "{vim_info: null}"
1264 vim_interface_id: 253ebe4e-38d5-46be-8777-dbb57510a2ec
1265 name: dataVM
1266 related: 6f03f16b-295a-47a1-9a69-2d069d574a33
1267 status: ACTIVE
1268 uuid: 6f03f16b-295a-47a1-9a69-2d069d574a33
1269 vdu_osm_id: dataVM
1270 vim_info: "{vim_info: null}"
1271 vim_name: ALF-2-dataVM-1
1272 vim_vm_id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1273 vnf_id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
1274 vnf_name: hackfest3charmed-vnf.2
1275 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.1.2
1276 """
1277
1278 ro_delete_action_text = """
1279 actions:
1280 - created_at: 1580140763.1099188
1281 description: DELETE
1282 instance_id: c9fe9908-3180-430d-b633-fca2f68db008
1283 modified_at: 1580140763.253148
1284 number_done: 1
1285 number_failed: 0
1286 number_tasks: 1
1287 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1288 uuid: delete
1289 vim_wim_actions:
1290 - action: DELETE
1291 created_at: 1580140763.1099188
1292 datacenter_vim_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1293 error_msg: null
1294 extra: '{params: [9b6a2ac4-767e-4ec9-9497-8ba63084c77f, null]}'
1295 instance_action_id: ACTION-1580140763.054037
1296 item: instance_nets
1297 item_id: 8cb06b72-c71d-4b58-b419-95025fa651d3
1298 modified_at: 1580140763.1099188
1299 related: 8cb06b72-c71d-4b58-b419-95025fa651d3
1300 status: SUPERSEDED
1301 task_index: 0
1302 vim_id: null
1303 wim_account_id: null
1304 wim_internal_id: null
1305 worker: null
1306 """
1307
1308 db_vim_accounts_text = """
1309 ---
1310 - _admin:
1311 created: 1566818150.3024442
1312 current_operation: 0
1313 deployed:
1314 RO: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1315 RO-account: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1316 detailed-status: Done
1317 modified: 1566818150.3024442
1318 operationalState: ENABLED
1319 operations:
1320 - detailed-status: Done
1321 lcmOperationType: create
1322 operationParams: null
1323 operationState: COMPLETED
1324 startTime: 1566818150.3025382
1325 statusEnteredTime: 1566818150.3025382
1326 worker: 86434c2948e2
1327 projects_read:
1328 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1329 projects_write:
1330 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1331 _id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1332 description: some description here
1333 name: vim1
1334 schema_version: '1.1'
1335 vim_password: 5g0yGX86qIhprX86YTMcpg==
1336 vim_tenant_name: osm
1337 vim_type: openstack
1338 vim_url: http://10.95.87.162:5000/v2.0
1339 vim_user: osm
1340 - _admin:
1341 created: 1566818150.3024442
1342 current_operation: 0
1343 deployed:
1344 RO: 9ac17c0d-4265-4333-843b-c3cbd1f93f88
1345 RO-account: 011895dc-ab34-4c9f-b06f-401a8ffb073b
1346 detailed-status: Done
1347 modified: 1566818150.3024442
1348 operationalState: ENABLED
1349 operations:
1350 - detailed-status: Done
1351 lcmOperationType: create
1352 operationParams: null
1353 operationState: COMPLETED
1354 startTime: 1566818150.3025382
1355 statusEnteredTime: 1566818150.3025382
1356 worker: 86434c2948e2
1357 projects_read:
1358 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1359 projects_write:
1360 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1361 _id: 05357241-1a01-416f-9e02-af20f65f51cd
1362 description: No description
1363 name: vim2
1364 schema_version: '1.1'
1365 vim_password: 5g0yGX86qIhprX86YTMcpg==
1366 vim_tenant_name: osm
1367 vim_type: dumy
1368 vim_url: http://10.95.88.162:5000/v2.0
1369 vim_user: osm
1370 """
1371
1372 db_k8sclusters_text = """
1373 - _admin:
1374 created: 1575031378.9268339
1375 current_operation: 0
1376 modified: 1575031378.9268339
1377 operationalState: ENABLED
1378 operations:
1379 - detailed-status: ''
1380 lcmOperationType: create
1381 operationParams: null
1382 operationState: ''
1383 startTime: 1575031378.926895
1384 statusEnteredTime: 1575031378.926895
1385 worker: 36681ccf7f32
1386 projects_read:
1387 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1388 projects_write:
1389 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1390 helm-chart:
1391 id: 73d96432-d692-40d2-8440-e0c73aee209c
1392 created: True
1393 helm-chart-v3:
1394 id: 73d96432-d692-40d2-8440-e0c73aee209c
1395 created: True
1396 _id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1397 credentials:
1398 apiVersion: v1
1399 users:
1400 - name: admin
1401 user:
1402 password: qhpdogJXhBLG+JiYyyE0LeNsJXHkCSMy+sGVzlnJqes=
1403 username: admin
1404 description: Cluster3
1405 k8s_version: '1.15'
1406 name: cluster3
1407 namespace: kube-system
1408 nets:
1409 net1: None
1410 schema_version: '1.11'
1411 vim_account: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1412 """
1413
1414 db_vnfds_text = """
1415 ---
1416 - _admin:
1417 created: 1566823352.7154346
1418 modified: 1566823353.9295402
1419 onboardingState: ONBOARDED
1420 operationalState: ENABLED
1421 projects_read:
1422 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1423 projects_write:
1424 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1425 storage:
1426 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
1427 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1428 fs: local
1429 path: /app/storage/
1430 pkg-dir: hackfest_3charmed_vnfd
1431 zipfile: package.tar.gz
1432 type: vnfd
1433 usageState: NOT_IN_USE
1434 userDefinedData: {}
1435 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1436 id: hackfest3charmed-vnf
1437 description: >-
1438 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
1439 with cloud-init
1440 product-name: hackfest3charmed-vnf
1441 version: '1.0'
1442 mgmt-cp: vnf-mgmt-ext
1443 virtual-compute-desc:
1444 - id: mgmt-compute
1445 virtual-cpu:
1446 num-virtual-cpu: 1
1447 virtual-memory:
1448 size: 1
1449 - id: data-compute
1450 virtual-cpu:
1451 num-virtual-cpu: 1
1452 virtual-memory:
1453 size: 1
1454
1455 virtual-storage-desc:
1456 - id: mgmt-storage
1457 block-storage-data:
1458 size-of-storage: 10
1459 - id: data-storage
1460 block-storage-data:
1461 size-of-storage: 10
1462
1463 sw-image-desc:
1464 - id: hackfest3-mgmt
1465 name: hackfest3-mgmt
1466
1467 vdu:
1468 - id: mgmtVM
1469 name: mgmtVM
1470 cloud-init-file: cloud-config.txt
1471 sw-image-desc: hackfest3-mgmt
1472 virtual-compute-desc: mgmt-compute
1473 virtual-storage-desc: mgmt-storage
1474 int-cpd:
1475 - id: vnf-mgmt
1476 order: 1
1477 virtual-network-interface-requirement:
1478 - name: mgmtVM-eth0
1479 virtual-interface:
1480 type: VIRTIO
1481 - id: mgmtVM-internal
1482 int-virtual-link-desc: internal
1483 order: 2
1484 virtual-network-interface-requirement:
1485 - name: mgmtVM-eth1
1486 virtual-interface:
1487 type: VIRTIO
1488 - id: dataVM
1489 name: dataVM
1490 sw-image-desc: hackfest3-mgmt
1491 virtual-compute-desc: data-compute
1492 virtual-storage-desc: data-storage
1493 int-cpd:
1494 - id: dataVM-internal
1495 int-virtual-link-desc: internal
1496 order: 1
1497 virtual-network-interface-requirement:
1498 - name: dataVM-eth1
1499 virtual-interface:
1500 type: VIRTIO
1501 - id: vnf-data
1502 order: 2
1503 virtual-network-interface-requirement:
1504 - name: dataVM-eth0
1505 virtual-interface:
1506 type: VIRTIO
1507 monitoring-parameter:
1508 - id: dataVM_cpu_util
1509 name: dataVM_cpu_util
1510 performance-metric: cpu_utilization
1511
1512 int-virtual-link-desc:
1513 - id: internal
1514
1515 ext-cpd:
1516 - id: vnf-mgmt-ext
1517 int-cpd: # Connection to int-cpd
1518 vdu-id: mgmtVM
1519 cpd: vnf-mgmt
1520 - id: vnf-data-ext
1521 int-cpd: # Connection to int-cpd
1522 vdu-id: dataVM
1523 cpd: vnf-data
1524
1525 df:
1526 - id: hackfest_default
1527 vdu-profile:
1528 - id: mgmtVM
1529 min-number-of-instances: 1
1530 - id: dataVM
1531 min-number-of-instances: 1
1532 max-number-of-instances: 10
1533 instantiation-level:
1534 - id: default
1535 vdu-level:
1536 - vdu-id: mgmtVM
1537 number-of-instances: 1
1538 - vdu-id: dataVM
1539 number-of-instances: 1
1540 scaling-aspect:
1541 - id: scale_dataVM
1542 name: scale_dataVM
1543 max-scale-level: 10
1544 aspect-delta-details:
1545 deltas:
1546 - id: delta1
1547 vdu-delta:
1548 - id: vdudelta1
1549 number-of-instances: 1
1550 scaling-policy:
1551 - name: auto_cpu_util_above_threshold
1552 scaling-type: automatic
1553 enabled: true
1554 threshold-time: 0
1555 cooldown-time: 60
1556 scaling-criteria:
1557 - name: cpu_util_above_threshold
1558 scale-in-relational-operation: LE
1559 scale-in-threshold: '15.0000000000'
1560 scale-out-relational-operation: GE
1561 scale-out-threshold: '60.0000000000'
1562 vnf-monitoring-param-ref: dataVM_cpu_util
1563 scaling-config-action:
1564 - trigger: post-scale-out
1565 vnf-config-primitive-name-ref: touch
1566 - trigger: pre-scale-in
1567 vnf-config-primitive-name-ref: touch
1568 lcm-operations-configuration:
1569 operate-vnf-op-config:
1570 day1-2:
1571 - id: hackfest3charmed-vnf
1572 execution-environment-list:
1573 - id: simple-ee
1574 juju:
1575 charm: simple
1576 initial-config-primitive:
1577 - seq: "1"
1578 execution-environment-ref: simple-ee
1579 name: config
1580 parameter:
1581 - name: ssh-hostname
1582 value: <rw_mgmt_ip>
1583 - name: ssh-username
1584 value: ubuntu
1585 - name: ssh-password
1586 value: osm4u
1587 - seq: "2"
1588 execution-environment-ref: simple-ee
1589 name: touch
1590 parameter:
1591 - name: filename
1592 value: <touch_filename>
1593 config-primitive:
1594 - name: touch
1595 execution-environment-ref: simple-ee
1596 parameter:
1597 - data-type: STRING
1598 default-value: <touch_filename2>
1599 name: filename
1600
1601 - _admin:
1602 created: 1575031727.5383403
1603 modified: 1575031727.5383403
1604 onboardingState: ONBOARDED
1605 operationalState: ENABLED
1606 projects_read:
1607 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1608 projects_write:
1609 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1610 storage:
1611 descriptor: multikdu_knf/multikdu_vnfd.yaml
1612 folder: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1613 fs: local
1614 path: /app/storage/
1615 pkg-dir: multikdu_knf
1616 zipfile: multikdu_knf.tar.gz
1617 usageState: NOT_IN_USE
1618 userDefinedData: {}
1619 _id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1620 connection-point:
1621 - name: mgmt
1622 description: KNF with two KDU using helm-charts
1623 id: multikdu_knf
1624 df:
1625 - id: "default_df"
1626 k8s-cluster:
1627 nets:
1628 - external-connection-point-ref: mgmt
1629 id: mgmtnet
1630 kdu:
1631 - helm-chart: stable/openldap:1.2.1
1632 name: ldap
1633 - helm-chart: stable/mongodb
1634 name: mongo
1635 mgmt-interface:
1636 cp: mgmt
1637 name: multikdu_knf
1638 short-name: multikdu_knf
1639 vendor: Telefonica
1640 version: '1.0'
1641
1642 - _admin:
1643 created: 1575031727.5383403
1644 modified: 1575031727.5383403
1645 onboardingState: ONBOARDED
1646 operationalState: ENABLED
1647 projects_read:
1648 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1649 projects_write:
1650 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1651 storage:
1652 descriptor: native-kdu_knf/native-kdu_vnfd.yaml
1653 folder: d96b1cdf-5ad6-49f7-bf65-907ada989293
1654 fs: local
1655 path: /app/storage/
1656 pkg-dir: native-kdu_knf
1657 zipfile: native-kdu_knf.tar.gz
1658 usageState: NOT_IN_USE
1659 userDefinedData: {}
1660 _id: d96b1cdf-5ad6-49f7-bf65-907ada989293
1661 connection-point:
1662 - name: mgmt
1663 description: KNF with two KDU using juju-bundle
1664 df:
1665 - id: native-kdu
1666 kdu-resource-profile:
1667 - id: scale-app
1668 kdu-name: native-kdu
1669 min-number-of-instances: 1
1670 resource-name: app
1671 - id: scale-app2
1672 kdu-name: native-kdu
1673 min-number-of-instances: 1
1674 max-number-of-instances: 10
1675 resource-name: app2
1676 scaling-aspect:
1677 - id: kdu_scaling_group
1678 name: kdu_scaling_group
1679 max-scale-level: 10
1680 aspect-delta-details:
1681 deltas:
1682 - id: native-kdu-delta
1683 kdu-resource-delta:
1684 - id: scale-app
1685 number-of-instances: 1
1686 - id: kdu_scaling_group_2
1687 name: kdu_scaling_group_2
1688 max-scale-level: 10
1689 aspect-delta-details:
1690 deltas:
1691 - id: native-kdu-delta
1692 kdu-resource-delta:
1693 - id: scale-app
1694 number-of-instances: 1
1695 - id: scale-app2
1696 number-of-instances: 2
1697 lcm-operations-configuration:
1698 operate-vnf-op-config:
1699 day1-2:
1700 - id: native-kdu
1701 initial-config-primitive:
1702 - name: changecontent
1703 parameter:
1704 - data-type: STRING
1705 name: application-name
1706 value: nginx
1707 - data-type: STRING
1708 name: customtitle
1709 value: Initial Config Primitive
1710 seq: '1'
1711 id: native-kdu_knf
1712 k8s-cluster:
1713 nets:
1714 - external-connection-point-ref: mgmt
1715 id: mgmtnet
1716 kdu:
1717 - juju-bundle: stable/native-kdu
1718 name: native-kdu
1719 mgmt-interface:
1720 cp: mgmt
1721 name: native-kdu_knf
1722 short-name: native-kdu_knf
1723 vendor: Ulak Haberlesme A.S.
1724 version: '1.0'
1725 """
1726
1727 db_vnfrs_text = """
1728 ---
1729 - _admin:
1730 created: 1566823354.3668208
1731 modified: 1566823354.3668208
1732 nsState: NOT_INSTANTIATED
1733 projects_read:
1734 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1735 projects_write:
1736 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1737 _id: 88d90b0c-faff-4b9f-bccd-017f33985984
1738 additionalParamsForVnf:
1739 touch_filename: /home/ubuntu/first-touch-1
1740 touch_filename2: /home/ubuntu/second-touch-1
1741 connection-point:
1742 - connection-point-id: vnf-mgmt
1743 id: vnf-mgmt
1744 name: vnf-mgmt
1745 - connection-point-id: vnf-data
1746 id: vnf-data
1747 name: vnf-data
1748 created-time: 1566823354.36234
1749 id: 88d90b0c-faff-4b9f-bccd-017f33985984
1750 ip-address: 10.205.1.46
1751 member-vnf-index-ref: '1'
1752 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
1753 vdur:
1754 - _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
1755 count-index: 0
1756 interfaces:
1757 - ip-address: 10.205.1.46
1758 mac-address: fa:16:3e:b4:3e:b1
1759 mgmt-vnf: true
1760 name: mgmtVM-eth0
1761 ns-vld-id: mgmt
1762 - ip-address: 192.168.54.2
1763 mac-address: fa:16:3e:6e:7e:78
1764 name: mgmtVM-eth1
1765 vnf-vld-id: internal
1766 internal-connection-point:
1767 - connection-point-id: mgmtVM-internal
1768 id: mgmtVM-internal
1769 name: mgmtVM-internal
1770 ip-address: 10.205.1.46
1771 name: ALF-1-mgmtVM-1
1772 status: ACTIVE
1773 status-detailed: null
1774 vdu-id-ref: mgmtVM
1775 vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
1776 ns-image-id: 0
1777 ns-flavor-id: 0
1778 - _id: ab453219-2d9a-45c2-864d-2c0788385028
1779 count-index: 0
1780 interfaces:
1781 - ip-address: 192.168.54.3
1782 mac-address: fa:16:3e:d9:7a:5d
1783 name: dataVM-eth0
1784 vnf-vld-id: internal
1785 - ip-address: 192.168.24.3
1786 mac-address: fa:16:3e:d1:6c:0d
1787 name: dataVM-xe0
1788 ns-vld-id: datanet
1789 internal-connection-point:
1790 - connection-point-id: dataVM-internal
1791 id: dataVM-internal
1792 name: dataVM-internal
1793 ip-address: null
1794 name: ALF-1-dataVM-1
1795 status: ACTIVE
1796 status-detailed: null
1797 vdu-id-ref: dataVM
1798 vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
1799 ns-image-id: 0
1800 ns-flavor-id: 0
1801 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1802 vld:
1803 - id: internal
1804 name: ALF-internal
1805 status: ACTIVE
1806 status-detailed: null
1807 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1808 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1809 vnfd-ref: hackfest3charmed-vnf
1810 - _admin:
1811 created: 1566823354.3703845
1812 modified: 1566823354.3703845
1813 nsState: NOT_INSTANTIATED
1814 projects_read:
1815 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1816 projects_write:
1817 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1818 _id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
1819 additionalParamsForVnf:
1820 touch_filename: /home/ubuntu/first-touch-2
1821 touch_filename2: /home/ubuntu/second-touch-2
1822 connection-point:
1823 - connection-point-id: vnf-mgmt
1824 id: vnf-mgmt
1825 name: vnf-mgmt
1826 - connection-point-id: vnf-data
1827 id: vnf-data
1828 name: vnf-data
1829 created-time: 1566823354.36234
1830 id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
1831 ip-address: 10.205.1.47
1832 member-vnf-index-ref: '2'
1833 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
1834 vdur:
1835 - _id: 190b4a2c-4f85-4cfe-9406-4cef7ffb1e67
1836 count-index: 0
1837 interfaces:
1838 - ip-address: 10.205.1.47
1839 mac-address: fa:16:3e:cb:9f:c7
1840 mgmt-vnf: true
1841 name: mgmtVM-eth0
1842 ns-vld-id: mgmt
1843 - ip-address: 192.168.231.1
1844 mac-address: fa:16:3e:1a:89:24
1845 name: mgmtVM-eth1
1846 vnf-vld-id: internal
1847 internal-connection-point:
1848 - connection-point-id: mgmtVM-internal
1849 id: mgmtVM-internal
1850 name: mgmtVM-internal
1851 ip-address: 10.205.1.47
1852 name: ALF-2-mgmtVM-1
1853 status: ACTIVE
1854 status-detailed: null
1855 vdu-id-ref: mgmtVM
1856 vim-id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1857 ns-image-id: 0
1858 ns-flavor-id: 0
1859 - _id: 889b874d-e1c3-4e75-aa45-53a9b0ddabd9
1860 count-index: 0
1861 interfaces:
1862 - ip-address: 192.168.231.3
1863 mac-address: fa:16:3e:7e:ba:8c
1864 name: dataVM-eth0
1865 vnf-vld-id: internal
1866 - ip-address: 192.168.24.4
1867 mac-address: fa:16:3e:d2:e1:f5
1868 name: dataVM-xe0
1869 ns-vld-id: datanet
1870 internal-connection-point:
1871 - connection-point-id: dataVM-internal
1872 id: dataVM-internal
1873 name: dataVM-internal
1874 ip-address: null
1875 name: ALF-2-dataVM-1
1876 status: ACTIVE
1877 status-detailed: null
1878 vdu-id-ref: dataVM
1879 vim-id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1880 ns-image-id: 0
1881 ns-flavor-id: 0
1882 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1883 vld:
1884 - id: internal
1885 name: ALF-internal
1886 status: ACTIVE
1887 status-detailed: null
1888 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1889 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1890 vnfd-ref: hackfest3charmed-vnf
1891 - _admin:
1892 created: 1575034637.009597
1893 modified: 1575034637.009597
1894 nsState: NOT_INSTANTIATED
1895 projects_read:
1896 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1897 projects_write:
1898 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1899 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1900 additionalParamsForVnf: null
1901 connection-point:
1902 - connection-point-id: null
1903 id: null
1904 name: mgmt
1905 created-time: 1575034636.9990137
1906 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1907 ip-address: null
1908 k8s-cluster:
1909 nets:
1910 - external-connection-point-ref: mgmt
1911 id: mgmtnet
1912 ns-vld-id: mgmtnet
1913 vim_net: internal
1914 kdur:
1915 - ip-address: null
1916 k8s-cluster:
1917 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1918 kdu-name: ldap
1919 helm-chart: stable/openldap:1.2.1
1920 - ip-address: null
1921 k8s-cluster:
1922 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1923 kdu-name: mongo
1924 helm-chart: stable/mongodb
1925 member-vnf-index-ref: multikdu
1926 nsr-id-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1927 vdur: []
1928 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1929 vnfd-id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1930 vnfd-ref: multikdu_knf
1931
1932 - _admin:
1933 created: 1575034637.009597
1934 modified: 1575034637.009597
1935 nsState: NOT_INSTANTIATED
1936 projects_read:
1937 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1938 projects_write:
1939 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1940 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1941 additionalParamsForVnf: null
1942 connection-point:
1943 - connection-point-id: null
1944 id: null
1945 name: mgmt
1946 created-time: 1575034636.9990137
1947 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1948 ip-address: null
1949 k8s-cluster:
1950 nets:
1951 - external-connection-point-ref: mgmt
1952 id: mgmtnet
1953 ns-vld-id: mgmtnet
1954 vim_net: internal
1955 kdur:
1956 - ip-address: null
1957 juju-bundle: app-bundle
1958 k8s-cluster:
1959 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1960 kdu-name: native-kdu
1961 member-vnf-index-ref: native-kdu
1962 nsr-id-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1963 vdur: []
1964 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1965 vnfd-id: d96b1cdf-5ad6-49f7-bf65-907ada989293
1966 vnfd-ref: native-kdu_knf
1967 """
1968
1969 db_nslcmops_scale_text = """
1970 ---
1971 - _admin:
1972 created: 1565250912.2643092
1973 modified: 1570026174.83263
1974 projects_read:
1975 - d3581c99-31e3-45f9-b45c-49a290faedbc
1976 current_operation: '5'
1977 deployed:
1978 RO: d9aea288-b9b1-11e9-b19e-02420aff0006
1979 RO-account: d9bb2f1c-b9b1-11e9-b19e-02420aff0006
1980 detailed-status: Done
1981 modified: 1565250912.2643092
1982 operationalState: ENABLED
1983 operations:
1984 - member_vnf_index: '1'
1985 primitive: touch
1986 primitive_params: /home/ubuntu/last-touch-1
1987 operationState: COMPLETED
1988 detailed-status: Done
1989 - member_vnf_index: '1'
1990 primitive: touch
1991 primitive_params: /home/ubuntu/last-touch-2
1992 operationState: COMPLETED
1993 detailed-status: Done
1994 - member_vnf_index: '2'
1995 primitive: touch
1996 primitive_params: /home/ubuntu/last-touch-3
1997 operationState: COMPLETED
1998 detailed-status: Done
1999 projects_read:
2000 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2001 projects_write:
2002 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2003 worker: c4055a07655b
2004 deploy:
2005 RO: ACTION-1570026232.061742
2006 _id: 053967e8-7c1c-400f-ae82-3d45b291374b
2007 lcmOperationType: scale
2008 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2009 statusEnteredTime: 1570026243.09784
2010 startTime: 1570026174.8326
2011 operationParams:
2012 lcmOperationType: scale
2013 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2014 scaleVnfData:
2015 scaleByStepData:
2016 member-vnf-index: '1'
2017 scaling-group-descriptor: scale_scaling_group
2018 scaleVnfType: SCALE_IN
2019 scaleType: SCALE_VNF
2020 isAutomaticInvocation: false
2021 isCancelPending: false
2022 id: 053967e8-7c1c-400f-ae82-3d45b291374b
2023 links:
2024 nsInstance: "/osm/nslcm/v1/ns_instances/90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b"
2025 self: "/osm/nslcm/v1/ns_lcm_op_occs/053967e8-7c1c-400f-ae82-3d45b291374b"
2026 operationState: COMPLETED
2027 detailed-status: done
2028 """
2029
2030 test_ids = {
2031 # contains the ids of ns and operations of every test
2032 "TEST-A": {
2033 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2034 "instantiate": "a639fac7-e0bb-4225-8ecb-c1f8efcc125e",
2035 "terminate": "a639fac7-e0bb-4225-ffff-c1f8efcc125e",
2036 },
2037 "TEST-KDU": {
2038 "ns": "0bcb701c-ee4d-41ab-8ee6-f4156f7f114d",
2039 "instantiate": "cf3aa178-7640-4174-b921-2330e6f2aad6",
2040 "terminate": None,
2041 },
2042 "TEST-NATIVE-KDU": {
2043 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2044 "instantiate": "52770491-a765-40ce-97a1-c6e200bba7b3",
2045 "terminate": None,
2046 },
2047 "TEST-NATIVE-KDU-2": {
2048 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2049 "instantiate": "4013bbd2-b151-40ee-bcef-7e24ce5432f6",
2050 "terminate": None,
2051 },
2052 }