Code Monkey home page Code Monkey logo

diego-enabler's People

Contributors

chavdarch avatar chendrix avatar mariash avatar mmb avatar n4wei avatar simonleung8 avatar xenophex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diego-enabler's Issues

cf migrate-apps ignores current target

just ran migrate apps with current plug-in, expecting it to operate on current account/org/space target -- it rattled through all accessible orgs and spaces.

Surely not intended behaviour?

Wrong version reported when install v1.2.2

I installed the v1.2.2 plugins into cf cli v6.13. This is what was written to sdtout:

Installing plugin diego-enabler_linux_amd64...
OK
Plugin Diego-Enabler v1.2.1 successfully installed.

When listing cf plugins, this is written to stdout:

Listing Installed Plugins...
OK

Plugin Name Version Command Name Command Help
Diego-Enabler 1.2.1 enable-diego Migrate app to the Diego runtime
Diego-Enabler 1.2.1 disable-diego Migrate app to the DEA runtime
...

golang rpc exception

tom$ cf enable-diego some-app
Setting some-app Diego support to true
2016/09/15 14:54:54 rpc: gob error encoding body: gob: type not registered for interface: []interface {}
FAILED
Error:  reading body EOF

While I can enable diego for every other app in my CF and Diego deployments, this one app gets this exception.

Thanks!

Logging output errors with CF_TRACE=true cf enable diego

dependencies

may be similar to #3

tom$ cf -v
cf version 6.22.1+6b7af9c-2016-09-24

Diego-Enabler v1.2.1

CF version 240

issue

when running CF_TRACE=true cf enable-diego <app> you get the following error

FAILED
Error: unexpected end of JSON input

however, the command succeeds, because running cf has-diego-enabled <app> afterwards returns true and i have indeed checked that the app is running on a cell and not a dea.

this is an issue because it means the command exits 1.

just to be clear, running cf enable-diego <app> without CF_TRACE=true before it succeeds and exits 0.

thanks!

rpc: gob error encoding body

This is a follow up of #4

dependencies

cf cli version 6.21.1+6fd3c9f-2016-08-10
diego enabler plugin v1.2.1
cf release v240
API endpoint: https://[redacted].com (API version: 2.56.0)

issue

When executing cf enable-diego <my-app> it fails in the following way.
This is repeatable and not intermittent for this application, while other apps successfully deploy to Diego.

Executing: cf enable-diego my-app
Setting my-app Diego support to true

REQUEST: [2016-10-05T15:10:39Z]
GET /v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/apps?q=name%3Amy-app&inline-relations-depth=1 HTTP/1.1
Host: [redacted]
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
Content-Type: application/json
User-Agent: go-cli 6.21.1+6fd3c9f / linux



RESPONSE: [2016-10-05T15:10:39Z]
HTTP/1.1 200 OK
Connection: close
Content-Length: 8169
Content-Type: application/json;charset=utf-8
Date: Wed, 05 Oct 2016 15:10:39 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: f01e0e2e-046a-4260-5c7f-3971b2b37847
X-Vcap-Request-Id: f01e0e2e-046a-4260-5c7f-3971b2b37847::ff824c19-12fb-44db-94b3-b3012aa9d95f

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "e8fb41f2-d276-489c-a124-e5caf319c745",
        "url": "/v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745",
        "created_at": "2016-10-05T15:10:22Z",
        "updated_at": "2016-10-05T15:10:38Z"
      },
      "entity": {
        "name": "my-app",
        "production": false,
        "space_guid": "a04544e3-da13-4a8d-8ca1-e3f2c9496f1a",
        "stack_guid": "dedf751a-1eac-4e81-967e-9eafc19444c6",
        "buildpack": null,
        "detected_buildpack": null,
        "environment_json": {
          [redacted]
        },
        "memory": 1536,
        "instances": 5,
        "disk_quota": 1024,
        "state": "STOPPED",
        "version": "2740ef24-5df4-4208-921d-a6e7c1978552",
        "command": null,
        "console": false,
        "debug": null,
        "staging_task_id": null,
        "package_state": "PENDING",
        "health_check_type": "port",
        "health_check_timeout": null,
        "staging_failed_reason": null,
        "staging_failed_description": null,
        "diego": false,
        "docker_image": null,
        "package_updated_at": "2016-10-05T15:10:30Z",
        "detected_start_command": "",
        "enable_ssh": true,
        "docker_credentials_json": {
          "redacted_message": "[PRIVATE DATA HIDDEN]"
        },
        "ports": null,
        "space_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a",
        "space": {
          "metadata": {
            "guid": "a04544e3-da13-4a8d-8ca1-e3f2c9496f1a",
            "url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a",
            "created_at": "2014-07-24T14:37:44Z",
            "updated_at": null
          },
          "entity": {
            "name": "live",
            "organization_guid": "615f5381-54c8-4a0e-bad7-52007e14cf52",
            "space_quota_definition_guid": null,
            "allow_ssh": true,
            "organization_url": "/v2/organizations/615f5381-54c8-4a0e-bad7-52007e14cf52",
            "developers_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/developers",
            "managers_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/managers",
            "auditors_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/auditors",
            "apps_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/apps",
            "routes_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/routes",
            "domains_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/domains",
            "service_instances_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/service_instances",
            "app_events_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/app_events",
            "events_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/events",
            "security_groups_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a/security_groups"
          }
        },
        "stack_url": "/v2/stacks/dedf751a-1eac-4e81-967e-9eafc19444c6",
        "stack": {
          "metadata": {
            "guid": "dedf751a-1eac-4e81-967e-9eafc19444c6",
            "url": "/v2/stacks/dedf751a-1eac-4e81-967e-9eafc19444c6",
            "created_at": "2015-03-26T15:20:58Z",
            "updated_at": null
          },
          "entity": {
            "name": "cflinuxfs2",
            "description": "Cloud Foundry Linux-based filesystem"
          }
        },
        "routes_url": "/v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745/routes",
        "routes": [
          {
            "metadata": {
              "guid": "b50f222d-142c-4dfa-a453-4c0695f82299",
              "url": "/v2/routes/b50f222d-142c-4dfa-a453-4c0695f82299",
              "created_at": "2016-10-05T15:10:22Z",
              "updated_at": null
            },
            "entity": {
              "host": "my-app",
              "path": "",
              "domain_guid": "7fb7343e-1f57-4b88-baaf-c15f701944c8",
              "space_guid": "a04544e3-da13-4a8d-8ca1-e3f2c9496f1a",
              "service_instance_guid": null,
              "port": null,
              "domain_url": "/v2/domains/7fb7343e-1f57-4b88-baaf-c15f701944c8",
              "space_url": "/v2/spaces/a04544e3-da13-4a8d-8ca1-e3f2c9496f1a",
              "apps_url": "/v2/routes/b50f222d-142c-4dfa-a453-4c0695f82299/apps",
              "route_mappings_url": "/v2/routes/b50f222d-142c-4dfa-a453-4c0695f82299/route_mappings"
            }
          }
        ],
        "events_url": "/v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745/events",
        "service_bindings_url": "/v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745/service_bindings",
        "service_bindings": [
          {
            "metadata": {
              "guid": "f24472f7-3205-4b83-b3fc-f23d62ab3384",
              "url": "/v2/service_bindings/f24472f7-3205-4b83-b3fc-f23d62ab3384",
              "created_at": "2016-10-05T15:10:33Z",
              "updated_at": null
            },
            "entity": {
              "app_guid": "e8fb41f2-d276-489c-a124-e5caf319c745",
              "service_instance_guid": "c16ba49c-a2ab-4cc0-87ff-a61069838dc2",
              "credentials": {
                "licenseKey": "b5ff8d0da7294c87fad4b921974563a245344b0b"
              },
              "binding_options": {

              },
              "gateway_data": null,
              "gateway_name": "",
              "syslog_drain_url": "",
              "volume_mounts": [

              ],
              "app_url": "/v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745",
              "service_instance_url": "/v2/user_provided_service_instances/c16ba49c-a2ab-4cc0-87ff-a61069838dc2"
            }
          }
        ],
        "route_mappings_url": "/v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745/route_mappings"
      }
    }
  ]
}

REQUEST: [2016-10-05T15:10:39Z]
GET /v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745/summary HTTP/1.1
Host: [redacted]
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
Content-Type: application/json
User-Agent: go-cli 6.21.1+6fd3c9f / linux



RESPONSE: [2016-10-05T15:10:40Z]
HTTP/1.1 200 OK
Connection: close
Content-Length: 76247
Content-Type: application/json;charset=utf-8
Date: Wed, 05 Oct 2016 15:10:40 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: e3511050-1e78-4dbb-65c8-5c751b3beb6b
X-Vcap-Request-Id: e3511050-1e78-4dbb-65c8-5c751b3beb6b::4ba14f33-2b3d-47d5-b94d-3001249c5982

[redacted json blob (74K)]

REQUEST: [2016-10-05T15:10:40Z]
GET /v2/apps/e8fb41f2-d276-489c-a124-e5caf319c745/instances HTTP/1.1
Host: [redacted]
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
Content-Type: application/json
User-Agent: go-cli 6.21.1+6fd3c9f / linux



RESPONSE: [2016-10-05T15:10:40Z]
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 102
Content-Type: application/json;charset=utf-8
Date: Wed, 05 Oct 2016 15:10:40 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 4216149c-5724-4a24-4188-b4530047d829
X-Vcap-Request-Id: 4216149c-5724-4a24-4188-b4530047d829::21f3b7d8-ce57-4b2e-a63d-54b649e54e0a

{
  "code": 170002,
  "description": "App has not finished staging",
  "error_code": "CF-NotStaged"
}


REQUEST: [2016-10-05T15:10:40Z]
GET /v2/stacks/dedf751a-1eac-4e81-967e-9eafc19444c6 HTTP/1.1
Host: [redacted]
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
Content-Type: application/json
User-Agent: go-cli 6.21.1+6fd3c9f / linux



