Code Coverage

Cobertura Coverage Report > osm_lcm.tests >

test_db_descriptors.py

Trend

File Coverage summary

NameClassesLinesConditionals
test_db_descriptors.py
100%
1/1
100%
13/13
100%
0/0

Coverage Breakdown by Class

NameLinesConditionals
test_db_descriptors.py
100%
13/13
N/A

Source

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 1 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 1 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 1 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: "model_name.application_name.machine_id"
533                 ee_descriptor_id: f48163a6-c807-47bc-9682-f72caef5af85.alf-c-ab
534                 needed_terminate: True
535                 detailed-status: Ready!
536                 member-vnf-index: hackfest_vnf1
537                 model: f48163a6-c807-47bc-9682-f72caef5af85
538                 operational-status: active
539                 primitive_id: null
540                 ssh-public-key: ssh-rsa pub-key root@juju-145d3e-0
541                 step: ssh-public-key-obtained
542                 vdu_count_index: null
543                 vdu_id: null
544                 vdu_name: null
545                 type: lxc_proxy_charm
546                 vnfd_id: hackfest3charmed-vnf
547                 config_sw_installed: true
548             VCA-model-name: f48163a6-c807-47bc-9682-f72caef5af85
549         modified: 1566823354.3716335
550         nsState: INSTANTIATED
551         nslcmop: null
552         projects_read:
553         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
554         projects_write:
555         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
556     _id: f48163a6-c807-47bc-9682-f72caef5af85
557     additionalParamsForNs: null
558     admin-status: ENABLED
559     config-status: init
560     constituent-vnfr-ref:
561     - 88d90b0c-faff-4b9f-bccd-017f33985984
562     - 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
563     create-time: 1566823354.36234
564     datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
565     description: default description
566     vcaStatus:
567         8c707f16-2d9b-49d6-af5e-2ce9985b2adf:
568             applications:
569                 app-vnf-1fb8538dfc39:
570                     can_upgrade_to: ''
571                     charm: 'local:xenial/simple-1'
572                     charm_profile: ''
573                     charm_version: ''
574                     endpoint_bindings: null
575                     err: null
576                     exposed: false
577                     int_: null
578                     life: ''
579                     meter_statuses: { }
580                     provider_id: null
581                     public_address: ''
582                     relations: { }
583                     series: xenial
584                     status:
585                         data: { }
586                         err: null
587                         info: Ready!
588                         kind: ''
589                         life: ''
590                         since: '2021-02-17T08:39:54.239185095Z'
591                         status: active
592                         unknown_fields: { }
593                         version: ''
594                     subordinate_to: [ ]
595                     units:
596                         app-vnf-1fb8538dfc39/0:
597                             address: null
598                             agent_status:
599                                 data: { }
600                                 err: null
601                                 info: ''
602                                 kind: ''
603                                 life: ''
604                                 since: '2021-02-17T08:52:18.077155028Z'
605                                 status: idle
606                                 unknown_fields: { }
607                                 version: 2.8.1
608                             charm: ''
609                             leader: true
610                             machine: '0'
611                             opened_ports: null
612                             provider_id: null
613                             public_address: 10.151.40.53
614                             subordinates: { }
615                             unknown_fields: { }
616                             workload_status:
617                                 data: { }
618                                 err: null
619                                 info: Ready!
620                                 kind: ''
621                                 life: ''
622                                 since: '2021-02-17T08:39:54.239185095Z'
623                                 status: active
624                                 unknown_fields: { }
625                                 version: ''
626                             workload_version: ''
627                     unknown_fields:
628                         charm-verion: ''
629                     workload_version: ''
630                     actions:
631                         generate-ssh-key: >-
632                             Generate a new SSH keypair for this unit. This will replace any
633                             existing previously generated keypair.
634                         get-ssh-public-key: Get the public SSH key for this unit.
635                         reboot: Reboot the VNF virtual machine.
636                         restart: Stop the service on the VNF.
637                         run: Run an arbitrary command
638                         start: Stop the service on the VNF.
639                         stop: Stop the service on the VNF.
640                         touch: Touch a file on the VNF.
641                         upgrade: Upgrade the software on the VNF.
642                         verify-ssh-credentials: >-
643                             Verify that this unit can authenticate with server specified by
644                             ssh-hostname and ssh-username.
645                     configs:
646                         boolean-option:
647                             default: false
648                             description: A short description of the configuration option
649                             source: default
650                             type: boolean
651                             value: false
652                         int-option:
653                             default: 9001
654                             description: A short description of the configuration option
655                             source: default
656                             type: int
657                             value: 9001
658                         ssh-hostname:
659                             default: ''
660                             description: The hostname or IP address of the machine to
661                             source: user
662                             type: string
663                             value: 192.168.61.90
664                         ssh-key-bits:
665                             default: 4096
666                             description: The number of bits to use for the SSH key.
667                             source: default
668                             type: int
669                             value: 4096
670                         ssh-key-type:
671                             default: rsa
672                             description: The type of encryption to use for the SSH key.
673                             source: default
674                             type: string
675                             value: rsa
676                         ssh-password:
677                             default: ''
678                             description: The password used to authenticate.
679                             source: user
680                             type: string
681                             value: osm4u
682                         ssh-private-key:
683                             default: ''
684                             description: DEPRECATED. The private ssh key to be used to authenticate.
685                             source: default
686                             type: string
687                             value: ''
688                         ssh-public-key:
689                             default: ''
690                             description: The public key of this unit.
691                             source: default
692                             type: string
693                             value: ''
694                         ssh-username:
695                             default: ''
696                             description: The username to login as.
697                             source: user
698                             type: string
699                             value: ubuntu
700                         string-option:
701                             default: Default Value
702                             description: A short description of the configuration option
703                             source: default
704                             type: string
705                             value: Default Value
706                 app-vnf-943ab4274bb6:
707                     can_upgrade_to: ''
708                     charm: 'local:xenial/simple-0'
709                     charm_profile: ''
710                     charm_version: ''
711                     endpoint_bindings: null
712                     err: null
713                     exposed: false
714                     int_: null
715                     life: ''
716                     meter_statuses: { }
717                     provider_id: null
718                     public_address: ''
719                     relations: { }
720                     series: xenial
721                     status:
722                         data: { }
723                         err: null
724                         info: Ready!
725                         kind: ''
726                         life: ''
727                         since: '2021-02-17T08:39:15.165682713Z'
728                         status: active
729                         unknown_fields: { }
730                         version: ''
731                     subordinate_to: [ ]
732                     units:
733                         app-vnf-943ab4274bb6/0:
734                             address: null
735                             agent_status:
736                                 data: { }
737                                 err: null
738                                 info: ''
739                                 kind: ''
740                                 life: ''
741                                 since: '2021-02-17T08:46:06.473054303Z'
742                                 status: idle
743                                 unknown_fields: { }
744                                 version: 2.8.1
745                             charm: ''
746                             leader: true
747                             machine: '1'
748                             opened_ports: null
749                             provider_id: null
750                             public_address: 10.151.40.117
751                             subordinates: { }
752                             unknown_fields: { }
753                             workload_status:
754                                 data: { }
755                                 err: null
756                                 info: Ready!
757                                 kind: ''
758                                 life: ''
759                                 since: '2021-02-17T08:39:15.165682713Z'
760                                 status: active
761                                 unknown_fields: { }
762                                 version: ''
763                             workload_version: ''
764                     unknown_fields:
765                         charm-verion: ''
766                     workload_version: ''
767                     actions:
768                         generate-ssh-key: >-
769                             Generate a new SSH keypair for this unit. This will replace any
770                             existing previously generated keypair.
771                         get-ssh-public-key: Get the public SSH key for this unit.
772                         reboot: Reboot the VNF virtual machine.
773                         restart: Stop the service on the VNF.
774                         run: Run an arbitrary command
775                         start: Stop the service on the VNF.
776                         stop: Stop the service on the VNF.
777                         touch: Touch a file on the VNF.
778                         upgrade: Upgrade the software on the VNF.
779                         verify-ssh-credentials: >-
780                             Verify that this unit can authenticate with server specified by
781                             ssh-hostname and ssh-username.
782                     configs:
783                         boolean-option:
784                             default: false
785                             description: A short description of the configuration option
786                             source: default
787                             type: boolean
788                             value: false
789                         int-option:
790                             default: 9001
791                             description: A short description of the configuration option
792                             source: default
793                             type: int
794                             value: 9001
795                         ssh-hostname:
796                             default: ''
797                             description: The hostname or IP address of the machine to
798                             source: user
799                             type: string
800                             value: 192.168.61.72
801                         ssh-key-bits:
802                             default: 4096
803                             description: The number of bits to use for the SSH key.
804                             source: default
805                             type: int
806                             value: 4096
807                         ssh-key-type:
808                             default: rsa
809                             description: The type of encryption to use for the SSH key.
810                             source: default
811                             type: string
812                             value: rsa
813                         ssh-password:
814                             default: ''
815                             description: The password used to authenticate.
816                             source: user
817                             type: string
818                             value: osm4u
819                         ssh-private-key:
820                             default: ''
821                             description: DEPRECATED. The private ssh key to be used to authenticate.
822                             source: default
823                             type: string
824                             value: ''
825                         ssh-public-key:
826                             default: ''
827                             description: The public key of this unit.
828                             source: default
829                             type: string
830                             value: ''
831                         ssh-username:
832                             default: ''
833                             description: The username to login as.
834                             source: user
835                             type: string
836                             value: ubuntu
837                         string-option:
838                             default: Default Value
839                             description: A short description of the configuration option
840                             source: default
841                             type: string
842                             value: Default Value
843             branches: { }
844             controller_timestamp: '2021-02-17T09:17:38.006569064Z'
845             machines:
846                 '0':
847                     agent_status:
848                         data: { }
849                         err: null
850                         info: ''
851                         kind: ''
852                         life: ''
853                         since: '2021-02-17T08:37:46.637167056Z'
854                         status: started
855                         unknown_fields: { }
856                         version: 2.8.1
857                     constraints: ''
858                     containers: { }
859                     display_name: ''
860                     dns_name: 10.151.40.53
861                     hardware: arch=amd64 cores=0 mem=0M
862                     has_vote: false
863                     id_: '0'
864                     instance_id: juju-0f027b-0
865                     instance_status:
866                         data: { }
867                         err: null
868                         info: Running
869                         kind: ''
870                         life: ''
871                         since: '2021-02-17T08:35:58.435458338Z'
872                         status: running
873                         unknown_fields: { }
874                         version: ''
875                     ip_addresses:
876                         - 10.151.40.53
877                     jobs:
878                         - JobHostUnits
879                     lxd_profiles: { }
880                     modification_status:
881                         data: { }
882                         err: null
883                         info: ''
884                         kind: ''
885                         life: ''
886                         since: '2021-02-17T08:35:34.663795891Z'
887                         status: idle
888                         unknown_fields: { }
889                         version: ''
890                     network_interfaces:
891                         eth0:
892                             dns_nameservers: null
893                             gateway: 10.151.40.1
894                             ip_addresses:
895                                 - 10.151.40.53
896                             is_up: true
897                             mac_address: '00:16:3e:99:bf:c7'
898                             space: null
899                             unknown_fields: { }
900                     primary_controller_machine: null
901                     series: xenial
902                     unknown_fields: { }
903
904                     wants_vote: false
905                 '1':
906                     agent_status:
907                         data: { }
908                         err: null
909                         info: ''
910                         kind: ''
911                         life: ''
912                         since: '2021-02-17T08:37:00.893313184Z'
913                         status: started
914                         unknown_fields: { }
915                         version: 2.8.1
916                     constraints: ''
917                     containers: { }
918                     display_name: ''
919                     dns_name: 10.151.40.117
920                     hardware: arch=amd64 cores=0 mem=0M
921                     has_vote: false
922                     id_: '1'
923                     instance_id: juju-0f027b-1
924                     instance_status:
925                         data: { }
926                         err: null
927                         info: Running
928                         kind: ''
929                         life: ''
930                         since: '2021-02-17T08:36:23.354547217Z'
931                         status: running
932                         unknown_fields: { }
933                         version: ''
934                     ip_addresses:
935                         - 10.151.40.117
936                     jobs:
937                         - JobHostUnits
938                     lxd_profiles: { }
939                     modification_status:
940                         data: { }
941                         err: null
942                         info: ''
943                         kind: ''
944                         life: ''
945                         since: '2021-02-17T08:35:34.768829507Z'
946                         status: idle
947                         unknown_fields: { }
948                         version: ''
949                     network_interfaces:
950                         eth0:
951                             dns_nameservers: null
952                             gateway: 10.151.40.1
953                             ip_addresses:
954                                 - 10.151.40.117
955                             is_up: true
956                             mac_address: '00:16:3e:99:fe:1c'
957                             space: null
958                             unknown_fields: { }
959                     primary_controller_machine: null
960                     series: xenial
961                     unknown_fields: { }
962                     wants_vote: false
963             model:
964                 available_version: ''
965                 cloud_tag: cloud-localhost
966                 migration: null
967                 name: 7c707f16-2d9b-49d6-af5e-2ce9985b2adf
968                 region: localhost
969                 unknown_fields:
970                     meter-status:
971                         color: ''
972                         message: ''
973                     model-status:
974                         data: { }
975                         info: ''
976                         kind: ''
977
978                         life: ''
979                         since: '2021-02-17T08:35:31.856691457Z'
980                         status: available
981                         version: ''
982                     sla: unsupported
983                     type: iaas
984                 version: 2.8.1
985             offers: { }
986             relations: [ ]
987             remote_applications: { }
988             unknown_fields: { }
989             executedActions:
990                 -   id: '6'
991                     action: touch
992                     status: completed
993                     Code: '0'
994                     output: ''
995                 -   id: '4'
996                     action: touch
997                     status: completed
998                     Code: '0'
999                     output: ''
1000                 -   id: '2'
1001                     action: verify-ssh-credentials
1002                     status: completed
1003                     Code: '0'
1004                     output: ALF-1-mgmtvm-1
1005                     verified: 'True'
1006     detailed-status: 'ERROR executing proxy charm initial primitives for member_vnf_index=1
1007         vdu_id=None: charm error executing primitive verify-ssh-credentials for member_vnf_index=1
1008         vdu_id=None: ''timeout after 600 seconds'''
1009     id: f48163a6-c807-47bc-9682-f72caef5af85
1010     instantiate_params:
1011         nsDescription: default description
1012         nsName: ALF
1013         nsdId: 8c2f8b95-bb1b-47ee-8001-36dc090678da
1014         vimAccountId: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1015     name: ALF
1016     name-ref: ALF
1017     ns-instance-config-ref: f48163a6-c807-47bc-9682-f72caef5af85
1018     nsd:
1019         _admin:
1020             created: 1566823353.971486
1021             modified: 1566823353.971486
1022             onboardingState: ONBOARDED
1023             operationalState: ENABLED
1024             projects_read:
1025             - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1026             projects_write:
1027             - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1028             storage:
1029                 descriptor: hackfest_3charmed_nsd/hackfest_3charmed_nsd.yaml
1030                 folder: 8c2f8b95-bb1b-47ee-8001-36dc090678da
1031                 fs: local
1032                 path: /app/storage/
1033                 pkg-dir: hackfest_3charmed_nsd
1034                 zipfile: package.tar.gz
1035             usageState: NOT_IN_USE
1036             userDefinedData: {}
1037         _id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
1038         id: hackfest3charmed-ns
1039         name: hackfest3charmed-ns
1040         description: NS with 2 VNFs hackfest3charmed-vnf connected by datanet and mgmtnet VLs
1041         designer: OSM
1042         version: '1.0'
1043         vnfd-id:
1044           - hackfest3charmed-vnf
1045         virtual-link-desc:
1046           - id: mgmt
1047             mgmt-network: "true"
1048           - id: datanet
1049             mgmt-network: "false"
1050         df:
1051           - id: hackfest_charmed_DF
1052             vnf-profile:
1053               - id: hackfest_vnf1 # member-vnf-index-ref: 1
1054                 vnfd-id: hackfest3charmed-vnf
1055                 virtual-link-connectivity:
1056                   - virtual-link-profile-id: mgmt
1057                     constituent-cpd-id:
1058                       - constituent-base-element-id: hackfest_vnf1
1059                         constituent-cpd-id: vnf-mgmt-ext
1060                   - virtual-link-profile-id: datanet
1061                     constituent-cpd-id:
1062                       - constituent-base-element-id: hackfest_vnf1
1063                         constituent-cpd-id: vnf-data-ext
1064               - id: hackfest_vnf2 # member-vnf-index-ref: 2
1065                 vnfd-id: hackfest3charmed-vnf
1066                 virtual-link-connectivity:
1067                   - virtual-link-profile-id: mgmt
1068                     constituent-cpd-id:
1069                       - constituent-base-element-id: hackfest_vnf2
1070                         constituent-cpd-id: vnf-mgmt-ext
1071                   - virtual-link-profile-id: datanet
1072                     constituent-cpd-id:
1073                       - constituent-base-element-id: hackfest_vnf2
1074                         constituent-cpd-id: vnf-data-ext
1075     nsd-id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
1076     nsd-name-ref: hackfest3charmed-ns
1077     nsd-ref: hackfest3charmed-ns
1078     operational-events: []
1079     operational-status: running
1080     orchestration-progress: {}
1081     resource-orchestrator: osmopenmano
1082     nsState: INSTANTIATED
1083     short-name: ALF
1084     ssh-authorized-key: null
1085     flavor : [{"vcpu-count":1,"memory-mb":1024,"storage-gb":"10","vim_info":[],"name":"mgmtVM-flv","id":"0"}]
1086     affinity-or-anti-affinity-group : []
1087     image : [ { "image" : "ubuntu16.04", "vim_info" : [ ], "id" : "0" } ]
1088     vld:
1089     -   id: mgmt
1090         name: null
1091         status: ACTIVE
1092         status-detailed: null
1093         vim-id: f99ae780-0e2f-4985-af41-574eae6919c0
1094         vim-network-name: mgmt
1095     -   id: datanet
1096         name: ALF-datanet
1097         status: ACTIVE
1098         status-detailed: null
1099         vim-id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1100     vnfd-id:
1101     - 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1102 -   _admin:
1103         created: 1575034637.011233
1104         current-operation: null
1105         deployed:
1106             K8s:
1107             -   k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
1108                 kdu-instance: stable-mongodb-0086856106
1109                 kdu-model: stable/mongodb
1110                 kdu-name: mongo
1111                 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1112             -   k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
1113                 kdu-instance: stable-openldap-0092830263
1114                 kdu-model: stable/mongodb
1115                 kdu-name: mongo
1116                 vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1117             RO:
1118                 detailed-status: Deployed at VIM
1119                 nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
1120                 nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
1121                 nsr_status: ACTIVE
1122                 operational-status: running
1123                 vnfd:
1124                 -   id: b9493dae-a4c9-4b96-8965-329581efb0a1
1125                     member-vnf-index: multikdu
1126             VCA: []
1127         modified: 1575034637.011233
1128         nsState: INSTANTIATED
1129         nslcmop: null
1130         operation-type: null
1131         projects_read:
1132         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1133         projects_write:
1134         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1135     _id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1136     additionalParamsForNs: null
1137     admin-status: ENABLED
1138     config-status: configured
1139     constituent-vnfr-ref:
1140     - 5ac34899-a23a-4b3c-918a-cd77acadbea6
1141     create-time: 1575034636.9990137
1142     datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1143     description: default description
1144     vcaStatus: {}
1145     detailed-status: done
1146     id: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1147     instantiate_params:
1148         nsDescription: default description
1149         nsName: multikdu
1150         nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
1151         vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1152     name: multikdu
1153     name-ref: multikdu
1154     ns-instance-config-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
1155     nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
1156     nsd-name-ref: multikdu_ns
1157     nsd-ref: multikdu_ns
1158     operational-events: []
1159     operational-status: init
1160     orchestration-progress: {}
1161     resource-orchestrator: osmopenmano
1162     short-name: multikdu
1163     ssh-authorized-key: null
1164     vld:
1165     -   id: mgmtnet
1166         name: null
1167         status: ACTIVE
1168         status-detailed: null
1169         vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
1170         vim-network-name: mgmt
1171     vnfd-id:
1172     - 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
1173
1174 -   _admin:
1175       created: 1575034637.011233
1176       current-operation: null
1177       deployed:
1178         K8s:
1179         - k8scluster-uuid: 73d96432-d692-40d2-8440-e0c73aee209c
1180           kdu-instance: native-kdu-0
1181           kdu-model: native-kdu-0
1182           kdu-name: native-kdu
1183           member-vnf-index: native-kdu
1184           vnfr-id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
1185         RO:
1186           detailed-status: Deployed at VIM
1187           nsd_id: b03a8de8-1898-4142-bc6d-3b0787df567d
1188           nsr_id: b5ce3e00-8647-415d-afaa-d5a612cf3074
1189           nsr_status: ACTIVE
1190           operational-status: running
1191           vnfd:
1192           - id: b9493dae-a4c9-4b96-8965-329581efb0a1
1193             member-vnf-index: native-kdu
1194         VCA: []
1195       modified: 1575034637.011233
1196       nsState: INSTANTIATED
1197       nslcmop: null
1198       operation-type: null
1199       projects_read:
1200       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1201       projects_write:
1202       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1203     _id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1204     additionalParamsForNs: null
1205     admin-status: ENABLED
1206     config-status: configured
1207     constituent-vnfr-ref:
1208     - 5ac34899-a23a-4b3c-918a-cd77acadbea6
1209     create-time: 1575034636.9990137
1210     datacenter: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1211     description: default description
1212     detailed-status: done
1213     id: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1214     instantiate_params:
1215       nsDescription: default description
1216       nsName: native-kdu
1217       nsdId: d0f63683-9032-4c6f-8928-ffd4674b9f69
1218       vimAccountId: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
1219     name: native-kdu
1220     name-ref: native-kdu
1221     ns-instance-config-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
1222     nsd-id: d0f63683-9032-4c6f-8928-ffd4674b9f69
1223     nsd-name-ref: native-kdu_ns
1224     nsd-ref: native-kdu_ns
1225     operational-events: []
1226     operational-status: init
1227     orchestration-progress: {}
1228     resource-orchestrator: osmopenmano
1229     short-name: native-kdu
1230     ssh-authorized-key: null
1231     vld:
1232     - id: mgmtnet
1233       name: null
1234       status: ACTIVE
1235       status-detailed: null
1236       vim-id: 9b6a2ac4-767e-4ec9-9497-8ba63084c77f
1237       vim-network-name: mgmt
1238     vnfd-id:
1239     - d96b1cdf-5ad6-49f7-bf65-907ada989293
1240
1241 -   _id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1242     name: ha_charm-ns2
1243     name-ref: ha_charm-ns2
1244     short-name: ha_charm-ns2
1245     admin-status: ENABLED
1246     nsState: BROKEN
1247     currentOperation: IDLE
1248     currentOperationID:
1249     errorDescription: 'Operation: INSTANTIATING.8e72f2b5-f466-4382-88a4-4575c9e07eb8,
1250       Stage 5/5: running Day-1 primitives for NS.'
1251     deploymentStatus:
1252     configurationStatus:
1253     - elementType: VDU
1254       elementUnderConfiguration: userVM-0
1255       status: READY
1256     - elementType: VDU
1257       elementUnderConfiguration: policyVM-0
1258       status: READY
1259     - elementType: NS
1260       elementUnderConfiguration: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1261       status: BROKEN
1262     vcaStatus:
1263     nsd:
1264       _id: a557cb0f-0dc9-494c-a9bd-69e8079767e7
1265       id: nscharm-ns
1266       version: '1.0'
1267       name: nscharm-ns
1268       vnfd-id:
1269       - nscharm-user-vnf
1270       - nscharm-policy-vnf
1271       virtual-link-desc:
1272       - id: mgmtnet
1273         mgmt-network: true
1274         vim-network-name: osm-ext
1275       df:
1276       - id: default-df
1277         vnf-profile:
1278         - id: '1'
1279           virtual-link-connectivity:
1280           - constituent-cpd-id:
1281             - constituent-base-element-id: '1'
1282               constituent-cpd-id: vnf-mgmt-ext
1283             virtual-link-profile-id: mgmtnet
1284           vnfd-id: nscharm-user-vnf
1285         - id: '2'
1286           virtual-link-connectivity:
1287           - constituent-cpd-id:
1288             - constituent-base-element-id: '2'
1289               constituent-cpd-id: vnf-mgmt-ext
1290             virtual-link-profile-id: mgmtnet
1291           vnfd-id: nscharm-policy-vnf
1292       ns-configuration:
1293         juju:
1294           charm: ns_ubuntu-18.04-amd64.charm
1295         config-primitive:
1296         - name: add-user
1297           parameter:
1298           - name: username
1299             data-type: STRING
1300         initial-config-primitive:
1301         - seq: '1'
1302           name: config
1303           parameter:
1304           - name: juju-username
1305             value: admin
1306           - name: juju-password
1307             value: a5611fc6452349cc6e45705d34c501d4
1308         - seq: '2'
1309           name: add-user
1310           parameter:
1311           - name: username
1312             value: root
1313       description: NS with 2 VNFs
1314       _admin:
1315         userDefinedData: {}
1316         revision: 1
1317         created: 1658868548.2641
1318         modified: 1658868548.89253
1319         projects_read:
1320         - 51e0e80fe533469d98766caa16552a3e
1321         projects_write:
1322         - 51e0e80fe533469d98766caa16552a3e
1323         onboardingState: ONBOARDED
1324         operationalState: ENABLED
1325         usageState: NOT_IN_USE
1326         storage:
1327           fs: mongo
1328           path: "/app/storage/"
1329           folder: a557cb0f-0dc9-494c-a9bd-69e8079767e7:1
1330           pkg-dir: nscharm_ns
1331           descriptor: nscharm_ns/nscharm_nsd.yaml
1332           zipfile: nscharm_ns.tar.gz
1333     datacenter: bad7338b-ae46-43d4-a434-c3337a8054ac
1334     resource-orchestrator: osmopenmano
1335     description: default description
1336     constituent-vnfr-ref:
1337     - 303a6ccd-e6f2-4127-96a4-1e3b97956850
1338     - 0d0cd621-47db-4eef-a9e8-8edb71a34ea1
1339     operational-status: running
1340     config-status: failed
1341     orchestration-progress: {}
1342     create-time: 1658868607.27119
1343     nsd-name-ref: nscharm-ns
1344     operational-events: []
1345     nsd-ref: nscharm-ns
1346     nsd-id: a557cb0f-0dc9-494c-a9bd-69e8079767e7
1347     vnfd-id:
1348     - b5068dc9-a3cd-4a1e-b051-e36c3a9f10a4
1349     - 4aa63021-c816-456b-9998-804c5285a85d
1350     instantiate_params:
1351       nsdId: a557cb0f-0dc9-494c-a9bd-69e8079767e7
1352       nsName: ha_charm-ns2
1353       nsDescription: default description
1354       vimAccountId: bad7338b-ae46-43d4-a434-c3337a8054ac
1355       vld:
1356       - name: mgmtnet
1357         vim-network-name: osm-ext
1358     additionalParamsForNs:
1359     ns-instance-config-ref: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1360     id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1361     ssh-authorized-key:
1362     flavor:
1363     - id: '0'
1364       memory-mb: 1024
1365       name: userVM-flv
1366       storage-gb: '10'
1367       vcpu-count: 1
1368       vim_info:
1369         vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1370           vim_details:
1371           vim_id: 17a9ba76-beb7-4ad4-a481-97de37174866
1372           vim_message:
1373           vim_status: DONE
1374     - id: '1'
1375       memory-mb: 1024
1376       name: policyVM-flv
1377       storage-gb: '10'
1378       vcpu-count: 1
1379       vim_info:
1380         vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1381           vim_details:
1382           vim_id: 17a9ba76-beb7-4ad4-a481-97de37174866
1383           vim_message:
1384           vim_status: DONE
1385     image:
1386     - id: '0'
1387       image: ubuntu18.04
1388       vim_info:
1389         vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1390           vim_details:
1391           vim_id: 919fc71a-6acd-4ee3-8123-739a9abbc2e7
1392           vim_message:
1393           vim_status: DONE
1394     - image: ubuntu/images/hvm-ssd/ubuntu-artful-17.10-amd64-server-20180509
1395       vim-type: aws
1396       id: '1'
1397     - image: Canonical:UbuntuServer:18.04-LTS:latest
1398       vim-type: azure
1399       id: '2'
1400     - image: ubuntu-os-cloud:image-family:ubuntu-1804-lts
1401       vim-type: gcp
1402       id: '3'
1403     affinity-or-anti-affinity-group: []
1404     revision: 1
1405     vld:
1406     - id: mgmtnet
1407       mgmt-network: true
1408       name: mgmtnet
1409       type:
1410       vim_info:
1411         vim:bad7338b-ae46-43d4-a434-c3337a8054ac:
1412           vim_account_id: bad7338b-ae46-43d4-a434-c3337a8054ac
1413           vim_network_name: osm-ext
1414           vim_details: |
1415             {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,
1416               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,
1417               '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: [],
1418                     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,
1419                     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'}
1420           vim_id: 21ea5d92-24f1-40ab-8d28-83230e277a49
1421           vim_message:
1422           vim_status: ACTIVE
1423     _admin:
1424       created: 1658868607.2804
1425       modified: 1658868966.10105
1426       projects_read:
1427       - 51e0e80fe533469d98766caa16552a3e
1428       projects_write:
1429       - 51e0e80fe533469d98766caa16552a3e
1430       nsState: INSTANTIATED
1431       current-operation:
1432       nslcmop:
1433       operation-type:
1434       deployed:
1435         RO:
1436           vnfd: []
1437           operational-status: running
1438         VCA:
1439         - target_element: vnf/1/vdu/userVM/0
1440           member-vnf-index: '1'
1441           vdu_id: userVM
1442           kdu_name:
1443           vdu_count_index: 0
1444           operational-status: init
1445           detailed-status: ''
1446           step: initial-deploy
1447           vnfd_id: nscharm-user-vnf
1448           vdu_name:
1449           type: lxc_proxy_charm
1450           ee_descriptor_id: vnf-user-ee
1451           ee_id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f.app-vnf-3b97956850-z0-vdu-uservm-cnt-z0-eh2hc.2
1452           application: app-vnf-3b97956850-z0-vdu-uservm-cnt-z0-eh2hc
1453           model: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1454           config_sw_installed: true
1455         - target_element: vnf/2/vdu/policyVM/0
1456           member-vnf-index: '2'
1457           vdu_id: policyVM
1458           kdu_name:
1459           vdu_count_index: 0
1460           operational-status: init
1461           detailed-status: ''
1462           step: initial-deploy
1463           vnfd_id: nscharm-policy-vnf
1464           vdu_name:
1465           type: lxc_proxy_charm
1466           ee_descriptor_id: vnf-policy-ee
1467           ee_id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f.app-vnf-db71a34ea1-z0-vdu-policyvm-cnt-z0-tr1oc.0
1468           application: app-vnf-db71a34ea1-z0-vdu-policyvm-cnt-z0-tr1oc
1469           model: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1470           config_sw_installed: true
1471         - target_element: ns
1472           member-vnf-index:
1473           vdu_id:
1474           kdu_name:
1475           vdu_count_index: 0
1476           operational-status: init
1477           detailed-status: ''
1478           step: initial-deploy
1479           vnfd_id:
1480           vdu_name:
1481           type: lxc_proxy_charm
1482           ee_descriptor_id:
1483           ee_id: b63aa1ba-996e-43a7-921a-1aca5ccbc63f.app-qmfbp.1
1484           application: app-qmfbp
1485           model: b63aa1ba-996e-43a7-921a-1aca5ccbc63f
1486           config_sw_installed: true
1487         K8s: []
1488 """
1489
1490 1 ro_ns_text = """
1491 datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1492 description: null
1493 name: ALF
1494 classifications: []
1495 sdn_nets: []
1496 nets:
1497 -   created: false
1498     datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1499     datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1500     error_msg: null
1501     ns_net_osm_id: mgmt
1502     related: c6bac394-fa27-4c43-bb34-42f621a9d343
1503     sce_net_id: 8f215bab-c35e-41e6-a035-42bfaa07af9f
1504     sdn_net_id: null
1505     status: ACTIVE
1506     uuid: c6bac394-fa27-4c43-bb34-42f621a9d343
1507     vim_info: "{vim_info: null}"
1508     vim_name: null
1509     vim_net_id: f99ae780-0e2f-4985-af41-574eae6919c0
1510     vnf_net_id: null
1511     vnf_net_osm_id: null
1512 -   created: true
1513     datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1514     datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1515     error_msg: null
1516     ns_net_osm_id: datanet
1517     related: 509d576c-120f-493a-99a1-5fea99dfe041
1518     sce_net_id: 3d766bbc-33a8-41aa-a986-2f35e8d25c16
1519     sdn_net_id: null
1520     status: ACTIVE
1521     uuid: 509d576c-120f-493a-99a1-5fea99dfe041
1522     vim_info: "{vim_info: null}"
1523     vim_name: ALF-datanet
1524     vim_net_id: c31364ba-f573-4ab6-bf1a-fed30ede39a8
1525     vnf_net_id: null
1526     vnf_net_osm_id: null
1527 -   created: true
1528     datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1529     datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1530     error_msg: null
1531     ns_net_osm_id: null
1532     related: 277fed09-3220-4bfd-9052-b96b21a32daf
1533     sce_net_id: null
1534     sdn_net_id: null
1535     status: ACTIVE
1536     uuid: 277fed09-3220-4bfd-9052-b96b21a32daf
1537     vim_info: "{vim_info: null}"
1538     vim_name: ALF-internal
1539     vim_net_id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
1540     vnf_net_id: 62e62fae-c12b-4ebc-9a9b-30031c6c16fa
1541     vnf_net_osm_id: internal
1542 -   created: true
1543     datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1544     datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1545     error_msg: null
1546     ns_net_osm_id: null
1547     related: 92534d1a-e697-4372-a84d-aa0aa643b68a
1548     sce_net_id: null
1549     sdn_net_id: null
1550     status: ACTIVE
1551     uuid: 92534d1a-e697-4372-a84d-aa0aa643b68a
1552     vim_info: "{vim_info: null}"
1553     vim_name: ALF-internal
1554     vim_net_id: 09655387-b639-421a-b5f6-72b26d685fb4
1555     vnf_net_id: 13c6c77d-86a5-4914-832c-990d4ec7b54e
1556     vnf_net_osm_id: internal
1557 nsd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.2.hackfest3charmed-ns
1558 scenario_id: 876573b5-968d-40b9-b52b-91bf5c5844f7
1559 scenario_name: hackfest3charmed-ns
1560 sfis: []
1561 sfps: []
1562 sfs: []
1563 tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1564 uuid: c9fe9908-3180-430d-b633-fca2f68db008
1565 vnfs:
1566 -   datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1567     datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1568     ip_address: 10.205.1.46
1569     member_vnf_index: '1'
1570     mgmt_access: '{interface_id: 61549ee3-cd6c-4930-8b90-eaad97fe345b, required: ''False'',
1571         vm_id: 6cf4a48f-3b6c-4395-8221-119fa37de24a}
1572
1573         '
1574     sce_vnf_id: 83be04a8-c513-42ba-9908-22728f686d31
1575     uuid: 94724042-7576-4fb0-82ec-6a7ab642741c
1576     vms:
1577     -   created_at: '2019-08-26T12:50:38'
1578         error_msg: null
1579         interfaces:
1580         -   external_name: vnf-mgmt
1581             instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1582             internal_name: mgmtVM-eth0
1583             ip_address: 10.205.1.46
1584             mac_address: fa:16:3e:b4:3e:b1
1585             sdn_port_id: null
1586             type: mgmt
1587             vim_info: "{vim_info: null}"
1588             vim_interface_id: 4d3cb8fd-7040-4169-a0ad-2486d2b006a1
1589         -   external_name: null
1590             instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1591             internal_name: mgmtVM-eth1
1592             ip_address: 192.168.54.2
1593             mac_address: fa:16:3e:6e:7e:78
1594             sdn_port_id: null
1595             type: bridge
1596             vim_info: "{vim_info: null}"
1597             vim_interface_id: 54ed68e2-9802-4dfe-b68a-280b3fc6e02d
1598         ip_address: 10.205.1.46
1599         name: mgmtVM
1600         related: d0b91293-a91d-4f08-b15f-0bf841216dfe
1601         status: ACTIVE
1602         uuid: d0b91293-a91d-4f08-b15f-0bf841216dfe
1603         vdu_osm_id: mgmtVM
1604         vim_info: "{vim_info: null}"
1605         vim_name: ALF-1-mgmtVM-1
1606         vim_vm_id: c2538499-4c30-41c0-acd5-80cb92f48061
1607     -   created_at: '2019-08-26T12:50:38'
1608         error_msg: null
1609         interfaces:
1610         -   external_name: null
1611             instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1612             internal_name: dataVM-eth0
1613             ip_address: 192.168.54.3
1614             mac_address: fa:16:3e:d9:7a:5d
1615             sdn_port_id: null
1616             type: bridge
1617             vim_info: "{vim_info: null}"
1618             vim_interface_id: 1637f350-8840-4241-8ed0-4616bdcecfcf
1619         -   external_name: vnf-data
1620             instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1621             internal_name: dataVM-xe0
1622             ip_address: 192.168.24.3
1623             mac_address: fa:16:3e:d1:6c:0d
1624             sdn_port_id: null
1625             type: bridge
1626             vim_info: "{vim_info: null}"
1627             vim_interface_id: 54c73e83-7059-41fe-83a9-4c4ae997b481
1628         name: dataVM
1629         related: 5c08253d-8a35-474f-b0d3-c5297d174c13
1630         status: ACTIVE
1631         uuid: 5c08253d-8a35-474f-b0d3-c5297d174c13
1632         vdu_osm_id: dataVM
1633         vim_info: "{vim_info: null}"
1634         vim_name: ALF-1-dataVM-1
1635         vim_vm_id: 87973c3f-365d-4227-95c2-7a8abc74349c
1636     -   created_at: '2019-08-26T13:40:54'
1637         error_msg: null
1638         interfaces:
1639         -   external_name: null
1640             instance_net_id: 277fed09-3220-4bfd-9052-b96b21a32daf
1641             internal_name: dataVM-eth0
1642             ip_address: 192.168.54.5
1643             mac_address: fa:16:3e:e4:17:45
1644             sdn_port_id: null
1645             type: bridge
1646             vim_info: "{vim_info: null}"
1647             vim_interface_id: 7e246e40-8710-4c33-9c95-78fc3c02bc5b
1648         -   external_name: vnf-data
1649             instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1650             internal_name: dataVM-xe0
1651             ip_address: 192.168.24.5
1652             mac_address: fa:16:3e:29:6f:a6
1653             sdn_port_id: null
1654             type: bridge
1655             vim_info: "{vim_info: null}"
1656             vim_interface_id: ce81af7a-9adf-494b-950e-6581fd04ecc4
1657         name: dataVM
1658         related: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1659         status: ACTIVE
1660         uuid: 1ae5a0a2-c15a-49a4-a77c-2991d97f6dbe
1661         vdu_osm_id: dataVM
1662         vim_info: "{vim_info: null}"
1663         vim_name: ALF-1-dataVM-2
1664         vim_vm_id: 4916533e-36c6-4861-9fe3-366a8fb0a5f8
1665     vnf_id: 1ab2a418-9fe3-4358-bf17-411e5155535f
1666     vnf_name: hackfest3charmed-vnf.1
1667     vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.0.1
1668 -   datacenter_id: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1669     datacenter_tenant_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1670     ip_address: 10.205.1.47
1671     member_vnf_index: '2'
1672     mgmt_access: '{interface_id: 538604c3-5c5e-41eb-8f84-c0239c7fabcd, required: ''False'',
1673         vm_id: dd04d792-05c9-4ecc-bf28-f77384d00311}
1674
1675         '
1676     sce_vnf_id: c4f3607a-08ff-4f75-893c-fce507e2f240
1677     uuid: 00020403-e80f-4ef2-bb7e-b29669643035
1678     vms:
1679     -   created_at: '2019-08-26T12:50:38'
1680         error_msg: null
1681         interfaces:
1682         -   external_name: vnf-mgmt
1683             instance_net_id: c6bac394-fa27-4c43-bb34-42f621a9d343
1684             internal_name: mgmtVM-eth0
1685             ip_address: 10.205.1.47
1686             mac_address: fa:16:3e:cb:9f:c7
1687             sdn_port_id: null
1688             type: mgmt
1689             vim_info: "{vim_info: null}"
1690             vim_interface_id: dcd6d2de-3c68-481c-883e-e9d38c671dc4
1691         -   external_name: null
1692             instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1693             internal_name: mgmtVM-eth1
1694             ip_address: 192.168.231.1
1695             mac_address: fa:16:3e:1a:89:24
1696             sdn_port_id: null
1697             type: bridge
1698             vim_info: "{vim_info: null}"
1699             vim_interface_id: 50e538e3-aba0-4652-93bb-20487f3f28e1
1700         ip_address: 10.205.1.47
1701         name: mgmtVM
1702         related: 4543ab5d-578c-427c-9df2-affd17e21b66
1703         status: ACTIVE
1704         uuid: 4543ab5d-578c-427c-9df2-affd17e21b66
1705         vdu_osm_id: mgmtVM
1706         vim_info: "{vim_info: null}"
1707         vim_name: ALF-2-mgmtVM-1
1708         vim_vm_id: 248077b2-e3b8-4a37-8b72-575abb8ed912
1709     -   created_at: '2019-08-26T12:50:38'
1710         error_msg: null
1711         interfaces:
1712         -   external_name: null
1713             instance_net_id: 92534d1a-e697-4372-a84d-aa0aa643b68a
1714             internal_name: dataVM-eth0
1715             ip_address: 192.168.231.3
1716             mac_address: fa:16:3e:7e:ba:8c
1717             sdn_port_id: null
1718             type: bridge
1719             vim_info: "{vim_info: null}"
1720             vim_interface_id: 15274862-14ea-4527-b405-101cae8bc1a0
1721         -   external_name: vnf-data
1722             instance_net_id: 509d576c-120f-493a-99a1-5fea99dfe041
1723             internal_name: dataVM-xe0
1724             ip_address: 192.168.24.4
1725             mac_address: fa:16:3e:d2:e1:f5
1726             sdn_port_id: null
1727             type: bridge
1728             vim_info: "{vim_info: null}"
1729             vim_interface_id: 253ebe4e-38d5-46be-8777-dbb57510a2ec
1730         name: dataVM
1731         related: 6f03f16b-295a-47a1-9a69-2d069d574a33
1732         status: ACTIVE
1733         uuid: 6f03f16b-295a-47a1-9a69-2d069d574a33
1734         vdu_osm_id: dataVM
1735         vim_info: "{vim_info: null}"
1736         vim_name: ALF-2-dataVM-1
1737         vim_vm_id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
1738     vnf_id: 0de348e3-c201-4f6a-91cc-7f957e2d5504
1739     vnf_name: hackfest3charmed-vnf.2
1740     vnfd_osm_id: f48163a6-c807-47bc-9682-f72caef5af85.1.2
1741 """
1742
1743 1 ro_delete_action_text = """
1744 actions:
1745 -   created_at: 1580140763.1099188
1746     description: DELETE
1747     instance_id: c9fe9908-3180-430d-b633-fca2f68db008
1748     modified_at: 1580140763.253148
1749     number_done: 1
1750     number_failed: 0
1751     number_tasks: 1
1752     tenant_id: 0ea38bd0-2729-47a9-ae07-c6ce76115eb2
1753     uuid: delete
1754     vim_wim_actions:
1755     -   action: DELETE
1756         created_at: 1580140763.1099188
1757         datacenter_vim_id: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1758         error_msg: null
1759         extra: '{params: [9b6a2ac4-767e-4ec9-9497-8ba63084c77f, null]}'
1760         instance_action_id: ACTION-1580140763.054037
1761         item: instance_nets
1762         item_id: 8cb06b72-c71d-4b58-b419-95025fa651d3
1763         modified_at: 1580140763.1099188
1764         related: 8cb06b72-c71d-4b58-b419-95025fa651d3
1765         status: SUPERSEDED
1766         task_index: 0
1767         vim_id: null
1768         wim_account_id: null
1769         wim_internal_id: null
1770         worker: null
1771 """
1772
1773 1 db_vim_accounts_text = """
1774 ---
1775 -   _admin:
1776         created: 1566818150.3024442
1777         current_operation: 0
1778         deployed:
1779             RO: dc51ce6c-c7f2-11e9-b9c0-02420aff0004
1780             RO-account: dc5c67fa-c7f2-11e9-b9c0-02420aff0004
1781         detailed-status: Done
1782         modified: 1566818150.3024442
1783         operationalState: ENABLED
1784         operations:
1785         -   detailed-status: Done
1786             lcmOperationType: create
1787             operationParams: null
1788             operationState: COMPLETED
1789             startTime: 1566818150.3025382
1790             statusEnteredTime: 1566818150.3025382
1791             worker: 86434c2948e2
1792         projects_read:
1793         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1794         projects_write:
1795         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1796     _id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1797     description: some description here
1798     name: vim1
1799     schema_version: '1.1'
1800     vim_password: 5g0yGX86qIhprX86YTMcpg==
1801     vim_tenant_name: osm
1802     vim_type: openstack
1803     vim_url: http://10.95.87.162:5000/v2.0
1804     vim_user: osm
1805 -   _admin:
1806         created: 1566818150.3024442
1807         current_operation: 0
1808         deployed:
1809             RO: 9ac17c0d-4265-4333-843b-c3cbd1f93f88
1810             RO-account: 011895dc-ab34-4c9f-b06f-401a8ffb073b
1811         detailed-status: Done
1812         modified: 1566818150.3024442
1813         operationalState: ENABLED
1814         operations:
1815         -   detailed-status: Done
1816             lcmOperationType: create
1817             operationParams: null
1818             operationState: COMPLETED
1819             startTime: 1566818150.3025382
1820             statusEnteredTime: 1566818150.3025382
1821             worker: 86434c2948e2
1822         projects_read:
1823         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1824         projects_write:
1825         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1826     _id: 05357241-1a01-416f-9e02-af20f65f51cd
1827     description: No description
1828     name: vim2
1829     schema_version: '1.1'
1830     vim_password: 5g0yGX86qIhprX86YTMcpg==
1831     vim_tenant_name: osm
1832     vim_type: dumy
1833     vim_url: http://10.95.88.162:5000/v2.0
1834     vim_user: osm
1835 """
1836
1837 1 db_k8sclusters_text = """
1838 -   _admin:
1839         created: 1575031378.9268339
1840         current_operation: 0
1841         modified: 1575031378.9268339
1842         operationalState: ENABLED
1843         operations:
1844         -   detailed-status: ''
1845             lcmOperationType: create
1846             operationParams: null
1847             operationState: ''
1848             startTime: 1575031378.926895
1849             statusEnteredTime: 1575031378.926895
1850             worker: 36681ccf7f32
1851         projects_read:
1852         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1853         projects_write:
1854         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1855         helm-chart:
1856             id: 73d96432-d692-40d2-8440-e0c73aee209c
1857             created: True
1858         helm-chart-v3:
1859             id: 73d96432-d692-40d2-8440-e0c73aee209c
1860             created: True
1861     _id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
1862     credentials:
1863         apiVersion: v1
1864         users:
1865         -   name: admin
1866             user:
1867                 password: qhpdogJXhBLG+JiYyyE0LeNsJXHkCSMy+sGVzlnJqes=
1868                 username: admin
1869     description: Cluster3
1870     k8s_version: '1.15'
1871     name: cluster3
1872     namespace: kube-system
1873     nets:
1874         net1: None
1875     schema_version: '1.11'
1876     vim_account: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
1877 """
1878
1879 1 db_vnfds_revisions_text = """
1880 ---
1881 -   _admin:
1882       created: 1566823352.7154346
1883       modified: 1566823353.9295402
1884       onboardingState: ONBOARDED
1885       operationalState: ENABLED
1886       projects_read:
1887       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1888       projects_write:
1889       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
1890       storage:
1891           descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
1892           folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
1893           fs: local
1894           path: /app/storage/
1895           pkg-dir: hackfest_3charmed_vnfd
1896           zipfile: package.tar.gz
1897       type: vnfd
1898       usageState: NOT_IN_USE
1899       userDefinedData: {}
1900     _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:1
1901     id: hackfest3charmed-vnf
1902     description: >-
1903       A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
1904       with cloud-init
1905     product-name: hackfest3charmed-vnf
1906     version: '1.0'
1907     mgmt-cp: vnf-mgmt-ext
1908     virtual-compute-desc:
1909       - id: mgmt-compute
1910         virtual-cpu:
1911           num-virtual-cpu: 1
1912         virtual-memory:
1913           size: 1
1914       - id: data-compute
1915         virtual-cpu:
1916           num-virtual-cpu: 1
1917         virtual-memory:
1918           size: 1
1919     kdu:
1920     - juju-bundle: stable/native-kdu
1921       name: native-kdu
1922     virtual-storage-desc:
1923       - id: mgmt-storage
1924         block-storage-data:
1925           size-of-storage: 10
1926       - id: data-storage
1927         block-storage-data:
1928           size-of-storage: 10
1929
1930     sw-image-desc:
1931       - id: hackfest3-mgmt
1932         name: hackfest3-mgmt
1933
1934     vdu:
1935       - id: mgmtVM
1936         name: mgmtVM
1937         cloud-init-file: cloud-config.txt
1938         sw-image-desc: hackfest3-mgmt
1939         virtual-compute-desc: mgmt-compute
1940         virtual-storage-desc: mgmt-storage
1941         int-cpd:
1942           - id: vnf-mgmt
1943             order: 1
1944             virtual-network-interface-requirement:
1945               - name: mgmtVM-eth0
1946                 virtual-interface:
1947                   type: VIRTIO
1948           - id: mgmtVM-internal
1949             int-virtual-link-desc: internal
1950             order: 2
1951             virtual-network-interface-requirement:
1952               - name: mgmtVM-eth1
1953                 virtual-interface:
1954                   type: VIRTIO
1955       - id: dataVM
1956         name: dataVM
1957         sw-image-desc: hackfest3-mgmt
1958         virtual-compute-desc: data-compute
1959         virtual-storage-desc: data-storage
1960         int-cpd:
1961           - id: dataVM-internal
1962             int-virtual-link-desc: internal
1963             order: 1
1964             virtual-network-interface-requirement:
1965               - name: dataVM-eth1
1966                 virtual-interface:
1967                   type: VIRTIO
1968           - id: vnf-data
1969             order: 2
1970             virtual-network-interface-requirement:
1971               - name: dataVM-eth0
1972                 virtual-interface:
1973                   type: VIRTIO
1974         monitoring-parameter:
1975           - id: dataVM_cpu_util
1976             name: dataVM_cpu_util
1977             performance-metric: cpu_utilization
1978
1979     int-virtual-link-desc:
1980       - id: internal
1981
1982     ext-cpd:
1983       - id: vnf-mgmt-ext
1984         int-cpd: # Connection to int-cpd
1985           vdu-id: mgmtVM
1986           cpd: vnf-mgmt
1987       - id: vnf-data-ext
1988         int-cpd: # Connection to int-cpd
1989           vdu-id: dataVM
1990           cpd: vnf-data
1991
1992     df:
1993       - id: hackfest_default
1994         vdu-profile:
1995           - id: mgmtVM
1996             min-number-of-instances: 1
1997           - id: dataVM
1998             min-number-of-instances: 1
1999             max-number-of-instances: 10
2000         instantiation-level:
2001           - id: default
2002             vdu-level:
2003               - vdu-id: mgmtVM
2004                 number-of-instances: 1
2005               - vdu-id: dataVM
2006                 number-of-instances: 1
2007         scaling-aspect:
2008           - id: scale_dataVM
2009             name: scale_dataVM
2010             max-scale-level: 10
2011             aspect-delta-details:
2012               deltas:
2013               - id: delta1
2014                 vdu-delta:
2015                 - id: vdudelta1
2016                   number-of-instances: 1
2017             scaling-policy:
2018               - name: auto_cpu_util_above_threshold
2019                 scaling-type: automatic
2020                 enabled: true
2021                 threshold-time: 0
2022                 cooldown-time: 60
2023                 scaling-criteria:
2024                   - name: cpu_util_above_threshold
2025                     scale-in-relational-operation: LE
2026                     scale-in-threshold: '15.0000000000'
2027                     scale-out-relational-operation: GE
2028                     scale-out-threshold: '60.0000000000'
2029                     vnf-monitoring-param-ref: dataVM_cpu_util
2030             scaling-config-action:
2031               - trigger: post-scale-out
2032                 vnf-config-primitive-name-ref: touch
2033               - trigger: pre-scale-in
2034                 vnf-config-primitive-name-ref: touch
2035         lcm-operations-configuration:
2036           operate-vnf-op-config:
2037             day1-2:
2038             - id: hackfest3charmed-vnf
2039               execution-environment-list:
2040                 - id: simple-ee
2041                   juju:
2042                     charm: simple
2043               initial-config-primitive:
2044                 - seq: "1"
2045                   execution-environment-ref: simple-ee
2046                   name: config
2047                   parameter:
2048                     - name: ssh-hostname
2049                       value: <rw_mgmt_ip>
2050                     - name: ssh-username
2051                       value: ubuntu
2052                     - name: ssh-password
2053                       value: osm4u
2054                 - seq: "2"
2055                   execution-environment-ref: simple-ee
2056                   name: touch
2057                   parameter:
2058                     - name: filename
2059                       value: <touch_filename>
2060               config-primitive:
2061                 - name: touch
2062                   execution-environment-ref: simple-ee
2063                   parameter:
2064                     - data-type: STRING
2065                       default-value: <touch_filename2>
2066                       name: filename
2067 """
2068
2069 1 db_vnfds_text = """
2070 ---
2071 -   _admin:
2072       created: 1566823352.7154346
2073       modified: 1566823353.9295402
2074       onboardingState: ONBOARDED
2075       operationalState: ENABLED
2076       projects_read:
2077       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2078       projects_write:
2079       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2080       storage:
2081           descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
2082           folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2083           fs: local
2084           path: /app/storage/
2085           pkg-dir: hackfest_3charmed_vnfd
2086           zipfile: package.tar.gz
2087       type: vnfd
2088       usageState: NOT_IN_USE
2089       userDefinedData: {}
2090     _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2091     id: hackfest3charmed-vnf
2092     description: >-
2093       A VNF consisting of 2 VDUs connected to an internal VL, and one VDU
2094       with cloud-init
2095     product-name: hackfest3charmed-vnf
2096     version: '1.0'
2097     mgmt-cp: vnf-mgmt-ext
2098     virtual-compute-desc:
2099       - id: mgmt-compute
2100         virtual-cpu:
2101           num-virtual-cpu: 1
2102         virtual-memory:
2103           size: 1
2104       - id: data-compute
2105         virtual-cpu:
2106           num-virtual-cpu: 1
2107         virtual-memory:
2108           size: 1
2109
2110     virtual-storage-desc:
2111       - id: mgmt-storage
2112         block-storage-data:
2113           size-of-storage: 10
2114       - id: data-storage
2115         block-storage-data:
2116           size-of-storage: 10
2117
2118     sw-image-desc:
2119       - id: hackfest3-mgmt
2120         name: hackfest3-mgmt
2121
2122     vdu:
2123       - id: mgmtVM
2124         name: mgmtVM
2125         cloud-init-file: cloud-config.txt
2126         sw-image-desc: hackfest3-mgmt
2127         virtual-compute-desc: mgmt-compute
2128         virtual-storage-desc: mgmt-storage
2129         int-cpd:
2130           - id: vnf-mgmt
2131             order: 1
2132             virtual-network-interface-requirement:
2133               - name: mgmtVM-eth0
2134                 virtual-interface:
2135                   type: VIRTIO
2136           - id: mgmtVM-internal
2137             int-virtual-link-desc: internal
2138             order: 2
2139             virtual-network-interface-requirement:
2140               - name: mgmtVM-eth1
2141                 virtual-interface:
2142                   type: VIRTIO
2143       - id: dataVM
2144         name: dataVM
2145         sw-image-desc: hackfest3-mgmt
2146         virtual-compute-desc: data-compute
2147         virtual-storage-desc: data-storage
2148         int-cpd:
2149           - id: dataVM-internal
2150             int-virtual-link-desc: internal
2151             order: 1
2152             virtual-network-interface-requirement:
2153               - name: dataVM-eth1
2154                 virtual-interface:
2155                   type: VIRTIO
2156           - id: vnf-data
2157             order: 2
2158             virtual-network-interface-requirement:
2159               - name: dataVM-eth0
2160                 virtual-interface:
2161                   type: VIRTIO
2162         monitoring-parameter:
2163           - id: dataVM_cpu_util
2164             name: dataVM_cpu_util
2165             performance-metric: cpu_utilization
2166
2167     int-virtual-link-desc:
2168       - id: internal
2169
2170     ext-cpd:
2171       - id: vnf-mgmt-ext
2172         int-cpd: # Connection to int-cpd
2173           vdu-id: mgmtVM
2174           cpd: vnf-mgmt
2175       - id: vnf-data-ext
2176         int-cpd: # Connection to int-cpd
2177           vdu-id: dataVM
2178           cpd: vnf-data
2179
2180     df:
2181       - id: hackfest_default
2182         vdu-profile:
2183           - id: mgmtVM
2184             min-number-of-instances: 1
2185           - id: dataVM
2186             min-number-of-instances: 1
2187             max-number-of-instances: 10
2188         instantiation-level:
2189           - id: default
2190             vdu-level:
2191               - vdu-id: mgmtVM
2192                 number-of-instances: 1
2193               - vdu-id: dataVM
2194                 number-of-instances: 1
2195         scaling-aspect:
2196           - id: scale_dataVM
2197             name: scale_dataVM
2198             max-scale-level: 10
2199             aspect-delta-details:
2200               deltas:
2201               - id: delta1
2202                 vdu-delta:
2203                 - id: vdudelta1
2204                   number-of-instances: 1
2205             scaling-policy:
2206               - name: auto_cpu_util_above_threshold
2207                 scaling-type: automatic
2208                 enabled: true
2209                 threshold-time: 0
2210                 cooldown-time: 60
2211                 scaling-criteria:
2212                   - name: cpu_util_above_threshold
2213                     scale-in-relational-operation: LE
2214                     scale-in-threshold: '15.0000000000'
2215                     scale-out-relational-operation: GE
2216                     scale-out-threshold: '60.0000000000'
2217                     vnf-monitoring-param-ref: dataVM_cpu_util
2218             scaling-config-action:
2219               - trigger: post-scale-out
2220                 vnf-config-primitive-name-ref: touch
2221               - trigger: pre-scale-in
2222                 vnf-config-primitive-name-ref: touch
2223         lcm-operations-configuration:
2224           operate-vnf-op-config:
2225             day1-2:
2226             - id: hackfest3charmed-vnf
2227               execution-environment-list:
2228                 - id: simple-ee
2229                   juju:
2230                     charm: simple
2231               initial-config-primitive:
2232                 - seq: "1"
2233                   execution-environment-ref: simple-ee
2234                   name: config
2235                   parameter:
2236                     - name: ssh-hostname
2237                       value: <rw_mgmt_ip>
2238                     - name: ssh-username
2239                       value: ubuntu
2240                     - name: ssh-password
2241                       value: osm4u
2242                 - seq: "2"
2243                   execution-environment-ref: simple-ee
2244                   name: touch
2245                   parameter:
2246                     - name: filename
2247                       value: <touch_filename>
2248               config-primitive:
2249                 - name: touch
2250                   execution-environment-ref: simple-ee
2251                   parameter:
2252                     - data-type: STRING
2253                       default-value: <touch_filename2>
2254                       name: filename
2255               relation:
2256                 - entities:
2257                   - endpoint: interface
2258                     id: mgmtVM
2259                   - endpoint: interface
2260                     id: dataVM
2261                   name: relation
2262             - id: mgmtVM
2263               execution-environment-list:
2264               - id: simple-ee
2265                 juju:
2266                   charm: simple_mgmtVM
2267                   proxy: false
2268                 external-connection-point-ref: mgmt
2269             - id: dataVM
2270               execution-environment-list:
2271               - id: simple-ee
2272                 juju:
2273                   charm: simple_dataVM
2274                   proxy: false
2275                 external-connection-point-ref: mgmt
2276
2277 -   _admin:
2278         created: 1575031727.5383403
2279         modified: 1575031727.5383403
2280         onboardingState: ONBOARDED
2281         operationalState: ENABLED
2282         projects_read:
2283         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2284         projects_write:
2285         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2286         storage:
2287             descriptor: multikdu_knf/multikdu_vnfd.yaml
2288             folder: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2289             fs: local
2290             path: /app/storage/
2291             pkg-dir: multikdu_knf
2292             zipfile: multikdu_knf.tar.gz
2293         usageState: NOT_IN_USE
2294         userDefinedData: {}
2295     _id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2296     connection-point:
2297     -   name: mgmt
2298     description: KNF with two KDU using helm-charts
2299     id: multikdu_knf
2300     df:
2301       - id: "default_df"
2302     k8s-cluster:
2303         nets:
2304         -   external-connection-point-ref: mgmt
2305             id: mgmtnet
2306     kdu:
2307     -   helm-chart: stable/openldap:1.2.1
2308         name: ldap
2309     -   helm-chart: stable/mongodb
2310         name: mongo
2311     mgmt-interface:
2312         cp: mgmt
2313     name: multikdu_knf
2314     short-name: multikdu_knf
2315     vendor: Telefonica
2316     version: '1.0'
2317
2318 -   _admin:
2319       created: 1575031727.5383403
2320       modified: 1575031727.5383403
2321       onboardingState: ONBOARDED
2322       operationalState: ENABLED
2323       projects_read:
2324       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2325       projects_write:
2326       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2327       storage:
2328         descriptor: native-kdu_knf/native-kdu_vnfd.yaml
2329         folder: d96b1cdf-5ad6-49f7-bf65-907ada989293
2330         fs: local
2331         path: /app/storage/
2332         pkg-dir: native-kdu_knf
2333         zipfile: native-kdu_knf.tar.gz
2334       usageState: NOT_IN_USE
2335       userDefinedData: {}
2336     _id: d96b1cdf-5ad6-49f7-bf65-907ada989293
2337     connection-point:
2338     - name: mgmt
2339     description: KNF with two KDU using juju-bundle
2340     df:
2341     - id: native-kdu
2342       kdu-resource-profile:
2343         - id: scale-app
2344           kdu-name: native-kdu
2345           min-number-of-instances: 1
2346           resource-name: app
2347         - id: scale-app2
2348           kdu-name: native-kdu
2349           min-number-of-instances: 1
2350           max-number-of-instances: 10
2351           resource-name: app2
2352       scaling-aspect:
2353       - id: kdu_scaling_group
2354         name: kdu_scaling_group
2355         max-scale-level: 10
2356         aspect-delta-details:
2357           deltas:
2358           - id: native-kdu-delta
2359             kdu-resource-delta:
2360             - id: scale-app
2361               number-of-instances: 1
2362       - id: kdu_scaling_group_2
2363         name: kdu_scaling_group_2
2364         max-scale-level: 10
2365         aspect-delta-details:
2366           deltas:
2367           - id: native-kdu-delta
2368             kdu-resource-delta:
2369             - id: scale-app
2370               number-of-instances: 1
2371             - id: scale-app2
2372               number-of-instances: 2
2373       lcm-operations-configuration:
2374         operate-vnf-op-config:
2375           day1-2:
2376           - id: native-kdu
2377             initial-config-primitive:
2378             - name: changecontent
2379               parameter:
2380               - data-type: STRING
2381                 name: application-name
2382                 value: nginx
2383               - data-type: STRING
2384                 name: customtitle
2385                 value: Initial Config Primitive
2386               seq: '1'
2387     id: native-kdu_knf
2388     k8s-cluster:
2389       nets:
2390       - external-connection-point-ref: mgmt
2391         id: mgmtnet
2392     kdu:
2393     - juju-bundle: stable/native-kdu
2394       name: native-kdu
2395     mgmt-interface:
2396       cp: mgmt
2397     name: native-kdu_knf
2398     short-name: native-kdu_knf
2399     vendor: Ulak Haberlesme A.S.
2400     version: '1.0'
2401 """
2402
2403 1 db_vnfrs_text = """
2404 ---
2405 -   _admin:
2406         created: 1566823354.3668208
2407         modified: 1566823354.3668208
2408         nsState: NOT_INSTANTIATED
2409         projects_read:
2410         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2411         projects_write:
2412         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2413     _id: 88d90b0c-faff-4b9f-bccd-017f33985984
2414     additionalParamsForVnf:
2415         touch_filename: /home/ubuntu/first-touch-1
2416         touch_filename2: /home/ubuntu/second-touch-1
2417     connection-point:
2418     -   connection-point-id: vnf-mgmt
2419         id: vnf-mgmt
2420         name: vnf-mgmt
2421     -   connection-point-id: vnf-data
2422         id: vnf-data
2423         name: vnf-data
2424     created-time: 1566823354.36234
2425     id: 88d90b0c-faff-4b9f-bccd-017f33985984
2426     ip-address: 10.205.1.46
2427     member-vnf-index-ref: '1'
2428     nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2429     vdur:
2430     -   _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
2431         count-index: 0
2432         interfaces:
2433         -   ip-address: 10.205.1.46
2434             mac-address: fa:16:3e:b4:3e:b1
2435             mgmt-vnf: true
2436             name: mgmtVM-eth0
2437             ns-vld-id: mgmt
2438         -   ip-address: 192.168.54.2
2439             mac-address: fa:16:3e:6e:7e:78
2440             name: mgmtVM-eth1
2441             vnf-vld-id: internal
2442         internal-connection-point:
2443         -   connection-point-id: mgmtVM-internal
2444             id: mgmtVM-internal
2445             name: mgmtVM-internal
2446         ip-address: 10.205.1.46
2447         name: ALF-1-mgmtVM-1
2448         status: ACTIVE
2449         status-detailed: null
2450         vdu-id-ref: mgmtVM
2451         vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
2452         ns-image-id: 0
2453         ns-flavor-id: 0
2454         affinity-or-anti-affinity-group-id : []
2455     -   _id: ab453219-2d9a-45c2-864d-2c0788385028
2456         count-index: 0
2457         interfaces:
2458         -   ip-address: 192.168.54.3
2459             mac-address: fa:16:3e:d9:7a:5d
2460             name: dataVM-eth0
2461             vnf-vld-id: internal
2462         -   ip-address: 192.168.24.3
2463             mac-address: fa:16:3e:d1:6c:0d
2464             name: dataVM-xe0
2465             ns-vld-id: datanet
2466         internal-connection-point:
2467         -   connection-point-id: dataVM-internal
2468             id: dataVM-internal
2469             name: dataVM-internal
2470         ip-address: null
2471         name: ALF-1-dataVM-1
2472         status: ACTIVE
2473         status-detailed: null
2474         vdu-id-ref: dataVM
2475         vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
2476         ns-image-id: 0
2477         ns-flavor-id: 0
2478         affinity-or-anti-affinity-group-id : []
2479     vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2480     vld:
2481     -   id: internal
2482         name: ALF-internal
2483         status: ACTIVE
2484         status-detailed: null
2485         vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2486     vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2487     vnfd-ref: hackfest3charmed-vnf
2488 -   _admin:
2489         created: 1566823354.3668208
2490         modified: 1566823354.3668208
2491         nsState: NOT_INSTANTIATED
2492         projects_read:
2493         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2494         projects_write:
2495         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2496     _id: 6421c7c9-d865-4fb4-9a13-d4275d243e01
2497     additionalParamsForVnf:
2498         touch_filename: /home/ubuntu/first-touch-1
2499         touch_filename2: /home/ubuntu/second-touch-1
2500     connection-point:
2501     -   connection-point-id: vnf-mgmt
2502         id: vnf-mgmt
2503         name: vnf-mgmt
2504     -   connection-point-id: vnf-data
2505         id: vnf-data
2506         name: vnf-data
2507     created-time: 1566823354.36234
2508     id: 6421c7c9-d865-4fb4-9a13-d4275d243e01
2509     ip-address: 10.205.1.46
2510     member-vnf-index-ref: '1'
2511     nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2512     vdur:
2513     -   _id: f0e7d7ce-2443-4dcb-ad0b-5ab9f3b13d37
2514         count-index: 0
2515         interfaces:
2516         -   ip-address: 10.205.1.46
2517             mac-address: fa:16:3e:b4:3e:b1
2518             mgmt-vnf: true
2519             name: mgmtVM-eth0
2520             ns-vld-id: mgmt
2521         -   ip-address: 192.168.54.2
2522             mac-address: fa:16:3e:6e:7e:78
2523             name: mgmtVM-eth1
2524             vnf-vld-id: internal
2525         internal-connection-point:
2526         -   connection-point-id: mgmtVM-internal
2527             id: mgmtVM-internal
2528             name: mgmtVM-internal
2529         ip-address: 10.205.1.46
2530         name: ALF-1-mgmtVM-1
2531         status: ACTIVE
2532         status-detailed: null
2533         vdu-id-ref: mgmtVM
2534         vim-id: c2538499-4c30-41c0-acd5-80cb92f48061
2535         ns-image-id: 0
2536         ns-flavor-id: 0
2537         affinity-or-anti-affinity-group-id : []
2538     -   _id: ab453219-2d9a-45c2-864d-2c0788385028
2539         count-index: 0
2540         interfaces:
2541         -   ip-address: 192.168.54.3
2542             mac-address: fa:16:3e:d9:7a:5d
2543             name: dataVM-eth0
2544             vnf-vld-id: internal
2545         -   ip-address: 192.168.24.3
2546             mac-address: fa:16:3e:d1:6c:0d
2547             name: dataVM-xe0
2548             ns-vld-id: datanet
2549         internal-connection-point:
2550         -   connection-point-id: dataVM-internal
2551             id: dataVM-internal
2552             name: dataVM-internal
2553         ip-address: null
2554         name: ALF-1-dataVM-1
2555         status: ACTIVE
2556         status-detailed: null
2557         vdu-id-ref: dataVM
2558         vim-id: 87973c3f-365d-4227-95c2-7a8abc74349c
2559         ns-image-id: 0
2560         ns-flavor-id: 0
2561         affinity-or-anti-affinity-group-id : []
2562     vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2563     vld:
2564     -   id: internal
2565         name: ALF-internal
2566         status: ACTIVE
2567         status-detailed: null
2568         vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2569     vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2570     vnfd-ref: hackfest3charmed-vnf
2571 -   _admin:
2572         created: 1566823354.3703845
2573         modified: 1566823354.3703845
2574         nsState: NOT_INSTANTIATED
2575         projects_read:
2576         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2577         projects_write:
2578         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2579     _id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
2580     additionalParamsForVnf:
2581         touch_filename: /home/ubuntu/first-touch-2
2582         touch_filename2: /home/ubuntu/second-touch-2
2583     connection-point:
2584     -   connection-point-id: vnf-mgmt
2585         id: vnf-mgmt
2586         name: vnf-mgmt
2587     -   connection-point-id: vnf-data
2588         id: vnf-data
2589         name: vnf-data
2590     created-time: 1566823354.36234
2591     id: 1ca3bb1a-b29b-49fe-bed6-5f3076d77434
2592     ip-address: 10.205.1.47
2593     member-vnf-index-ref: '2'
2594     nsr-id-ref: f48163a6-c807-47bc-9682-f72caef5af85
2595     vdur:
2596     -   _id: 190b4a2c-4f85-4cfe-9406-4cef7ffb1e67
2597         count-index: 0
2598         interfaces:
2599         -   ip-address: 10.205.1.47
2600             mac-address: fa:16:3e:cb:9f:c7
2601             mgmt-vnf: true
2602             name: mgmtVM-eth0
2603             ns-vld-id: mgmt
2604         -   ip-address: 192.168.231.1
2605             mac-address: fa:16:3e:1a:89:24
2606             name: mgmtVM-eth1
2607             vnf-vld-id: internal
2608         internal-connection-point:
2609         -   connection-point-id: mgmtVM-internal
2610             id: mgmtVM-internal
2611             name: mgmtVM-internal
2612         ip-address: 10.205.1.47
2613         name: ALF-2-mgmtVM-1
2614         status: ACTIVE
2615         status-detailed: null
2616         vdu-id-ref: mgmtVM
2617         vim-id: 248077b2-e3b8-4a37-8b72-575abb8ed912
2618         ns-image-id: 0
2619         ns-flavor-id: 0
2620         affinity-or-anti-affinity-group-id : []
2621     -   _id: 889b874d-e1c3-4e75-aa45-53a9b0ddabd9
2622         count-index: 0
2623         interfaces:
2624         -   ip-address: 192.168.231.3
2625             mac-address: fa:16:3e:7e:ba:8c
2626             name: dataVM-eth0
2627             vnf-vld-id: internal
2628         -   ip-address: 192.168.24.4
2629             mac-address: fa:16:3e:d2:e1:f5
2630             name: dataVM-xe0
2631             ns-vld-id: datanet
2632         internal-connection-point:
2633         -   connection-point-id: dataVM-internal
2634             id: dataVM-internal
2635             name: dataVM-internal
2636         ip-address: null
2637         name: ALF-2-dataVM-1
2638         status: ACTIVE
2639         status-detailed: null
2640         vdu-id-ref: dataVM
2641         vim-id: a4ce4372-e0ad-4ae3-8f9f-1c969f32e77b
2642         ns-image-id: 0
2643         ns-flavor-id: 0
2644         affinity-or-anti-affinity-group-id : []
2645     vim-account-id: ea958ba5-4e58-4405-bf42-6e3be15d4c3a
2646     vld:
2647     -   id: internal
2648         name: ALF-internal
2649         status: ACTIVE
2650         status-detailed: null
2651         vim-id: ff181e6d-2597-4244-b40b-bb0174bdfeb6
2652     vnfd-id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
2653     vnfd-ref: hackfest3charmed-vnf
2654 -   _admin:
2655         created: 1575034637.009597
2656         modified: 1575034637.009597
2657         nsState: NOT_INSTANTIATED
2658         projects_read:
2659         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2660         projects_write:
2661         - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2662     _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2663     additionalParamsForVnf: null
2664     connection-point:
2665     -   connection-point-id: null
2666         id: null
2667         name: mgmt
2668     created-time: 1575034636.9990137
2669     id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2670     ip-address: null
2671     k8s-cluster:
2672         nets:
2673         -   external-connection-point-ref: mgmt
2674             id: mgmtnet
2675             ns-vld-id: mgmtnet
2676             vim_net: internal
2677     kdur:
2678     -   ip-address: null
2679         k8s-cluster:
2680             id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2681         kdu-name: ldap
2682         helm-chart: stable/openldap:1.2.1
2683     -   ip-address: null
2684         k8s-cluster:
2685             id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2686         kdu-name: mongo
2687         helm-chart: stable/mongodb
2688     member-vnf-index-ref: multikdu
2689     nsr-id-ref: 0bcb701c-ee4d-41ab-8ee6-f4156f7f114d
2690     vdur: []
2691     vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
2692     vnfd-id: 7ab0d10d-8ce2-4c68-aef6-cc5a437a9c62
2693     vnfd-ref: multikdu_knf
2694
2695 -   _admin:
2696       created: 1575034637.009597
2697       modified: 1575034637.009597
2698       nsState: NOT_INSTANTIATED
2699       projects_read:
2700       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2701       projects_write:
2702       - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
2703     _id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2704     additionalParamsForVnf: null
2705     connection-point:
2706     - connection-point-id: null
2707       id: null
2708       name: mgmt
2709     created-time: 1575034636.9990137
2710     id: 5ac34899-a23a-4b3c-918a-cd77acadbea6
2711     ip-address: null
2712     k8s-cluster:
2713       nets:
2714       - external-connection-point-ref: mgmt
2715         id: mgmtnet
2716         ns-vld-id: mgmtnet
2717         vim_net: internal
2718     kdur:
2719     - ip-address: null
2720       juju-bundle: app-bundle
2721       k8s-cluster:
2722         id: e7169dab-f71a-4f1f-b82b-432605e8c4b3
2723       kdu-name: native-kdu
2724     member-vnf-index-ref: native-kdu
2725     nsr-id-ref: c54b14cb-69a8-45bc-b011-d6bea187dc0a
2726     vdur: []
2727     vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f
2728     vnfd-id: d96b1cdf-5ad6-49f7-bf65-907ada989293
2729     vnfd-ref: native-kdu_knf
2730
2731 -   _id: a6df8aa0-1271-4dfc-85a5-e0484fea303f
2732     id: a6df8aa0-1271-4dfc-85a5-e0484fea303f
2733     nsr-id-ref: 52f0b3ac-1574-481f-a48f-528fc02912f7
2734     member-vnf-index-ref: '1'
2735     additionalParamsForVnf:
2736     created-time: 1652105830.965044
2737     vnfd-ref: ha_proxy_charm-vnf
2738     vnfd-id: 8b42078a-9d42-4def-8b5d-7dd0f041d078
2739     vim-account-id: dff4014e-bb5e-441a-a28d-6dd5d86c7175
2740     vca-id:
2741     vdur:
2742     - _id: 392e010d-3a39-4516-acc0-76993c19691f
2743       alt-image-ids:
2744       - '1'
2745       - '2'
2746       - '3'
2747       cloud-init: 8b42078a-9d42-4def-8b5d-7dd0f041d078:file:cloud-config.txt
2748       count-index: 0
2749       id: 392e010d-3a39-4516-acc0-76993c19691f
2750       internal-connection-point:
2751       - connection-point-id: mgmtVM-eth0-int
2752         id: mgmtVM-eth0-int
2753         name: mgmtVM-eth0-int
2754       - connection-point-id: dataVM-xe0-int
2755         id: dataVM-xe0-int
2756         name: dataVM-xe0-int
2757       ip-address: 10.45.28.134
2758       ns-flavor-id: '0'
2759       ns-image-id: '0'
2760       ssh-access-required: true
2761       vdu-id-ref: mgmtVM
2762       vdu-name: mgmtVM
2763       vim_info:
2764         vim:05357241-1a01-416f-9e02-af20f65f51cd:
2765           vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2766           vim_status: ACTIVE
2767           vim_name: test_ns_ch-1-mgmtVM-0
2768       status: ACTIVE
2769       vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2770       name: test_ns_ch-1-mgmtVM-0
2771       vim_details:
2772       vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2773       vim_status: DONE
2774       vim_message:
2775     ip-address: 10.45.28.134
2776     _admin:
2777       created: 1652105830.9652078
2778       modified: 1652105830.9652078
2779       projects_read:
2780       - e38990e1-6724-4292-ab6f-2ecc109f9af4
2781       projects_write:
2782       - e38990e1-6724-4292-ab6f-2ecc109f9af4
2783       nsState: INSTANTIATED
2784     vdu:
2785       status: DONE
2786       vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a
2787 """
2788
2789 1 db_nslcmops_scale_text = """
2790 ---
2791 -   _admin:
2792       created: 1565250912.2643092
2793       modified: 1570026174.83263
2794       projects_read:
2795       - d3581c99-31e3-45f9-b45c-49a290faedbc
2796       current_operation: '5'
2797       deployed:
2798         RO: d9aea288-b9b1-11e9-b19e-02420aff0006
2799         RO-account: d9bb2f1c-b9b1-11e9-b19e-02420aff0006
2800       detailed-status: Done
2801       modified: 1565250912.2643092
2802       operationalState: ENABLED
2803       operations:
2804       - member_vnf_index: '1'
2805         primitive: touch
2806         primitive_params: /home/ubuntu/last-touch-1
2807         operationState: COMPLETED
2808         detailed-status: Done
2809       - member_vnf_index: '1'
2810         primitive: touch
2811         primitive_params: /home/ubuntu/last-touch-2
2812         operationState: COMPLETED
2813         detailed-status: Done
2814       - member_vnf_index: '2'
2815         primitive: touch
2816         primitive_params: /home/ubuntu/last-touch-3
2817         operationState: COMPLETED
2818         detailed-status: Done
2819       projects_read:
2820       - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2821       projects_write:
2822       - b2d2ce4b-a1a0-4c01-847e-048632c43b40
2823       worker: c4055a07655b
2824       deploy:
2825         RO: ACTION-1570026232.061742
2826     _id: 053967e8-7c1c-400f-ae82-3d45b291374b
2827     lcmOperationType: scale
2828     nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2829     statusEnteredTime: 1570026243.09784
2830     startTime: 1570026174.8326
2831     operationParams:
2832       lcmOperationType: scale
2833       nsInstanceId: 90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b
2834       scaleVnfData:
2835         scaleByStepData:
2836           member-vnf-index: '1'
2837           scaling-group-descriptor: scale_scaling_group
2838         scaleVnfType: SCALE_IN
2839       scaleType: SCALE_VNF
2840     isAutomaticInvocation: false
2841     isCancelPending: false
2842     id: 053967e8-7c1c-400f-ae82-3d45b291374b
2843     links:
2844       nsInstance: "/osm/nslcm/v1/ns_instances/90d9ebb7-2b5a-4b7c-bc34-a51fd7ef7b7b"
2845       self: "/osm/nslcm/v1/ns_lcm_op_occs/053967e8-7c1c-400f-ae82-3d45b291374b"
2846     operationState: COMPLETED
2847     detailed-status: done
2848 """
2849
2850 1 ro_update_action_text = """
2851 action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
2852 details: progress 1/1
2853 nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
2854 status: DONE
2855 tasks:
2856 - action: DELETE
2857   action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
2858   item: vdu
2859   nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
2860   status: FINISHED
2861   target_record: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.0.vim_info.vim:2a3dc443-415b-4865-8420-f804b993c5a3
2862   target_record_id: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.e03e2281-c70e-44ef-ac3b-052b81efd31d
2863   task_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d:0
2864 """
2865
2866 1 test_ids = {
2867     # contains the ids of ns and operations of every test
2868     "TEST-A": {
2869         "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2870         "instantiate": "a639fac7-e0bb-4225-8ecb-c1f8efcc125e",
2871         "terminate": "a639fac7-e0bb-4225-ffff-c1f8efcc125e",
2872         "update": "6bd4362f-da74-4bd8-a825-fd00e610c644",
2873     },
2874     "TEST-KDU": {
2875         "ns": "0bcb701c-ee4d-41ab-8ee6-f4156f7f114d",
2876         "instantiate": "cf3aa178-7640-4174-b921-2330e6f2aad6",
2877         "terminate": None,
2878     },
2879     "TEST-NATIVE-KDU": {
2880         "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2881         "instantiate": "52770491-a765-40ce-97a1-c6e200bba7b3",
2882         "terminate": None,
2883     },
2884     "TEST-NATIVE-KDU-2": {
2885         "ns": "c54b14cb-69a8-45bc-b011-d6bea187dc0a",
2886         "instantiate": "4013bbd2-b151-40ee-bcef-7e24ce5432f6",
2887         "terminate": None,
2888     },
2889     "TEST-UPDATE": {
2890         "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2891         "vnf": "88d90b0c-faff-4b9f-bccd-017f33985984",
2892         "removeVnf": "a639fac7-e0bb-4225-8ecb-c1f8efcc125f",
2893     },
2894     "TEST-OP-VNF": {
2895         "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2896         "nslcmops": "1bd4b60a-e15d-49e5-b75e-2b3224f15dda",
2897         "nslcmops1": "6eace44b-2ef4-4de5-b15f-63f2e8898bfb",
2898         "vnfrs": "a6df8aa0-1271-4dfc-85a5-e0484fea303f",
2899     },
2900     "TEST-V-SCALE": {
2901         "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
2902         "instantiate-1": "8b838aa8-53a3-4955-80bd-fbba6a7957ed",
2903         "instantiate": "a21af1d4-7f1a-4f7b-b666-222315113a62",
2904     },
2905 }