Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-6674

FIWARE.Request.Lab.Trento.Error 400 trying to create docker instance

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-LAB-HELP
    • Labels:
      None

      Description

      Hello,
      I’m using this command to setup a docker instance, but it fails:

      docker-machine -D create -d openstack --openstack-flavor-id="2" --openstack-image-id="394fa439-3332-4cdc-ab11-9fa2af32510b" --openstack-net-name="node-int-net-01" --openstack-floatingip-pool="public-ext-net-01" --openstack-sec-groups="default" --openstack-ssh-user="ubuntu" FIWARE-TRENTO7

      Those are the environment variables

      export OS_REGION_NAME='Trento2'
      export OS_TENANT_NAME='macteo cloud'
      export OS_USERNAME='matteo.gavagnin@dimension.it'
      export OS_PASSWORD='XXXXXX'
      export OS_AUTH_URL='http://cloud.lab.fi-ware.org:4730/v2.0/'
      export OS_AUTH_STRATEGY='keystone'

      This the docker-machine log

      Docker Machine Version: 0.7.0, build a650a40
      Found binary path at /usr/local/bin/docker-machine
      Launching plugin server for driver openstack
      Plugin server listening at address 127.0.0.1:54754
      () Calling .GetVersion
      Using API Version 1
      () Calling .SetConfigRaw
      () Calling .GetMachineName
      (flag-lookup) Calling .GetMachineName
      (flag-lookup) Calling .DriverName
      (flag-lookup) Calling .GetCreateFlags
      Found binary path at /usr/local/bin/docker-machine
      Launching plugin server for driver openstack
      Plugin server listening at address 127.0.0.1:54758
      () Calling .GetVersion
      Using API Version 1
      () Calling .SetConfigRaw
      () Calling .GetMachineName
      (FIWARE-TRENTO7) Calling .GetMachineName
      (FIWARE-TRENTO7) Calling .DriverName
      (FIWARE-TRENTO7) Calling .GetCreateFlags
      (FIWARE-TRENTO7) Calling .SetConfigFromFlags
      Running pre-create checks...
      (FIWARE-TRENTO7) Calling .PreCreateCheck
      (FIWARE-TRENTO7) Calling .GetConfigRaw
      Creating machine...
      (FIWARE-TRENTO7) Calling .Create
      (FIWARE-TRENTO7) DBG | Authenticating... map[Insecure:false DomainID: DomainName: Username:matteo.gavagnin@dimension.it TenantName:macteo cloud TenantID: AuthUrl:http://cloud.lab.fi-ware.org:4730/v2.0/]
      (FIWARE-TRENTO7) DBG | Found network id using its name map[Name:node-int-net-01 ID:6a58aba8-d643-46e8-9ca7-12e1bbaaa24b]
      (FIWARE-TRENTO7) DBG | Found floating IP pool id using its name map[Name:public-ext-net-01 ID:0caba5e4-ce3e-4920-ba91-e832122be65a]
      (FIWARE-TRENTO7) DBG | Found tenant id using its name map[Name:macteo cloud ID:0e57ccffe8b44e7faf0c401681c71845]
      (FIWARE-TRENTO7) DBG | Creating Key Pair... map[Name:FIWARE-TRENTO7-539851fbad1006f16d5854d2c95fe22e165ff1660edf0875d4fdf75a660e1951]
      (FIWARE-TRENTO7) DBG | Creating OpenStack instance... map[FlavorId:2 ImageId:394fa439-3332-4cdc-ab11-9fa2af32510b]
      (FIWARE-TRENTO7) Creating machine...
      Error creating machine: Error in driver during machine creation: Expected HTTP response code [201 202] when accessing [POST http://185.38.252.8:8774/v2/0e57ccffe8b44e7faf0c401681c71845/servers], but got 400 instead
      {"badRequest": {"message": "Can not find requested image", "code": 400}}
      Opting out of crash reporting.

      Can you help me solve the issue?

      Best regards,
      Matteo Gavagnin
      DIMENSION S.r.l.
      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: Matteo Gavagnin <matteo.gavagnin@dimension.it>]

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        19h 31m 1 Trento Node Team 27/May/16 10:47 AM
        In Progress In Progress Answered Answered
        15s 1 Trento Node Team 27/May/16 10:48 AM
        Answered Answered Closed Closed
        4h 36m 1 Trento Node Team 27/May/16 3:24 PM

          People

          • Assignee:
            TrentoNodeTeam Trento Node Team
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: