New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miniweb: braver and newer web #987

Merged
merged 13 commits into from Sep 25, 2017

Conversation

Projects
None yet
2 participants
@jcrussell
Contributor

jcrussell commented Sep 24, 2017

minimega:

  • display more info about namespaces in namespace API

miniweb:

  • force namespace with -namespace flag:
    /foo/vms gives you VMs from foo. /vms gives you VMs from the current
    namespace. /foo/bar/vms gives you an error.
  • add namespaces page: displays info about different namespaces
  • add files pages: directory walk of files for hosts in the namespace
  • add vlans page: displays VLAN aliases
  • add VM controls: start/stop/kill VMs

Fixes a few issues: #870, #872, #876.
Partially implements #873.

jcrussell added some commits Sep 22, 2017

miniweb: force namespace with -namespace flag
Prepended all commands with namespace command. Fixes #876.
miniweb: simplify code
Add tabularHandler to replace hosts and vlans handlers.
miniweb: specify namespace in path
/foo/vms gives you VMs from foo. /vms gives you VMs from the current
namespace. /foo/bar/vms gives you an error.

Change a bunch of relative paths so that we keep /foo when navigating
around. Make images, JavaScript, and other resources absolute.

Only thing missing is a way to see which namespaces there are.

Fixes #870.
minimega: display more info about namespaces
Change `namespace` API so that it lists more information about the
namespaces in tabular form.
miniweb: add namespaces page
Displays list of namespaces with link to VMs page for each namespace.
miniweb: add files and vlans pages
Supports walking the directory tree and viewing VLAN aliases. Does not
allow downloading or uploading files.

Updates #873.
misc: bump fontawesome to 4.7
Need a new icon for...
miniweb: start/stop/kill VMs
Add functionality to start/stop/kill VMs from the VM page. Move the
connect and screenshot APIs underneath a /vm/ path along with controls.

Fixes #872.

@jcrussell jcrussell requested a review from jasoncontrib Sep 25, 2017

miniweb: disable features if -namespace is set
Should always use the -namespace and ignore one passed in the URL.
@jcrussell

This comment has been minimized.

Contributor

jcrussell commented Sep 25, 2017

Small bug: namespace counts VMs on the current host and not across the namespace.

jcrussell added some commits Sep 25, 2017

miniweb: fix display issues
Fix clipping and wrong arg to getElementById.
minimega: split hostStats from Schedule
Could be useful elsewhere...
minimega,web: trim vms count from namespace info
The VM count was limited to just VMs running on the head node. Tried
collecting host stats from all the nodes but that causes a deadlock
since InfoNamespaces holds the namespaceLock. Functional for now, could
fix later.
minimega: fix off-by-one
Deleted VMs column and didn't fix index for VLAN string.
@floren

floren approved these changes Sep 25, 2017

@floren floren merged commit 065f3b5 into sandia-minimega:master Sep 25, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@jcrussell jcrussell deleted the jcrussell:braver-newer-web branch Sep 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment