Uploaded image for project: 'External API Framework'
  1. External API Framework
  2. EXTAPI-249

Change to oom dockers causing permissions failing when tosca parsing

    XMLWordPrintable

Details

    Description

      old 

       

      PID   USER     TIME  COMMAND

          1 root     36:59 java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemory

        112 root      0:00 sh

        120 root      0:00 ps -ef

      / # ls

      app.jar  dev      lib      proc     sbin     tmp

      bin      etc      media    root     srv      usr

      certs    home     mnt      run      sys      var

       

      / #

       

      new 

      / $ ps -ef

      PID   USER     TIME  COMMAND

          1 appuser   2:25 java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom -jar /app.jar

        126 appuser   0:00 sh

        132 appuser   0:00 ps -ef

      / $ ls -la

      total 46812

      drwxr-xr-x    1 root     root          4096 May 22 09:00 .

      drwxr-xr-x    1 root     root          4096 May 22 09:00 ..

      -rwxr-xr-x    1 root     root             0 May 22 09:00 .dockerenv

      rw-rw-r-    1 root     root      47860592 May  2 10:13 app.jar

      drwxr-xr-x    2 root     root          4096 Apr  8 20:30 bin

      drwxr-xr-x    2 root     root          4096 May  2 10:13 certs

      drwxr-xr-x    5 root     root           360 May 22 09:00 dev

      drwxr-xr-x    1 root     root          4096 May 22 09:00 etc

      drwxr-xr-x    1 root     root          4096 May  2 10:13 home

      drwxr-xr-x    1 root     root          4096 Apr 10 01:52 lib

      drwxr-xr-x    5 root     root          4096 Apr  8 20:30 media

      drwxr-xr-x    2 root     root          4096 Apr  8 20:30 mnt

      drwxr-xr-x    2 root     root          4096 Apr  8 20:30 opt

      dr-xr-xr-x  341 root     root             0 May 22 09:00 proc

      drwx------    2 root     root          4096 Apr  8 20:30 root

      drwxr-xr-x    1 root     root          4096 May 22 09:00 run

      drwxr-xr-x    2 root     root          4096 Apr  8 20:30 sbin

      drwxr-xr-x    2 root     root          4096 Apr  8 20:30 srv

      dr-xr-xr-x   13 root     root             0 May 21 20:31 sys

      drwxrwxrwt    1 root     root          4096 May 22 09:00 tmp

      drwxr-xr-x    1 root     root          4096 Apr 10 01:52 usr

      drwxr-xr-x    1 root     root          4096 Apr  8 20:30 var

      / $ 

       

      Causing

       

      2019-05-22 11:40:39.079 ERROR 1 — [nio-8080-exec-7] o.o.nbi.apis.servicecatalog.SdcClient    : cannot get TOSCA File for url /sdc/v1/catalog/services/0187be8c-8efb-4531-97fa-dbe984ed9cdb/toscaModel

       

      java.io.FileNotFoundException: 1558525238795tosca.csar (Permission denied)

      at java.io.FileOutputStream.open0(Native Method) ~[na:1.8.0_201]

      at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[na:1.8.0_201]

      at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[na:1.8.0_201]

      at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[na:1.8.0_201]

      at org.onap.nbi.apis.servicecatalog.SdcClient.callGetWithAttachment(SdcClient.java:138) ~[classes!/:na]

      at org.onap.nbi.apis.servicecatalog.ServiceSpecificationService.get(ServiceSpecificationService.java:67) [classes!/:na]

      at org.onap.nbi.apis.servicecatalog.ServiceSpecificationResource.getServiceSpecification(ServiceSpecificationResource.java:45) [classes!/:na]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201]

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_201]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_201]

      at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_201]

      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

              romaingimbert romain gimbert
              aosull01 Adrian OSullivan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: