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

        Hide
        danieles Daniele Santoro added a comment -

        Dear,

        Seems that the image ID you are using is not valid.

        I'm assuming you are using Trento region and I'm going to forward the issue to the Trento node support team. They can give you more detailed information about the problem.

        Please let me know if you are using a different region other than region.

        Best,
        Daniele

        Show
        danieles Daniele Santoro added a comment - Dear, Seems that the image ID you are using is not valid. I'm assuming you are using Trento region and I'm going to forward the issue to the Trento node support team. They can give you more detailed information about the problem. Please let me know if you are using a different region other than region. Best, Daniele
        Hide
        fw.ext.user FW External User added a comment -

        Comment by matteo.gavagnin@dimension.it :

        I confirm that I’m using the Trento2 region.
        The image is a brand new clean base_ubuntu_14.04 m1.small just instantiated.

        > On 26 May 2016, at 15:26, Help-Desk <jira-help-desk@fi-ware.org> wrote:
        >
        >
        >

        Show
        fw.ext.user FW External User added a comment - Comment by matteo.gavagnin@dimension.it : I confirm that I’m using the Trento2 region. The image is a brand new clean base_ubuntu_14.04 m1.small just instantiated. > On 26 May 2016, at 15:26, Help-Desk <jira-help-desk@fi-ware.org> wrote: > > >
        Hide
        fw.ext.user FW External User added a comment -

        Comment by matteo.gavagnin@dimension.it :

        Up, still blocked.

        Do you suggest to delete and recreate the instance? Will it help?
        Do you have a base flavour to suggest? Ubuntu 14.04 is ok?

        Best regards,
        Matteo

        > On 26 May 2016, at 15:28, Matteo Gavagnin <matteo.gavagnin@dimension.it> wrote:
        >
        > I confirm that I’m using the Trento2 region.
        > The image is a brand new clean base_ubuntu_14.04 m1.small just instantiated.
        >
        >> On 26 May 2016, at 15:26, Help-Desk <jira-help-desk@fi-ware.org> wrote:
        >>
        >>
        >>
        >

        Show
        fw.ext.user FW External User added a comment - Comment by matteo.gavagnin@dimension.it : Up, still blocked. Do you suggest to delete and recreate the instance? Will it help? Do you have a base flavour to suggest? Ubuntu 14.04 is ok? Best regards, Matteo > On 26 May 2016, at 15:28, Matteo Gavagnin <matteo.gavagnin@dimension.it> wrote: > > I confirm that I’m using the Trento2 region. > The image is a brand new clean base_ubuntu_14.04 m1.small just instantiated. > >> On 26 May 2016, at 15:26, Help-Desk <jira-help-desk@fi-ware.org> wrote: >> >> >> >
        Hide
        TrentoNodeTeam Trento Node Team added a comment -

        The ID of the image base_ubuntu_14 is 0d845577-6a36-4f3b-8cdc-6ed6afaf09dc

        Regards

        TrentoNodeTeam

        Show
        TrentoNodeTeam Trento Node Team added a comment - The ID of the image base_ubuntu_14 is 0d845577-6a36-4f3b-8cdc-6ed6afaf09dc Regards TrentoNodeTeam
        Hide
        fw.ext.user FW External User added a comment -

        Comment by matteo.gavagnin@dimension.it :

        Thanks, I was using the identifier of an existing (empty) instance, not the one of a base image.

        That solved this issue.
        Matteo

        > On 27 May 2016, at 10:48, Help-Desk <jira-help-desk@fi-ware.org> wrote:
        >
        >
        >

        Show
        fw.ext.user FW External User added a comment - Comment by matteo.gavagnin@dimension.it : Thanks, I was using the identifier of an existing (empty) instance, not the one of a base image. That solved this issue. Matteo > On 27 May 2016, at 10:48, Help-Desk <jira-help-desk@fi-ware.org> wrote: > > >

          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: