Hi, Udara Yes, You are right, just keep wait about several seconds later, It's will be undeployed.
Thanks -D On Mon, May 11, 2015 at 10:25 PM, Udara Liyanage <ud...@wso2.com> wrote: > Hi David, > > Did all the members/instances get terminated when you undeploy forcefully. > Or else could you share the complete carbon log. > > Forceful undeployment invokes graceful undeployment process too, this will > take sometime to terminate all instances. So you need to wait till forceful > undeployment completes in order to delete the application > > > > > On Mon, May 11, 2015 at 11:49 AM, david hbase <davidhb...@gmail.com> > wrote: > >> Hi, Udara >> >> Before and after the force undeploying the status are Deployed. >> >> root@stratos41beta2a:~# >> root@stratos41beta2a:~# curl -X GET -H "Content-Type: application/json" >> -k -v -u admin:admin https:// >> ${host_ip}:${host_port}/api/applications/single-cartridge-app01 >> * About to connect() to localhost port 9443 (#0) >> * Trying 127.0.0.1... connected >> * successfully set certificate verify locations: >> * CAfile: none >> CApath: /etc/ssl/certs >> * SSLv3, TLS handshake, Client hello (1): >> * SSLv3, TLS handshake, Server hello (2): >> * SSLv3, TLS handshake, CERT (11): >> * SSLv3, TLS handshake, Server key exchange (12): >> * SSLv3, TLS handshake, Server finished (14): >> * SSLv3, TLS handshake, Client key exchange (16): >> * SSLv3, TLS change cipher, Client hello (1): >> * SSLv3, TLS handshake, Finished (20): >> * SSLv3, TLS change cipher, Client hello (1): >> * SSLv3, TLS handshake, Finished (20): >> * SSL connection using ECDHE-RSA-AES256-SHA >> * Server certificate: >> * subject: C=US; ST=CA; L=Mountain View; O=WSO2; CN=localhost >> * start date: 2010-02-19 07:02:26 GMT >> * expire date: 2035-02-13 07:02:26 GMT >> * issuer: C=US; ST=CA; L=Mountain View; O=WSO2; CN=localhost >> * SSL certificate verify result: unable to get local issuer >> certificate (20), continuing anyway. >> * Server auth using Basic with user 'admin' >> > GET /api/applications/single-cartridge-app01 HTTP/1.1 >> > Authorization: Basic YWRtaW46YWRtaW4= >> > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 >> OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 >> > Host: localhost:9443 >> > Accept: */* >> > Content-Type: application/json >> > >> < HTTP/1.1 200 OK >> < Date: Mon, 11 May 2015 06:16:50 GMT >> < Content-Type: application/json >> < Transfer-Encoding: chunked >> < Server: WSO2 Carbon Server >> < >> * Connection #0 to host localhost left intact >> * Closing connection #0 >> * SSLv3, TLS alert, Client hello (1): >> >> {"alias":"single-cartridge-app","applicationId":"single-cartridge-app01","components":{"cartridges":[{"cartridgeMax":10,"cartridgeMin":1,"subscribableInfo":{"alias":"my-php","artifactRepository":{"alias":"my-php","privateRepo":false,"repoPassword":"","repoUrl":"https:\/\/ >> github.com >> \/imesh\/stratos-php-applications.git","repoUsername":""},"autoscalingPolicy":"autoscaling-policy-1a","deploymentPolicy":"deployment-policy-1a","maxMembers":0,"minMembers":0},"type":"php"}]},"multiTenant":false,"status":"Deployed"}root@stratos41beta2a:~# >> >> >> Please advice, how to force the status change to CREATED ? >> >> Thanks >> -D >> >> >> On Sun, May 10, 2015 at 9:47 PM, Udara Liyanage <ud...@wso2.com> wrote: >> >>> Hi Mari, >>> >>> It is not yet available in CLI, need to add. >>> >>> On Mon, May 11, 2015 at 10:16 AM, Udara Liyanage <ud...@wso2.com> wrote: >>> >>>> Hi David, >>>> >>>> Could you please show the status of the application by executing below >>>> command after undeployment. Ideally application status should be CREATED if >>>> undeployed successfully. >>>> Does this work if you undeploy gracefully? >>>> >>>> curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin >>>> https://${host_ip}:${host_port}/api/applications/single-cartridge-app01 >>>> >>>> On Mon, May 11, 2015 at 9:33 AM, david hbase <davidhb...@gmail.com> >>>> wrote: >>>> >>>>> Hi, Devs >>>>> >>>>> I have tested with curl, it's not working. The outputs have been >>>>> attached as following: >>>>> >>>>> root@stratos41beta2a:~# >>>>> root@stratos41beta2a:~# curl -X POST -H "Content-Type: >>>>> application/json" -k -v -u admin:admin >>>>> https://localhost:9443/api/applications/single-cartridge-app01/undeploy?force=true >>>>> * About to connect() to localhost port 9443 (#0) >>>>> * Trying 127.0.0.1... connected >>>>> * successfully set certificate verify locations: >>>>> * CAfile: none >>>>> CApath: /etc/ssl/certs >>>>> * SSLv3, TLS handshake, Client hello (1): >>>>> * SSLv3, TLS handshake, Server hello (2): >>>>> * SSLv3, TLS handshake, CERT (11): >>>>> * SSLv3, TLS handshake, Server key exchange (12): >>>>> * SSLv3, TLS handshake, Server finished (14): >>>>> * SSLv3, TLS handshake, Client key exchange (16): >>>>> * SSLv3, TLS change cipher, Client hello (1): >>>>> * SSLv3, TLS handshake, Finished (20): >>>>> * SSLv3, TLS change cipher, Client hello (1): >>>>> * SSLv3, TLS handshake, Finished (20): >>>>> * SSL connection using ECDHE-RSA-AES256-SHA >>>>> * Server certificate: >>>>> * subject: C=US; ST=CA; L=Mountain View; O=WSO2; CN=localhost >>>>> * start date: 2010-02-19 07:02:26 GMT >>>>> * expire date: 2035-02-13 07:02:26 GMT >>>>> * issuer: C=US; ST=CA; L=Mountain View; O=WSO2; CN=localhost >>>>> * SSL certificate verify result: unable to get local issuer >>>>> certificate (20), continuing anyway. >>>>> * Server auth using Basic with user 'admin' >>>>> > POST /api/applications/single-cartridge-app01/undeploy?force=true >>>>> HTTP/1.1 >>>>> > Authorization: Basic YWRtaW46YWRtaW4= >>>>> > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 >>>>> OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 >>>>> > Host: localhost:9443 >>>>> > Accept: */* >>>>> > Content-Type: application/json >>>>> > >>>>> < HTTP/1.1 202 Accepted >>>>> < Date: Mon, 11 May 2015 04:00:07 GMT >>>>> < Content-Type: application/json >>>>> < Transfer-Encoding: chunked >>>>> < Server: WSO2 Carbon Server >>>>> < >>>>> * Connection #0 to host localhost left intact >>>>> * Closing connection #0 >>>>> * SSLv3, TLS alert, Client hello (1): >>>>> {"statusCode":202,"successMessage":"Application undeployed >>>>> successfully: [application] >>>>> single-cartridge-app01"}root@stratos41beta2a:~# >>>>> curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin >>>>> https://l >>>>> root@stratos41beta2a:~# >>>>> root@stratos41beta2a:~# >>>>> root@stratos41beta2a:~# >>>>> root@stratos41beta2a:~# >>>>> root@stratos41beta2a:~# curl -X DELETE -H "Content-Type: >>>>> application/json" -k -v -u admin:admin https:// >>>>> ${host_ip}:${host_port}/api/applications/single-cartridge-app01 >>>>> * About to connect() to localhost port 9443 (#0) >>>>> * Trying 127.0.0.1... connected >>>>> * successfully set certificate verify locations: >>>>> * CAfile: none >>>>> CApath: /etc/ssl/certs >>>>> * SSLv3, TLS handshake, Client hello (1): >>>>> * SSLv3, TLS handshake, Server hello (2): >>>>> * SSLv3, TLS handshake, CERT (11): >>>>> * SSLv3, TLS handshake, Server key exchange (12): >>>>> * SSLv3, TLS handshake, Server finished (14): >>>>> * SSLv3, TLS handshake, Client key exchange (16): >>>>> * SSLv3, TLS change cipher, Client hello (1): >>>>> * SSLv3, TLS handshake, Finished (20): >>>>> * SSLv3, TLS change cipher, Client hello (1): >>>>> * SSLv3, TLS handshake, Finished (20): >>>>> * SSL connection using ECDHE-RSA-AES256-SHA >>>>> * Server certificate: >>>>> * subject: C=US; ST=CA; L=Mountain View; O=WSO2; CN=localhost >>>>> * start date: 2010-02-19 07:02:26 GMT >>>>> * expire date: 2035-02-13 07:02:26 GMT >>>>> * issuer: C=US; ST=CA; L=Mountain View; O=WSO2; CN=localhost >>>>> * SSL certificate verify result: unable to get local issuer >>>>> certificate (20), continuing anyway. >>>>> * Server auth using Basic with user 'admin' >>>>> > DELETE /api/applications/single-cartridge-app01 HTTP/1.1 >>>>> > Authorization: Basic YWRtaW46YWRtaW4= >>>>> > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 >>>>> OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 >>>>> > Host: localhost:9443 >>>>> > Accept: */* >>>>> > Content-Type: application/json >>>>> > >>>>> < HTTP/1.1 409 Conflict >>>>> < Date: Mon, 11 May 2015 04:00:32 GMT >>>>> < Content-Type: application/json >>>>> < Transfer-Encoding: chunked >>>>> < Server: WSO2 Carbon Server >>>>> < >>>>> * Connection #0 to host localhost left intact >>>>> * Closing connection #0 >>>>> * SSLv3, TLS alert, Client hello (1): >>>>> {"statusCode":409,"successMessage":"Could not delete since application >>>>> is not in CREATED state : [application] single-cartridge-app01 >>>>> [current-status] DEPLOYED"}root@stratos41beta2a:~# >>>>> >>>>> Any advice? Thanks >>>>> -D >>>>> >>>>> >>>>> On Sun, May 10, 2015 at 3:11 AM, Mariangela Hills <mariang...@wso2.com >>>>> > wrote: >>>>> >>>>>> Hi Devs, >>>>>> >>>>>> Can an application be forcefully undeployed via CLI like it can be >>>>>> done via REST API [1]? >>>>>> >>>>>> [1] >>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Forcefully+Undeploying+an+Application+via+REST+API >>>>>> >>>>>> >>>>>> Regards, >>>>>> Mariangela >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> *--* >>>>>> *Mariangela Hills* >>>>>> PMC Member & Committer of Apache Stratos >>>>>> Senior Technical Writer >>>>>> WSO2, Inc. >>>>>> lean.enterprise.middleware. >>>>>> m: +94 773 500185 >>>>>> w: http://wso2.com >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Udara Liyanage >>>> Software Engineer >>>> WSO2, Inc.: http://wso2.com >>>> lean. enterprise. middleware >>>> >>>> web: http://udaraliyanage.wordpress.com >>>> phone: +94 71 443 6897 >>>> >>> >>> >>> >>> -- >>> >>> Udara Liyanage >>> Software Engineer >>> WSO2, Inc.: http://wso2.com >>> lean. enterprise. middleware >>> >>> web: http://udaraliyanage.wordpress.com >>> phone: +94 71 443 6897 >>> >> >> > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 >