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