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