Screen Shot:
https://drive.google.com/file/d/0B1UFZO9xX8eweERNX2FWVGRrMXM/view
Short Video:
https://youtu.be/lYt2U7qZG38
This patch realizes the Cloud Shell feature as following manner:
1. Add 'Cloud Shell' menu on the top menu bar.
2. When 'Cloud Shell' menu clicked, create console area on
the bottom of window.
3. If cloud shell container does not exists for the user,
create the container.
4. If cloud shell container exists, attach the console area
to the container.
5. Each time when attach to the container, clouds.yaml will be
exported into the container.
6. Password will be not imported into the container,
so user should set manually 'OS_PASSWORD' into envirinment
variables or 'password' into clouds.yaml.
Change-Id: Ia26be196758e5f3617b31750702a6c54436efb93
Depends-On: Ie4bc4d7302ce80ed9925db4156ff52f928460aca
Now the ui will show all of the actions regardless of container's
status, while the zun_api will check it and return a 409 code if
status is not valid, we should filter the actions just like what
nova instances do
Change-Id: Id87ec80238b407f1475c83303f6a5cab57e07385
Current translation sync fail with:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3:
ordinal not in range(128)
Example:
http://logs.openstack.org/periodic/zun-ui-propose-translation-update/2f95b23/
The problem are two wrong " " UTF-8 characters, replace them with ASCII
ones.
Note that the diff will not show this as real difference. But comparing files before and
after using "file" shows before: UTF-8 Unicode text
And now: ASCII text.
This was introduced with change I2eba1ac77deec797342fc1adff60f45e8ea0a70f.
See
http://status.openstack.org/openstack-health/#/job/zun-ui-upstream-translation-update
for when the failures start.
Change-Id: Idd443c3a432c78374f6d10d48f759ff5787e439c
To specify nets option when create container, this patch adds
Networks and Ports steps into the creation dialog.
The Networks and Ports steps are not shown in update dialog.
Change-Id: I686e603d43b67648df08af398a550069f5087415
Implements: bluepring add-network-step
To specify scheduler hints options when create container,
this patch adds Scheduler Hints step into the creation dialog.
The Scheduler Hints step is not shown in update dialog.
For now, only Label Filter is available. So there are no
scheduler hint definitions in the left column.
Change-Id: I2eba1ac77deec797342fc1adff60f45e8ea0a70f
Implements: blueprint add-scheduler-hints-step
To specify security groups options when create container,
this patch adds Security Groups step into the creation dialog.
The Security Groups step is not shown in update dialog.
Also, security group infomations are shown in table view
and details view.
Change-Id: Ic67baa367eb1210dde8e6d7610fe2c5332631aa7
Implements: bluepring add-security-groups
To modify dialog easily, this patch uses Angular-Schema-Form
for container creation dialog.
This also makes easier to implement update dialog in the future.
Change-Id: Id369ec6650931433e3e5fd4569838c3ff420e504
This patch adds 'image_driver', 'image_pull_policy' and
'restart_policy' parameters into cluster creation action.
Change-Id: I479e85787b0a2518968e8bb774159073b1573162
Zun server is switching to websockify library for streaming.
This requires client to set sub-protocols manually.
New WebSocket connection manner is completely same as of
serial console for the instance.
So it's enough to use django template for the instance.
Change-Id: I7ebd0893ea4db0149fade4f32d6b70ee8b55147c
If a 'exec' request returned 400/500, the UI doesn't handle it.
This causes spinner remaining. This patch fixes the issue.
Also, to ease to see status of exit code for command,
change its container from readonly input text box to label.
Change-Id: I833d5f448f5294ae8b537476e53643e35f25e7a2
Closes-Bug: #1682173
It is better to increase the height of output area
since the output couldn't fit into the box at majority cases.
Change-Id: Ia8dbb2c3985eca7125575de803f7c5fa749558b2
This patch adds fields for output, exit code and message into Execute
action dialog. To display output of command, this also modifies dialog
not to be close by clicking submit button. To close this dialog, click
cancel or type Esc key.
Change-Id: I6f753387f4e8fa833b5081b4f11fa5c89927b6d0
This patch fixes to refresh views after actions,
also adds refresh action as item action for manual refreshing.
Adding refresh action is trivial fix. Ideally, refresh action
should be implemented by Horizon framework.
Change-Id: I1b0b5084a7a3a3df96e04200add8f3843587cb76
This patch adds console tab into details view. Console view
gets console_url using attach method and access from browser
via websocket using console_url.
Change-Id: I273e83eb114e93371a23b9a1e9d26ceacb6b71d5
Implements: blueprint interactive-mode
To enable Web console for container, this patch adds
'interaction' attribute into creation dialog
Change-Id: Ia941afad48c5f83594972f6f83d9267e36c04501
Partial-Impements: blueprint interactive-mode
To corresponse 'run' command of python-zunclient,
this patch adds 'run' attribute to creation action.
Change-Id: I80d478951c019284441093fa50f2d41bd970c473
This patch replaces hard coded "project/ngdetails/" for path of
details view to constant using "horizon.app.core.detailRoute".
Change-Id: Ia238f0a4b6df45f08673e4d41b24c6005d22ef00
Closes-Bug: #1641250
This patch adds "Delete Container Forcely" action for each containers.
This action is too dangerous for batch action, so implemented as only
item action.
Change-Id: Id839f2ce4beb17d7c4280cecf31b29e63f59197f
This patch refreshes columns for table view and
properties for details view.
Also, use hz-resource-property-list for them.
Change-Id: I512de5bb76b1ea3d47ff4b5712bc9078e4f5e753
This patch removes hostname and ports attributes, and modifies
memory_size as MiB from create dialog.
Also, merge environment tab into miscellaneous tab.
Since create dialog will be changed widely in following patch,
so this patch is provided as hotfix.
Change-Id: I63920f7792655cce06d3bcf531ecdce6591cdd44
This patch adds execute and kill action as item action
in table view and details view.
Change-Id: I782c893c3ad4847ac80b6e5282c2811f70e28929
Partial-Implements: blueprint add-container-operations
initScope() for actions is deprecated in Ocata.[1]
This patch use initAction() instead initScope().
New scope is now provided as the second argument of perform().
[1]:https://review.openstack.org/#/c/345145/
Change-Id: Ie96f24fe7a892da29e4e2d80cfb100d2f3105c49
As a item action, this patch add three operations.
'reboot', 'pause' and 'unpause'.
Change-Id: I38534505568f4d363bc6e77cb8b5466292997d5f
Partial-Implements: blueprint add-container-operations
This patch adds following parameters for container creation.
* cpu
* hostname
* workdir
* ports
* labels
Also, classify all params for creation dialog and details view.
And 'task_state' is added for views.
Change-Id: I647c8d6b06b9b573b45f804f55d4e2154e8c1f4a
Depends-On: Ief55b52317c0a97dd7175556755e460522959789
This patch adds 'start', 'stop' and 'logs' operations
for each container.
'start' and 'stop' operations are added as item action
in each row on table view and details view.
'logs' are called while loading details view, then
logs are shown in 'Logs' tab.
Change-Id: I878728a2b05265d29a4d73918146083d90bec749
Partial-Implements: blueprint add-container-operations
Use python-zunclient instead of stub client in skeleton.
Then Zun-UI interacts with Zun API.
This patch enable CRUD operation of containers.
Change-Id: Idc869c0d4d40895e42ccf941f7fcb9d6d1dfb662
Implements: blueprint use-zunclient