Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-6574

importing openapi fails on container image

    XMLWordPrintable

Details

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Undefined
    • Hide
      1. prepare an openapi definition file
      2. podman login registry.redhat.io
      3. podman run --rm -v ${ABSOLUTE_RESOURCE_PATH}:/tmp/toolbox:Z registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 3scale import openapi -d https://${AUTH}@{3SCALE_ADMIN}-admin.{DOMAIN_NAME /tmp/toolbox/my-test-api.json
        
      Show
      prepare an openapi definition file podman login registry.redhat.io podman run --rm -v ${ABSOLUTE_RESOURCE_PATH}:/tmp/toolbox:Z registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 3scale import openapi -d https: //${AUTH}@{3SCALE_ADMIN}-admin.{DOMAIN_NAME /tmp/toolbox/my-test-api.json

    Description

      I tested ths command:

      podman run --rm -v ${ABSOLUTE_RESOURCE_PATH}:/tmp/toolbox:Z registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 3scale import openapi -d https://${AUTH}@{3SCALE_ADMIN}-admin.{DOMAIN_NAME /tmp/toolbox/my-test-api.json
      

      Then got permssion error:

      /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:39:in `initialize': Permission denied @ rb_sysopen - crash.log (Errno::EACCES)
      	from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:39:in `open'
      	from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:39:in `print_unexpected_error'
      	from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:25:in `handle_error'
      	from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:13:in `rescue in error_watchdog'
      	from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:9:in `error_watchdog'
      	from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `error_watchdog'
      	from /opt/toolbox/lib/3scale_toolbox/cli.rb:44:in `run'
      	from /opt/toolbox/exe/3scale:15:in `<top (required)>'
      	from /opt/toolbox/bin/3scale:29:in `load'
      	from /opt/toolbox/bin/3scale:29:in `<main>'
      

      When I run bash in the container:

      podman run --rm -v ${ABSOLUTE_RESOURCE_PATH}:/tmp/toolbox:Z registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 /bin/bash
      

      I can access to /tmp/toolbox/my-test-api.json, but cannot create files under /opt/toolbox .

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-tkonishi Takayuki Konishi
              Martin Kudlej Martin Kudlej
              Eguzki Astiz Lezaun Eguzki Astiz Lezaun
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: