Hi,
            From the OOF logs the service name is set to 'nst'. While I
created the service as 'EmbbNst_O2' at the time of design.
So the question is which component is passing these values to OOF. And
also, OOF fails with internal error (as in below log). Any clues or hints ?

+00:00|2021-03-19T03:24:43.847+00:00|||Thread-91||||||||||DEBUG||||||||||||||policy_request_json
{'requestInfo': {'transactionId': 'b7bcabe3-9d83-4ad1-b98b-8450dbf18802',
'requestId': 'b7bcabe3-9d83-4ad1-b98b-8450dbf18802', 'sourceId': 'so',
'timeout': 600, 'callbackUrl': '
http://so-oof-adapter.onap:8090/so/adapters/oof/callback/v1/NSTSelectionResponse/b7bcabe3-9d83-4ad1-b98b-8450dbf18802',
'numSolutions': 1}, 'serviceProfile': {'maxPktSize': 0, 'termDensity': 0,
'maxNumberofUEs': 1000, 'survivalTime': '', 'latency': 50, 'reliability':
'', 'dLThptPerSlice': 40000000, 'availability': '0.0', 'sNSSAI':
'01-39997FF8', 'jitter': 10, 'sST': '', 'dLThptPerUE': 1000,
'maxNumberofConns': 60000, 'uEMobilityLevel': 'stationary', 'uLThptPerUE':
1000, 'pLMNIdList': '', 'coverageAreaTAList':
'Beijing;Beijing;HaidianDistrict;WanshouluStreet', 'uLThptPerSlice':
40000000, 'activityFactor': '20', 'resourceSharingLevel': 'non-shared'},
'serviceInfo': {'serviceName': 'nst'}}
+00:00|2021-03-19T03:24:43.850+00:00|||Thread-91||||||||||INFO||||||||||||||Making
a call to service policy for request ID:
b7bcabe3-9d83-4ad1-b98b-8450dbf18802
+00:00|2021-03-19T03:24:43.851+00:00|||Thread-91||||||||||DEBUG||||||||||||||Requesting
URL: https://policy-xacml-pdp:6969/policy/pdpx/v1/decision
+00:00|2021-03-19T03:24:43.932+00:00|||Thread-91||||||||||DEBUG||||||||||||||Received
response [code: 200, headers: {'Date': 'Fri, 19 Mar 2021 03:24:43 GMT',
'X-MinorVersion': '0', 'X-PatchVersion': '0', 'X-LatestVersion': '1.0.0',
'X-ONAP-RequestID': '0a48c081-52b0-4089-9304-fb60a2d0d025', 'Content-Type':
'application/json', 'Content-Length': '32', 'Server':
'Jetty(9.4.33.v20201020)'}, data: {'_content':
b'{"status":"error","policies":{}}', '_content_consumed': True, '_next':
None, 'status_code': 200, 'headers': {'Date': 'Fri, 19 Mar 2021 03:24:43
GMT', 'X-MinorVersion': '0', 'X-PatchVersion': '0', 'X-LatestVersion':
'1.0.0', 'X-ONAP-RequestID': '0a48c081-52b0-4089-9304-fb60a2d0d025',
'Content-Type': 'application/json', 'Content-Length': '32', 'Server':
'Jetty(9.4.33.v20201020)'}, 'raw': <urllib3.response.HTTPResponse object at
0x7fda8d87f0d0>, 'url': '
https://policy-xacml-pdp:6969/policy/pdpx/v1/decision', 'encoding': None,
'history': [], 'reason': 'OK', 'cookies': <RequestsCookieJar[]>, 'elapsed':
datetime.timedelta(microseconds=64416), 'request': <PreparedRequest
[POST]>, 'connection': <requests.adapters.HTTPAdapter object at
0x7fda8d86b310>}]
.
.
.
+00:00|2021-03-19T03:24:55.403+00:00|||Thread-91||||||||||DEBUG||||||||||||||Requesting
URL: https://oof-has-api:8091/v1/plans/b741e313-5f26-4d3b-bf4a-0692b7a84975
+00:00|2021-03-19T03:24:58.009+00:00|||Thread-91||||||||||DEBUG||||||||||||||Received
response [code: 200, headers: {'Server': 'nginx/1.18.0', 'Date': 'Fri, 19
Mar 2021 03:24:57 GMT', 'Content-Type': 'application/json',
'Content-Length': '318', 'Connection': 'keep-alive', 'X-MinorVersion': '0',
'X-PatchVersion': '3', 'X-LatestVersion': '2.1.3'}, data: {'_content':
b'{"plans": [{"name": "b7bcabe3-9d83-4ad1-b98b-8450dbf18802", "id":
"b741e313-5f26-4d3b-bf4a-0692b7a84975", "status": "error", "message":
"[local variable \'triage_data_trans\' referenced before assignment]",
"links": [[{"href": "
https://oof-has-api:8091/v1/plans/b741e313-5f26-4d3b-bf4a-0692b7a84975";,
"rel": "self"}]]}]}', '_content_consumed': True, '_next': None,
'status_code': 200, 'headers': {'Server': 'nginx/1.18.0', 'Date': 'Fri, 19
Mar 2021 03:24:57 GMT', 'Content-Type': 'application/json',
'Content-Length': '318', 'Connection': 'keep-alive', 'X-MinorVersion': '0',
'X-PatchVersion': '3', 'X-LatestVersion': '2.1.3'}, 'raw':
<urllib3.response.HTTPResponse object at 0x7fda8c78d910>, 'url': '
https://oof-has-api:8091/v1/plans/b741e313-5f26-4d3b-bf4a-0692b7a84975',
'encoding': None, 'history': [], 'reason': 'OK', 'cookies':
<RequestsCookieJar[]>, 'elapsed': datetime.timedelta(seconds=2,
microseconds=575663), 'request': <PreparedRequest [GET]>, 'connection':
<requests.adapters.HTTPAdapter object at 0x7fda8d86b3d0>}]
+00:00|2021-03-19T03:24:58.011+00:00|||Thread-91||||||||||ERROR|||||||||||errorCode=400,errorDescription=Internal
Error|||Error from conductor [local variable 'triage_data_trans' referenced
before assignment]
+00:00|2021-03-19T03:24:58.013+00:00|||Thread-91||||||||||DEBUG|||||||||||errorCode=400,errorDescription=Internal
Error|||Requesting URL:
http://so-oof-adapter.onap:8090/so/adapters/oof/callback/v1/NSTSelectionResponse/b7bcabe3-9d83-4ad1-b98b-8450dbf18802
+00:00|2021-03-19T03:25:57.808+00:00|||Thread-91||||||||||ERROR|||||||||||errorCode=400,errorDescription=Internal
Error|||Error sending asynchronous notification for
b7bcabe3-9d83-4ad1-b98b-8450dbf18802 Traceback (most recent call last):
File "/opt/osdf/apps/nst/optimizers/nst_select_processor.py", line 65, in
process_nst_selection     rest_client.request(json=solution,
noresponse=True)   File "/opt/osdf/osdf/utils/interfaces.py", line 107, in
request     raise res.raise_for_status()   File
"/usr/lib/python3/dist-packages/requests/models.py", line 940, in
raise_for_status     raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error:  for url:
http://so-oof-adapter.onap:8090/so/adapters/oof/callback/v1/NSTSelectionResponse/b7bcabe3-9d83-4ad1-b98b-8450dbf18802

