Add function to upload image from local/url in GUI 17/39117/6
authorchenjiankun <chenjiankun1@huawei.com>
Fri, 11 Aug 2017 09:26:22 +0000 (09:26 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Thu, 24 Aug 2017 03:29:25 +0000 (03:29 +0000)
commitefb4f088f14aee394599bea21973f82f1867c4fe
tree7dee3588a21ac0b3aa6d130a77d6d6a8f30a01d7
parent4a5bc16d841221e8ac7853b3044e50af0c8143d2
Add function to upload image from local/url in GUI

JIRA: YARDSTICK-782

As user, we need to upload image from local/url.
If upload image from local, user need to choose local image, then
we will load it to openstack.
If upload image from url, we will download it and load it to openstack.

Change-Id: Ia9a42fda15a1dfc91476643635343a2f77a94a6b
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
16 files changed:
api/database/v2/handlers.py
api/database/v2/models.py
api/resources/v2/environments.py
api/resources/v2/images.py
api/server.py
api/urls.py
docker/nginx.sh
gui/app/scripts/controllers/image.controller.js
gui/app/scripts/controllers/main.js
gui/app/scripts/controllers/projectDetail.controller.js
gui/app/scripts/factory/main.factory.js
gui/app/views/modal/environmentDialog.html
gui/app/views/modal/imageDialog.html [new file with mode: 0644]
gui/app/views/podupload.html
gui/app/views/uploadImage.html
yardstick/common/constants.py