Restconf API authentification: User/password fail #appc


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

Hello,
I have APPC installed from OOM Dublin version.

I can see all theAPPC pods actives but when I try to reach the Restconf API using the user: admin and password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U 
it fails the authenticate.

Doesn't anyone knows if this credential is valid? I am reading the username/password from values.yaml file and even from appc.properties, but I cannot authenticate to http://host_ip:8181/apidoc/explorer/index.html or http://host_ip:8181/restconf/operations/appc-provider 

Thanks!
Steve


Yang Xu
 

Steve,

 

If you have access to integration lab, try it on one of full ONAP instances (Integration-SB-00) we deployed for ONAP pairwise testing  http://10.12.6.122:30230/apidoc/explorer/index.html.  The credential works for me on this deployment. Note I used APPC service port 30230.

 

Regards,

-yang

 

From: onap-discuss@... [mailto:onap-discuss@...] On Behalf Of Steve Siani
Sent: Wednesday, April 24, 2019 9:47 AM
To: onap-discuss@...
Subject: [onap-discuss] Restconf API authentification: User/password fail #appc

 

Hello,
I have APPC installed from OOM Dublin version.

I can see all theAPPC pods actives but when I try to reach the Restconf API using the user: admin and password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U 
it fails the authenticate.

Doesn't anyone knows if this credential is valid? I am reading the username/password from values.yaml file and even from appc.properties, but I cannot authenticate to http://host_ip:8181/apidoc/explorer/index.html or http://host_ip:8181/restconf/operations/appc-provider 

Thanks!
Steve


Lathish
 

Hi Steve,

 

Can you also check the port no? Usually it will be 8282(internal) or 30230 (external) unless you change it.

 

Can you do get services on your appc pod and verify it.

 

Br,

Lathish

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of Yang Xu via Lists.Onap.Org
Sent: Thursday, April 25, 2019 3:30 AM
To: onap-discuss@...; alphonse.steve.siani.djissitchi@...
Subject: Re: [onap-discuss] Restconf API authentification: User/password fail #appc

 

Steve,

 

If you have access to integration lab, try it on one of full ONAP instances (Integration-SB-00) we deployed for ONAP pairwise testing  http://10.12.6.122:30230/apidoc/explorer/index.html.  The credential works for me on this deployment. Note I used APPC service port 30230.

 

Regards,

-yang

 

From: onap-discuss@... [mailto:onap-discuss@...] On Behalf Of Steve Siani
Sent: Wednesday, April 24, 2019 9:47 AM
To: onap-discuss@...
Subject: [onap-discuss] Restconf API authentification: User/password fail #appc

 

Hello,
I have APPC installed from OOM Dublin version.

I can see all theAPPC pods actives but when I try to reach the Restconf API using the user: admin and password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U 
it fails the authenticate.

Doesn't anyone knows if this credential is valid? I am reading the username/password from values.yaml file and even from appc.properties, but I cannot authenticate to http://host_ip:8181/apidoc/explorer/index.html or http://host_ip:8181/restconf/operations/appc-provider 

Thanks!
Steve


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

I was try with all 8282, 30230 and the nodePort pointing to Appc container and it was not working.

It fails authenticate with the OOM installation. I have tried a local installation using APPC images uptream and docker-compose and it work perfect. No fail Authentication anymore, I did investigate to understand why it doesn't work with OOM installation.

Regards,
Steve


Taka Cho
 

Are all bundles active in your OOM env?

 

Are all APPC pods running? Any pv pvc wrong status ? If you are taking the master head of APPC helm chart, then should be working w/o any issue…

 

Taka

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of Steve Siani
Sent: Monday, April 29, 2019 1:00 PM
To: Lathish <lathishbabu.ganesan@...>; onap-discuss@...
Subject: Re: [onap-discuss] Restconf API authentification: User/password fail #appc

 

I was try with all 8282, 30230 and the nodePort pointing to Appc container and it was not working.

It fails authenticate with the OOM installation. I have tried a local installation using APPC images uptream and docker-compose and it work perfect. No fail Authentication anymore, I did investigate to understand why it doesn't work with OOM installation.