RESPONSE: [2016-10-05T15:10:40Z]
HTTP/1.1 200 OK
Connection: close
Content-Length: 305
Content-Type: application/json;charset=utf-8
Date: Wed, 05 Oct 2016 15:10:40 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: bd7c5a1a-2a30-4619-543f-5f353b962e6f
X-Vcap-Request-Id: bd7c5a1a-2a30-4619-543f-5f353b962e6f::75a4314f-5e27-402a-984b-8875658d5b6e

{
  "metadata": {
    "guid": "dedf751a-1eac-4e81-967e-9eafc19444c6",
    "url": "/v2/stacks/dedf751a-1eac-4e81-967e-9eafc19444c6",
    "created_at": "2015-03-26T15:20:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "Cloud Foundry Linux-based filesystem"
  }
}
2016/10/05 15:10:40 rpc: gob error encoding body: gob: type not registered for interface: []interface {}
FAILED
Error: reading body EOF

Colors not working when running from a PowerShell command prompt

This is not a functional issue, just a FYI.
The text colors formatting isn't working correctly when run from within a Windows PowerShell command shell.

PS C:> cf enable-diego jmptest01
Setting jmptest01 Diego support to true
�[1;32mOk
�[0m
Verifying jmptest01 Diego support is set to true
�[1;32mOk
�[0m
PS C:>

capture

Getting "Error: unexpected end of JSON input" when enabling diego

$ cf enable-diego g
Setting g Diego support to true
FAILED
Error: unexpected end of JSON input
{
   "metadata": {
      "guid": "76cd901b-5c86-4c14-926c-6fdcfd3f02ae",
      "url": "/v2/apps/76cd901b-5c86-4c14-926c-6fdcfd3f02ae",
      "created_at": "2016-07-12T19:09:51Z",
      "updated_at": "2016-07-12T19:15:17Z"
   },
   "entity": {
      "name": "g",
      "production": false,
      "space_guid": "58c3829a-a44f-4544-a255-f3214157d6b1",
      "stack_guid": "9942a914-981c-465a-9af4-e51eb6385ff1",
      "buildpack": "go_buildpack",
      "detected_buildpack": null,
      "environment_json": {},
      "memory": 64,
      "instances": 2,
      "disk_quota": 64,
      "state": "STOPPED",
      "version": "053defe0-5e7a-4a06-bbaf-6e4392bf80d2",
      "command": null,
      "console": false,
      "debug": null,
      "staging_task_id": "22241a2157034c528c7c46e055c2fe7c",
      "package_state": "PENDING",
      "health_check_type": "port",
      "health_check_timeout": null,
      "staging_failed_reason": null,
      "staging_failed_description": null,
      "diego": true,
      "docker_image": null,
      "package_updated_at": "2016-07-12T19:10:40Z",
      "detected_start_command": "",
      "enable_ssh": true,
      "docker_credentials_json": {
         "redacted_message": "[PRIVATE DATA HIDDEN]"
      },
      "ports": [
         8080
      ],
      "space_url": "/v2/spaces/58c3829a-a44f-4544-a255-f3214157d6b1",
      "stack_url": "/v2/stacks/9942a914-981c-465a-9af4-e51eb6385ff1",
      "routes_url": "/v2/apps/76cd901b-5c86-4c14-926c-6fdcfd3f02ae/routes",
      "events_url": "/v2/apps/76cd901b-5c86-4c14-926c-6fdcfd3f02ae/events",
      "service_bindings_url": "/v2/apps/76cd901b-5c86-4c14-926c-6fdcfd3f02ae/service_bindings",
      "route_mappings_url": "/v2/apps/76cd901b-5c86-4c14-926c-6fdcfd3f02ae/route_mappings"
   }
}

$ cf -v
cf version 6.20.0+25b1961-2016-06-29

$ cf plugins
Listing Installed Plugins...
OK

Plugin Name     Version   Command Name        Command Help
Diego-Enabler   1.2.0     enable-diego        Migrate app to the Diego runtime
Diego-Enabler   1.2.0     disable-diego       Migrate app to the DEA runtime
Diego-Enabler   1.2.0     has-diego-enabled   Report whether an app is configured to run on the Diego runtime
Diego-Enabler   1.2.0     diego-apps          Lists all apps running on the Diego runtime that are visible to the user
Diego-Enabler   1.2.0     dea-apps            Lists all apps running on the DEA runtime that are visible to the user
Diego-Enabler   1.2.0     migrate-apps        Migrate all apps to Diego/DEA

Getting error after installing the plugin-binary

Hello,

I installed the precompiled version of Diego-enabler for windows. On cf enable-diego myapp I am getting:
Error: rpc: can't find method CliRpcCmd.GetApp
There is not much information on google about this, any idea what is missing? Thanks!

not able to install the plugin

not able to install the plugin

Searching CF-Community for plugin Diego-Enabler...
Plugin Diego-Enabler not found in repository CF-Community.
Use 'cf repo-plugins -r CF-Community' to list plugins available in the repo.
FAILED

While installing plugin getting error

I am trying to install diego plugin and seeing below error , pLease help.

Command set-health-check in the plugin being installed is a native CF command/alias. Rename the set-health-check command in the plugin being installed in order to enable its installation and use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.