Feature 10944 Change naming of charms
[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 - _id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1240 name: ha_charm-ns2
1241 name-ref: ha_charm-ns2
1242 short-name: ha_charm-ns2
1243 admin-status: ENABLED
1244 nsState: BROKEN
1245 currentOperation: IDLE
1246 currentOperationID:
1247 errorDescription: 'Operation: INSTANTIATING.8e72f2b5-f466-4382-88a4-4575c9e07eb8,
1248 Stage 5/5: running Day-1 primitives for NS.'
1249 deploymentStatus:
1250 configurationStatus:
1251 - elementType: VDU
1252 elementUnderConfiguration: userVM-0
1253 status: READY
1254 - elementType: VDU
1255 elementUnderConfiguration: policyVM-0
1256 status: READY
1257 - elementType: NS
1258 elementUnderConfiguration: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1259 status: BROKEN
1260 vcaStatus:
1261 nsd:
1262 _id: a557cb0f-0dc9-494c-a9bd-69e8079767e7
1263 id: nscharm-ns
1264 version: '1.0'
1265 name: nscharm-ns
1266 vnfd-id:
1267 - nscharm-user-vnf
1268 - nscharm-policy-vnf
1269 virtual-link-desc:
1270 - id: mgmtnet
1271 mgmt-network: true
1272 vim-network-name: osm-ext
1273 df:
1274 - id: default-df
1275 vnf-profile:
1276 - id: '1'
1277 virtual-link-connectivity:
1278 - constituent-cpd-id:
1279 - constituent-base-element-id: '1'
1280 constituent-cpd-id: vnf-mgmt-ext
1281 virtual-link-profile-id: mgmtnet
1282 vnfd-id: nscharm-user-vnf
1283 - id: '2'
1284 virtual-link-connectivity:
1285 - constituent-cpd-id:
1286 - constituent-base-element-id: '2'
1287 constituent-cpd-id: vnf-mgmt-ext
1288 virtual-link-profile-id: mgmtnet
1289 vnfd-id: nscharm-policy-vnf
1290 ns-configuration:
1291 juju:
1292 charm: ns_ubuntu-18.04-amd64.charm
1293 config-primitive:
1294 - name: add-user
1295 parameter:
1296 - name: username
1297 data-type: STRING
1298 initial-config-primitive:
1299 - seq: '1'
1300 name: config
1301 parameter:
1302 - name: juju-username
1303 value: admin
1304 - name: juju-password
1305 value: a5611fc6452349cc6e45705d34c501d4
1306 - seq: '2'
1307 name: add-user
1308 parameter:
1309 - name: username
1310 value: root
1311 description: NS with 2 VNFs
1312 _admin:
1313 userDefinedData: {}
1314 revision: 1
1315 created: 1658868548.2641
1316 modified: 1658868548.89253
1317 projects_read:
1318 - 51e0e80fe533469d98766caa16552a3e
1319 projects_write:
1320 - 51e0e80fe533469d98766caa16552a3e
1321 onboardingState: ONBOARDED
1322 operationalState: ENABLED
1323 usageState: NOT_IN_USE
1324 storage:
1325 fs: mongo
1326 path: "/app/storage/"
1327 folder: a557cb0f-0dc9-494c-a9bd-69e8079767e7:1
1328 pkg-dir: nscharm_ns
1329 descriptor: nscharm_ns/nscharm_nsd.yaml
1330 zipfile: nscharm_ns.tar.gz
1331 datacenter: bad7338b-ae46-43d4-a434-c3337a8054ac
1332 resource-orchestrator: osmopenmano
1333 description: default description
1334 constituent-vnfr-ref:
1335 - 303a6ccd-e6f2-4127-96a4-1e3b97956850
1336 - 0d0cd621-47db-4eef-a9e8-8edb71a34ea1
1337 operational-status: running
1338 config-status: failed
1339 orchestration-progress: {}
1340 create-time: 1658868607.27119
1341 nsd-name-ref: nscharm-ns
1342 operational-events: []
1343 nsd-ref: nscharm-ns
1344 nsd-id: a557cb0f-0dc9-494c-a9bd-69e8079767e7
1345 vnfd-id:
1346 - b5068dc9-a3cd-4a1e-b051-e36c3a9f10a4
1347 - 4aa63021-c816-456b-9998-804c5285a85d
1348 instantiate_params:
1349 nsdId: a557cb0f-0dc9-494c-a9bd-69e8079767e7
1350 nsName: ha_charm-ns2
1351 nsDescription: default description
1352 vimAccountId: bad7338b-ae46-43d4-a434-c3337a8054ac
1353 vld:
1354 - name: mgmtnet
1355 vim-network-name: osm-ext
1356 additionalParamsForNs:
1357 ns-instance-config-ref: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1358 id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1359 ssh-authorized-key:
1360 flavor:
1361 - id: '0'
1362 memory-mb: 1024
1363 name: userVM-flv
1364 storage-gb: '10'
1365 vcpu-count: 1
1366 vim_info:
1367 vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1368 vim_details:
1369 vim_id: 17a9ba76-beb7-4ad4-a481-97de37174866
1370 vim_message:
1371 vim_status: DONE
1372 - id: '1'
1373 memory-mb: 1024
1374 name: policyVM-flv
1375 storage-gb: '10'
1376 vcpu-count: 1
1377 vim_info:
1378 vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1379 vim_details:
1380 vim_id: 17a9ba76-beb7-4ad4-a481-97de37174866
1381 vim_message:
1382 vim_status: DONE
1383 image:
1384 - id: '0'
1385 image: ubuntu18.04
1386 vim_info:
1387 vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1388 vim_details:
1389 vim_id: 919fc71a-6acd-4ee3-8123-739a9abbc2e7
1390 vim_message:
1391 vim_status: DONE
1392 - image: ubuntu/images/hvm-ssd/ubuntu-artful-17.10-amd64-server-20180509
1393 vim-type: aws
1394 id: '1'
1395 - image: Canonical:UbuntuServer:18.04-LTS:latest
1396 vim-type: azure
1397 id: '2'
1398 - image: ubuntu-os-cloud:image-family:ubuntu-1804-lts
1399 vim-type: gcp
1400 id: '3'
1401 affinity-or-anti-affinity-group: []
1402 revision: 1
1403 vld:
1404 - id: mgmtnet
1405 mgmt-network: true
1406 name: mgmtnet
1407 type:
1408 vim_info:
1409 vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1410 vim_account_id: bad7338b-ae46-43d4-a434-c3337a8054ac
1411 vim_network_name: osm-ext
1412 vim_details: |
1413 {admin_state_up: true, availability_zone_hints: [], availability_zones: [nova], created_at: '2019-10-17T23:44:03Z', description: '', encapsulation: vlan, encapsulation_id: 2148, encapsulation_type: vlan, id: 21ea5d92-24f1-40ab-8d28-83230e277a49, ipv4_address_scope: null,
1414 ipv6_address_scope: null, is_default: false, mtu: 1500, name: osm-ext, port_security_enabled: true, project_id: 456b6471010b4737b47a0dd599c920c5, 'provider:network_type': vlan, 'provider:physical_network': physnet1, 'provider:segmentation_id': 2148, revision_number: 1009,
1415 'router:external': true, segmentation_id: 2148, shared: true, status: ACTIVE, subnets: [{subnet: {allocation_pools: [{end: 172.21.249.255, start: 172.21.248.1}], cidr: 172.21.248.0/22, created_at: '2019-10-17T23:44:07Z', description: '', dns_nameservers: [],
1416 enable_dhcp: true, gateway_ip: 172.21.251.254, host_routes: [], id: d14f68b7-8287-41fe-b533-dafb2240680a, ip_version: 4, ipv6_address_mode: null, ipv6_ra_mode: null, name: osm-ext-subnet, network_id: 21ea5d92-24f1-40ab-8d28-83230e277a49, project_id: 456b6471010b4737b47a0dd599c920c5,
1417 revision_number: 5, service_types: [], subnetpool_id: null, tags: [], tenant_id: 456b6471010b4737b47a0dd599c920c5, updated_at: '2020-09-14T15:15:06Z'}}], tags: [], tenant_id: 456b6471010b4737b47a0dd599c920c5, type: data, updated_at: '2022-07-05T18:39:02Z'}
1418 vim_id: 21ea5d92-24f1-40ab-8d28-83230e277a49
1419 vim_message:
1420 vim_status: ACTIVE
1421 _admin:
1422 created: 1658868607.2804
1423 modified: 1658868966.10105
1424 projects_read:
1425 - 51e0e80fe533469d98766caa16552a3e
1426 projects_write:
1427 - 51e0e80fe533469d98766caa16552a3e
1428 nsState: INSTANTIATED
1429 current-operation:
1430 nslcmop:
1431 operation-type:
1432 deployed:
1433 RO:
1434 vnfd: []
1435 operational-status: running
1436 VCA:
1437 - target_element: vnf/1/vdu/userVM/0
1438 member-vnf-index: '1'
1439 vdu_id: userVM
1440 kdu_name:
1441 vdu_count_index: 0
1442 operational-status: init
1443 detailed-status: ''
1444 step: initial-deploy
1445 vnfd_id: nscharm-user-vnf
1446 vdu_name:
1447 type: lxc_proxy_charm
1448 ee_descriptor_id: vnf-user-ee
1449 ee_id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f.app-vnf-3b97956850-z0-vdu-uservm-cnt-z0-eh2hc.2
1450 application: app-vnf-3b97956850-z0-vdu-uservm-cnt-z0-eh2hc
1451 model: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1452 config_sw_installed: true
1453 - target_element: vnf/2/vdu/policyVM/0
1454 member-vnf-index: '2'
1455 vdu_id: policyVM
1456 kdu_name:
1457 vdu_count_index: 0
1458 operational-status: init
1459 detailed-status: ''
1460 step: initial-deploy
1461 vnfd_id: nscharm-policy-vnf
1462 vdu_name:
1463 type: lxc_proxy_charm
1464 ee_descriptor_id: vnf-policy-ee
1465 ee_id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f.app-vnf-db71a34ea1-z0-vdu-policyvm-cnt-z0-tr1oc.0
1466 application: app-vnf-db71a34ea1-z0-vdu-policyvm-cnt-z0-tr1oc
1467 model: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1468 config_sw_installed: true
1469 - target_element: ns
1470 member-vnf-index:
1471 vdu_id:
1472 kdu_name:
1473 vdu_count_index: 0
1474 operational-status: init
1475 detailed-status: ''
1476 step: initial-deploy
1477 vnfd_id:
1478 vdu_name:
1479 type: lxc_proxy_charm
1480 ee_descriptor_id:
1481 ee_id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f.app-qmfbp.1
1482 application: app-qmfbp
1483 model: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1484 config_sw_installed: true
1485 K8s: []
1486 """
1487
1488 ro_ns_text = """
1489 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1490 description: null
1491 name: ALF
1492 classifications: []
1493 sdn_nets: []
1494 nets:
1495 - created: false
1496 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1497 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1498 error_msg: null
1499 ns_net_osm_id: mgmt
1500 related: c6bac394-fa27-4c43-bb34-42f621a9d343
1501 sce_net_id: 8f215bab-c35e-41e6-a035-42bfaa07af9f
1502 sdn_net_id: null
1503 status: ACTIVE
1504 uuid: c6bac394-fa27-4c43-bb34-42f621a9d343
1505 vim_info: "{vim_info: null}"
1506 vim_name: null
1507 vim_net_id: f99ae780-0e2f-4985-af41-574eae6919c0
1508 vnf_net_id: null
1509 vnf_net_osm_id: null
1510 - created: true
1511 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1512 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1513 error_msg: null
1514 ns_net_osm_id: datanet
1515 related: 509d576c-120f-493a-99a1-5fea99dfe041
1516 sce_net_id: 3d766bbc-33a8-41aa-a986-2f35e8d25c16
1517 sdn_net_id: null
1518 status: ACTIVE
1519 uuid: 509d576c-120f-493a-99a1-5fea99dfe041
1520 vim_info: "{vim_info: null}"
1521 vim_name: ALF-datanet
1522 vim_net_id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1523 vnf_net_id: null
1524 vnf_net_osm_id: null
1525 - created: true
1526 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1527 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1528 error_msg: null
1529 ns_net_osm_id: null
1530 related: 277fed09-3220-4bfd-9052-b96b21a32daf
1531 sce_net_id: null
1532 sdn_net_id: null
1533 status: ACTIVE
1534 uuid: 277fed09-3220-4bfd-9052-b96b21a32daf
1535 vim_info: "{vim_info: null}"
1536 vim_name: ALF-internal
1537 vim_net_id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1538 vnf_net_id: 62e62fae-c12b-4ebc-9a9b-30031c6c16fa
1539 vnf_net_osm_id: internal
1540 - created: true
1541 datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1542 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1543 error_msg: null
1544 ns_net_osm_id: null
1545 related: 92534d1a-e697-4372-a84d-aa0aa643b68a
1546 sce_net_id: null
1547 sdn_net_id: null
1548 status: ACTIVE
1549 uuid: 92534d1a-e697-4372-a84d-aa0aa643b68a
1550 vim_info: "{vim_info: null}"
1551 vim_name: ALF-internal
1552 vim_net_id: 09655387-b639-421a-b5f6-72b26d685fb4
1553 vnf_net_id: 13c6c77d-86a5-4914-832c-990d4ec7b54e
1554 vnf_net_osm_id: internal
1555 nsd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.2.hackfest3charmed-ns
1556 scenario_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
1557 scenario_name: hackfest3charmed-ns
1558 sfis: []
1559 sfps: []
1560 sfs: []
1561 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1562 uuid: c9fe9908-3180-430d-b633-fca2f68db008
1563 vnfs:
1564 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1565 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1566 ip_address: 10.205.1.46
1567 member_vnf_index: '1'
1568 mgmt_access: '{interface_id: 61549ee3-cd6c-4930-8b90-eaad97fe345b, required: ''False'',
1569 vm_id: 6cf4a48f-3b6c-4395-8221-119fa37de24a}
1570
1571 '
1572 sce_vnf_id: 83be04a8-c513-42ba-9908-22728f686d31
1573 uuid: 94724042-7576-4fb0-82ec-6a7ab642741c
1574 vms:
1575 - created_at: '2019-08-26T12:50:38'
1576 error_msg: null
1577 interfaces:
1578 - external_name: vnf-mgmt
1579 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1580 internal_name: mgmtVM-eth0
1581 ip_address: 10.205.1.46
1582 mac_address: fa:16:3e:b4:3e:b1
1583 sdn_port_id: null
1584 type: mgmt
1585 vim_info: "{vim_info: null}"
1586 vim_interface_id: 4d3cb8fd-7040-4169-a0ad-2486d2b006a1
1587 - external_name: null
1588 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1589 internal_name: mgmtVM-eth1
1590 ip_address: 192.168.54.2
1591 mac_address: fa:16:3e:6e:7e:78
1592 sdn_port_id: null
1593 type: bridge
1594 vim_info: "{vim_info: null}"
1595 vim_interface_id: 54ed68e2-9802-4dfe-b68a-280b3fc6e02d
1596 ip_address: 10.205.1.46
1597 name: mgmtVM
1598 related: d0b91293-a91d-4f08-b15f-0bf841216dfe
1599 status: ACTIVE
1600 uuid: d0b91293-a91d-4f08-b15f-0bf841216dfe
1601 vdu_osm_id: mgmtVM
1602 vim_info: "{vim_info: null}"
1603 vim_name: ALF-1-mgmtVM-1
1604 vim_vm_id: c2538499-4c30-41c0-acd5-80cb92f48061
1605 - created_at: '2019-08-26T12:50:38'
1606 error_msg: null
1607 interfaces:
1608 - external_name: null
1609 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1610 internal_name: dataVM-eth0
1611 ip_address: 192.168.54.3
1612 mac_address: fa:16:3e:d9:7a:5d
1613 sdn_port_id: null
1614 type: bridge
1615 vim_info: "{vim_info: null}"
1616 vim_interface_id: 1637f350-8840-4241-8ed0-4616bdcecfcf
1617 - external_name: vnf-data
1618 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1619 internal_name: dataVM-xe0
1620 ip_address: 192.168.24.3
1621 mac_address: fa:16:3e:d1:6c:0d
1622 sdn_port_id: null
1623 type: bridge
1624 vim_info: "{vim_info: null}"
1625 vim_interface_id: 54c73e83-7059-41fe-83a9-4c4ae997b481
1626 name: dataVM
1627 related: 5c08253d-8a35-474f-b0d3-c5297d174c13
1628 status: ACTIVE
1629 uuid: 5c08253d-8a35-474f-b0d3-c5297d174c13
1630 vdu_osm_id: dataVM
1631 vim_info: "{vim_info: null}"
1632 vim_name: ALF-1-dataVM-1
1633 vim_vm_id: 87973c3f-365d-4227-95c2-7a8abc74349c
1634 - created_at: '2019-08-26T13:40:54'
1635 error_msg: null
1636 interfaces:
1637 - external_name: null
1638 instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1639 internal_name: dataVM-eth0
1640 ip_address: 192.168.54.5
1641 mac_address: fa:16:3e:e4:17:45
1642 sdn_port_id: null
1643 type: bridge
1644 vim_info: "{vim_info: null}"
1645 vim_interface_id: 7e246e40-8710-4c33-9c95-78fc3c02bc5b
1646 - external_name: vnf-data
1647 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1648 internal_name: dataVM-xe0
1649 ip_address: 192.168.24.5
1650 mac_address: fa:16:3e:29:6f:a6
1651 sdn_port_id: null
1652 type: bridge
1653 vim_info: "{vim_info: null}"
1654 vim_interface_id: ce81af7a-9adf-494b-950e-6581fd04ecc4
1655 name: dataVM
1656 related: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1657 status: ACTIVE
1658 uuid: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1659 vdu_osm_id: dataVM
1660 vim_info: "{vim_info: null}"
1661 vim_name: ALF-1-dataVM-2
1662 vim_vm_id: 4916533e-36c6-4861-9fe3-366a8fb0a5f8
1663 vnf_id: 1ab2a418-9fe3-4358-bf17-411e5155535f
1664 vnf_name: hackfest3charmed-vnf.1
1665 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.0.1
1666 - datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1667 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1668 ip_address: 10.205.1.47
1669 member_vnf_index: '2'
1670 mgmt_access: '{interface_id: 538604c3-5c5e-41eb-8f84-c0239c7fabcd, required: ''False'',
1671 vm_id: dd04d792-05c9-4ecc-bf28-f77384d00311}
1672
1673 '
1674 sce_vnf_id: c4f3607a-08ff-4f75-893c-fce507e2f240
1675 uuid: 00020403-e80f-4ef2-bb7e-b29669643035
1676 vms:
1677 - created_at: '2019-08-26T12:50:38'
1678 error_msg: null
1679 interfaces:
1680 - external_name: vnf-mgmt
1681 instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1682 internal_name: mgmtVM-eth0
1683 ip_address: 10.205.1.47
1684 mac_address: fa:16:3e:cb:9f:c7
1685 sdn_port_id: null
1686 type: mgmt
1687 vim_info: "{vim_info: null}"
1688 vim_interface_id: dcd6d2de-3c68-481c-883e-e9d38c671dc4
1689 - external_name: null
1690 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1691 internal_name: mgmtVM-eth1
1692 ip_address: 192.168.231.1
1693 mac_address: fa:16:3e:1a:89:24
1694 sdn_port_id: null
1695 type: bridge
1696 vim_info: "{vim_info: null}"
1697 vim_interface_id: 50e538e3-aba0-4652-93bb-20487f3f28e1
1698 ip_address: 10.205.1.47
1699 name: mgmtVM
1700 related: 4543ab5d-578c-427c-9df2-affd17e21b66
1701 status: ACTIVE
1702 uuid: 4543ab5d-578c-427c-9df2-affd17e21b66
1703 vdu_osm_id: mgmtVM
1704 vim_info: "{vim_info: null}"
1705 vim_name: ALF-2-mgmtVM-1
1706 vim_vm_id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1707 - created_at: '2019-08-26T12:50:38'
1708 error_msg: null
1709 interfaces:
1710 - external_name: null
1711 instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1712 internal_name: dataVM-eth0
1713 ip_address: 192.168.231.3
1714 mac_address: fa:16:3e:7e:ba:8c
1715 sdn_port_id: null
1716 type: bridge
1717 vim_info: "{vim_info: null}"
1718 vim_interface_id: 15274862-14ea-4527-b405-101cae8bc1a0
1719 - external_name: vnf-data
1720 instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1721 internal_name: dataVM-xe0
1722 ip_address: 192.168.24.4
1723 mac_address: fa:16:3e:d2:e1:f5
1724 sdn_port_id: null
1725 type: bridge
1726 vim_info: "{vim_info: null}"
1727 vim_interface_id: 253ebe4e-38d5-46be-8777-dbb57510a2ec
1728 name: dataVM
1729 related: 6f03f16b-295a-47a1-9a69-2d069d574a33
1730 status: ACTIVE
1731 uuid: 6f03f16b-295a-47a1-9a69-2d069d574a33
1732 vdu_osm_id: dataVM
1733 vim_info: "{vim_info: null}"
1734 vim_name: ALF-2-dataVM-1
1735 vim_vm_id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1736 vnf_id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
1737 vnf_name: hackfest3charmed-vnf.2
1738 vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.1.2
1739 """
1740
1741 ro_delete_action_text = """
1742 actions:
1743 - created_at: 1580140763.1099188
1744 description: DELETE
1745 instance_id: c9fe9908-3180-430d-b633-fca2f68db008
1746 modified_at: 1580140763.253148
1747 number_done: 1
1748 number_failed: 0
1749 number_tasks: 1
1750 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1751 uuid: delete
1752 vim_wim_actions:
1753 - action: DELETE
1754 created_at: 1580140763.1099188
1755 datacenter_vim_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1756 error_msg: null
1757 extra: '{params: [9b6a2ac4-767e-4ec9-9497-8ba63084c77f, null]}'
1758 instance_action_id: ACTION-1580140763.054037
1759 item: instance_nets
1760 item_id: 8cb06b72-c71d-4b58-b419-95025fa651d3
1761 modified_at: 1580140763.1099188
1762 related: 8cb06b72-c71d-4b58-b419-95025fa651d3
1763 status: SUPERSEDED
1764 task_index: 0
1765 vim_id: null
1766 wim_account_id: null
1767 wim_internal_id: null
1768 worker: null
1769 """
1770
1771 db_vim_accounts_text = """
1772 ---
1773 - _admin:
1774 created: 1566818150.3024442
1775 current_operation: 0
1776 deployed:
1777 RO: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1778 RO-account: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1779 detailed-status: Done
1780 modified: 1566818150.3024442
1781 operationalState: ENABLED
1782 operations:
1783 - detailed-status: Done
1784 lcmOperationType: create
1785 operationParams: null
1786 operationState: COMPLETED
1787 startTime: 1566818150.3025382
1788 statusEnteredTime: 1566818150.3025382
1789 worker: 86434c2948e2
1790 projects_read:
1791 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1792 projects_write:
1793 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1794 _id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1795 description: some description here
1796 name: vim1
1797 schema_version: '1.1'
1798 vim_password: 5g0yGX86qIhprX86YTMcpg==
1799 vim_tenant_name: osm
1800 vim_type: openstack
1801 vim_url: http://10.95.87.162:5000/v2.0
1802 vim_user: osm
1803 - _admin:
1804 created: 1566818150.3024442
1805 current_operation: 0
1806 deployed:
1807 RO: 9ac17c0d-4265-4333-843b-c3cbd1f93f88
1808 RO-account: 011895dc-ab34-4c9f-b06f-401a8ffb073b
1809 detailed-status: Done
1810 modified: 1566818150.3024442
1811 operationalState: ENABLED
1812 operations:
1813 - detailed-status: Done
1814 lcmOperationType: create
1815 operationParams: null
1816 operationState: COMPLETED
1817 startTime: 1566818150.3025382
1818 statusEnteredTime: 1566818150.3025382
1819 worker: 86434c2948e2
1820 projects_read:
1821 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1822 projects_write:
1823 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1824 _id: 05357241-1a01-416f-9e02-af20f65f51cd
1825 description: No description
1826 name: vim2
1827 schema_version: '1.1'
1828 vim_password: 5g0yGX86qIhprX86YTMcpg==
1829 vim_tenant_name: osm
1830 vim_type: dumy
1831 vim_url: http://10.95.88.162:5000/v2.0
1832 vim_user: osm
1833 """
1834
1835 db_k8sclusters_text = """
1836 - _admin:
1837 created: 1575031378.9268339
1838 current_operation: 0
1839 modified: 1575031378.9268339
1840 operationalState: ENABLED
1841 operations:
1842 - detailed-status: ''
1843 lcmOperationType: create
1844 operationParams: null
1845 operationState: ''
1846 startTime: 1575031378.926895
1847 statusEnteredTime: 1575031378.926895
1848 worker: 36681ccf7f32
1849 projects_read:
1850 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1851 projects_write:
1852 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1853 helm-chart:
1854 id: 73d96432-d692-40d2-8440-e0c73aee209c
1855 created: True
1856 helm-chart-v3:
1857 id: 73d96432-d692-40d2-8440-e0c73aee209c
1858 created: True
1859 _id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1860 credentials:
1861 apiVersion: v1
1862 users:
1863 - name: admin
1864 user:
1865 password: qhpdogJXhBLG+JiYyyE0LeNsJXHkCSMy+sGVzlnJqes=
1866 username: admin
1867 description: Cluster3
1868 k8s_version: '1.15'
1869 name: cluster3
1870 namespace: kube-system
1871 nets:
1872 net1: None
1873 schema_version: '1.11'
1874 vim_account: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1875 """
1876
1877 db_vnfds_revisions_text = """
1878 ---
1879 - _admin:
1880 created: 1566823352.7154346
1881 modified: 1566823353.9295402
1882 onboardingState: ONBOARDED
1883 operationalState: ENABLED
1884 projects_read:
1885 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1886 projects_write:
1887 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1888 storage:
1889 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
1890 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1891 fs: local
1892 path: /app/storage/
1893 pkg-dir: hackfest_3charmed_vnfd
1894 zipfile: package.tar.gz
1895 type: vnfd
1896 usageState: NOT_IN_USE
1897 userDefinedData: {}
1898 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:1
1899 id: hackfest3charmed-vnf
1900 description: >-
1901 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
1902 with cloud-init
1903 product-name: hackfest3charmed-vnf
1904 version: '1.0'
1905 mgmt-cp: vnf-mgmt-ext
1906 virtual-compute-desc:
1907 - id: mgmt-compute
1908 virtual-cpu:
1909 num-virtual-cpu: 1
1910 virtual-memory:
1911 size: 1
1912 - id: data-compute
1913 virtual-cpu:
1914 num-virtual-cpu: 1
1915 virtual-memory:
1916 size: 1
1917 kdu:
1918 - juju-bundle: stable/native-kdu
1919 name: native-kdu
1920 virtual-storage-desc:
1921 - id: mgmt-storage
1922 block-storage-data:
1923 size-of-storage: 10
1924 - id: data-storage
1925 block-storage-data:
1926 size-of-storage: 10
1927
1928 sw-image-desc:
1929 - id: hackfest3-mgmt
1930 name: hackfest3-mgmt
1931
1932 vdu:
1933 - id: mgmtVM
1934 name: mgmtVM
1935 cloud-init-file: cloud-config.txt
1936 sw-image-desc: hackfest3-mgmt
1937 virtual-compute-desc: mgmt-compute
1938 virtual-storage-desc: mgmt-storage
1939 int-cpd:
1940 - id: vnf-mgmt
1941 order: 1
1942 virtual-network-interface-requirement:
1943 - name: mgmtVM-eth0
1944 virtual-interface:
1945 type: VIRTIO
1946 - id: mgmtVM-internal
1947 int-virtual-link-desc: internal
1948 order: 2
1949 virtual-network-interface-requirement:
1950 - name: mgmtVM-eth1
1951 virtual-interface:
1952 type: VIRTIO
1953 - id: dataVM
1954 name: dataVM
1955 sw-image-desc: hackfest3-mgmt
1956 virtual-compute-desc: data-compute
1957 virtual-storage-desc: data-storage
1958 int-cpd:
1959 - id: dataVM-internal
1960 int-virtual-link-desc: internal
1961 order: 1
1962 virtual-network-interface-requirement:
1963 - name: dataVM-eth1
1964 virtual-interface:
1965 type: VIRTIO
1966 - id: vnf-data
1967 order: 2
1968 virtual-network-interface-requirement:
1969 - name: dataVM-eth0
1970 virtual-interface:
1971 type: VIRTIO
1972 monitoring-parameter:
1973 - id: dataVM_cpu_util
1974 name: dataVM_cpu_util
1975 performance-metric: cpu_utilization
1976
1977 int-virtual-link-desc:
1978 - id: internal
1979
1980 ext-cpd:
1981 - id: vnf-mgmt-ext
1982 int-cpd: # Connection to int-cpd
1983 vdu-id: mgmtVM
1984 cpd: vnf-mgmt
1985 - id: vnf-data-ext
1986 int-cpd: # Connection to int-cpd
1987 vdu-id: dataVM
1988 cpd: vnf-data
1989
1990 df:
1991 - id: hackfest_default
1992 vdu-profile:
1993 - id: mgmtVM
1994 min-number-of-instances: 1
1995 - id: dataVM
1996 min-number-of-instances: 1
1997 max-number-of-instances: 10
1998 instantiation-level:
1999 - id: default
2000 vdu-level:
2001 - vdu-id: mgmtVM
2002 number-of-instances: 1
2003 - vdu-id: dataVM
2004 number-of-instances: 1
2005 scaling-aspect:
2006 - id: scale_dataVM
2007 name: scale_dataVM
2008 max-scale-level: 10
2009 aspect-delta-details:
2010 deltas:
2011 - id: delta1
2012 vdu-delta:
2013 - id: vdudelta1
2014 number-of-instances: 1
2015 scaling-policy:
2016 - name: auto_cpu_util_above_threshold
2017 scaling-type: automatic
2018 enabled: true
2019 threshold-time: 0
2020 cooldown-time: 60
2021 scaling-criteria:
2022 - name: cpu_util_above_threshold
2023 scale-in-relational-operation: LE
2024 scale-in-threshold: '15.0000000000'
2025 scale-out-relational-operation: GE
2026 scale-out-threshold: '60.0000000000'
2027 vnf-monitoring-param-ref: dataVM_cpu_util
2028 scaling-config-action:
2029 - trigger: post-scale-out
2030 vnf-config-primitive-name-ref: touch
2031 - trigger: pre-scale-in
2032 vnf-config-primitive-name-ref: touch
2033 lcm-operations-configuration:
2034 operate-vnf-op-config:
2035 day1-2:
2036 - id: hackfest3charmed-vnf
2037 execution-environment-list:
2038 - id: simple-ee
2039 juju:
2040 charm: simple
2041 initial-config-primitive:
2042 - seq: "1"
2043 execution-environment-ref: simple-ee
2044 name: config
2045 parameter:
2046 - name: ssh-hostname
2047 value: <rw_mgmt_ip>
2048 - name: ssh-username
2049 value: ubuntu
2050 - name: ssh-password
2051 value: osm4u
2052 - seq: "2"
2053 execution-environment-ref: simple-ee
2054 name: touch
2055 parameter:
2056 - name: filename
2057 value: <touch_filename>
2058 config-primitive:
2059 - name: touch
2060 execution-environment-ref: simple-ee
2061 parameter:
2062 - data-type: STRING
2063 default-value: <touch_filename2>
2064 name: filename
2065 """
2066
2067 db_vnfds_text = """
2068 ---
2069 - _admin:
2070 created: 1566823352.7154346
2071 modified: 1566823353.9295402
2072 onboardingState: ONBOARDED
2073 operationalState: ENABLED
2074 projects_read:
2075 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2076 projects_write:
2077 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2078 storage:
2079 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
2080 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2081 fs: local
2082 path: /app/storage/
2083 pkg-dir: hackfest_3charmed_vnfd
2084 zipfile: package.tar.gz
2085 type: vnfd
2086 usageState: NOT_IN_USE
2087 userDefinedData: {}
2088 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2089 id: hackfest3charmed-vnf
2090 description: >-
2091 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
2092 with cloud-init
2093 product-name: hackfest3charmed-vnf
2094 version: '1.0'
2095 mgmt-cp: vnf-mgmt-ext
2096 virtual-compute-desc:
2097 - id: mgmt-compute
2098 virtual-cpu:
2099 num-virtual-cpu: 1
2100 virtual-memory:
2101 size: 1
2102 - id: data-compute
2103 virtual-cpu:
2104 num-virtual-cpu: 1
2105 virtual-memory:
2106 size: 1
2107
2108 virtual-storage-desc:
2109 - id: mgmt-storage
2110 block-storage-data:
2111 size-of-storage: 10
2112 - id: data-storage
2113 block-storage-data:
2114 size-of-storage: 10
2115
2116 sw-image-desc:
2117 - id: hackfest3-mgmt
2118 name: hackfest3-mgmt
2119
2120 vdu:
2121 - id: mgmtVM
2122 name: mgmtVM
2123 cloud-init-file: cloud-config.txt
2124 sw-image-desc: hackfest3-mgmt
2125 virtual-compute-desc: mgmt-compute
2126 virtual-storage-desc: mgmt-storage
2127 int-cpd:
2128 - id: vnf-mgmt
2129 order: 1
2130 virtual-network-interface-requirement:
2131 - name: mgmtVM-eth0
2132 virtual-interface:
2133 type: VIRTIO
2134 - id: mgmtVM-internal
2135 int-virtual-link-desc: internal
2136 order: 2
2137 virtual-network-interface-requirement:
2138 - name: mgmtVM-eth1
2139 virtual-interface:
2140 type: VIRTIO
2141 - id: dataVM
2142 name: dataVM
2143 sw-image-desc: hackfest3-mgmt
2144 virtual-compute-desc: data-compute
2145 virtual-storage-desc: data-storage
2146 int-cpd:
2147 - id: dataVM-internal
2148 int-virtual-link-desc: internal
2149 order: 1
2150 virtual-network-interface-requirement:
2151 - name: dataVM-eth1
2152 virtual-interface:
2153 type: VIRTIO
2154 - id: vnf-data
2155 order: 2
2156 virtual-network-interface-requirement:
2157 - name: dataVM-eth0
2158 virtual-interface:
2159 type: VIRTIO
2160 monitoring-parameter:
2161 - id: dataVM_cpu_util
2162 name: dataVM_cpu_util
2163 performance-metric: cpu_utilization
2164
2165 int-virtual-link-desc:
2166 - id: internal
2167
2168 ext-cpd:
2169 - id: vnf-mgmt-ext
2170 int-cpd: # Connection to int-cpd
2171 vdu-id: mgmtVM
2172 cpd: vnf-mgmt
2173 - id: vnf-data-ext
2174 int-cpd: # Connection to int-cpd
2175 vdu-id: dataVM
2176 cpd: vnf-data
2177
2178 df:
2179 - id: hackfest_default
2180 vdu-profile:
2181 - id: mgmtVM
2182 min-number-of-instances: 1
2183 - id: dataVM
2184 min-number-of-instances: 1
2185 max-number-of-instances: 10
2186 instantiation-level:
2187 - id: default
2188 vdu-level:
2189 - vdu-id: mgmtVM
2190 number-of-instances: 1
2191 - vdu-id: dataVM
2192 number-of-instances: 1
2193 scaling-aspect:
2194 - id: scale_dataVM
2195 name: scale_dataVM
2196 max-scale-level: 10
2197 aspect-delta-details:
2198 deltas:
2199 - id: delta1
2200 vdu-delta:
2201 - id: vdudelta1
2202 number-of-instances: 1
2203 scaling-policy:
2204 - name: auto_cpu_util_above_threshold
2205 scaling-type: automatic
2206 enabled: true
2207 threshold-time: 0
2208 cooldown-time: 60
2209 scaling-criteria:
2210 - name: cpu_util_above_threshold
2211 scale-in-relational-operation: LE
2212 scale-in-threshold: '15.0000000000'
2213 scale-out-relational-operation: GE
2214 scale-out-threshold: '60.0000000000'
2215 vnf-monitoring-param-ref: dataVM_cpu_util
2216 scaling-config-action:
2217 - trigger: post-scale-out
2218 vnf-config-primitive-name-ref: touch
2219 - trigger: pre-scale-in
2220 vnf-config-primitive-name-ref: touch
2221 lcm-operations-configuration:
2222 operate-vnf-op-config:
2223 day1-2:
2224 - id: hackfest3charmed-vnf
2225 execution-environment-list:
2226 - id: simple-ee
2227 juju:
2228 charm: simple
2229 initial-config-primitive:
2230 - seq: "1"
2231 execution-environment-ref: simple-ee
2232 name: config
2233 parameter:
2234 - name: ssh-hostname
2235 value: <rw_mgmt_ip>
2236 - name: ssh-username
2237 value: ubuntu
2238 - name: ssh-password
2239 value: osm4u
2240 - seq: "2"
2241 execution-environment-ref: simple-ee
2242 name: touch
2243 parameter:
2244 - name: filename
2245 value: <touch_filename>
2246 config-primitive:
2247 - name: touch
2248 execution-environment-ref: simple-ee
2249 parameter:
2250 - data-type: STRING
2251 default-value: <touch_filename2>
2252 name: filename
2253
2254 - _admin:
2255 created: 1575031727.5383403
2256 modified: 1575031727.5383403
2257 onboardingState: ONBOARDED
2258 operationalState: ENABLED
2259 projects_read:
2260 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2261 projects_write:
2262 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2263 storage:
2264 descriptor: multikdu_knf/multikdu_vnfd.yaml
2265 folder: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2266 fs: local
2267 path: /app/storage/
2268 pkg-dir: multikdu_knf
2269 zipfile: multikdu_knf.tar.gz
2270 usageState: NOT_IN_USE
2271 userDefinedData: {}
2272 _id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2273 connection-point:
2274 - name: mgmt
2275 description: KNF with two KDU using helm-charts
2276 id: multikdu_knf
2277 df:
2278 - id: "default_df"
2279 k8s-cluster:
2280 nets:
2281 - external-connection-point-ref: mgmt
2282 id: mgmtnet
2283 kdu:
2284 - helm-chart: stable/openldap:1.2.1
2285 name: ldap
2286 - helm-chart: stable/mongodb
2287 name: mongo
2288 mgmt-interface:
2289 cp: mgmt
2290 name: multikdu_knf
2291 short-name: multikdu_knf
2292 vendor: Telefonica
2293 version: '1.0'
2294
2295 - _admin:
2296 created: 1575031727.5383403
2297 modified: 1575031727.5383403
2298 onboardingState: ONBOARDED
2299 operationalState: ENABLED
2300 projects_read:
2301 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2302 projects_write:
2303 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2304 storage:
2305 descriptor: native-kdu_knf/native-kdu_vnfd.yaml
2306 folder: d96b1cdf-5ad6-49f7-bf65-907ada989293
2307 fs: local
2308 path: /app/storage/
2309 pkg-dir: native-kdu_knf
2310 zipfile: native-kdu_knf.tar.gz
2311 usageState: NOT_IN_USE
2312 userDefinedData: {}
2313 _id: d96b1cdf-5ad6-49f7-bf65-907ada989293
2314 connection-point:
2315 - name: mgmt
2316 description: KNF with two KDU using juju-bundle
2317 df:
2318 - id: native-kdu
2319 kdu-resource-profile:
2320 - id: scale-app
2321 kdu-name: native-kdu
2322 min-number-of-instances: 1
2323 resource-name: app
2324 - id: scale-app2
2325 kdu-name: native-kdu
2326 min-number-of-instances: 1
2327 max-number-of-instances: 10
2328 resource-name: app2
2329 scaling-aspect:
2330 - id: kdu_scaling_group
2331 name: kdu_scaling_group
2332 max-scale-level: 10
2333 aspect-delta-details:
2334 deltas:
2335 - id: native-kdu-delta
2336 kdu-resource-delta:
2337 - id: scale-app
2338 number-of-instances: 1
2339 - id: kdu_scaling_group_2
2340 name: kdu_scaling_group_2
2341 max-scale-level: 10
2342 aspect-delta-details:
2343 deltas:
2344 - id: native-kdu-delta
2345 kdu-resource-delta:
2346 - id: scale-app
2347 number-of-instances: 1
2348 - id: scale-app2
2349 number-of-instances: 2
2350 lcm-operations-configuration:
2351 operate-vnf-op-config:
2352 day1-2:
2353 - id: native-kdu
2354 initial-config-primitive:
2355 - name: changecontent
2356 parameter:
2357 - data-type: STRING
2358 name: application-name
2359 value: nginx
2360 - data-type: STRING
2361 name: customtitle
2362 value: Initial Config Primitive
2363 seq: '1'
2364 id: native-kdu_knf
2365 k8s-cluster:
2366 nets:
2367 - external-connection-point-ref: mgmt
2368 id: mgmtnet
2369 kdu:
2370 - juju-bundle: stable/native-kdu
2371 name: native-kdu
2372 mgmt-interface:
2373 cp: mgmt
2374 name: native-kdu_knf
2375 short-name: native-kdu_knf
2376 vendor: Ulak Haberlesme A.S.
2377 version: '1.0'
2378 """
2379
2380 db_vnfrs_text = """
2381 ---
2382 - _admin:
2383 created: 1566823354.3668208
2384 modified: 1566823354.3668208
2385 nsState: NOT_INSTANTIATED
2386 projects_read:
2387 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2388 projects_write:
2389 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2390 _id: 88d90b0c-faff-4b9f-bccd-017f33985984
2391 additionalParamsForVnf:
2392 touch_filename: /home/ubuntu/first-touch-1
2393 touch_filename2: /home/ubuntu/second-touch-1
2394 connection-point:
2395 - connection-point-id: vnf-mgmt
2396 id: vnf-mgmt
2397 name: vnf-mgmt
2398 - connection-point-id: vnf-data
2399 id: vnf-data
2400 name: vnf-data
2401 created-time: 1566823354.36234
2402 id: 88d90b0c-faff-4b9f-bccd-017f33985984
2403 ip-address: 10.205.1.46
2404 member-vnf-index-ref: '1'
2405 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2406 vdur:
2407 - _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
2408 count-index: 0
2409 interfaces:
2410 - ip-address: 10.205.1.46
2411 mac-address: fa:16:3e:b4:3e:b1
2412 mgmt-vnf: true
2413 name: mgmtVM-eth0
2414 ns-vld-id: mgmt
2415 - ip-address: 192.168.54.2
2416 mac-address: fa:16:3e:6e:7e:78
2417 name: mgmtVM-eth1
2418 vnf-vld-id: internal
2419 internal-connection-point:
2420 - connection-point-id: mgmtVM-internal
2421 id: mgmtVM-internal
2422 name: mgmtVM-internal
2423 ip-address: 10.205.1.46
2424 name: ALF-1-mgmtVM-1
2425 status: ACTIVE
2426 status-detailed: null
2427 vdu-id-ref: mgmtVM
2428 vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
2429 ns-image-id: 0
2430 ns-flavor-id: 0
2431 affinity-or-anti-affinity-group-id : []
2432 - _id: ab453219-2d9a-45c2-864d-2c0788385028
2433 count-index: 0
2434 interfaces:
2435 - ip-address: 192.168.54.3
2436 mac-address: fa:16:3e:d9:7a:5d
2437 name: dataVM-eth0
2438 vnf-vld-id: internal
2439 - ip-address: 192.168.24.3
2440 mac-address: fa:16:3e:d1:6c:0d
2441 name: dataVM-xe0
2442 ns-vld-id: datanet
2443 internal-connection-point:
2444 - connection-point-id: dataVM-internal
2445 id: dataVM-internal
2446 name: dataVM-internal
2447 ip-address: null
2448 name: ALF-1-dataVM-1
2449 status: ACTIVE
2450 status-detailed: null
2451 vdu-id-ref: dataVM
2452 vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
2453 ns-image-id: 0
2454 ns-flavor-id: 0
2455 affinity-or-anti-affinity-group-id : []
2456 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2457 vld:
2458 - id: internal
2459 name: ALF-internal
2460 status: ACTIVE
2461 status-detailed: null
2462 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2463 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2464 vnfd-ref: hackfest3charmed-vnf
2465 - _admin:
2466 created: 1566823354.3668208
2467 modified: 1566823354.3668208
2468 nsState: NOT_INSTANTIATED
2469 projects_read:
2470 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2471 projects_write:
2472 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2473 _id: 6421c7c9-d865-4fb4-9a13-d4275d243e01
2474 additionalParamsForVnf:
2475 touch_filename: /home/ubuntu/first-touch-1
2476 touch_filename2: /home/ubuntu/second-touch-1
2477 connection-point:
2478 - connection-point-id: vnf-mgmt
2479 id: vnf-mgmt
2480 name: vnf-mgmt
2481 - connection-point-id: vnf-data
2482 id: vnf-data
2483 name: vnf-data
2484 created-time: 1566823354.36234
2485 id: 6421c7c9-d865-4fb4-9a13-d4275d243e01
2486 ip-address: 10.205.1.46
2487 member-vnf-index-ref: '1'
2488 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2489 vdur:
2490 - _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
2491 count-index: 0
2492 interfaces:
2493 - ip-address: 10.205.1.46
2494 mac-address: fa:16:3e:b4:3e:b1
2495 mgmt-vnf: true
2496 name: mgmtVM-eth0
2497 ns-vld-id: mgmt
2498 - ip-address: 192.168.54.2
2499 mac-address: fa:16:3e:6e:7e:78
2500 name: mgmtVM-eth1
2501 vnf-vld-id: internal
2502 internal-connection-point:
2503 - connection-point-id: mgmtVM-internal
2504 id: mgmtVM-internal
2505 name: mgmtVM-internal
2506 ip-address: 10.205.1.46
2507 name: ALF-1-mgmtVM-1
2508 status: ACTIVE
2509 status-detailed: null
2510 vdu-id-ref: mgmtVM
2511 vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
2512 ns-image-id: 0
2513 ns-flavor-id: 0
2514 affinity-or-anti-affinity-group-id : []
2515 - _id: ab453219-2d9a-45c2-864d-2c0788385028
2516 count-index: 0
2517 interfaces:
2518 - ip-address: 192.168.54.3
2519 mac-address: fa:16:3e:d9:7a:5d
2520 name: dataVM-eth0
2521 vnf-vld-id: internal
2522 - ip-address: 192.168.24.3
2523 mac-address: fa:16:3e:d1:6c:0d
2524 name: dataVM-xe0
2525 ns-vld-id: datanet
2526 internal-connection-point:
2527 - connection-point-id: dataVM-internal
2528 id: dataVM-internal
2529 name: dataVM-internal
2530 ip-address: null
2531 name: ALF-1-dataVM-1
2532 status: ACTIVE
2533 status-detailed: null
2534 vdu-id-ref: dataVM
2535 vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
2536 ns-image-id: 0
2537 ns-flavor-id: 0
2538 affinity-or-anti-affinity-group-id : []
2539 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2540 vld:
2541 - id: internal
2542 name: ALF-internal
2543 status: ACTIVE
2544 status-detailed: null
2545 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2546 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2547 vnfd-ref: hackfest3charmed-vnf
2548 - _admin:
2549 created: 1566823354.3703845
2550 modified: 1566823354.3703845
2551 nsState: NOT_INSTANTIATED
2552 projects_read:
2553 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2554 projects_write:
2555 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2556 _id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
2557 additionalParamsForVnf:
2558 touch_filename: /home/ubuntu/first-touch-2
2559 touch_filename2: /home/ubuntu/second-touch-2
2560 connection-point:
2561 - connection-point-id: vnf-mgmt
2562 id: vnf-mgmt
2563 name: vnf-mgmt
2564 - connection-point-id: vnf-data
2565 id: vnf-data
2566 name: vnf-data
2567 created-time: 1566823354.36234
2568 id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
2569 ip-address: 10.205.1.47
2570 member-vnf-index-ref: '2'
2571 nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2572 vdur:
2573 - _id: 190b4a2c-4f85-4cfe-9406-4cef7ffb1e67
2574 count-index: 0
2575 interfaces:
2576 - ip-address: 10.205.1.47
2577 mac-address: fa:16:3e:cb:9f:c7
2578 mgmt-vnf: true
2579 name: mgmtVM-eth0
2580 ns-vld-id: mgmt
2581 - ip-address: 192.168.231.1
2582 mac-address: fa:16:3e:1a:89:24
2583 name: mgmtVM-eth1
2584 vnf-vld-id: internal
2585 internal-connection-point:
2586 - connection-point-id: mgmtVM-internal
2587 id: mgmtVM-internal
2588 name: mgmtVM-internal
2589 ip-address: 10.205.1.47
2590 name: ALF-2-mgmtVM-1
2591 status: ACTIVE
2592 status-detailed: null
2593 vdu-id-ref: mgmtVM
2594 vim-id: 248077b2-e3b8-4a37-8b72-575abb8ed912
2595 ns-image-id: 0
2596 ns-flavor-id: 0
2597 affinity-or-anti-affinity-group-id : []
2598 - _id: 889b874d-e1c3-4e75-aa45-53a9b0ddabd9
2599 count-index: 0
2600 interfaces:
2601 - ip-address: 192.168.231.3
2602 mac-address: fa:16:3e:7e:ba:8c
2603 name: dataVM-eth0
2604 vnf-vld-id: internal
2605 - ip-address: 192.168.24.4
2606 mac-address: fa:16:3e:d2:e1:f5
2607 name: dataVM-xe0
2608 ns-vld-id: datanet
2609 internal-connection-point:
2610 - connection-point-id: dataVM-internal
2611 id: dataVM-internal
2612 name: dataVM-internal
2613 ip-address: null
2614 name: ALF-2-dataVM-1
2615 status: ACTIVE
2616 status-detailed: null
2617 vdu-id-ref: dataVM
2618 vim-id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
2619 ns-image-id: 0
2620 ns-flavor-id: 0
2621 affinity-or-anti-affinity-group-id : []
2622 vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2623 vld:
2624 - id: internal
2625 name: ALF-internal
2626 status: ACTIVE
2627 status-detailed: null
2628 vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2629 vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2630 vnfd-ref: hackfest3charmed-vnf
2631 - _admin:
2632 created: 1575034637.009597
2633 modified: 1575034637.009597
2634 nsState: NOT_INSTANTIATED
2635 projects_read:
2636 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2637 projects_write:
2638 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2639 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2640 additionalParamsForVnf: null
2641 connection-point:
2642 - connection-point-id: null
2643 id: null
2644 name: mgmt
2645 created-time: 1575034636.9990137
2646 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2647 ip-address: null
2648 k8s-cluster:
2649 nets:
2650 - external-connection-point-ref: mgmt
2651 id: mgmtnet
2652 ns-vld-id: mgmtnet
2653 vim_net: internal
2654 kdur:
2655 - ip-address: null
2656 k8s-cluster:
2657 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2658 kdu-name: ldap
2659 helm-chart: stable/openldap:1.2.1
2660 - ip-address: null
2661 k8s-cluster:
2662 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2663 kdu-name: mongo
2664 helm-chart: stable/mongodb
2665 member-vnf-index-ref: multikdu
2666 nsr-id-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
2667 vdur: []
2668 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
2669 vnfd-id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2670 vnfd-ref: multikdu_knf
2671
2672 - _admin:
2673 created: 1575034637.009597
2674 modified: 1575034637.009597
2675 nsState: NOT_INSTANTIATED
2676 projects_read:
2677 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2678 projects_write:
2679 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2680 _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2681 additionalParamsForVnf: null
2682 connection-point:
2683 - connection-point-id: null
2684 id: null
2685 name: mgmt
2686 created-time: 1575034636.9990137
2687 id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2688 ip-address: null
2689 k8s-cluster:
2690 nets:
2691 - external-connection-point-ref: mgmt
2692 id: mgmtnet
2693 ns-vld-id: mgmtnet
2694 vim_net: internal
2695 kdur:
2696 - ip-address: null
2697 juju-bundle: app-bundle
2698 k8s-cluster:
2699 id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2700 kdu-name: native-kdu
2701 member-vnf-index-ref: native-kdu
2702 nsr-id-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
2703 vdur: []
2704 vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
2705 vnfd-id: d96b1cdf-5ad6-49f7-bf65-907ada989293
2706 vnfd-ref: native-kdu_knf
2707
2708 - _id: a6df8aa0-1271-4dfc-85a5-e0484fea303f
2709 id: a6df8aa0-1271-4dfc-85a5-e0484fea303f
2710 nsr-id-ref: 52f0b3ac-1574-481f-a48f-528fc02912f7
2711 member-vnf-index-ref: '1'
2712 additionalParamsForVnf:
2713 created-time: 1652105830.965044
2714 vnfd-ref: ha_proxy_charm-vnf
2715 vnfd-id: 8b42078a-9d42-4def-8b5d-7dd0f041d078
2716 vim-account-id: dff4014e-bb5e-441a-a28d-6dd5d86c7175
2717 vca-id:
2718 vdur:
2719 - _id: 392e010d-3a39-4516-acc0-76993c19691f
2720 alt-image-ids:
2721 - '1'
2722 - '2'
2723 - '3'
2724 cloud-init: 8b42078a-9d42-4def-8b5d-7dd0f041d078:file:cloud-config.txt
2725 count-index: 0
2726 id: 392e010d-3a39-4516-acc0-76993c19691f
2727 internal-connection-point:
2728 - connection-point-id: mgmtVM-eth0-int
2729 id: mgmtVM-eth0-int
2730 name: mgmtVM-eth0-int
2731 - connection-point-id: dataVM-xe0-int
2732 id: dataVM-xe0-int
2733 name: dataVM-xe0-int
2734 ip-address: 10.45.28.134
2735 ns-flavor-id: '0'
2736 ns-image-id: '0'
2737 ssh-access-required: true
2738 vdu-id-ref: mgmtVM
2739 vdu-name: mgmtVM
2740 vim_info:
2741 vim:05357241-1a01-416f-9e02-af20f65f51cd:
2742 vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2743 vim_status: ACTIVE
2744 vim_name: test_ns_ch-1-mgmtVM-0
2745 status: ACTIVE
2746 vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2747 name: test_ns_ch-1-mgmtVM-0
2748 vim_details:
2749 vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2750 vim_status: DONE
2751 vim_message:
2752 ip-address: 10.45.28.134
2753 _admin:
2754 created: 1652105830.9652078
2755 modified: 1652105830.9652078
2756 projects_read:
2757 - e38990e1-6724-4292-ab6f-2ecc109f9af4
2758 projects_write:
2759 - e38990e1-6724-4292-ab6f-2ecc109f9af4
2760 nsState: INSTANTIATED
2761 vdu:
2762 status: DONE
2763 vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2764 """
2765
2766 db_nslcmops_scale_text = """
2767 ---
2768 - _admin:
2769 created: 1565250912.2643092
2770 modified: 1570026174.83263
2771 projects_read:
2772 - d3581c99-31e3-45f9-b45c-49a290faedbc
2773 current_operation: '5'
2774 deployed:
2775 RO: d9aea288-b9b1-11e9-b19e-02420aff0006
2776 RO-account: d9bb2f1c-b9b1-11e9-b19e-02420aff0006
2777 detailed-status: Done
2778 modified: 1565250912.2643092
2779 operationalState: ENABLED
2780 operations:
2781 - member_vnf_index: '1'
2782 primitive: touch
2783 primitive_params: /home/ubuntu/last-touch-1
2784 operationState: COMPLETED
2785 detailed-status: Done
2786 - member_vnf_index: '1'
2787 primitive: touch
2788 primitive_params: /home/ubuntu/last-touch-2
2789 operationState: COMPLETED
2790 detailed-status: Done
2791 - member_vnf_index: '2'
2792 primitive: touch
2793 primitive_params: /home/ubuntu/last-touch-3
2794 operationState: COMPLETED
2795 detailed-status: Done
2796 projects_read:
2797 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2798 projects_write:
2799 - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2800 worker: c4055a07655b
2801 deploy:
2802 RO: ACTION-1570026232.061742
2803 _id: 053967e8-7c1c-400f-ae82-3d45b291374b
2804 lcmOperationType: scale
2805 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2806 statusEnteredTime: 1570026243.09784
2807 startTime: 1570026174.8326
2808 operationParams:
2809 lcmOperationType: scale
2810 nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2811 scaleVnfData:
2812 scaleByStepData:
2813 member-vnf-index: '1'
2814 scaling-group-descriptor: scale_scaling_group
2815 scaleVnfType: SCALE_IN
2816 scaleType: SCALE_VNF
2817 isAutomaticInvocation: false
2818 isCancelPending: false
2819 id: 053967e8-7c1c-400f-ae82-3d45b291374b
2820 links:
2821 nsInstance: "/osm/nslcm/v1/ns_instances/90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b"
2822 self: "/osm/nslcm/v1/ns_lcm_op_occs/053967e8-7c1c-400f-ae82-3d45b291374b"
2823 operationState: COMPLETED
2824 detailed-status: done
2825 """
2826
2827 ro_update_action_text = """
2828 action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
2829 details: progress 1/1
2830 nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
2831 status: DONE
2832 tasks:
2833 - action: DELETE
2834 action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
2835 item: vdu
2836 nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
2837 status: FINISHED
2838 target_record: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.0.vim_info.vim:2a3dc443-415b-4865-8420-f804b993c5a3
2839 target_record_id: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.e03e2281-c70e-44ef-ac3b-052b81efd31d
2840 task_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d:0
2841 """
2842
2843 test_ids = {
2844 # contains the ids of ns and operations of every test
2845 "TEST-A": {
2846 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2847 "instantiate": "a639fac7-e0bb-4225-8ecb-c1f8efcc125e",
2848 "terminate": "a639fac7-e0bb-4225-ffff-c1f8efcc125e",
2849 "update": "6bd4362f-da74-4bd8-a825-fd00e610c644",
2850 },
2851 "TEST-KDU": {
2852 "ns": "0bcb701c-ee4d-41ab-8ee6-f4156f7f114d",
2853 "instantiate": "cf3aa178-7640-4174-b921-2330e6f2aad6",
2854 "terminate": None,
2855 },
2856 "TEST-NATIVE-KDU": {
2857 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2858 "instantiate": "52770491-a765-40ce-97a1-c6e200bba7b3",
2859 "terminate": None,
2860 },
2861 "TEST-NATIVE-KDU-2": {
2862 "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2863 "instantiate": "4013bbd2-b151-40ee-bcef-7e24ce5432f6",
2864 "terminate": None,
2865 },
2866 "TEST-UPDATE": {
2867 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2868 "vnf": "88d90b0c-faff-4b9f-bccd-017f33985984",
2869 "removeVnf": "a639fac7-e0bb-4225-8ecb-c1f8efcc125f",
2870 },
2871 "TEST-OP-VNF": {
2872 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2873 "nslcmops": "1bd4b60a-e15d-49e5-b75e-2b3224f15dda",
2874 "nslcmops1": "6eace44b-2ef4-4de5-b15f-63f2e8898bfb",
2875 "vnfrs": "a6df8aa0-1271-4dfc-85a5-e0484fea303f",
2876 },
2877 "TEST-V-SCALE": {
2878 "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2879 "instantiate-1": "8b838aa8-53a3-4955-80bd-fbba6a7957ed",
2880 "instantiate": "a21af1d4-7f1a-4f7b-b666-222315113a62",
2881 },
2882 }