[jbosstools-issues] [JBoss JIRA] (JBIDE-13666) Error when renaming a domain with 1+ applications

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Mon Mar 4 00:16:57 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-13666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758020#comment-12758020 ] 

RH Bugzilla Integration commented on JBIDE-13666:
-------------------------------------------------

qgong at redhat.com <qgong at redhat.com> made a comment on [bug 916330|https://bugzilla.redhat.com/show_bug.cgi?id=916330]

Verified on the env that migrate from devenv_stage_312 to devenv_2888
1.Create domain
curl -k --user "qgong+1 at redhat.com:111111" -H "Accept: application/xml" https://ec2-23-22-110-226.compute-1.amazonaws.com/broker/rest/domains/ -X POST --form id=bingobongo

2.Create jbossas-7 application
curl -k --user "qgong+1 at redhat.com:111111" -H "Accept: application/xml" https://ec2-23-22-110-226.compute-1.amazonaws.com/broker/rest/domains/bingobongo/applications/ -X POST -v --form name=as --form cartridge=jbossas-7

3.update domain
[qgong at dhcp-8-169 python1]$ curl -k --user "qgong+1 at redhat.com:111111" -H "Accept: application/xml" https://ec2-23-22-110-226.compute-1.amazonaws.com/broker/rest/domains/bingobongo -X PUT --form id=honkabonka -v
* About to connect() to proxy file.rdu.redhat.com port 3128 (#0)
*   Trying 10.11.255.147... connected
* Connected to file.rdu.redhat.com (10.11.255.147) port 3128 (#0)
* Establish HTTP proxy tunnel to ec2-23-22-110-226.compute-1.amazonaws.com:443
* Server auth using Basic with user 'qgong+1 at redhat.com'
> CONNECT ec2-23-22-110-226.compute-1.amazonaws.com:443 HTTP/1.1
> Host: ec2-23-22-110-226.compute-1.amazonaws.com:443
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Proxy-Connection: Keep-Alive
> Accept: application/xml
> 
< HTTP/1.0 200 Connection established
< 
* Proxy replied OK to CONNECT request
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* warning: ignoring value of ssl.verifyhost
* skipping SSL peer certificate verification
* SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* 	subject: E=root at ip-10-98-59-17,CN=ip-10-98-59-17,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=--
* 	start date: Feb 27 05:30:45 2013 GMT
* 	expire date: Feb 27 05:30:45 2014 GMT
* 	common name: ip-10-98-59-17
* 	issuer: E=root at ip-10-98-59-17,CN=ip-10-98-59-17,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=--
* Server auth using Basic with user 'qgong+1 at redhat.com'
> PUT /broker/rest/domains/bingobongo HTTP/1.1
> Authorization: Basic cWdvbmcrMUByZWRoYXQuY29tOjExMTExMQ==
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host: ec2-23-22-110-226.compute-1.amazonaws.com
> Accept: application/xml
> Content-Length: 147
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------7f17e29ca364
> 
< HTTP/1.1 100 Continue
< HTTP/1.1 100 Continue
< HTTP/1.1 200 
< Date: Mon, 04 Mar 2013 05:13:54 GMT
< Server: Apache/2.2.15 (Red Hat)
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17
< X-OpenShift-Identity: qgong+1 at redhat.com
< X-OAuth-Scopes: session
< X-UA-Compatible: IE=Edge
< ETag: "7ccc1fa5dc458dd7c96aad299de6d3ea"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: 6e664d41d3b15a951d6a96066326fc11
< X-Runtime: 10.374310
< X-Rack-Cache: invalidate, pass
< Status: 200
< Content-Length: 11047
< Content-Type: application/xml; charset=utf-8
< Vary: Accept-Encoding,User-Agent
< Strict-Transport-Security: max-age=15768000
< ProxyTime: D=11017145
< 
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>ok</status>
  <type>domain</type>
  <data>
    <domain>
      <id>honkabonka</id>
      <suffix>dev.rhcloud.com</suffix>
      <links>
        <link>
          <rel>Get domain</rel>
          <method>GET</method>
          <href>https://ec2-23-22-110-226.compute-1.amazonaws.com/broker/rest/domains/honkabonka</href>
          <required-params/>
          <optional-params/>
        </link>
        <link>
          <rel>List applications</rel>
          <method>GET</method>
          <href>https://ec2-23-22-110-226.compute-1.amazonaws.com/broker/rest/domains/honkabonka/applications</href>
          <required-params/>
          <optional-params/>
        </link>
        <link>
          <rel>Create new application</rel>
          <method>POST</method>
          <href>https://ec2-23-22-110-226.compute-1.amazonaws.com/broker/rest/domains/honkabonka/applications</href>
          <required-params>
            <param>
              <name>name</name>
              <type>string</type>
              <description>Name of the application</description>
              <valid-options/>
....
                
> Error when renaming a domain with 1+ applications
> -------------------------------------------------
>
>                 Key: JBIDE-13666
>                 URL: https://issues.jboss.org/browse/JBIDE-13666
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Stefan Bunciak
>            Assignee: Andre Dietisheim
>             Fix For: 4.1.0.Alpha2
>
>         Attachments: rename-domain-error.png
>
>
> This is a TRACKER/WATCHER issue that helps us tracking the fixing-progress on OpenShift (https://bugzilla.redhat.com/show_bug.cgi?id=916330). There's nothing we can do about this.
> When trying to rename an existing domain to a domain name which already exists (within different openshift account):
> {code}
> Could not rename domain "sbunciak": [Operation failed with exit code "1".Reason given: "
> Problem:
>   Document(s) not found for class PendingDomainOps with id(s) 512df956e0b8cd59a20001fa.
> Summary:
>   When calling PendingDomainOps.find with an id or array of ids, each parameter must match a document in the database or this error will be raised. The search was for the id(s): 512df956e0b8cd59a20001fa ... (1 total) and the following ids were not found: 512df956e0b8cd59a20001fa.
> Resolution:
>   Search for an id that is in the database or set the Mongoid.raise_not_found_error configuration option to false, which will cause a nil to be returned instead of raising this error when searching for a single id, or only the matched documents when searching for multiples."]
> Could not request https://openshift.redhat.com/broker/rest/domains/pipistik: Operation failed with exit code "1".Reason given: "
> Problem:
>   Document(s) not found for class PendingDomainOps with id(s) 512df956e0b8cd59a20001fa.
> Summary:
>   When calling PendingDomainOps.find with an id or array of ids, each parameter must match a document in the database or this error will be raised. The search was for the id(s): 512df956e0b8cd59a20001fa ... (1 total) and the following ids were not found: 512df956e0b8cd59a20001fa.
> Resolution:
>   Search for an id that is in the database or set the Mongoid.raise_not_found_error configuration option to false, which will cause a nil to be returned instead of raising this error when searching for a single id, or only the matched documents when searching for multiples."
> {code}
> This message really doesn't describe the real problem - that I'm trying to use a domain name which is already used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list