thanks,
-RP Mishra

On Thu, Mar 18, 2021 at 7:25 PM Rajendra Prasad Mishra via lists.onap.org
<[email protected]> wrote:

> I ran the following commands based on the wiki (
> https://wiki.onap.org/display/DW/Optimization+Policy+Creation+Steps)
> python3 policy_utils.py create_policy_types policy_types
> onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies$ python3 policy_utils.py
> generate_nsi_policies EmbbNst_O2
> onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies$ python3 policy_utils.py
> generate_nssi_policies Tn_ONAP_internal_BH  minimize latency
> onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies$ python3 policy_utils.py
> generate_nssi_policies EmbbAn_NF  minimize latency
> onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies$ python3 policy_utils.py
> generate_nssi_policies EmbbCn_External  minimize latencyAnd below is the
> list of all files and directories, my suspicion is that there is something
> wrong with it. We should have only one set of DIR's
> Can someone confirm if this is 
> ok.onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies$
> ls -R
> .:
> gen_nsi_policies  gen_nssi_policies  nsi_policies  nssi_policies
> policy_types  policy_utils.py  requirements.txt
> ./gen_nsi_policies:
> optimization_nsi_create_new.json  optimization_nsi_non_shared.json
> optimization_nsi_reuse.json  query_nsi.json  threshold_nsi.json
> vnf_nsi_nonshared.json  vnf_nsi_shared.json./gen_nssi_policies:
> optimization_nssi.json  query_nssi.json  threshold_nssi.json  vnf_nssi.json
> ./nsi_policies:
> optimization_nsi_create_new.json  optimization_nsi_non_shared.json
> optimization_nsi_reuse.json  query_nsi.json  threshold_nsi.json
> vnf_nsi_nonshared.json  vnf_nsi_shared.json./nssi_policies:
> optimization_nssi.json  query_nssi.json  threshold_nssi.json  vnf_nssi.json
> ./policy_types:
> optimization_v2.json  threshold.json
>
> The files in gen_nsi_policies has the service name set, while the ones in
> nsi_policies has only template names.
>
> onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies/gen_nsi_policies$ cat
> optimization_nsi_create_new.json
> {"tosca_definitions_version": "tosca_simple_yaml_1_1_0",
> "topology_template": {"policies": [{"maximizeCost_EmbbNst_O2": {"metadata":
> {"policy-id": "maximizeCost_EmbbNst_O2", "policy-version": 1},
> "properties": {"geography": [], "identity": "optimization", "goal":
> "maximize", "operation_function": {"operator": "sum", "operands":
> [{"function": "attribute", "params": {"attribute": "creation_cost",
> "demand": "EmbbNst_O2"}}]}, "resources": ["EmbbNst_O2"], "scope":
> ["shared,create_new"], "services": ["EmbbNst_O2"]}, "type":
> "onap.policies.optimization.resource.OptimizationPolicy", "type_version":
> "2.0.0", "version": "1.0.0"}}]}}onap@dev-oof-f6568dc78-7b8d9
> :/opt/osdf/policies/gen_nsi_policies$
>
> onap@dev-oof-f6568dc78-7b8d9:/opt/osdf/policies/nsi_policies$ cat
> optimization_nsi_create_new.json
> {
>     "maximizeCost_{{ service_name }}": {
>         "metadata": {
>             "policy-id": "maximizeCost_{{ service_name }}",
>             "policy-version": 1
>         },
>         "properties": {
>             "geography": [],
>             "identity": "optimization",
>             "goal": "maximize",
>             "operation_function": {
>                 "operator": "sum",
>                 "operands": [
>                     {
>                         "function": "attribute",
>                         "params": {
>                             "attribute": "creation_cost",
>                             "demand": "{{ service_name }}"
>                         }
>                     }
>                 ]
>             },
>             "resources": [
>                 "{{ service_name }}"
>             ],
>             "scope": [
>                 "shared,create_new"
>             ],
>             "services": [
>                 "{{ service_name }}"
>             ]
>         },
>         "type": "onap.policies.optimization.resource.OptimizationPolicy",
>         "type_version": "2.0.0",
>         "version": "1.0.0"
>     }
> }
>
>
> thanks,
> -RP
>
>
> On Wed, Mar 17, 2021 at 8:44 PM Aniello Paolo Malinconico via
> lists.onap.org <aniellopaolo.malinconico=
> [email protected]> wrote:
>
>> Have you pushed all policies properly?
>>
>>
>>
>> Thanks,
>> Aniello
>>
>> -----------------------------------------------------------------
>> *TIM*
>> *Aniello Paolo Malinconico*
>> Chief Innovation & Partnership Office
>> Technology Innovation
>>
>> *TIM S.p.A.*
>> Via G. Reiss Romoli, 274 – 10148 TORINO
>> email: [email protected]
>> Tim Official: *Facebook* <https://www.facebook.com/TimOfficialPage> -
>> *Twitter* <https://twitter.com/tim_official> - *www.tim.it*
>> <http://www.tim.it/>
>>
>>
>
> --
>
> *CRN Top 10 Coolest Edge Computing Startups of 2020
> <https://www.crn.com/slide-shows/networking/the-10-coolest-edge-computing-startups-of-2020/2>*
> 
>
>

-- 

*CRN Top 10 Coolest Edge Computing Startups of 2020
<https://www.crn.com/slide-shows/networking/the-10-coolest-edge-computing-startups-of-2020/2>*


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23030): https://lists.onap.org/g/onap-discuss/message/23030
Mute This Topic: https://lists.onap.org/mt/80898505/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to