Regards,
Steve


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

Sure!



PV and PVC:
 
    persistentvolume/ssteve-appc-appc-data0             1Gi    RWO     Retain    Bound      ssteve/ssteve-appc-appc-data-ssteve-appc-appc-0          ssteve-appc-appc-data         5d23h
    persistentvolume/ssteve-appc-appc-db-data0        2Gi    RWX     Retain    Bound      ssteve/ssteve-appc-appc-db-data-ssteve-appc-appc-db-0    ssteve-appc-appc-db-data      5d23h
    persistentvolume/ssteve-appc-appc-db-data1        2Gi    RWX     Retain    Bound      ssteve/ssteve-appc-appc-db-data-ssteve-appc-appc-db-2    ssteve-appc-appc-db-data      5d23h
    persistentvolume/ssteve-appc-appc-db-data2        2Gi    RWX     Retain    Bound      ssteve/ssteve-appc-appc-db-data-ssteve-appc-appc-db-1    ssteve-appc-appc-db-data      5d23h
    
    persistentvolumeclaim/ssteve-appc-appc-ansible-se...e-server-0          Bound     ssteve-appc...-ansible-server-data0   1Gi    RWX    ssteve-appc...-a..-data    5d23h
    persistentvolumeclaim/ssteve-appc-appc-data-ssteve-appc-appc-0          Bound     ssteve-appc-appc-data0                1Gi    RWO    ssteve-appc-appc-data      5d23h
    persistentvolumeclaim/ssteve-appc-appc-db                               Pending                                                                                  5d23h
    persistentvolumeclaim/ssteve-appc-appc-db-data-ssteve-appc-appc-db-0    Bound     ssteve-appc-appc-db-data0             2Gi    RWX    ssteve-appc-appc-db-data   5d23h
    persistentvolumeclaim/ssteve-appc-appc-db-data-ssteve-appc-appc-db-1    Bound     ssteve-appc-appc-db-data2             2Gi    RWX    ssteve-appc-appc-db-data   5d23h
    persistentvolumeclaim/ssteve-appc-appc-db-data-ssteve-appc-appc-db-2    Bound     ssteve-appc-appc-db-data1             2Gi    RWX    ssteve-appc-appc-db-data   5d23h


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

Yes, thank you for the correction. I did not investigate.
 
Use the docker-compose file in appc/deployment/docker-compose/  under the APPC/deployment project : ssh://gerrit.onap.org:29418/appc/deployment
 
Regards,
Steve
 

----- Original message -----
From: Avi Chapnick <avi.chapnic@...>
To: "onap-discuss@..." <onap-discuss@...>, "alphonse.steve.siani.djissitchi@..." <alphonse.steve.siani.djissitchi@...>, Lathish <lathishbabu.ganesan@...>
Cc:
Subject: RE: [onap-discuss] Restconf API authentification: User/password fail #appc
Date: Mon, Apr 29, 2019 1:05 PM
 

Hi Steve,

 

Thanks for the information,

You meant “I did not investigate to understand why it doesn't work with OOM installation.”

 

Did you use a specific docker compose yaml or created by yourself one?

 

Avi,

From: onap-discuss@... <onap-discuss@...> On Behalf Of Steve Siani
Sent: Monday, April 29, 2019 8:00 PM
To: Lathish <lathishbabu.ganesan@...>; onap-discuss@...
Subject: Re: [onap-discuss] Restconf API authentification: User/password fail #appc

 

I was try with all 8282, 30230 and the nodePort pointing to Appc container and it was not working.

It fails authenticate with the OOM installation. I have tried a local installation using APPC images uptream and docker-compose and it work perfect. No fail Authentication anymore, I did investigate to understand why it doesn't work with OOM installation.

Regards,
Steve

This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service

 


Taka Cho
 

Do you have AAF pod installed as well?

 

Taka

 

From: Steve Siani <alphonse.steve.siani.djissitchi@...>
Sent: Monday, April 29, 2019 2:37 PM
To: CHO, TAKAMUNE <tc012c@...>; onap-discuss@...
Subject: Re: [onap-discuss] Restconf API authentification: User/password fail #appc

 

