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