Feature 10906: Support for Anti-Affinity groups
[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 affinity-or-anti-affinity-group : []
871 image : [ { "image" : "ubuntu16.04", "vim_info" : [ ], "id" : "0" } ]
872 vld:
873 - id: mgmt
874 name: null
875 status: ACTIVE
876 status-detailed: null
877 vim-id: f99ae780-0e2f-4985-af41-574eae6919c0
878 vim-network-name: mgmt
879 - id: datanet
880 name: ALF-datanet
881 status: ACTIVE
882 status-detailed: null
883 vim-id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
884 vnfd-id:
885 - 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
886 - _admin:
887 created: 1575034637.011233
888 current-operation: null
889 deployed:
890 K8s:
891 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
892 kdu-instance: stable-mongodb-0086856106
893 kdu-model: stable/mongodb
894 kdu-name: mongo
895 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
896 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
897 kdu-instance: stable-openldap-0092830263
898 kdu-model: stable/mongodb
899 kdu-name: mongo
900 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
901 RO:
902 detailed-status: Deployed at VIM
903 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
904 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
905 nsr_status: ACTIVE
906 operational-status: running
907 vnfd:
908 - id: b9493dae-a4c9-4b96-8965-329581efb0a1
909 member-vnf-index: multikdu
910 VCA: []
911 modified: 1575034637.011233
912 nsState: INSTANTIATED
913 nslcmop: null
914 operation-type: null
915 projects_read:
916 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
917 projects_write:
918 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
919 _id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
920 additionalParamsForNs: null
921 admin-status: ENABLED
922 config-status: configured
923 constituent-vnfr-ref:
924 - 5ac34899-a23a-4b3c-918a-cd77acadbea6
925 create-time: 1575034636.9990137
926 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
927 description: default description
928 vcaStatus: {}
929 detailed-status: done
930 id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
931 instantiate_params:
932 nsDescription: default description
933 nsName: multikdu
934 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
935 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
936 name: multikdu
937 name-ref: multikdu
938 ns-instance-config-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
939 nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
940 nsd-name-ref: multikdu_ns
941 nsd-ref: multikdu_ns
942 operational-events: []
943 operational-status: init
944 orchestration-progress: {}
945 resource-orchestrator: osmopenmano
946 short-name: multikdu
947 ssh-authorized-key: null
948 vld:
949 - id: mgmtnet
950 name: null
951 status: ACTIVE
952 status-detailed: null
953 vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
954 vim-network-name: mgmt
955 vnfd-id:
956 - 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
957
958 - _admin:
959 created: 1575034637.011233
960 current-operation: null
961 deployed:
962 K8s:
963 - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
964 kdu-instance: native-kdu-0
965 kdu-model: native-kdu-0
966 kdu-name: native-kdu
967 member-vnf-index: native-kdu
968 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
969 RO:
970 detailed-status: Deployed at VIM
971 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
972 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
973 nsr_status: ACTIVE
974 operational-status: running
975 vnfd:
976 - id: b9493dae-a4c9-4b96-8965-329581efb0a1
977 member-vnf-index: native-kdu
978 VCA: []
979 modified: 1575034637.011233
980 nsState: INSTANTIATED
981 nslcmop: null
982 operation-type: null
983 projects_read:
984 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
985 projects_write:
986 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
987 _id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
988 additionalParamsForNs: null
989 admin-status: ENABLED
990 config-status: configured
991 constituent-vnfr-ref:
992 - 5ac34899-a23a-4b3c-918a-cd77acadbea6
993 create-time: 1575034636.9990137
994 datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
995 description: default description
996 detailed-status: done
997 id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
998 instantiate_params:
999 nsDescription: default description
1000 nsName: native-kdu
1001 nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
1002 vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1003 name: native-kdu
1004 name-ref: native-kdu
1005 ns-instance-config-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1006 nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
1007 nsd-name-ref: native-kdu_ns
1008 nsd-ref: native-kdu_ns
1009 operational-events: []
1010 operational-status: init
1011 orchestration-progress: {}
1012 resource-orchestrator: osmopenmano
1013 short-name: native-kdu
1014 ssh-authorized-key: null
1015 vld:
1016 - id: mgmtnet
1017 name: null
1018 status: ACTIVE
1019 status-detailed: null
1020 vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
1021 vim-network-name: mgmt
1022 vnfd-id:
1023 - d96b1cdf-5ad6-49f7-bf65-907ada989293
1024 """
1025
1026 ro_ns_text = """
1027 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1028 description: null
1029 name: ALF
1030 classifications: []
1031 sdn_nets: []
1032 nets:
1033 - created: false
1034 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1035 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1036 error_msg: null
1037 ns_net_osm_id: mgmt
1038 related: c6bac394-fa27-4c43-bb34-42f621a9d343
1039 sce_net_id: 8f215bab-c35e-41e6-a035-42bfaa07af9f
1040 sdn_net_id: null
1041 status: ACTIVE
1042 uuid: c6bac394-fa27-4c43-bb34-42f621a9d343
1043 vim_info: "{vim_info: null}"
1044 vim_name: null
1045 vim_net_id: f99ae780-0e2f-4985-af41-574eae6919c0
1046 vnf_net_id: null
1047 vnf_net_osm_id: null
1048 - created: true
1049 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1050 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1051 error_msg: null
1052 ns_net_osm_id: datanet
1053 related: 509d576c-120f-493a-99a1-5fea99dfe041
1054 sce_net_id: 3d766bbc-33a8-41aa-a986-2f35e8d25c16
1055 sdn_net_id: null
1056 status: ACTIVE
1057 uuid: 509d576c-120f-493a-99a1-5fea99dfe041
1058 vim_info: "{vim_info: null}"
1059 vim_name: ALF-datanet
1060 vim_net_id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1061 vnf_net_id: null
1062 vnf_net_osm_id: null
1063 - created: true
1064 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1065 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1066 error_msg: null
1067 ns_net_osm_id: null
1068 related: 277fed09-3220-4bfd-9052-b96b21a32daf
1069 sce_net_id: null
1070 sdn_net_id: null
1071 status: ACTIVE
1072 uuid: 277fed09-3220-4bfd-9052-b96b21a32daf
1073 vim_info: "{vim_info: null}"
1074 vim_name: ALF-internal
1075 vim_net_id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1076 vnf_net_id: 62e62fae-c12b-4ebc-9a9b-30031c6c16fa
1077 vnf_net_osm_id: internal
1078 - created: true
1079 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1080 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1081 error_msg: null
1082 ns_net_osm_id: null
1083 related: 92534d1a-e697-4372-a84d-aa0aa643b68a
1084 sce_net_id: null
1085 sdn_net_id: null
1086 status: ACTIVE
1087 uuid: 92534d1a-e697-4372-a84d-aa0aa643b68a
1088 vim_info: "{vim_info: null}"
1089 vim_name: ALF-internal
1090 vim_net_id: 09655387-b639-421a-b5f6-72b26d685fb4
1091 vnf_net_id: 13c6c77d-86a5-4914-832c-990d4ec7b54e
1092 vnf_net_osm_id: internal
1093 nsd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.2.hackfest3charmed-ns
1094 scenario_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
1095 scenario_name: hackfest3charmed-ns
1096 sfis: []
1097 sfps: []
1098 sfs: []
1099 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1100 uuid: c9fe9908-3180-430d-b633-fca2f68db008
1101 vnfs:
1102 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1103 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1104 ip_address: 10.205.1.46
1105 member_vnf_index: '1'
1106 mgmt_access: '{interface_id: 61549ee3-cd6c-4930-8b90-eaad97fe345b, required: ''False'',
1107 vm_id: 6cf4a48f-3b6c-4395-8221-119fa37de24a}
1108
1109 '
1110 sce_vnf_id: 83be04a8-c513-42ba-9908-22728f686d31
1111 uuid: 94724042-7576-4fb0-82ec-6a7ab642741c
1112 vms:
1113 - created_at: '2019-08-26T12:50:38'
1114 error_msg: null
1115 interfaces:
1116 - external_name: vnf-mgmt
1117 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1118 internal_name: mgmtVM-eth0
1119 ip_address: 10.205.1.46
1120 mac_address: fa:16:3e:b4:3e:b1
1121 sdn_port_id: null
1122 type: mgmt
1123 vim_info: "{vim_info: null}"
1124 vim_interface_id: 4d3cb8fd-7040-4169-a0ad-2486d2b006a1
1125 - external_name: null
1126 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1127 internal_name: mgmtVM-eth1
1128 ip_address: 192.168.54.2
1129 mac_address: fa:16:3e:6e:7e:78
1130 sdn_port_id: null
1131 type: bridge
1132 vim_info: "{vim_info: null}"
1133 vim_interface_id: 54ed68e2-9802-4dfe-b68a-280b3fc6e02d
1134 ip_address: 10.205.1.46
1135 name: mgmtVM
1136 related: d0b91293-a91d-4f08-b15f-0bf841216dfe
1137 status: ACTIVE
1138 uuid: d0b91293-a91d-4f08-b15f-0bf841216dfe
1139 vdu_osm_id: mgmtVM
1140 vim_info: "{vim_info: null}"
1141 vim_name: ALF-1-mgmtVM-1
1142 vim_vm_id: c2538499-4c30-41c0-acd5-80cb92f48061
1143 - created_at: '2019-08-26T12:50:38'
1144 error_msg: null
1145 interfaces:
1146 - external_name: null
1147 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1148 internal_name: dataVM-eth0
1149 ip_address: 192.168.54.3
1150 mac_address: fa:16:3e:d9:7a:5d
1151 sdn_port_id: null
1152 type: bridge
1153 vim_info: "{vim_info: null}"
1154 vim_interface_id: 1637f350-8840-4241-8ed0-4616bdcecfcf
1155 - external_name: vnf-data
1156 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1157 internal_name: dataVM-xe0
1158 ip_address: 192.168.24.3
1159 mac_address: fa:16:3e:d1:6c:0d
1160 sdn_port_id: null
1161 type: bridge
1162 vim_info: "{vim_info: null}"
1163 vim_interface_id: 54c73e83-7059-41fe-83a9-4c4ae997b481
1164 name: dataVM
1165 related: 5c08253d-8a35-474f-b0d3-c5297d174c13
1166 status: ACTIVE
1167 uuid: 5c08253d-8a35-474f-b0d3-c5297d174c13
1168 vdu_osm_id: dataVM
1169 vim_info: "{vim_info: null}"
1170 vim_name: ALF-1-dataVM-1
1171 vim_vm_id: 87973c3f-365d-4227-95c2-7a8abc74349c
1172 - created_at: '2019-08-26T13:40:54'
1173 error_msg: null
1174 interfaces:
1175 - external_name: null
1176 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1177 internal_name: dataVM-eth0
1178 ip_address: 192.168.54.5
1179 mac_address: fa:16:3e:e4:17:45
1180 sdn_port_id: null
1181 type: bridge
1182 vim_info: "{vim_info: null}"
1183 vim_interface_id: 7e246e40-8710-4c33-9c95-78fc3c02bc5b
1184 - external_name: vnf-data
1185 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1186 internal_name: dataVM-xe0
1187 ip_address: 192.168.24.5
1188 mac_address: fa:16:3e:29:6f:a6
1189 sdn_port_id: null
1190 type: bridge
1191 vim_info: "{vim_info: null}"
1192 vim_interface_id: ce81af7a-9adf-494b-950e-6581fd04ecc4
1193 name: dataVM
1194 related: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1195 status: ACTIVE
1196 uuid: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1197 vdu_osm_id: dataVM
1198 vim_info: "{vim_info: null}"
1199 vim_name: ALF-1-dataVM-2
1200 vim_vm_id: 4916533e-36c6-4861-9fe3-366a8fb0a5f8
1201 vnf_id: 1ab2a418-9fe3-4358-bf17-411e5155535f
1202 vnf_name: hackfest3charmed-vnf.1
1203 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.0.1
1204 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1205 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1206 ip_address: 10.205.1.47
1207 member_vnf_index: '2'
1208 mgmt_access: '{interface_id: 538604c3-5c5e-41eb-8f84-c0239c7fabcd, required: ''False'',
1209 vm_id: dd04d792-05c9-4ecc-bf28-f77384d00311}
1210
1211 '
1212 sce_vnf_id: c4f3607a-08ff-4f75-893c-fce507e2f240
1213 uuid: 00020403-e80f-4ef2-bb7e-b29669643035
1214 vms:
1215 - created_at: '2019-08-26T12:50:38'
1216 error_msg: null
1217 interfaces:
1218 - external_name: vnf-mgmt
1219 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1220 internal_name: mgmtVM-eth0
1221 ip_address: 10.205.1.47
1222 mac_address: fa:16:3e:cb:9f:c7
1223 sdn_port_id: null
1224 type: mgmt
1225 vim_info: "{vim_info: null}"
1226 vim_interface_id: dcd6d2de-3c68-481c-883e-e9d38c671dc4
1227 - external_name: null
1228 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1229 internal_name: mgmtVM-eth1
1230 ip_address: 192.168.231.1
1231 mac_address: fa:16:3e:1a:89:24
1232 sdn_port_id: null
1233 type: bridge
1234 vim_info: "{vim_info: null}"
1235 vim_interface_id: 50e538e3-aba0-4652-93bb-20487f3f28e1
1236 ip_address: 10.205.1.47
1237 name: mgmtVM
1238 related: 4543ab5d-578c-427c-9df2-affd17e21b66
1239 status: ACTIVE
1240 uuid: 4543ab5d-578c-427c-9df2-affd17e21b66
1241 vdu_osm_id: mgmtVM
1242 vim_info: "{vim_info: null}"
1243 vim_name: ALF-2-mgmtVM-1
1244 vim_vm_id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1245 - created_at: '2019-08-26T12:50:38'
1246 error_msg: null
1247 interfaces:
1248 - external_name: null
1249 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1250 internal_name: dataVM-eth0
1251 ip_address: 192.168.231.3
1252 mac_address: fa:16:3e:7e:ba:8c
1253 sdn_port_id: null
1254 type: bridge
1255 vim_info: "{vim_info: null}"
1256 vim_interface_id: 15274862-14ea-4527-b405-101cae8bc1a0
1257 - external_name: vnf-data
1258 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1259 internal_name: dataVM-xe0
1260 ip_address: 192.168.24.4
1261 mac_address: fa:16:3e:d2:e1:f5
1262 sdn_port_id: null
1263 type: bridge
1264 vim_info: "{vim_info: null}"
1265 vim_interface_id: 253ebe4e-38d5-46be-8777-dbb57510a2ec
1266 name: dataVM
1267 related: 6f03f16b-295a-47a1-9a69-2d069d574a33
1268 status: ACTIVE
1269 uuid: 6f03f16b-295a-47a1-9a69-2d069d574a33
1270 vdu_osm_id: dataVM
1271 vim_info: "{vim_info: null}"
1272 vim_name: ALF-2-dataVM-1
1273 vim_vm_id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1274 vnf_id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
1275 vnf_name: hackfest3charmed-vnf.2
1276 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.1.2
1277 """
1278
1279 ro_delete_action_text = """
1280 actions:
1281 - created_at: 1580140763.1099188
1282 description: DELETE
1283 instance_id: c9fe9908-3180-430d-b633-fca2f68db008
1284 modified_at: 1580140763.253148
1285 number_done: 1
1286 number_failed: 0
1287 number_tasks: 1
1288 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1289 uuid: delete
1290 vim_wim_actions:
1291 - action: DELETE
1292 created_at: 1580140763.1099188
1293 datacenter_vim_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1294 error_msg: null
1295 extra: '{params: [9b6a2ac4-767e-4ec9-9497-8ba63084c77f, null]}'
1296 instance_action_id: ACTION-1580140763.054037
1297 item: instance_nets
1298 item_id: 8cb06b72-c71d-4b58-b419-95025fa651d3
1299 modified_at: 1580140763.1099188
1300 related: 8cb06b72-c71d-4b58-b419-95025fa651d3
1301 status: SUPERSEDED
1302 task_index: 0
1303 vim_id: null
1304 wim_account_id: null
1305 wim_internal_id: null
1306 worker: null
1307 """
1308
1309 db_vim_accounts_text = """
1310 ---
1311 - _admin:
1312 created: 1566818150.3024442
1313 current_operation: 0
1314 deployed:
1315 RO: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1316 RO-account: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1317 detailed-status: Done
1318 modified: 1566818150.3024442
1319 operationalState: ENABLED
1320 operations:
1321 - detailed-status: Done
1322 lcmOperationType: create
1323 operationParams: null
1324 operationState: COMPLETED
1325 startTime: 1566818150.3025382
1326 statusEnteredTime: 1566818150.3025382
1327 worker: 86434c2948e2
1328 projects_read:
1329 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1330 projects_write:
1331 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1332 _id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1333 description: some description here
1334 name: vim1
1335 schema_version: '1.1'
1336 vim_password: 5g0yGX86qIhprX86YTMcpg==
1337 vim_tenant_name: osm
1338 vim_type: openstack
1339 vim_url: http://10.95.87.162:5000/v2.0
1340 vim_user: osm
1341 - _admin:
1342 created: 1566818150.3024442
1343 current_operation: 0
1344 deployed:
1345 RO: 9ac17c0d-4265-4333-843b-c3cbd1f93f88
1346 RO-account: 011895dc-ab34-4c9f-b06f-401a8ffb073b
1347 detailed-status: Done
1348 modified: 1566818150.3024442
1349 operationalState: ENABLED
1350 operations:
1351 - detailed-status: Done
1352 lcmOperationType: create
1353 operationParams: null
1354 operationState: COMPLETED
1355 startTime: 1566818150.3025382
1356 statusEnteredTime: 1566818150.3025382
1357 worker: 86434c2948e2
1358 projects_read:
1359 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1360 projects_write:
1361 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1362 _id: 05357241-1a01-416f-9e02-af20f65f51cd
1363 description: No description
1364 name: vim2
1365 schema_version: '1.1'
1366 vim_password: 5g0yGX86qIhprX86YTMcpg==
1367 vim_tenant_name: osm
1368 vim_type: dumy
1369 vim_url: http://10.95.88.162:5000/v2.0
1370 vim_user: osm
1371 """
1372
1373 db_k8sclusters_text = """
1374 - _admin:
1375 created: 1575031378.9268339
1376 current_operation: 0
1377 modified: 1575031378.9268339
1378 operationalState: ENABLED
1379 operations:
1380 - detailed-status: ''
1381 lcmOperationType: create
1382 operationParams: null
1383 operationState: ''
1384 startTime: 1575031378.926895
1385 statusEnteredTime: 1575031378.926895
1386 worker: 36681ccf7f32
1387 projects_read:
1388 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1389 projects_write:
1390 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1391 helm-chart:
1392 id: 73d96432-d692-40d2-8440-e0c73aee209c
1393 created: True
1394 helm-chart-v3:
1395 id: 73d96432-d692-40d2-8440-e0c73aee209c
1396 created: True
1397 _id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1398 credentials:
1399 apiVersion: v1
1400 users:
1401 - name: admin
1402 user:
1403 password: qhpdogJXhBLG+JiYyyE0LeNsJXHkCSMy+sGVzlnJqes=
1404 username: admin
1405 description: Cluster3
1406 k8s_version: '1.15'
1407 name: cluster3
1408 namespace: kube-system
1409 nets:
1410 net1: None
1411 schema_version: '1.11'
1412 vim_account: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1413 """
1414
1415 db_vnfds_text = """
1416 ---
1417 - _admin:
1418 created: 1566823352.7154346
1419 modified: 1566823353.9295402
1420 onboardingState: ONBOARDED
1421 operationalState: ENABLED
1422 projects_read:
1423 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1424 projects_write:
1425 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1426 storage:
1427 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
1428 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1429 fs: local
1430 path: /app/storage/
1431 pkg-dir: hackfest_3charmed_vnfd
1432 zipfile: package.tar.gz
1433 type: vnfd
1434 usageState: NOT_IN_USE
1435 userDefinedData: {}
1436 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1437 id: hackfest3charmed-vnf
1438 description: >-
1439 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
1440 with cloud-init
1441 product-name: hackfest3charmed-vnf
1442 version: '1.0'
1443 mgmt-cp: vnf-mgmt-ext
1444 virtual-compute-desc:
1445 - id: mgmt-compute
1446 virtual-cpu:
1447 num-virtual-cpu: 1
1448 virtual-memory:
1449 size: 1
1450 - id: data-compute
1451 virtual-cpu:
1452 num-virtual-cpu: 1
1453 virtual-memory:
1454 size: 1
1455
1456 virtual-storage-desc:
1457 - id: mgmt-storage
1458 block-storage-data:
1459 size-of-storage: 10
1460 - id: data-storage
1461 block-storage-data:
1462 size-of-storage: 10
1463
1464 sw-image-desc:
1465 - id: hackfest3-mgmt
1466 name: hackfest3-mgmt
1467
1468 vdu:
1469 - id: mgmtVM
1470 name: mgmtVM
1471 cloud-init-file: cloud-config.txt
1472 sw-image-desc: hackfest3-mgmt
1473 virtual-compute-desc: mgmt-compute
1474 virtual-storage-desc: mgmt-storage
1475 int-cpd:
1476 - id: vnf-mgmt
1477 order: 1
1478 virtual-network-interface-requirement:
1479 - name: mgmtVM-eth0
1480 virtual-interface:
1481 type: VIRTIO
1482 - id: mgmtVM-internal
1483 int-virtual-link-desc: internal
1484 order: 2
1485 virtual-network-interface-requirement:
1486 - name: mgmtVM-eth1
1487 virtual-interface:
1488 type: VIRTIO
1489 - id: dataVM
1490 name: dataVM
1491 sw-image-desc: hackfest3-mgmt
1492 virtual-compute-desc: data-compute
1493 virtual-storage-desc: data-storage
1494 int-cpd:
1495 - id: dataVM-internal
1496 int-virtual-link-desc: internal
1497 order: 1
1498 virtual-network-interface-requirement:
1499 - name: dataVM-eth1
1500 virtual-interface:
1501 type: VIRTIO
1502 - id: vnf-data
1503 order: 2
1504 virtual-network-interface-requirement:
1505 - name: dataVM-eth0
1506 virtual-interface:
1507 type: VIRTIO
1508 monitoring-parameter:
1509 - id: dataVM_cpu_util
1510 name: dataVM_cpu_util
1511 performance-metric: cpu_utilization
1512
1513 int-virtual-link-desc:
1514 - id: internal
1515
1516 ext-cpd:
1517 - id: vnf-mgmt-ext
1518 int-cpd: # Connection to int-cpd
1519 vdu-id: mgmtVM
1520 cpd: vnf-mgmt
1521 - id: vnf-data-ext
1522 int-cpd: # Connection to int-cpd
1523 vdu-id: dataVM
1524 cpd: vnf-data
1525
1526 df:
1527 - id: hackfest_default
1528 vdu-profile:
1529 - id: mgmtVM
1530 min-number-of-instances: 1
1531 - id: dataVM
1532 min-number-of-instances: 1
1533 max-number-of-instances: 10
1534 instantiation-level:
1535 - id: default
1536 vdu-level:
1537 - vdu-id: mgmtVM
1538 number-of-instances: 1
1539 - vdu-id: dataVM
1540 number-of-instances: 1
1541 scaling-aspect:
1542 - id: scale_dataVM
1543 name: scale_dataVM
1544 max-scale-level: 10
1545 aspect-delta-details:
1546 deltas:
1547 - id: delta1
1548 vdu-delta:
1549 - id: vdudelta1
1550 number-of-instances: 1
1551 scaling-policy:
1552 - name: auto_cpu_util_above_threshold
1553 scaling-type: automatic
1554 enabled: true
1555 threshold-time: 0
1556 cooldown-time: 60
1557 scaling-criteria:
1558 - name: cpu_util_above_threshold
1559 scale-in-relational-operation: LE
1560 scale-in-threshold: '15.0000000000'
1561 scale-out-relational-operation: GE
1562 scale-out-threshold: '60.0000000000'
1563 vnf-monitoring-param-ref: dataVM_cpu_util
1564 scaling-config-action:
1565 - trigger: post-scale-out
1566 vnf-config-primitive-name-ref: touch
1567 - trigger: pre-scale-in
1568 vnf-config-primitive-name-ref: touch
1569 lcm-operations-configuration:
1570 operate-vnf-op-config:
1571 day1-2:
1572 - id: hackfest3charmed-vnf
1573 execution-environment-list:
1574 - id: simple-ee
1575 juju:
1576 charm: simple
1577 initial-config-primitive:
1578 - seq: "1"
1579 execution-environment-ref: simple-ee
1580 name: config
1581 parameter:
1582 - name: ssh-hostname
1583 value: <rw_mgmt_ip>
1584 - name: ssh-username
1585 value: ubuntu
1586 - name: ssh-password
1587 value: osm4u
1588 - seq: "2"
1589 execution-environment-ref: simple-ee
1590 name: touch
1591 parameter:
1592 - name: filename
1593 value: <touch_filename>
1594 config-primitive:
1595 - name: touch
1596 execution-environment-ref: simple-ee
1597 parameter:
1598 - data-type: STRING
1599 default-value: <touch_filename2>
1600 name: filename
1601
1602 - _admin:
1603 created: 1575031727.5383403
1604 modified: 1575031727.5383403
1605 onboardingState: ONBOARDED
1606 operationalState: ENABLED
1607 projects_read:
1608 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1609 projects_write:
1610 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1611 storage:
1612 descriptor: multikdu_knf/multikdu_vnfd.yaml
1613 folder: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1614 fs: local
1615 path: /app/storage/
1616 pkg-dir: multikdu_knf
1617 zipfile: multikdu_knf.tar.gz
1618 usageState: NOT_IN_USE
1619 userDefinedData: {}
1620 _id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1621 connection-point:
1622 - name: mgmt
1623 description: KNF with two KDU using helm-charts
1624 id: multikdu_knf
1625 df:
1626 - id: "default_df"
1627 k8s-cluster:
1628 nets:
1629 - external-connection-point-ref: mgmt
1630 id: mgmtnet
1631 kdu:
1632 - helm-chart: stable/openldap:1.2.1
1633 name: ldap
1634 - helm-chart: stable/mongodb
1635 name: mongo
1636 mgmt-interface:
1637 cp: mgmt
1638 name: multikdu_knf
1639 short-name: multikdu_knf
1640 vendor: Telefonica
1641 version: '1.0'
1642
1643 - _admin:
1644 created: 1575031727.5383403
1645 modified: 1575031727.5383403
1646 onboardingState: ONBOARDED
1647 operationalState: ENABLED
1648 projects_read:
1649 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1650 projects_write:
1651 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1652 storage:
1653 descriptor: native-kdu_knf/native-kdu_vnfd.yaml
1654 folder: d96b1cdf-5ad6-49f7-bf65-907ada989293
1655 fs: local
1656 path: /app/storage/
1657 pkg-dir: native-kdu_knf
1658 zipfile: native-kdu_knf.tar.gz
1659 usageState: NOT_IN_USE
1660 userDefinedData: {}
1661 _id: d96b1cdf-5ad6-49f7-bf65-907ada989293
1662 connection-point:
1663 - name: mgmt
1664 description: KNF with two KDU using juju-bundle
1665 df:
1666 - id: native-kdu
1667 kdu-resource-profile:
1668 - id: scale-app
1669 kdu-name: native-kdu
1670 min-number-of-instances: 1
1671 resource-name: app
1672 - id: scale-app2
1673 kdu-name: native-kdu
1674 min-number-of-instances: 1
1675 max-number-of-instances: 10
1676 resource-name: app2
1677 scaling-aspect:
1678 - id: kdu_scaling_group
1679 name: kdu_scaling_group
1680 max-scale-level: 10
1681 aspect-delta-details:
1682 deltas:
1683 - id: native-kdu-delta
1684 kdu-resource-delta:
1685 - id: scale-app
1686 number-of-instances: 1
1687 - id: kdu_scaling_group_2
1688 name: kdu_scaling_group_2
1689 max-scale-level: 10
1690 aspect-delta-details:
1691 deltas:
1692 - id: native-kdu-delta
1693 kdu-resource-delta:
1694 - id: scale-app
1695 number-of-instances: 1
1696 - id: scale-app2
1697 number-of-instances: 2
1698 lcm-operations-configuration:
1699 operate-vnf-op-config:
1700 day1-2:
1701 - id: native-kdu
1702 initial-config-primitive:
1703 - name: changecontent
1704 parameter:
1705 - data-type: STRING
1706 name: application-name
1707 value: nginx
1708 - data-type: STRING
1709 name: customtitle
1710 value: Initial Config Primitive
1711 seq: '1'
1712 id: native-kdu_knf
1713 k8s-cluster:
1714 nets:
1715 - external-connection-point-ref: mgmt
1716 id: mgmtnet
1717 kdu:
1718 - juju-bundle: stable/native-kdu
1719 name: native-kdu
1720 mgmt-interface:
1721 cp: mgmt
1722 name: native-kdu_knf
1723 short-name: native-kdu_knf
1724 vendor: Ulak Haberlesme A.S.
1725 version: '1.0'
1726 """
1727
1728 db_vnfrs_text = """
1729 ---
1730 - _admin:
1731 created: 1566823354.3668208
1732 modified: 1566823354.3668208
1733 nsState: NOT_INSTANTIATED
1734 projects_read:
1735 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1736 projects_write:
1737 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1738 _id: 88d90b0c-faff-4b9f-bccd-017f33985984
1739 additionalParamsForVnf:
1740 touch_filename: /home/ubuntu/first-touch-1
1741 touch_filename2: /home/ubuntu/second-touch-1
1742 connection-point:
1743 - connection-point-id: vnf-mgmt
1744 id: vnf-mgmt
1745 name: vnf-mgmt
1746 - connection-point-id: vnf-data
1747 id: vnf-data
1748 name: vnf-data
1749 created-time: 1566823354.36234
1750 id: 88d90b0c-faff-4b9f-bccd-017f33985984
1751 ip-address: 10.205.1.46
1752 member-vnf-index-ref: '1'
1753 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
1754 vdur:
1755 - _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
1756 count-index: 0
1757 interfaces:
1758 - ip-address: 10.205.1.46
1759 mac-address: fa:16:3e:b4:3e:b1
1760 mgmt-vnf: true
1761 name: mgmtVM-eth0
1762 ns-vld-id: mgmt
1763 - ip-address: 192.168.54.2
1764 mac-address: fa:16:3e:6e:7e:78
1765 name: mgmtVM-eth1
1766 vnf-vld-id: internal
1767 internal-connection-point:
1768 - connection-point-id: mgmtVM-internal
1769 id: mgmtVM-internal
1770 name: mgmtVM-internal
1771 ip-address: 10.205.1.46
1772 name: ALF-1-mgmtVM-1
1773 status: ACTIVE
1774 status-detailed: null
1775 vdu-id-ref: mgmtVM
1776 vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
1777 ns-image-id: 0
1778 ns-flavor-id: 0
1779 affinity-or-anti-affinity-group-id : []
1780 - _id: ab453219-2d9a-45c2-864d-2c0788385028
1781 count-index: 0
1782 interfaces:
1783 - ip-address: 192.168.54.3
1784 mac-address: fa:16:3e:d9:7a:5d
1785 name: dataVM-eth0
1786 vnf-vld-id: internal
1787 - ip-address: 192.168.24.3
1788 mac-address: fa:16:3e:d1:6c:0d
1789 name: dataVM-xe0
1790 ns-vld-id: datanet
1791 internal-connection-point:
1792 - connection-point-id: dataVM-internal
1793 id: dataVM-internal
1794 name: dataVM-internal
1795 ip-address: null
1796 name: ALF-1-dataVM-1
1797 status: ACTIVE
1798 status-detailed: null
1799 vdu-id-ref: dataVM
1800 vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
1801 ns-image-id: 0
1802 ns-flavor-id: 0
1803 affinity-or-anti-affinity-group-id : []
1804 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1805 vld:
1806 - id: internal
1807 name: ALF-internal
1808 status: ACTIVE
1809 status-detailed: null
1810 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1811 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1812 vnfd-ref: hackfest3charmed-vnf
1813 - _admin:
1814 created: 1566823354.3703845
1815 modified: 1566823354.3703845
1816 nsState: NOT_INSTANTIATED
1817 projects_read:
1818 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1819 projects_write:
1820 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1821 _id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
1822 additionalParamsForVnf:
1823 touch_filename: /home/ubuntu/first-touch-2
1824 touch_filename2: /home/ubuntu/second-touch-2
1825 connection-point:
1826 - connection-point-id: vnf-mgmt
1827 id: vnf-mgmt
1828 name: vnf-mgmt
1829 - connection-point-id: vnf-data
1830 id: vnf-data
1831 name: vnf-data
1832 created-time: 1566823354.36234
1833 id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
1834 ip-address: 10.205.1.47
1835 member-vnf-index-ref: '2'
1836 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
1837 vdur:
1838 - _id: 190b4a2c-4f85-4cfe-9406-4cef7ffb1e67
1839 count-index: 0
1840 interfaces:
1841 - ip-address: 10.205.1.47
1842 mac-address: fa:16:3e:cb:9f:c7
1843 mgmt-vnf: true
1844 name: mgmtVM-eth0
1845 ns-vld-id: mgmt
1846 - ip-address: 192.168.231.1
1847 mac-address: fa:16:3e:1a:89:24
1848 name: mgmtVM-eth1
1849 vnf-vld-id: internal
1850 internal-connection-point:
1851 - connection-point-id: mgmtVM-internal
1852 id: mgmtVM-internal
1853 name: mgmtVM-internal
1854 ip-address: 10.205.1.47
1855 name: ALF-2-mgmtVM-1
1856 status: ACTIVE
1857 status-detailed: null
1858 vdu-id-ref: mgmtVM
1859 vim-id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1860 ns-image-id: 0
1861 ns-flavor-id: 0
1862 affinity-or-anti-affinity-group-id : []
1863 - _id: 889b874d-e1c3-4e75-aa45-53a9b0ddabd9
1864 count-index: 0
1865 interfaces:
1866 - ip-address: 192.168.231.3
1867 mac-address: fa:16:3e:7e:ba:8c
1868 name: dataVM-eth0
1869 vnf-vld-id: internal
1870 - ip-address: 192.168.24.4
1871 mac-address: fa:16:3e:d2:e1:f5
1872 name: dataVM-xe0
1873 ns-vld-id: datanet
1874 internal-connection-point:
1875 - connection-point-id: dataVM-internal
1876 id: dataVM-internal
1877 name: dataVM-internal
1878 ip-address: null
1879 name: ALF-2-dataVM-1
1880 status: ACTIVE
1881 status-detailed: null
1882 vdu-id-ref: dataVM
1883 vim-id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1884 ns-image-id: 0
1885 ns-flavor-id: 0
1886 affinity-or-anti-affinity-group-id : []
1887 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1888 vld:
1889 - id: internal
1890 name: ALF-internal
1891 status: ACTIVE
1892 status-detailed: null
1893 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1894 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1895 vnfd-ref: hackfest3charmed-vnf
1896 - _admin:
1897 created: 1575034637.009597
1898 modified: 1575034637.009597
1899 nsState: NOT_INSTANTIATED
1900 projects_read:
1901 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1902 projects_write:
1903 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1904 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1905 additionalParamsForVnf: null
1906 connection-point:
1907 - connection-point-id: null
1908 id: null
1909 name: mgmt
1910 created-time: 1575034636.9990137
1911 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1912 ip-address: null
1913 k8s-cluster:
1914 nets:
1915 - external-connection-point-ref: mgmt
1916 id: mgmtnet
1917 ns-vld-id: mgmtnet
1918 vim_net: internal
1919 kdur:
1920 - ip-address: null
1921 k8s-cluster:
1922 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1923 kdu-name: ldap
1924 helm-chart: stable/openldap:1.2.1
1925 - ip-address: null
1926 k8s-cluster:
1927 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1928 kdu-name: mongo
1929 helm-chart: stable/mongodb
1930 member-vnf-index-ref: multikdu
1931 nsr-id-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1932 vdur: []
1933 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1934 vnfd-id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1935 vnfd-ref: multikdu_knf
1936
1937 - _admin:
1938 created: 1575034637.009597
1939 modified: 1575034637.009597
1940 nsState: NOT_INSTANTIATED
1941 projects_read:
1942 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1943 projects_write:
1944 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1945 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1946 additionalParamsForVnf: null
1947 connection-point:
1948 - connection-point-id: null
1949 id: null
1950 name: mgmt
1951 created-time: 1575034636.9990137
1952 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1953 ip-address: null
1954 k8s-cluster:
1955 nets:
1956 - external-connection-point-ref: mgmt
1957 id: mgmtnet
1958 ns-vld-id: mgmtnet
1959 vim_net: internal
1960 kdur:
1961 - ip-address: null
1962 juju-bundle: app-bundle
1963 k8s-cluster:
1964 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1965 kdu-name: native-kdu
1966 member-vnf-index-ref: native-kdu
1967 nsr-id-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1968 vdur: []
1969 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1970 vnfd-id: d96b1cdf-5ad6-49f7-bf65-907ada989293
1971 vnfd-ref: native-kdu_knf
1972 """
1973
1974 db_nslcmops_scale_text = """
1975 ---
1976 - _admin:
1977 created: 1565250912.2643092
1978 modified: 1570026174.83263
1979 projects_read:
1980 - d3581c99-31e3-45f9-b45c-49a290faedbc
1981 current_operation: '5'
1982 deployed:
1983 RO: d9aea288-b9b1-11e9-b19e-02420aff0006
1984 RO-account: d9bb2f1c-b9b1-11e9-b19e-02420aff0006
1985 detailed-status: Done
1986 modified: 1565250912.2643092
1987 operationalState: ENABLED
1988 operations:
1989 - member_vnf_index: '1'
1990 primitive: touch
1991 primitive_params: /home/ubuntu/last-touch-1
1992 operationState: COMPLETED
1993 detailed-status: Done
1994 - member_vnf_index: '1'
1995 primitive: touch
1996 primitive_params: /home/ubuntu/last-touch-2
1997 operationState: COMPLETED
1998 detailed-status: Done
1999 - member_vnf_index: '2'
2000 primitive: touch
2001 primitive_params: /home/ubuntu/last-touch-3
2002 operationState: COMPLETED
2003 detailed-status: Done
2004 projects_read:
2005 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2006 projects_write:
2007 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2008 worker: c4055a07655b
2009 deploy:
2010 RO: ACTION-1570026232.061742
2011 _id: 053967e8-7c1c-400f-ae82-3d45b291374b
2012 lcmOperationType: scale
2013 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2014 statusEnteredTime: 1570026243.09784
2015 startTime: 1570026174.8326
2016 operationParams:
2017 lcmOperationType: scale
2018 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2019 scaleVnfData:
2020 scaleByStepData:
2021 member-vnf-index: '1'
2022 scaling-group-descriptor: scale_scaling_group
2023 scaleVnfType: SCALE_IN
2024 scaleType: SCALE_VNF
2025 isAutomaticInvocation: false
2026 isCancelPending: false
2027 id: 053967e8-7c1c-400f-ae82-3d45b291374b
2028 links:
2029 nsInstance: "/osm/nslcm/v1/ns_instances/90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b"
2030 self: "/osm/nslcm/v1/ns_lcm_op_occs/053967e8-7c1c-400f-ae82-3d45b291374b"
2031 operationState: COMPLETED
2032 detailed-status: done
2033 """
2034
2035 test_ids = {
2036 # contains the ids of ns and operations of every test
2037 "TEST-A": {
2038 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2039 "instantiate": "a639fac7-e0bb-4225-8ecb-c1f8efcc125e",
2040 "terminate": "a639fac7-e0bb-4225-ffff-c1f8efcc125e",
2041 },
2042 "TEST-KDU": {
2043 "ns": "0bcb701c-ee4d-41ab-8ee6-f4156f7f114d",
2044 "instantiate": "cf3aa178-7640-4174-b921-2330e6f2aad6",
2045 "terminate": None,
2046 },
2047 "TEST-NATIVE-KDU": {
2048 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2049 "instantiate": "52770491-a765-40ce-97a1-c6e200bba7b3",
2050 "terminate": None,
2051 },
2052 "TEST-NATIVE-KDU-2": {
2053 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2054 "instantiate": "4013bbd2-b151-40ee-bcef-7e24ce5432f6",
2055 "terminate": None,
2056 },
2057 }