pi 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- data/README +393 -525
- data/lib/cli/commands/dns.rb +37 -5
- data/lib/cli/commands/user.rb +1 -0
- data/lib/cli/runner.rb +7 -3
- data/lib/cli/usage.rb +1 -3
- data/lib/cli/version.rb +1 -1
- data/lib/pi/client.rb +61 -0
- metadata +4 -4
data/README
CHANGED
@@ -93,13 +93,12 @@ _Copyright 2010-2012, Samsung.
|
|
93
93
|
stop-app --graceful Stop the application in a graceful mode
|
94
94
|
restart-app [appid] Restart the application
|
95
95
|
restart-app <appname> <--target TARGET> Restart the application
|
96
|
-
restart-app --graceful
|
96
|
+
restart-app --graceful Restart the application in a graceful mode
|
97
97
|
scale-app [appid] [--instance N] Scale the application instances up or down
|
98
98
|
scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
|
99
|
-
scale-app --graceful Scale the application instances in a graceful mode
|
100
99
|
update-app [appid] [--ver VERSION] Update the application
|
101
100
|
update-app <appname> <--target TARGET> [--ver VERSION] Update the application
|
102
|
-
update-app --graceful
|
101
|
+
update-app --graceful Update the application in a graceful mode
|
103
102
|
status [appid] Display resource usage for the application
|
104
103
|
status <appname> <--target TARGET> Display resource usage for the application
|
105
104
|
app-env [appid] Display the environments for the application
|
@@ -118,10 +117,8 @@ _Copyright 2010-2012, Samsung.
|
|
118
117
|
app-service <appname> <--target TARGET> Display the binded services for the application
|
119
118
|
bind-service [appid] [--service SERVICE] Bind the services for the application
|
120
119
|
bind-service <appname> <--target TARGET> [--service] Bind the services for the application
|
121
|
-
bind-service --graceful --lazy Bind the services for the application in a graceful and lazy mode
|
122
120
|
unbind-service [appid] [--service SERVICE] Unbind the services for the application
|
123
121
|
unbind-service <appname> <--target TARGET> [--service] Unbind the services for the application
|
124
|
-
unbind-service --graceful --lazy Unbind the services for the application in a graceful and lazy mode
|
125
122
|
services List dedicated services
|
126
123
|
service [serviceid] List the connection info for the service
|
127
124
|
export-service [serviceid] Export dedicated service url
|
@@ -140,6 +137,7 @@ _Copyright 2010-2012, Samsung.
|
|
140
137
|
unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
|
141
138
|
dns List the dns
|
142
139
|
zones List the dns zones
|
140
|
+
dns-records [dnsid] List the record info for the registered dns
|
143
141
|
create-dns [dnsname] [--zoneid,--projectid,--desc] Create a new dns
|
144
142
|
register-dns [dnsid] [--target,--continent,--country] Register to target
|
145
143
|
deregister-dns [dnsid] [--recordid ID] Deregister to target
|
@@ -147,71 +145,26 @@ _Copyright 2010-2012, Samsung.
|
|
147
145
|
|
148
146
|
4. Example
|
149
147
|
|
150
|
-
|
148
|
+
wangjing@wangjing-pc:~$ pi login
|
151
149
|
Attempting login to 'http://staging.samsungcloud.org'? [Yn]:
|
152
150
|
User: wangjing
|
153
151
|
Password: *******
|
154
152
|
Successfully logged into [http://staging.samsungcloud.org]
|
155
153
|
|
156
|
-
|
154
|
+
wangjing@wangjing-pc:~$ pi login staging.samsungcloud.org --user wangjing --password cloudpi
|
157
155
|
Successfully logged into [http://staging.samsungcloud.org]
|
158
156
|
|
159
|
-
|
160
|
-
pi 0.1.
|
157
|
+
wangjing@wangjing-pc:~$ pi version
|
158
|
+
pi 0.1.29
|
161
159
|
|
162
|
-
|
160
|
+
wangjing@wangjing-pc:~$ pi info
|
163
161
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
Github Account Name: ruanzhimin
|
169
|
-
Github Account Email: ruanzhimin@gmail.com
|
170
|
-
|
171
|
-
ubuntu@admin:~$ pi targets
|
172
|
-
|
173
|
-
+-----------+-----------------------------------+
|
174
|
-
| Name | URL |
|
175
|
-
+-----------+-----------------------------------+
|
176
|
-
| bst-dev | http://bst-dev.samsungcloud.org |
|
177
|
-
| target-hq | http://target-hq.samsungcloud.org |
|
178
|
-
+-----------+-----------------------------------+
|
179
|
-
|
180
|
-
ubuntu@admin:~$ pi password
|
181
|
-
Old Password: *******
|
182
|
-
New Password: ****
|
183
|
-
Verify Password: ****
|
184
|
-
ok
|
185
|
-
|
186
|
-
ubuntu@admin:~$ pi runtimes
|
187
|
-
|
188
|
-
+--------+
|
189
|
-
| Name |
|
190
|
-
+--------+
|
191
|
-
| java |
|
192
|
-
| ruby18 |
|
193
|
-
+--------+
|
194
|
-
|
195
|
-
ubuntu@admin:~$ pi frameworks
|
162
|
+
Name: api
|
163
|
+
Description: CloudPi API Component
|
164
|
+
Build: nightly-20120907045013-39
|
165
|
+
Version: coulibiac-17cd22
|
196
166
|
|
197
|
-
|
198
|
-
| Name |
|
199
|
-
+----------+
|
200
|
-
| lift |
|
201
|
-
| spring |
|
202
|
-
| grails |
|
203
|
-
| java_web |
|
204
|
-
| rails3 |
|
205
|
-
| sinatra |
|
206
|
-
+----------+
|
207
|
-
|
208
|
-
ubuntu@admin:~$ pi github
|
209
|
-
Please input your name: ruanzhimin
|
210
|
-
Please input your email: ruanzhimin@gmail.com
|
211
|
-
Please input your password: ****************
|
212
|
-
ok
|
213
|
-
|
214
|
-
ubuntu@admin:~$ pi help
|
167
|
+
wangjing@wangjing-pc:~$ pi help
|
215
168
|
|
216
169
|
Usage: pi [options] command [<args>] [command_options]
|
217
170
|
Try 'pi help [command]' or 'pi help options' for more information.
|
@@ -253,13 +206,12 @@ Currently available pi commands are:
|
|
253
206
|
stop-app --graceful Stop the application in a graceful mode
|
254
207
|
restart-app [appid] Restart the application
|
255
208
|
restart-app <appname> <--target TARGET> Restart the application
|
256
|
-
restart-app --graceful
|
209
|
+
restart-app --graceful Restart the application in a graceful mode
|
257
210
|
scale-app [appid] [--instance N] Scale the application instances up or down
|
258
211
|
scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
|
259
|
-
scale-app --graceful Scale the application instances in a graceful mode
|
260
212
|
update-app [appid] [--ver VERSION] Update the application
|
261
213
|
update-app <appname> <--target TARGET> [--ver VERSION] Update the application
|
262
|
-
update-app --graceful
|
214
|
+
update-app --graceful Update the application in a graceful mode
|
263
215
|
status [appid] Display resource usage for the application
|
264
216
|
status <appname> <--target TARGET> Display resource usage for the application
|
265
217
|
app-env [appid] Display the environments for the application
|
@@ -278,10 +230,8 @@ Currently available pi commands are:
|
|
278
230
|
app-service <appname> <--target TARGET> Display the binded services for the application
|
279
231
|
bind-service [appid] [--service SERVICE] Bind the services for the application
|
280
232
|
bind-service <appname> <--target TARGET> [--service] Bind the services for the application
|
281
|
-
bind-service --graceful --lazy Bind the services for the application in a graceful and lazy mode
|
282
233
|
unbind-service [appid] [--service SERVICE] Unbind the services for the application
|
283
234
|
unbind-service <appname> <--target TARGET> [--service] Unbind the services for the application
|
284
|
-
unbind-service --graceful --lazy Unbind the services for the application in a graceful and lazy mode
|
285
235
|
services List dedicated services
|
286
236
|
service [serviceid] List the connection info for the service
|
287
237
|
export-service [serviceid] Export dedicated service url
|
@@ -300,12 +250,13 @@ Currently available pi commands are:
|
|
300
250
|
unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
|
301
251
|
dns List the dns
|
302
252
|
zones List the dns zones
|
253
|
+
dns-records [dnsid] List the record info for the registered dns
|
303
254
|
create-dns [dnsname] [--zoneid,--projectid,--desc] Create a new dns
|
304
255
|
register-dns [dnsid] [--target,--continent,--country] Register to target
|
305
256
|
deregister-dns [dnsid] [--recordid ID] Deregister to target
|
306
257
|
delete-dns [dnsid] Delete the dns
|
307
258
|
|
308
|
-
|
259
|
+
wangjing@wangjing-pc:~$ pi help options
|
309
260
|
|
310
261
|
Available options:
|
311
262
|
|
@@ -315,7 +266,7 @@ Available options:
|
|
315
266
|
--email EMAIL
|
316
267
|
--path PATH
|
317
268
|
--ver VERSION
|
318
|
-
--desc DESC
|
269
|
+
--desc [DESC]
|
319
270
|
--projectid ID
|
320
271
|
--target TARG
|
321
272
|
--instance N
|
@@ -330,7 +281,6 @@ Available options:
|
|
330
281
|
--country COUNTRY
|
331
282
|
--recordid ID
|
332
283
|
--graceful
|
333
|
-
--lazy
|
334
284
|
-t [TKEY]
|
335
285
|
--trace [TKEY]
|
336
286
|
-q, --quiet
|
@@ -339,25 +289,73 @@ Available options:
|
|
339
289
|
-v, --version
|
340
290
|
-h, --help
|
341
291
|
--options
|
292
|
+
|
293
|
+
wangjing@wangjing-pc:~$ pi user
|
342
294
|
|
343
|
-
|
295
|
+
UserName: wangjing
|
296
|
+
DomainName: bst
|
297
|
+
RoleName: user
|
298
|
+
State: Active
|
299
|
+
Github Account Name: ruanzhimin
|
300
|
+
Github Account Email: ruanzhimin@gmail.com
|
301
|
+
|
302
|
+
wangjing@wangjing-pc:~$ pi targets
|
303
|
+
|
304
|
+
+-----------+-----------------------------------+
|
305
|
+
| Name | URL |
|
306
|
+
+-----------+-----------------------------------+
|
307
|
+
| bst-dev | http://bst-dev.samsungcloud.org |
|
308
|
+
| test-farm | http://test-farm.samsungcloud.org |
|
309
|
+
+-----------+-----------------------------------+
|
310
|
+
|
311
|
+
wangjing@wangjing-pc:~$ pi runtimes
|
312
|
+
|
313
|
+
+--------+
|
314
|
+
| Name |
|
315
|
+
+--------+
|
316
|
+
| java |
|
317
|
+
| ruby18 |
|
318
|
+
+--------+
|
319
|
+
|
320
|
+
wangjing@wangjing-pc:~$ pi frameworks
|
321
|
+
|
322
|
+
+----------+
|
323
|
+
| Name |
|
324
|
+
+----------+
|
325
|
+
| lift |
|
326
|
+
| spring |
|
327
|
+
| grails |
|
328
|
+
| java_web |
|
329
|
+
| rails3 |
|
330
|
+
| sinatra |
|
331
|
+
+----------+
|
332
|
+
|
333
|
+
wangjing@wangjing-pc:~$ pi password
|
334
|
+
Old Password: *******
|
335
|
+
New Password: ****
|
336
|
+
Verify Password: ****
|
337
|
+
ok
|
338
|
+
|
339
|
+
wangjing@wangjing-pc:~$ pi github
|
340
|
+
Please input your name: ruanzhimin
|
341
|
+
Please input your email: ruanzhimin@gmail.com
|
342
|
+
Please input your password: ****************
|
343
|
+
ok
|
344
|
+
|
345
|
+
wangjing@wangjing-pc:~$ pi help stop-app
|
344
346
|
Usage: pi stop-app [appid] [--graceful] or pi stop-app <appname> <--target TARGET> [--graceful]
|
345
347
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
| ID | Name
|
350
|
-
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
| 2416 | sinatra4redis | ruby18 | sinatra | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/sinatra4redis.git | test |
|
358
|
-
+------+------------------+---------+-----------+----------+----------------------------------------------------------------------------+-------------+
|
359
|
-
|
360
|
-
ubuntu@admin:~$ pi create-project
|
348
|
+
wangjing@wangjing-pc:~$ pi projects
|
349
|
+
|
350
|
+
+------+-------------+---------+-----------+----------+----------------------------------------------------------------+-------------+
|
351
|
+
| ID | Name | Runtime | Framework | Git Type | GitUrl | Description |
|
352
|
+
+------+-------------+---------+-----------+----------+----------------------------------------------------------------+-------------+
|
353
|
+
| 3288 | javagithub | java | spring | github | https://ruanzhimin@github.com/ruanzhimin/javagithub.git | test |
|
354
|
+
| 3287 | railsgithub | ruby18 | rails3 | github | https://ruanzhimin@github.com/ruanzhimin/railsgithub.git | test |
|
355
|
+
| 3285 | ruby | ruby18 | rails3 | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/ruby.git | test |
|
356
|
+
+------+-------------+---------+-----------+----------+----------------------------------------------------------------+-------------+
|
357
|
+
|
358
|
+
wangjing@wangjing-pc:~$ pi create-project
|
361
359
|
Project Name: java
|
362
360
|
1: java
|
363
361
|
2: ruby18
|
@@ -374,61 +372,50 @@ Please enter in the description: test
|
|
374
372
|
2: github
|
375
373
|
Select Repository Type: 1
|
376
374
|
Selected Repository Type: cloudpi
|
377
|
-
Creating project "java":
|
375
|
+
Creating project "java": .............OK
|
378
376
|
|
379
|
-
|
377
|
+
wangjing@wangjing-pc:~$ pi upload
|
380
378
|
1: java
|
381
379
|
2: javagithub
|
382
|
-
3: javawj
|
383
380
|
Select Project: 1
|
384
381
|
Selected Project: java
|
385
|
-
Please enter the path of upload war file: /home/wangjing/
|
386
|
-
Please enter the version:
|
387
|
-
Please enter in the description:
|
388
|
-
Uploading "
|
382
|
+
Please enter the path of upload war file: /home/wangjing/spring4mysql-master-slave.war
|
383
|
+
Please enter the version: v1
|
384
|
+
Please enter in the description: spring4mysql
|
385
|
+
Uploading "spring4mysql-master-slave.war": .........................................................OK
|
389
386
|
|
390
|
-
|
387
|
+
wangjing@wangjing-pc:~$ pi create-app
|
391
388
|
1: bst-dev
|
392
|
-
2:
|
389
|
+
2: test-farm
|
393
390
|
Select Target: 1
|
394
391
|
Selected Target: bst-dev
|
395
|
-
Application Name:
|
396
|
-
1:
|
397
|
-
2:
|
398
|
-
3:
|
399
|
-
4:
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
8: sinatra4rabbitmq
|
404
|
-
9: sinatra4redis
|
405
|
-
10: testdebug
|
406
|
-
Select Project: 2
|
407
|
-
Selected Project: grails4redis
|
408
|
-
1: v3
|
392
|
+
Application Name: spring4mysql
|
393
|
+
1: java
|
394
|
+
2: javagithub
|
395
|
+
3: railsgithub
|
396
|
+
4: ruby
|
397
|
+
Select Project: 1
|
398
|
+
Selected Project: java
|
399
|
+
1: v1
|
409
400
|
Select Version: 1
|
410
|
-
Selected Version:
|
411
|
-
URL:
|
401
|
+
Selected Version: v1
|
402
|
+
URL: spring4mysql.wangjing.bst-dev.samsungpaas.com
|
412
403
|
Memory reservation (64M, 128M, 256M, 512M, 1G, 2G) [64M]:
|
413
|
-
Available memory:
|
414
|
-
How many instances(from 1 to
|
404
|
+
Available memory: 1600 M, maximum instances: 25
|
405
|
+
How many instances(from 1 to 25)? [1]:
|
415
406
|
Need debug? [yN]: y
|
416
407
|
1: restart
|
417
408
|
2: notify
|
418
409
|
Reaction when service changed [notify]: 1
|
419
|
-
Need graceful? [Yn]:
|
420
|
-
Need lazy? [Yn]:
|
421
410
|
Need monitor? [yN]: y
|
422
|
-
Creating application "
|
411
|
+
Creating application "spring4mysql": ....................................Success to create appliation.
|
423
412
|
|
424
|
-
|
425
|
-
|
426
|
-
| ID | Target
|
427
|
-
|
428
|
-
|
|
429
|
-
|
430
|
-
| 2399 | bst-dev | testdebug | testdebug.wangjing.bst-dev.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
|
431
|
-
+------+-----------+--------------+-------------------------------------------------+-------------+----------+---------+-----------+-------------------+
|
413
|
+
wangjing@wangjing-pc:~$ pi apps
|
414
|
+
+------+---------+--------------+-----------------------------------------------+-------------+---------+---------+-----------+-------------------+
|
415
|
+
| ID | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
|
416
|
+
+------+---------+--------------+-----------------------------------------------+-------------+---------+---------+-----------+-------------------+
|
417
|
+
| 3213 | bst-dev | spring4mysql | spring4mysql.wangjing.bst-dev.samsungpaas.com | binary | v1 | STARTED | 1 | 1 |
|
418
|
+
+------+---------+--------------+-----------------------------------------------+-------------+---------+---------+-----------+-------------------+
|
432
419
|
|
433
420
|
ubuntu@admin:~$ pi apps --target bst-dev
|
434
421
|
+------+---------+--------------+-----------------------------------------------+-------------+----------+---------+-----------+-------------------+
|
@@ -438,409 +425,325 @@ ubuntu@admin:~$ pi apps --target bst-dev
|
|
438
425
|
| 2399 | bst-dev | testdebug | testdebug.wangjing.bst-dev.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
|
439
426
|
+------+---------+--------------+-----------------------------------------------+-------------+----------+---------+-----------+-------------------+
|
440
427
|
|
441
|
-
|
428
|
+
wangjing@wangjing-pc:~$ pi services
|
429
|
+
+-----+----------------------------------------------------------+-----------------+--------------+---------+-----------+
|
430
|
+
| ID | Name | Farm Name | Service Type | Version | Owner |
|
431
|
+
+-----+----------------------------------------------------------+-----------------+--------------+---------+-----------+
|
432
|
+
| 310 | membase4appdev_304_cloudpi-dedicated-membase_xiaoliang | membase4appdev | membase | 1.7.1.1 | xiaoliang |
|
433
|
+
| 309 | mongodb4appdev_307_cloudpi-dedicated-mongodb_xiaoliang | mongodb4appdev | mongodb | 2.0.2 | xiaoliang |
|
434
|
+
| 307 | rabbitmq4appdev_305_cloudpi-dedicated-rabbitmq_xiaoliang | rabbitmq4appdev | rabbitmq | 2.7.0 | xiaoliang |
|
435
|
+
| 306 | redis4appdev_306_cloudpi-dedicated-redis_xiaoliang | redis4appdev | redis | 2.2.11 | xiaoliang |
|
436
|
+
| 354 | redisxin_320_cloudpi-dedicated-redis_guanghe | redisxin | redis | 2.2.11 | guanghe |
|
437
|
+
+-----+----------------------------------------------------------+-----------------+--------------+---------+-----------+
|
438
|
+
|
439
|
+
wangjing@wangjing-pc:~$ pi import-service
|
440
|
+
Input the url to import: http://api.staging.samsungcloud.org/dedicatedservice/MzAz
|
441
|
+
OK
|
442
|
+
|
443
|
+
wangjing@wangjing-pc:~$ pi services
|
444
|
+
+-----+----------------------------------------------------------+-----------------+--------------+---------+-----------+
|
445
|
+
| ID | Name | Farm Name | Service Type | Version | Owner |
|
446
|
+
+-----+----------------------------------------------------------+-----------------+--------------+---------+-----------+
|
447
|
+
| 310 | membase4appdev_304_cloudpi-dedicated-membase_xiaoliang | membase4appdev | membase | 1.7.1.1 | xiaoliang |
|
448
|
+
| 309 | mongodb4appdev_307_cloudpi-dedicated-mongodb_xiaoliang | mongodb4appdev | mongodb | 2.0.2 | xiaoliang |
|
449
|
+
| 456 | mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang | mysql4appdev | mysql | 5.1.41 | xiaoliang |
|
450
|
+
| 307 | rabbitmq4appdev_305_cloudpi-dedicated-rabbitmq_xiaoliang | rabbitmq4appdev | rabbitmq | 2.7.0 | xiaoliang |
|
451
|
+
| 306 | redis4appdev_306_cloudpi-dedicated-redis_xiaoliang | redis4appdev | redis | 2.2.11 | xiaoliang |
|
452
|
+
| 354 | redisxin_320_cloudpi-dedicated-redis_guanghe | redisxin | redis | 2.2.11 | guanghe |
|
453
|
+
+-----+----------------------------------------------------------+-----------------+--------------+---------+-----------+
|
454
|
+
|
455
|
+
wangjing@wangjing-pc:~$ pi service 456
|
456
|
+
{"version":"5.1.41","vendor":"mysql","plan":"free","credentials":[{"username":"scalr","host":"ec2-54-248-48-9.ap-northeast-1.compute.amazonaws.com","password":"XgKk7XmAX5fqvpJWw47v","user":"scalr","hostname":"ec2-54-248-48-9.ap-northeast-1.compute.amazonaws.com","type":"master","port":3306,"name":"cloudpidb"}],"url":"http://mysql.com/","service_id":"mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang"}
|
457
|
+
|
458
|
+
wangjing@wangjing-pc:~$ pi check-service
|
459
|
+
1: redis4appdev_306_cloudpi-dedicated-redis_xiaoliang
|
460
|
+
2: rabbitmq4appdev_305_cloudpi-dedicated-rabbitmq_xiaoliang
|
461
|
+
3: mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang
|
462
|
+
4: mongodb4appdev_307_cloudpi-dedicated-mongodb_xiaoliang
|
463
|
+
5: membase4appdev_304_cloudpi-dedicated-membase_xiaoliang
|
464
|
+
6: redisxin_320_cloudpi-dedicated-redis_guanghe
|
465
|
+
Select service: 3
|
466
|
+
Service is available.
|
467
|
+
|
468
|
+
wangjing@wangjing-pc:~$ pi register-service
|
469
|
+
1: redis4appdev_306_cloudpi-dedicated-redis_xiaoliang
|
470
|
+
2: rabbitmq4appdev_305_cloudpi-dedicated-rabbitmq_xiaoliang
|
471
|
+
3: mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang
|
472
|
+
4: mongodb4appdev_307_cloudpi-dedicated-mongodb_xiaoliang
|
473
|
+
5: membase4appdev_304_cloudpi-dedicated-membase_xiaoliang
|
474
|
+
6: redisxin_320_cloudpi-dedicated-redis_guanghe
|
475
|
+
Select service: 3
|
476
|
+
1: bst-dev
|
477
|
+
2: test-farm
|
478
|
+
Select target: 1
|
479
|
+
1: App Service
|
480
|
+
2: Session Service
|
481
|
+
Select service type: 1
|
482
|
+
OK
|
483
|
+
|
484
|
+
wangjing@wangjing-pc:~$ pi bind-service
|
442
485
|
1: all
|
443
486
|
2: project
|
444
487
|
3: target
|
445
488
|
Select application by: 1
|
446
489
|
Select application by all
|
447
|
-
1:
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
490
|
+
1: spring4mysql
|
491
|
+
Select Application: 1
|
492
|
+
Selected Application: spring4mysql
|
493
|
+
1: mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang
|
494
|
+
Select services, indexed list?: 1
|
495
|
+
Binding service: .................................................Success to bind service.
|
496
|
+
|
497
|
+
wangjing@wangjing-pc:~$ pi create-dns
|
498
|
+
1: ruby
|
499
|
+
2: railsgithub
|
500
|
+
3: javagithub
|
501
|
+
4: java
|
502
|
+
Project name: 4
|
503
|
+
1: samsungpaas.com
|
504
|
+
Select dns zone: 1
|
505
|
+
DNS name: spring4mysql
|
506
|
+
Description: test
|
507
|
+
OK
|
454
508
|
|
455
|
-
|
509
|
+
wangjing@wangjing-pc:~$ pi dns
|
510
|
+
+-----+------------------------------+--------------+-------------+
|
511
|
+
| ID | DNS Name | Project Name | Description |
|
512
|
+
+-----+------------------------------+--------------+-------------+
|
513
|
+
| 514 | spring4mysql.samsungpaas.com | java | test |
|
514
|
+
+-----+------------------------------+--------------+-------------+
|
515
|
+
|
516
|
+
wangjing@wangjing-pc:~$ pi register-dns
|
517
|
+
1: spring4mysql.samsungpaas.com
|
518
|
+
Select DNS: 1
|
519
|
+
1: bst-dev
|
520
|
+
2: test-farm
|
521
|
+
Select target: 1
|
522
|
+
1: Africa
|
523
|
+
2: Antarctica
|
524
|
+
3: Asia
|
525
|
+
4: Default
|
526
|
+
5: Europe
|
527
|
+
6: North America
|
528
|
+
7: Oceania
|
529
|
+
8: South America
|
530
|
+
Select continent: 4
|
531
|
+
Select continent: Default
|
532
|
+
OK
|
533
|
+
|
534
|
+
wangjing@wangjing-pc:~$ pi map-dns
|
456
535
|
1: all
|
457
536
|
2: project
|
458
537
|
3: target
|
459
|
-
Select application by:
|
460
|
-
Select application by
|
461
|
-
1:
|
462
|
-
2: grails4redis
|
463
|
-
3: javagithub
|
464
|
-
4: javawj
|
465
|
-
5: railsgithub
|
466
|
-
6: railswj
|
467
|
-
7: sinatra
|
468
|
-
8: sinatra4rabbitmq
|
469
|
-
9: sinatra4redis
|
470
|
-
10: testdebug
|
471
|
-
Select Project: 10
|
472
|
-
Selected Project: testdebug
|
473
|
-
1: testdebug
|
538
|
+
Select application by: 1
|
539
|
+
Select application by all
|
540
|
+
1: spring4mysql
|
474
541
|
Select Application: 1
|
475
|
-
Selected Application:
|
476
|
-
|
542
|
+
Selected Application: spring4mysql
|
543
|
+
1: spring4mysql.samsungpaas.com
|
544
|
+
Select dns, indexed list?: 1
|
545
|
+
Mapping dns: ....OK
|
477
546
|
|
478
|
-
|
547
|
+
wangjing@wangjing-pc:~$ pi create-env
|
479
548
|
1: all
|
480
549
|
2: project
|
481
550
|
3: target
|
482
|
-
Select application by:
|
483
|
-
Select application by
|
484
|
-
1:
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
Select Application: 2
|
491
|
-
Selected Application: grails4redis
|
492
|
-
Need graceful? [Yn]:
|
493
|
-
Stoping application 'grails4redis'(target:bst-dev): OK
|
494
|
-
|
495
|
-
ubuntu@admin:~$ pi start-app grails4redis --target all
|
496
|
-
The application 'grails4redis'(target:target-hq) has already started.
|
497
|
-
Starting application 'grails4redis'(target:bst-dev): ..........................................Success to start application.
|
551
|
+
Select application by: 1
|
552
|
+
Select application by all
|
553
|
+
1: spring4mysql
|
554
|
+
Select Application: 1
|
555
|
+
Selected Application: spring4mysql
|
556
|
+
Environment Name: aa
|
557
|
+
Environment Value: bb
|
558
|
+
OK
|
498
559
|
|
499
|
-
|
500
|
-
|
560
|
+
wangjing@wangjing-pc:~$ pi app-env 3213
|
561
|
+
+----------+--------------------------------------+
|
562
|
+
| Name | Value |
|
563
|
+
+----------+--------------------------------------+
|
564
|
+
| aa | bb |
|
565
|
+
| app_uuid | 6b05c39d-f067-4ef0-b814-a81fc8b32a50 |
|
566
|
+
| endpoint | http://api.staging.samsungcloud.org |
|
567
|
+
+----------+--------------------------------------+
|
568
|
+
|
569
|
+
wangjing@wangjing-pc:~$ pi app-dns 3213
|
570
|
+
Mapped DNS Name:
|
571
|
+
spring4mysql.samsungpaas.com
|
572
|
+
|
573
|
+
wangjing@wangjing-pc:~$ pi app-service 3213
|
574
|
+
+----------------------------------------------------+---------+-----------+
|
575
|
+
| Name | Version | Type |
|
576
|
+
+----------------------------------------------------+---------+-----------+
|
577
|
+
| mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang | 5.1.410 | dedicated |
|
578
|
+
+----------------------------------------------------+---------+-----------+
|
579
|
+
|
580
|
+
wangjing@wangjing-pc:~$ pi app-log 3213
|
581
|
+
Select instance index(from 0 to 0) [0]:
|
582
|
+
1: stderr.log 1.9K
|
583
|
+
2: stdout.log 7.7K
|
584
|
+
Select logs, indexed list?: 1
|
585
|
+
Selected logs: stderr.log
|
501
586
|
|
502
|
-
|
587
|
+
Sep 9, 2012 3:56:08 AM org.apache.coyote.http11.Http11Protocol init
|
588
|
+
INFO: Initializing Coyote HTTP/1.1 on http-43557
|
589
|
+
Sep 9, 2012 3:56:08 AM org.apache.catalina.startup.Catalina load
|
590
|
+
INFO: Initialization processed in 1101 ms
|
591
|
+
Sep 9, 2012 3:56:08 AM org.apache.catalina.core.StandardService start
|
592
|
+
INFO: Starting service Catalina
|
593
|
+
Sep 9, 2012 3:56:08 AM org.apache.catalina.core.StandardEngine start
|
594
|
+
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
|
595
|
+
Sep 9, 2012 3:56:08 AM org.apache.catalina.startup.HostConfig deployWAR
|
596
|
+
INFO: Deploying web application archive probe.war
|
597
|
+
Sep 9, 2012 3:56:13 AM org.apache.catalina.startup.HostConfig deployDirectory
|
598
|
+
INFO: Deploying web application directory ROOT
|
599
|
+
Sep 9, 2012 3:56:13 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
|
600
|
+
INFO: validateJarFile(/var/vcap.local/dea/apps/3213-0-89561356a6bb36c12642d492c29a9f07/tomcat/webapps/ROOT/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
|
601
|
+
Sep 9, 2012 3:56:15 AM org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor autoStagingOff
|
602
|
+
INFO: No 'META-INF/cloudfoundry.properties' found, autostaging is active
|
603
|
+
Sep 9, 2012 3:56:15 AM org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor processDatasources
|
604
|
+
INFO: No datasources found in application context
|
605
|
+
Sep 9, 2012 3:56:16 AM org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor autoStagingOff
|
606
|
+
INFO: No 'META-INF/cloudfoundry.properties' found, autostaging is active
|
607
|
+
Sep 9, 2012 3:56:16 AM org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor processDatasources
|
608
|
+
INFO: No datasources found in application context
|
609
|
+
Sep 9, 2012 3:56:17 AM org.apache.coyote.http11.Http11Protocol start
|
610
|
+
INFO: Starting Coyote HTTP/1.1 on http-43557
|
611
|
+
Sep 9, 2012 3:56:17 AM org.apache.catalina.startup.Catalina start
|
612
|
+
INFO: Server startup in 9180 ms
|
613
|
+
|
614
|
+
wangjing@wangjing-pc:~$ pi scale-app 3213
|
615
|
+
Available memory: 1536 M, maximum instances: 24
|
616
|
+
Current instance: 1, Instance number: 2
|
617
|
+
Scaling application: ................................Success to scale instances to 2
|
618
|
+
|
619
|
+
wangjing@wangjing-pc:~$ pi app-debug 3213
|
503
620
|
+-------------+------------+---------+
|
504
621
|
| Debug IP | Debug Port | State |
|
505
622
|
+-------------+------------+---------+
|
506
|
-
| 23.22.37.20 |
|
623
|
+
| 23.22.37.20 | 48175 | RUNNING |
|
624
|
+
| 23.22.37.20 | 50631 | RUNNING |
|
507
625
|
+-------------+------------+---------+
|
508
626
|
|
509
|
-
|
627
|
+
wangjing@wangjing-pc:~$ pi status 3213
|
510
628
|
+-------------+---------+--------+-----------+---------+--------------+------------+
|
511
629
|
| Instance ID | Status | CPU(%) | Memory(M) | Disk(M) | RequestCount | ErrorCount |
|
512
630
|
+-------------+---------+--------+-----------+---------+--------------+------------+
|
513
|
-
|
|
514
|
-
|
|
631
|
+
| 895613 | running | 4.42 | 127 | 34 | 0 | 0 |
|
632
|
+
| fa8220 | running | 66.18 | 135.12 | 34 | 0 | 0 |
|
633
|
+
| 691e6d | dead | 0 | 0 | 0 | 0 | 0 |
|
515
634
|
+-------------+---------+--------+-----------+---------+--------------+------------+
|
516
635
|
|
517
|
-
|
518
|
-
|
519
|
-
|
636
|
+
wangjing@wangjing-pc:~$ pi stop-app 3213
|
637
|
+
Need graceful? [Yn]:
|
638
|
+
Stoping application 'spring4mysql'(target:bst-dev): OK
|
520
639
|
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
640
|
+
wangjing@wangjing-pc:~$ pi start-app 3213
|
641
|
+
Starting application 'spring4mysql'(target:bst-dev): .............................Success to start application.
|
642
|
+
|
643
|
+
wangjing@wangjing-pc:~$ pi restart-app 3213
|
644
|
+
Need graceful? [Yn]:
|
645
|
+
Restart application 'spring4mysql'(target:bst-dev): ............................Success to restart application.
|
646
|
+
|
647
|
+
wangjing@wangjing-pc:~$ pi upload
|
648
|
+
1: java
|
649
|
+
2: javagithub
|
650
|
+
Select Project: 1
|
651
|
+
Selected Project: java
|
532
652
|
Please enter the path of upload war file: /home/wangjing/paashelp.war
|
533
|
-
Please enter the version:
|
534
|
-
|
653
|
+
Please enter the version: v1
|
654
|
+
Version 'v1' already exists.
|
655
|
+
Please enter the version: paashelp version
|
656
|
+
Please enter in the description: paashelp
|
535
657
|
Uploading "paashelp.war": ..OK
|
536
658
|
|
537
|
-
|
538
|
-
1:
|
539
|
-
2: paashelp
|
659
|
+
wangjing@wangjing-pc:~$ pi update-app 3213
|
660
|
+
1: v1
|
661
|
+
2: paashelp version
|
540
662
|
Select Version: 2
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
1:
|
546
|
-
2:
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
Jul 20, 2012 7:25:57 AM org.apache.coyote.http11.Http11Protocol start
|
563
|
-
INFO: Starting Coyote HTTP/1.1 on http-39652
|
564
|
-
Jul 20, 2012 7:25:57 AM org.apache.catalina.startup.Catalina start
|
565
|
-
INFO: Server startup in 5332 ms
|
566
|
-
|
567
|
-
ubuntu@admin:~$ pi create-env 1817
|
568
|
-
Environment Name: aa
|
569
|
-
Environment Value: bb
|
570
|
-
OK
|
571
|
-
|
572
|
-
ubuntu@admin:~$ pi app-env 1817
|
573
|
-
+------+-------+
|
574
|
-
| Name | Value |
|
575
|
-
+------+-------+
|
576
|
-
| aa | bb |
|
577
|
-
+------+-------+
|
578
|
-
|
579
|
-
ubuntu@admin:~$ pi delete-env 1817
|
580
|
-
1: aa
|
581
|
-
Environment Name: 1
|
582
|
-
Selected Environment Name: aa
|
583
|
-
OK
|
584
|
-
|
585
|
-
ubuntu@admin:~$ pi bind-service 1817
|
586
|
-
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
587
|
-
Select services, indexed list?: 1
|
588
|
-
Selected services: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
589
|
-
Binding service: ...............................OK
|
590
|
-
|
591
|
-
ubuntu@admin:~$ pi app-service 1817
|
592
|
-
+-------------------------------------------------+---------+-----------+
|
593
|
-
| Name | Version | Type |
|
594
|
-
+-------------------------------------------------+---------+-----------+
|
595
|
-
| mysql_demo_251_cloudpi-dedicated-mysql_wangjing | 5.1.410 | dedicated |
|
596
|
-
+-------------------------------------------------+---------+-----------+
|
597
|
-
|
598
|
-
ubuntu@admin:~$ pi unbind-service 1817
|
599
|
-
1. mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
600
|
-
Select Service: 1
|
601
|
-
Selected Service: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
602
|
-
Unbinding service: ...................................................OK
|
603
|
-
|
604
|
-
ubuntu@admin:~$ pi services
|
605
|
-
+-----+-------------------------------------------------+------------+--------------+---------+----------+
|
606
|
-
| ID | Name | Farm Name | Service Type | Version | Owner |
|
607
|
-
+-----+-------------------------------------------------+------------+--------------+---------+----------+
|
608
|
-
| 269 | mysql_demo_251_cloudpi-dedicated-mysql_wangjing | mysql_demo | mysql | 5.1.41 | wangjing |
|
609
|
-
+-----+-------------------------------------------------+------------+--------------+---------+----------+
|
610
|
-
|
611
|
-
ubuntu@admin:~$ pi service
|
612
|
-
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
613
|
-
Select service: 1
|
614
|
-
{"version":"5.1.41","vendor":"mysql","plan":"free","credentials":[{"username":"scalr","host":"ec2-75-101-185-90.compute-1.amazonaws.com","password":"03u5PVIFMjV8zg1WLudb","user":"scalr","hostname":"ec2-75-101-185-90.compute-1.amazonaws.com","type":"master","port":3306,"name":"cloudpidb"}],"url":"http://mysql.com/","service_id":"mysql_demo_251_cloudpi-dedicated-mysql_wangjing"}
|
615
|
-
|
616
|
-
ubuntu@admin:~$ pi check-service
|
617
|
-
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
618
|
-
Select service: 1
|
619
|
-
Service is available.
|
620
|
-
|
621
|
-
ubuntu@admin:~$ pi export-service
|
622
|
-
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
623
|
-
Select service: 1
|
624
|
-
http://api.staging.samsungcloud.org/dedicatedservice/6.7250000000000005
|
625
|
-
|
626
|
-
ubuntu@admin:~$ pi import-service
|
627
|
-
Input the url to import: http://127.0.0.1:8080/dedicatedservice/6.550000000000001
|
628
|
-
OK
|
629
|
-
|
630
|
-
ubuntu@admin:~$ pi register-service
|
631
|
-
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
632
|
-
2: membase-session-manager1_230_cloudpi-dedicated-membase_dev
|
633
|
-
Select service: 2
|
634
|
-
1: ap-ne-test
|
635
|
-
2: bst-dev
|
636
|
-
Select target: 1
|
637
|
-
1: App Service
|
638
|
-
2: Session Service
|
639
|
-
Select service type: 1
|
640
|
-
OK
|
641
|
-
|
642
|
-
ubuntu@admin:~$ pi deregister-service
|
643
|
-
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
644
|
-
2: membase-session-manager1_230_cloudpi-dedicated-membase_dev
|
645
|
-
Select service: 2
|
646
|
-
1: ap-ne-test
|
663
|
+
Need graceful? [Yn]:
|
664
|
+
Updating application: ....................................Success to upgrade application to : paashelp version
|
665
|
+
|
666
|
+
wangjing@wangjing-pc:~$ pi delete-env 3213
|
667
|
+
1: app_uuid
|
668
|
+
2: endpoint
|
669
|
+
3: aa
|
670
|
+
Environment Name: 3
|
671
|
+
Selected Environment Name: aa
|
672
|
+
Deleting environment 'aa=bb': OK
|
673
|
+
|
674
|
+
wangjing@wangjing-pc:~$ pi unmap-dns 3213
|
675
|
+
1: spring4mysql.samsungpaas.com
|
676
|
+
Select DNS: 1
|
677
|
+
Unmapping dns 'spring4mysql.samsungpaas.com': ....OK
|
678
|
+
|
679
|
+
wangjing@wangjing-pc:~$ pi deregister-dns
|
680
|
+
1: spring4mysql.samsungpaas.com
|
681
|
+
Select DNS: 1
|
682
|
+
1: bst-dev
|
683
|
+
2: test-farm
|
647
684
|
Select target: 1
|
685
|
+
1: DEFAULT
|
686
|
+
Select record: 1
|
648
687
|
OK
|
649
688
|
|
650
|
-
|
651
|
-
1:
|
652
|
-
|
653
|
-
Select service: 2
|
654
|
-
OK
|
655
|
-
|
656
|
-
ubuntu@admin:~$ pi map-dns 1817
|
657
|
-
1: javatest1.samsungpaas.com
|
658
|
-
2: javatest2.samsungpaas.com
|
659
|
-
Select dns, indexed list?: 1,2
|
660
|
-
Selected dns: javatest1.samsungpaas.com javatest2.samsungpaas.com
|
661
|
-
Mapping dns: ...OK
|
662
|
-
|
663
|
-
ubuntu@admin:~$ pi unmap-dns 1817
|
664
|
-
1: javatest1.samsungpaas.com
|
665
|
-
2: javatest2.samsungpaas.com
|
666
|
-
Select DNS: 2
|
667
|
-
Selected DNS: javatest2.samsungpaas.com
|
668
|
-
Unmapping dns: ...OK
|
669
|
-
|
670
|
-
ubuntu@admin:~$ pi app-dns 1817
|
671
|
-
+---------------------------+
|
672
|
-
| Mapped DNS Name |
|
673
|
-
+---------------------------+
|
674
|
-
| javatest1.samsungpaas.com |
|
675
|
-
+---------------------------+
|
676
|
-
|
677
|
-
ubuntu@admin:~$ pi dns
|
678
|
-
+-----+---------------------------+--------------+-------------+
|
679
|
-
| ID | DNS Name | Project Name | Description |
|
680
|
-
+-----+---------------------------+--------------+-------------+
|
681
|
-
| 203 | javawj.samsungpaas.com | javawj | |
|
682
|
-
| 204 | javawj2.samsungpaas.com | javawj | |
|
683
|
-
| 165 | rails.samsungpaas.com | railswj | |
|
684
|
-
| 193 | railsdemo.samsungpaas.com | railswj | |
|
685
|
-
| 168 | railstest.samsungpaas.com | railswj | |
|
686
|
-
| 194 | railstmp.samsungpaas.com | railswj | |
|
687
|
-
+-----+---------------------------+--------------+-------------+
|
688
|
-
|
689
|
-
ubuntu@admin:~$ pi create-dns
|
690
|
-
1: railswj
|
691
|
-
2: javagithub
|
692
|
-
3: railsgithub
|
693
|
-
4: javawj
|
694
|
-
5: sinatra
|
695
|
-
Project name: 4
|
696
|
-
1: samsungpaas.com
|
697
|
-
Select dns zone: 1
|
698
|
-
DNS name: javawangj
|
699
|
-
Description: test
|
700
|
-
OK
|
701
|
-
|
702
|
-
ubuntu@admin:~$ pi register-dns
|
703
|
-
1: rails.samsungpaas.com
|
704
|
-
2: railstest.samsungpaas.com
|
705
|
-
3: railsdemo.samsungpaas.com
|
706
|
-
4: railstmp.samsungpaas.com
|
707
|
-
5: javawj.samsungpaas.com
|
708
|
-
6: javawj2.samsungpaas.com
|
709
|
-
7: javawangj.samsungpaas.com
|
710
|
-
Select DNS: 7
|
711
|
-
1: ap-ne-test
|
712
|
-
2: bst-dev
|
713
|
-
Select target: 1
|
714
|
-
1: Africa
|
715
|
-
2: Antarctica
|
716
|
-
3: Asia
|
717
|
-
4: Europe
|
718
|
-
5: North America
|
719
|
-
6: Oceania
|
720
|
-
7: South America
|
721
|
-
Select continent: 3
|
722
|
-
Select continent: Asia
|
723
|
-
1: Afghanistan
|
724
|
-
2: Armenia
|
725
|
-
3: Asia(continent)
|
726
|
-
4: Asia/Pacific Region
|
727
|
-
5: Azerbaijan
|
728
|
-
6: Bahrain
|
729
|
-
7: Bangladesh
|
730
|
-
8: Bhutan
|
731
|
-
9: British Indian Ocean Territory
|
732
|
-
10: Brunei Darussalam
|
733
|
-
11: Cambodia
|
734
|
-
12: China
|
735
|
-
13: Christmas Island
|
736
|
-
14: Cocos (Keeling) Islands
|
737
|
-
15: Cyprus
|
738
|
-
16: Georgia
|
739
|
-
17: Hong Kong
|
740
|
-
18: India
|
741
|
-
19: Indonesia
|
742
|
-
20: Iran, Islamic Republic of
|
743
|
-
21: Iraq
|
744
|
-
22: Israel
|
745
|
-
23: Japan
|
746
|
-
24: Jordan
|
747
|
-
25: Kazakhstan
|
748
|
-
26: Kuwait
|
749
|
-
27: Kyrgyzstan
|
750
|
-
28: Lao People's Democratic Republic
|
751
|
-
29: Lebanon
|
752
|
-
30: Macao
|
753
|
-
31: Malaysia
|
754
|
-
32: Maldives
|
755
|
-
33: Mongolia
|
756
|
-
34: Myanmar
|
757
|
-
35: Nepal
|
758
|
-
36: North Korea
|
759
|
-
37: Oman
|
760
|
-
38: Pakistan
|
761
|
-
39: Palestinian Territory
|
762
|
-
40: Philippines
|
763
|
-
41: Qatar
|
764
|
-
42: Saudi Arabia
|
765
|
-
43: Singapore
|
766
|
-
44: South Korea
|
767
|
-
45: Sri Lanka
|
768
|
-
46: Syrian Arab Republic
|
769
|
-
47: Taiwan
|
770
|
-
48: Tajikistan
|
771
|
-
49: Thailand
|
772
|
-
50: Timor-Leste
|
773
|
-
51: Turkmenistan
|
774
|
-
52: United Arab Emirates
|
775
|
-
53: Uzbekistan
|
776
|
-
54: Vietnam
|
777
|
-
55: Yemen
|
778
|
-
Select country: 12
|
779
|
-
Select country: China
|
689
|
+
wangjing@wangjing-pc:~$ pi delete-dns
|
690
|
+
1: spring4mysql.samsungpaas.com
|
691
|
+
Select DNS: 1
|
780
692
|
OK
|
781
693
|
|
782
|
-
|
783
|
-
1:
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
694
|
+
wangjing@wangjing-pc:~$ pi unbind-service 3213
|
695
|
+
1: mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang
|
696
|
+
Select Service: 1
|
697
|
+
Unbinding service 'mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang': .....................................Success to unbind service.
|
698
|
+
|
699
|
+
wangjing@wangjing-pc:~$ pi deregister-service
|
700
|
+
1: redis4appdev_306_cloudpi-dedicated-redis_xiaoliang
|
701
|
+
2: rabbitmq4appdev_305_cloudpi-dedicated-rabbitmq_xiaoliang
|
702
|
+
3: mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang
|
703
|
+
4: mongodb4appdev_307_cloudpi-dedicated-mongodb_xiaoliang
|
704
|
+
5: membase4appdev_304_cloudpi-dedicated-membase_xiaoliang
|
705
|
+
6: redisxin_320_cloudpi-dedicated-redis_guanghe
|
706
|
+
Select service: 3
|
707
|
+
1: bst-dev
|
793
708
|
Select target: 1
|
794
|
-
1: China
|
795
|
-
Select record: 1
|
796
709
|
OK
|
797
710
|
|
798
|
-
|
799
|
-
1:
|
800
|
-
2:
|
801
|
-
3:
|
802
|
-
4:
|
803
|
-
5:
|
804
|
-
6:
|
805
|
-
|
806
|
-
Select DNS: 7
|
711
|
+
wangjing@wangjing-pc:~$ pi delete-service
|
712
|
+
1: redis4appdev_306_cloudpi-dedicated-redis_xiaoliang
|
713
|
+
2: rabbitmq4appdev_305_cloudpi-dedicated-rabbitmq_xiaoliang
|
714
|
+
3: mysql4appdev_303_cloudpi-dedicated-mysql_xiaoliang
|
715
|
+
4: mongodb4appdev_307_cloudpi-dedicated-mongodb_xiaoliang
|
716
|
+
5: membase4appdev_304_cloudpi-dedicated-membase_xiaoliang
|
717
|
+
6: redisxin_320_cloudpi-dedicated-redis_guanghe
|
718
|
+
Select service: 3
|
807
719
|
OK
|
808
720
|
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
|
820
|
-
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
ubuntu@admin:~$ pi project-tags
|
836
|
-
1: javagithub
|
837
|
-
2: javatest
|
838
|
-
3: javawj
|
839
|
-
4: railsgithub
|
840
|
-
5: railswj
|
841
|
-
6: sinatra
|
842
|
-
Select Project: 2
|
843
|
-
Selected Project: javatest
|
721
|
+
wangjing@wangjing-pc:~$ pi delete-app 3213
|
722
|
+
Deleting application: ....OK
|
723
|
+
|
724
|
+
wangjing@wangjing-pc:~$ pi project-events 3289
|
725
|
+
+---------+--------------+-----------------------+-----------+------------------------------------------------------+
|
726
|
+
| Target | AppName | EventTime | EventInfo | EventDetail |
|
727
|
+
+---------+--------------+-----------------------+-----------+------------------------------------------------------+
|
728
|
+
| | | 2012-09-09 03:44:48.0 | INFO | Success to create project : java |
|
729
|
+
| bst-dev | spring4mysql | 2012-09-09 03:50:07.0 | INFO | Success to create appliation. |
|
730
|
+
| bst-dev | spring4mysql | 2012-09-09 03:55:57.0 | INFO | Success to stop application. |
|
731
|
+
| bst-dev | spring4mysql | 2012-09-09 03:56:17.0 | INFO | Success to bind service. |
|
732
|
+
| bst-dev | spring4mysql | 2012-09-09 04:00:06.0 | INFO | Success to map url. |
|
733
|
+
| bst-dev | spring4mysql | 2012-09-09 04:00:52.0 | INFO | Success to add env : aa=bb |
|
734
|
+
| bst-dev | spring4mysql | 2012-09-09 04:05:08.0 | INFO | Success to scale instances to 2 |
|
735
|
+
| bst-dev | spring4mysql | 2012-09-09 04:07:20.0 | INFO | Success to stop application. |
|
736
|
+
| bst-dev | spring4mysql | 2012-09-09 04:07:50.0 | INFO | Success to start application. |
|
737
|
+
| bst-dev | spring4mysql | 2012-09-09 04:08:29.0 | INFO | Success to restart application. |
|
738
|
+
| bst-dev | spring4mysql | 2012-09-09 04:10:46.0 | INFO | Success to upgrade application to : paashelp version |
|
739
|
+
| bst-dev | spring4mysql | 2012-09-09 04:13:16.0 | INFO | Success to delete env. |
|
740
|
+
| bst-dev | spring4mysql | 2012-09-09 04:14:27.0 | INFO | Success to unmap url. |
|
741
|
+
| bst-dev | spring4mysql | 2012-09-09 04:15:59.0 | INFO | Success to stop application. |
|
742
|
+
| bst-dev | spring4mysql | 2012-09-09 04:16:17.0 | INFO | Success to unbind service. |
|
743
|
+
| bst-dev | spring4mysql | 2012-09-09 04:18:34.0 | INFO | Success to delete appliction. |
|
744
|
+
+---------+--------------+-----------------------+-----------+------------------------------------------------------+
|
745
|
+
|
746
|
+
wangjing@wangjing-pc:~$ pi project-tags 3289
|
844
747
|
|
845
748
|
+--------+
|
846
749
|
| Tag |
|
@@ -848,55 +751,20 @@ Selected Project: javatest
|
|
848
751
|
| v0.0.0 |
|
849
752
|
+--------+
|
850
753
|
|
851
|
-
|
852
|
-
1: javagithub
|
853
|
-
2: javatest
|
854
|
-
3: javawj
|
855
|
-
4: railsgithub
|
856
|
-
5: railswj
|
857
|
-
6: sinatra
|
858
|
-
Select Project: 2
|
859
|
-
Selected Project: javatest
|
754
|
+
wangjing@wangjing-pc:~$ pi project-commits 3289
|
860
755
|
1: v0.0.0
|
861
756
|
Select Tag: 1
|
862
757
|
Selected Tag: v0.0.0
|
863
758
|
+------------------------------------------+---------------------------+--------------+
|
864
759
|
| CommitId | Date | Comment |
|
865
760
|
+------------------------------------------+---------------------------+--------------+
|
866
|
-
|
|
761
|
+
| 98f090f331eaad56ead525524a0d08a4c8fcb2ae | 2012-09-09 03:43:40 +0000 | init project |
|
867
762
|
+------------------------------------------+---------------------------+--------------+
|
868
763
|
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
Select application by: 2
|
874
|
-
Select application by project
|
875
|
-
1: javagithub
|
876
|
-
2: javatest
|
877
|
-
3: javawj
|
878
|
-
4: railsgithub
|
879
|
-
5: railswj
|
880
|
-
6: sinatra
|
881
|
-
Select Project: 2
|
882
|
-
Selected Project: javatest
|
883
|
-
1: java
|
884
|
-
Select Application: 1
|
885
|
-
Selected Application: java
|
886
|
-
Deleting application: ...OK
|
887
|
-
|
888
|
-
ubuntu@admin:~$ pi delete-project
|
889
|
-
1: javagithub
|
890
|
-
2: javatest
|
891
|
-
3: javawj
|
892
|
-
4: railsgithub
|
893
|
-
5: railswj
|
894
|
-
6: sinatra
|
895
|
-
Select Project: 2
|
896
|
-
Selected Project: javatest
|
897
|
-
Deleting project "javatest": ............OK
|
898
|
-
|
899
|
-
ubuntu@admin:~$ pi logout
|
764
|
+
wangjing@wangjing-pc:~$ pi delete-project 3289
|
765
|
+
Deleting project: ........OK
|
766
|
+
|
767
|
+
wangjing@wangjing-pc:~$ pi logout
|
900
768
|
Successfully logged out of [http://api.staging.samsungcloud.org]
|
901
769
|
|
902
770
|
5. Common Exception
|