265 Commits

Author SHA1 Message Date
Feng Shengqin
c04ef8ced7 Enhance api version support in CLI
Change-Id: I7f8f35ccc30a80741d31c4790ea0c85c6a9a67eb
Implements: blueprint api-microversion-cli
2017-07-10 13:30:15 +08:00
Jenkins
3f06632027 Merge "Remove unused code from zunclient/common/apiclient" 2017-07-10 05:24:04 +00:00
Jenkins
86e8d1b5bc Merge "Fixed wrap from taking negative values" 2017-07-08 03:17:35 +00:00
Jenkins
16e98ae65c Merge "Don't run zun server tempest tests in gate" 2017-07-08 03:15:23 +00:00
bhavani.cr
5f3d111dbf Fixed wrap from taking negative values
Now for wrap input it will take only postive integers as an input and
if any negative numbers are give it will give output as "Wrap argument
should be a positive integer".

Change-Id: I1e62687d65144c16518cdae4c90cf1617ff4cc2d
2017-07-06 16:02:14 +05:30
Jenkins
c40c25c589 Merge "Add network options to zunclient" 2017-07-06 06:32:16 +00:00
Jenkins
7fcfdffd25 Merge "Support api micro version in OSC" 2017-07-06 06:13:25 +00:00
00129207
9e3f8baaba Support api micro version in OSC
Change-Id: I2c3168592d5d8ad8b97310ba32195ee580903ac7
Closes-Bug: #1701939
2017-07-05 17:28:41 +08:00
ShunliZhou
c27da4b593 Add network options to zunclient
Add network options to zunclient to allow use specify the pre
created network to use to create container.

CLI format like 'zun create --nets
network=982a86dc1194,v4-fixed-ip=172.17.0.3 --nets
port=1234567,v6-fixed-ip=2001:db8::2 nginx bash'

Value passed to api like this ‘[{u'v4-fixed-ip': u'172.17.0.3',
u'network': u'982a86dc1194', u'v6-fixed-ip': u'', u'port': u''},
{u'v4-fixed-ip': u'', u'network': u'', u'v6-fixed-ip':
u'2001:db8::2', u'port': u'1234567'}]'’.

Change-Id: I6507d153e97564160308dabe90ce8693bc061863
2017-07-05 14:54:36 +08:00
OpenStack Proposal Bot
ef1c2ccf64 Updated from global requirements
Change-Id: Ide99a4eab0a49c63a368e2623fcb0a20573c64c5
2017-07-04 17:58:08 +00:00
Jenkins
d8a2670b36 Merge "switch to openstackdocstheme" 2017-07-03 14:42:13 +00:00
bhavani.cr
2983b742c9 switch to openstackdocstheme
Change-Id: I6b5ff271bde4a8267811ad50452b52d23df7b6da
2017-07-03 08:45:59 +00:00
Jenkins
4fe840278a Merge "Add security groups to container create/run" 2017-07-03 07:20:47 +00:00
Hongbin Lu
00a3d99197 Remove unused code from zunclient/common/apiclient
Change-Id: Ife5fca0caba9a5ab4a7c1ece6c50f8cb99ee79ed
2017-06-27 20:18:20 +00:00
OpenStack Proposal Bot
8f46a498e3 Updated from global requirements
Change-Id: I8ca53dc9d59bfe39d654dee24d493e436ffd3e0b
2017-06-27 12:23:05 +00:00
Hongbin Lu
ca1f99e630 Don't run zun server tempest tests in gate
We don't need to run zun server tempest jobs for testing patches
in client side. Removing these tests would make the gate easier
to maintain.

Change-Id: I143ce8550227badccb72c0d3d6728271508f4ed9
2017-06-23 21:34:20 +00:00
Jenkins
aae1088e22 Merge "Upgrade from docker-py to docker" 2017-06-23 18:54:14 +00:00
Hongbin Lu
867d6b1bed Add security groups to container create/run
This allows users to create container with custom security groups.
If it is not specified, the "default" security group will be used.

Change-Id: I3314a6ad21b4fd5032933f48aa448568cda73a27
Closes-Bug: #1694338
2017-06-21 19:08:54 +00:00
Hongbin Lu
d11da170b5 Upgrade from docker-py to docker
The pypi package 'docker-py' [1] has been renamed to 'docker' [2].
We need to move to the new 'docker' package in order to leverage
the up-to-date features.

NOTE: In order to pass the gate, the OSC tests were temporarily
disabled. Those tess will be re-enabled once both server and
client finish the upgrade.

[1] https://pypi.python.org/pypi/docker-py
[2] https://pypi.python.org/pypi/docker
[3] https://review.openstack.org/#/c/423715/

Change-Id: I9346112d8a495bc6b304647377f8da47017cc869
Partial-Implements: blueprint adopt-docker-py-2.0-api
2017-06-20 19:49:36 +00:00
Jenkins
d96d144198 Merge "Add scheduler hints for zunclient" 2017-06-20 10:22:02 +00:00
Tovin Seven
50435d62d3 Make --profile load from environment variables
--profile argument can be loaded from OS_PROFILE environment variables
to avoid repeating --profile in client commands.

Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I3521dbd3142edb1a94f34458769530732e3930ed
2017-06-19 13:38:55 +07:00
Hongbin Lu
0e6955c505 Add scheduler hints for zunclient
Add scheduler hints for zunclient, zun filter scheduler need this
hints.

