Hi all, I am testing e2e network slicing use case on Istanbul environment.
I have an issue with the Policy module. The policy module returns 401 Unauthorized as http status code when I try to push a policy, as below: onap@dev-oof-f69b675cc-tg6ws:/opt/osdf$ cd policies/nsi/ onap@dev-oof-f69b675cc-tg6ws:/opt/osdf/policies/nsi$ python3 policy_utils.py create_policy_types policy_types /usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'policy-api'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings warnings.warn( b'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 401 Unauthorized</title>\n</head>\n<body><h2>HTTP ERROR 401 Unauthorized</h2>\n<table>\n<tr><th>URI:</th><td>/policy/api/v1/policytypes</td></tr>\n<tr><th>STATUS:</th><td>401</td></tr>\n<tr><th>MESSAGE:</th><td>Unauthorized</td></tr>\n<tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-3af2f846</td></tr>\n</table>\n<hr><a href=" https://eclipse.org/jetty ">Powered by Jetty:// 9.4.41.v20210516</a><hr/>\n\n</body>\n</html>\n' /usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'policy-api'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings warnings.warn( b'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 401 Unauthorized</title>\n</head>\n<body><h2>HTTP ERROR 401 Unauthorized</h2>\n<table>\n<tr><th>URI:</th><td>/policy/api/v1/policytypes</td></tr>\n<tr><th>STATUS:</th><td>401</td></tr>\n<tr><th>MESSAGE:</th><td>Unauthorized</td></tr>\n<tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-3af2f846</td></tr>\n</table>\n<hr><a href=" https://eclipse.org/jetty ">Powered by Jetty:// 9.4.41.v20210516</a><hr/>\n\n</body>\n</html>\n' onap@dev-oof-f69b675cc-tg6ws:/opt/osdf/policies/nsi$ or man2mob@onap-fe:~$ curl -k -v https://192.168.64.30:31566/policy/pap/v1/healthcheck * Trying 192.168.64.30... * TCP_NODELAY set * Connected to 192.168.64.30 (192.168.64.30) port 31566 (#0) <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 401 Unauthorized</title> </head> <body><h2>HTTP ERROR 401 Unauthorized</h2> <table> <tr><th>URI:</th><td>/policy/pap/v1/components/healthcheck</td></tr> <tr><th>STATUS:</th><td>401</td></tr> <tr><th>MESSAGE:</th><td>Unauthorized</td></tr> <tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-3af2f846</td></tr> </table> <hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.41.v20210516</a><hr/> </body> </html> * Connection #0 to host 192.168.64.30 left intact How can I fix it? 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/ ) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#23825): https://lists.onap.org/g/onap-discuss/message/23825 Mute This Topic: https://lists.onap.org/mt/89182074/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