Sure!



PV and PVC:

 

    persistentvolume/ssteve-appc-appc-data0             1Gi    RWO     Retain    Bound      ssteve/ssteve-appc-appc-data-ssteve-appc-appc-0          ssteve-appc-appc-data         5d23h

    persistentvolume/ssteve-appc-appc-db-data0        2Gi    RWX     Retain    Bound      ssteve/ssteve-appc-appc-db-data-ssteve-appc-appc-db-0    ssteve-appc-appc-db-data      5d23h

    persistentvolume/ssteve-appc-appc-db-data1        2Gi    RWX     Retain    Bound      ssteve/ssteve-appc-appc-db-data-ssteve-appc-appc-db-2    ssteve-appc-appc-db-data      5d23h

    persistentvolume/ssteve-appc-appc-db-data2        2Gi    RWX     Retain    Bound      ssteve/ssteve-appc-appc-db-data-ssteve-appc-appc-db-1    ssteve-appc-appc-db-data      5d23h

    

    persistentvolumeclaim/ssteve-appc-appc-ansible-se...e-server-0          Bound     ssteve-appc...-ansible-server-data0   1Gi    RWX    ssteve-appc...-a..-data    5d23h

    persistentvolumeclaim/ssteve-appc-appc-data-ssteve-appc-appc-0          Bound     ssteve-appc-appc-data0                1Gi    RWO    ssteve-appc-appc-data      5d23h

    persistentvolumeclaim/ssteve-appc-appc-db                               Pending                                                                                  5d23h

    persistentvolumeclaim/ssteve-appc-appc-db-data-ssteve-appc-appc-db-0    Bound     ssteve-appc-appc-db-data0             2Gi    RWX    ssteve-appc-appc-db-data   5d23h

    persistentvolumeclaim/ssteve-appc-appc-db-data-ssteve-appc-appc-db-1    Bound     ssteve-appc-appc-db-data2             2Gi    RWX    ssteve-appc-appc-db-data   5d23h

    persistentvolumeclaim/ssteve-appc-appc-db-data-ssteve-appc-appc-db-2    Bound     ssteve-appc-appc-db-data1             2Gi    RWX    ssteve-appc-appc-db-data   5d23h


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

No, I am trying to have a standalone app.

I just need to play with APPC, is there any projects dependency?

Regards,
Steve


Taka Cho
 

All components ONAP are all tied up with AAF.

The minimum set in order to make APPC functioned. You need  AAF – authentication/authorization, and AAI – Inventory , and DMaaP (this is optional, you can use postman, curl or apidoc to post the LCM API instead).

 

On the docker compose, at least you need to install AAI.

 

Taka

 

From: Steve Siani <alphonse.steve.siani.djissitchi@...>
Sent: Monday, April 29, 2019 11:41 PM
To: CHO, TAKAMUNE <tc012c@...>; onap-discuss@...
Subject: Re: [onap-discuss] Restconf API authentification: User/password fail #appc

 

No, I am trying to have a standalone app.

I just need to play with APPC, is there any projects dependency?

Regards,
Steve


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

Thank you very much Taka!

Regards,
Steve


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

For Casablanca release, I guest we just need AAI right? I am only interest on LCM.

Regards,
Steve


Taka Cho
 

On docker compose, yes.

 

On k8s, you need AAF also.

 

Taka

 

From: Steve Siani <alphonse.steve.siani.djissitchi@...>
Sent: Tuesday, April 30, 2019 9:37 AM
To: CHO, TAKAMUNE <tc012c@...>; onap-discuss@...
Subject: Re: [onap-discuss] Restconf API authentification: User/password fail #appc

 

For Casablanca release, I guest we just need AAI right? I am only interest on LCM.

Regards,
Steve


Steve Siani <alphonse.steve.siani.djissitchi@...>
 

Does someone found a way to bypass AAF on APPC in code?

It could be helpful for me if I can skip this authentication module and use static parameters in applications properties.

If no answer here, I will create a new topic for that.

Thanks!
Steve