Depends-On: Ia612b3585efc74a9d52432ce790897447514c05e
Change-Id: Ib347f5eb0e9f0b616eb15cdf2822d329b2e15dae
Co-Authored-By: ShunliZhou <slzhou@fiberhome.com>
2017-06-16 19:59:46 -04:00
Jenkins
175a0ac028 Merge "Zunclient should escape special character" 2017-06-16 16:01:16 +00:00
Jenkins
c824f3dbbf Merge "Set concurrency to 1 for OSC tempest tests" 2017-06-16 15:57:04 +00:00
Jenkins
af7a018037 Merge "OSC: return columns instead of using print_dict" 2017-06-16 15:55:53 +00:00
Jenkins
3783df565d Merge "Return image ID in container commit" 2017-06-16 15:51:12 +00:00
OpenStack Proposal Bot
3d82050f6f Updated from global requirements
Change-Id: I1f4a7cabffaf234ef1a10d90468e91c91c00b7da
2017-06-10 11:48:41 +00:00
Jenkins
0861e0a474 Merge "OSC support service api" 2017-06-08 09:47:05 +00:00
miaohb
b2e7edb4a6 Return image ID in container commit
This patch adds return the image ID in container commit.

Change-Id: I5b6fc6d0048a023baf760f603723ed4118fea08e
Closes-Bug: #1695788
2017-06-07 11:21:56 +08:00
Feng Shengqin
daf17225f8 OSC: return columns instead of using print_dict
Change-Id: Ia160e4f30c49bbaa1b80a1f591764e6d5a5ee1fb
Closes-Bug: #1695791
2017-06-06 15:14:23 +08:00
Jenkins
5b54280c7b Merge "Skip run OSC tests on unit tests" 2017-06-06 03:55:58 +00:00
Feng Shengqin
a7ef827f8f Zunclient should escape special character
Co-Authored-By: Hongbin Lu <hongbin.lu@huawei.com>
Change-Id: Ia863c1af602ac2b83ff7e20352323fa0529dfc43
Closes-Bug: #1694137
2017-06-05 19:26:52 +00:00
Hongbin Lu
3460834244 Set concurrency to 1 for OSC tempest tests
It looks OSC tests were not designed to run in parallel because
there are some race condition between tests. The gate had a few
intermittent failure due to that. This commit temporarily disable
parallel execution of test cases.

Change-Id: Id912b1e21f35b95d70571ab8adc030572294910c
2017-06-05 15:50:12 +00:00
OpenStack Proposal Bot
b484d6a7f5 Updated from global requirements
Change-Id: I8e7f58a8fc9c0a2353ae770e31b4a1e9c59284b4
2017-06-05 12:07:49 +00:00
miaohb
f4705f9169 OSC support service api
This patch adds osc client support for service api(including list,
delete, enable, disable and forcedown).

Change-Id: Ibfc67bc5f2147864d0808dd9c929865b5d10ce48
Implements: blueprint enhance-service-api
2017-06-05 09:12:29 +08:00
Madhuri Kumari
209fbdf44c Fix spelling mistake in osc client
Change-Id: Icf26304c145f414ac34c86eb0fb80c26d78c6a2c
2017-06-02 12:46:08 +05:30
Jenkins
f589468edf Merge "Fix some spelling mistakes." 2017-06-02 05:54:42 +00:00
Jenkins
9cb21ee379 Merge "Add image-list and pull to osc" 2017-06-01 22:56:18 +00:00
Madhuri Kumari
bd79aa1de9 Fix some spelling mistakes.
Change-Id: Id4a4ab7d0b576f02da14693ecdabc0096457aacc
2017-05-31 08:47:08 +00:00
miaohb
e1d7cb0a7a Client support for service force-down
This patch adds support for service force-down.

Change-Id: Ie7712dced3a38ec27d2de8ecf948279e3a4400c8
Partially-Implements: blueprint enhance-service-api
2017-05-31 09:37:17 +08:00
Feng Shengqin
8bdc284a0b Add image-list and pull to osc
Change-Id: I79b8cf045ebaa54c078ad4b50f2d660d79b713d0
2017-05-31 08:40:40 +08:00
Jenkins
99af1df53c Merge "Revert "Add scheduler hint for zunclient"" 2017-05-30 03:38:25 +00:00
Hongbin Lu
fc69563968 Revert "Add scheduler hint for zunclient"
This reverts commit 7f6efb562b3187459a4340a96da4e1956fc36c47.

Change-Id: Iea91bcd2a0b58314507ebde181f96967a5397717
Closes-Bug: #1694332
2017-05-29 21:37:25 +00:00
Jenkins
3fec53ba4c Merge "Implement container snapshot" 2017-05-29 14:58:48 +00:00
Jenkins
13fa1a9736 Merge "Add scheduler hint for zunclient" 2017-05-29 14:51:21 +00:00
Bin Zhou
df6a60f5a0 Implement container snapshot
This patch implements zun client container snapshot command.

example CLI: zun commit --repository myrepo --tag mytag

Change-Id: I51f94a84ab9ff8c4816fc6ba43ce46f206603827
2017-05-28 23:20:18 -04:00
ShunliZhou
7f6efb562b Add scheduler hint for zunclient
Add scheduler hint for zunclient, zun filter scheduler need this
hint.

Change-Id: I4b75f27483b525fd3f550555c026b13768f3cf2b
2017-05-27 11:00:44 +08:00
Jenkins
d9d0f4d70c Merge "Client support for service-enable/disable" 2017-05-26 01:35:06 +00:00
Jenkins
35f2f7b0ff Merge "Compile stats on server side" 2017-05-24 16:21:29 +00:00
Jenkins
0fe93f33c8 Merge "Improve style of zun pull" 2017-05-24 16:20:25 +00:00