[jbosstools-issues] [JBoss JIRA] (JBIDE-22423) Cannot edit build config resource

Marián Labuda (JIRA) issues at jboss.org
Mon May 23 09:21:01 EDT 2016


Marián Labuda created JBIDE-22423:
-------------------------------------

             Summary: Cannot edit build config resource
                 Key: JBIDE-22423
                 URL: https://issues.jboss.org/browse/JBIDE-22423
             Project: Tools (JBoss Tools)
          Issue Type: Enhancement
          Components: openshift
    Affects Versions: 4.4.0.Alpha2
            Reporter: Marián Labuda


When I am trying to edit build config resource, I get an error. See stack trace below. Problem causes key value pair "from" : {} in image change trigger. I don't know why it is added here, but output from oc binary (oc get bc eap-app -o json) does not show this key value in json (it's the only difference).

See stack trace of the error
{code}
Could not update "[eapapp] Build Config : eap-app.json" for project "eapapp" : BuildConfig "eap-app" is invalid: triggers[2].imageChange.from.kind: invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.


com.openshift.restclient.OpenShiftException: Could not update resource eap-app: {
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "BuildConfig \"eap-app\" is invalid: triggers[2].imageChange.from.kind: invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.",
  "reason": "Invalid",
  "details": {
    "name": "eap-app",
    "kind": "BuildConfig",
    "causes": [
      {
        "reason": "FieldValueInvalid",
        "message": "invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.",
        "field": "triggers[2].imageChange.from.kind"
      }
    ]
  },
  "code": 422
}

	at com.openshift.internal.restclient.DefaultClient.createOpenShiftException(DefaultClient.java:488)
	at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:254)
	at org.jboss.tools.openshift.internal.ui.property.OpenShiftResourceDocumentProvider$2.run(OpenShiftResourceDocumentProvider.java:131)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.openshift.internal.restclient.http.HttpClientException: {
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "BuildConfig \"eap-app\" is invalid: triggers[2].imageChange.from.kind: invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.",
  "reason": "Invalid",
  "details": {
    "name": "eap-app",
    "kind": "BuildConfig",
    "causes": [
      {
        "reason": "FieldValueInvalid",
        "message": "invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.",
        "field": "triggers[2].imageChange.from.kind"
      }
    ]
  },
  "code": 422
}

	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:278)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:243)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.put(UrlConnectionHttpClient.java:165)
	at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:250)
	... 2 more
Caused by: java.io.IOException: Server returned HTTP response code: 422 for URL: https://10.1.2.2:8443/oapi/v1/namespaces/eapapp/buildconfigs/eap-app
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:239)
	... 4 more


{code}




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list