Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-374

Exception while creating the server in OpenStack Nova API

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Code:
      CreateServerOptions options = CreateServerOptions.Builder.adminPass("password");
      ServerCreated serverCreated = serverApi.create(computeData.getServerName(), computeData.getImageId(), flavourId, options);

      eg: ServerCreated serverCreated = serverApi.create("ServerTest", "f414c2a5-fb5b-49d2-a9e0-7c055703e4d2", "1",options);

      The code above throws the following error:
      Error Log:
      "com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 5".

      The server is created, but the error restricts me from proceeding further. Kindly help.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            everett-toews Everett Toews
            nadeem.akbarbas Nadeem
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment