Table of Contents
- Project Story
- Implementation Details
- Features Supported
- Plugins Supported
- Features Yet Unsupported
- Current To Do’s
- Long Term To Do’s
- Far Away To Do’s
- Screenshots and Features descriptions
- Project Sponsors
CloudStack-UI is a project whose purpose is to develop an easy-to-use, light, and user-friendly frontend interface for the Apache CloudStack virtualization management system. Apache CloudStack itself is a great product which is used very widely, but its frontend is developed for administrators (from our point of view), not for end cloud users. Some of the interactions are not straightforward and unnatural to an average user and require quite a long time to adapt. Other reasons to develop are connected with a lack of functions like virtual machine statistics & charting, sophisticated resource accounting, and application management. These are in our long-term TODO list.
Join CloudStack-UI LinkedIn Group.
At Bitworks Software, we run an ACS public cloud for 3 years (actually we still run CS 4.3 cloud in production) and we found that average users who are familiar with Digital Ocean, Amazon AWS, and other VPS management systems feel uncomfortable with original CloudStack UI and make a lot of operational mistakes. That’s why we decided to implement a convenient and neat end-user facing UI covering regular activities, which are important for day-to-day VM management.
The project is developed by Bitworks Software Frontend Division within the educational marathon, which has the purpose to incorporate our new team members and show them our standard frontend development instrument.
- Designed compatible with Apache CloudStack 4.10 and has been tested for the previous version of CS (4.9).
- Powered by Angular and Material 2.
- Tested and works fine in next modern browsers
- Google Chrome 60.0.3112.78
- Chromium 60.0.3169.0
- Mozilla Firefox 54.0.1
- Safari 5.1.7
- Internet Explorer 11.483.150630
Actual Changelog can be found here.
Since we designed the product from the perspective of well-known use cases, which are common to our public cloud deployment, we implemented only ones which are 100% required and cover most of use cases. Other deployments may imply other requirements, which is why it’s an open source product.
So, what is supported:
- Basic CloudStack zones with virtual router
- Security groups
- KVM Hypervisor
- Security group templates
- Multiple zones
- CloudStackAccount Domains
- Virtual machine standard operations supported by Apache CloudStack
- Root and Data disks management
- Ad-hoc snapshots for disks
- Affinity groups management
- VM groups
- Localization support
- Frontend Themes, Custom VM colors
- Custom and Fixed service and disk offerings
- Password management
- SSH keys management
- API keys management
- Accounts management
- A lot of small improvements which affect user experience greatly
Pulse Plugin is designed for visualization of virtual machines performance statistics. Currently, this CloudStack-UI extension is only compatible with ACS clusters that use the KVM hypervisor. With help of sensors that collect virtual machines performance statistics via the Libvirt API and store them in an InfluxDB datastore and RESTful statistics server, CloudStack-UI is able to display CPU, RAM, disk IO and network traffic utilization in the form of convenient visual charts. Pulse allows users of Apache CloudStack to monitor current and previous operational states of virtual machines. The plugin supports various view scales like minutes, hours, days and enables data overlays to monitor peak and average values. We consider this plugin very important for the CloudStack ecosystem as currently there is no built-in functionality to track VM operational states, although it is vital for system administrators to successfully operate virtual servers. Read more about Plugin deployment here.
WebShell is a CloudStack-UI extension designed to perform a clientless SSH connection to a virtual machine. The extension is activated in the CloudStack-UI configuration file and is supported by an additional Docker container. As for the way of WebShell usage, the plugin is similar to NoVNC interface provided by CloudStack. However, WebShell uses the SSH protocol and doesn’t allow VM emergency management. This feature is not available in basic CloudStack UI and API. Plugin deployment and configuration instructions can be found on the plug-in page.
Features Yet Unsupported
We intensively use features like projects in our own CloudStack cloud to manage resources dedicated to project groups, etc. but generic users don’t need them, so we don’t support the following features yet:
- Advanced Zones
- Hypervisors other than KVM have not been tested
Current To Dos
- Responsive interface for smart devices
Long Term To Dos
- Resource utilization stats, traffic, IO stats, CS entities stats a.k.a. Accounting
- Self registration for public cloud
- RDP/VNC (guacamole)
Far Away To Dos
- Applications a.k.a. Roller (Docker swarm or Ansible, tbd)
Screenshots & Features Descriptions
The login screen has a nice preloader which can be used to brand it for specific company. By default, it shows Apache CloudStack banner. There are three possible ways to use domain (the form presented on the screen like in native UI, default domain in settings or an URL-based scheme).
Virtual machines view
This screen was rethought greatly. First of all, we implemented the “one step” approach everywhere, and we also made it work without moving from view to view, like ACS native interface does. Thus, all actions on VM instances are managed from the same screen. Also, the interface allows to view several zones immediately, group virtual machines by zones, by logical groups (e.g. Databases, WWW), and by colors. We added a feature to brush a virtual machine with a specific color to make it look unique and meaningful to users from a certain perspective. Also, we moved most of VM information to the sidebar, which now has four tabs - General view, Storage (disks, snapshots, and ISO), Network (NICs configuration, Firewall rules) and Tags. From the system behavior standpoint, we have changed it sometimes, e.g. when the user wants to change service offering for running VM, the interface says that VM will be stopped and started, and it doesn’t make the user do it separately. So we replaced disconnected action sequences with connected ones. The data representation can be changed between the “card” and “table” view. Each section contains a switch and this improvement gives a user an opportunity to work with data in each specific section in a more convenient way.
New virtual machine form
We changed a new virtual machine screen a lot. Now it’s a one-step dialog and it allows selecting everything from one screen without additional steps. We believe it’s much better for a regular user than the one who is used with the native UI. It also generates meaningful VM names from usernames like
vm-<username>-<counter>. Another important thing is that the form checks that a user has a required amount of resources to create the virtual machine immediately and thus it doesn’t allow him launching creation that will fail for sure.
Our team has made a big contribution to the improvement of UX when creating a virtual machine. First of all, a user now has an access to the list of all creation steps. Depending on installation source (ISO or a Template) system allows getting not only login, password and IP of the machine, but also an access to VM interaction interface. Currently supported:
- VNC console,
- WebShell if VM has a csui.vm.auth-mode tag with SSH value. To configure access to VM using WebShell, please refer to wiki,
- Access via HTTP if VM has a csui.vm.auth-mode tag with HTTP value. To configure access to VM via HTTP, please refer to wiki.
Resource usage bar
We also decided to place resource usage bar on the same virtual machine view screen. It can be collapsed or displayed. A resource usage bar allows switching between “used” and “free” presentations to help users understanding capabilities in a better way. Domain administrators can also choose between Account and Domain view.
This panel displays existing drives. Root disks are visually distinguished from data disks. In addition, there is an option to display only spare disks, which allows saving user’s time in certain cases. Each drive has a detailed sidebar with two tabs (Volume and Snapshots). When a virtual machine is removed, attached drives are automatically removed. Also, we don’t allow the user to create additional disks on a virtual machine creation because it leads to confusion when the virtual machine is created from a template – the user doesn’t realize that they add an “additional” drive and it’s not a root one.
We changed the templates and ISOs view to make it more obvious and neat to use. Also, the user can choose the required OS family to filter out unnecessary images. Also, the same concept of single view without moving between screens is applied here. Additional things are displayed in the sidebar.
Firewall section includes two views: Firewall templates and Shared security groups. It is important to understand the concept of Firewall templates. This is a preset of rules that can be system default or developed by the user. Upon VM creation the system creates a new security group for every virtual machine which is initially filled with all the rules from specified presets. Next, when the user changes the rules for a certain virtual machine, they don’t affect other machines. System administrators can specify default presets during the interface deployment in json configuration file; now we have “TCP Permit All”, “UDP Permit All”, “ICMP Permit All” presets which just pass all the traffic because we would like the user who doesn’t read manuals and doesn’t mention the details to still make his virtual machines accessible. The second way is to use shared security group - the group that is used by other VMs. Users can manage security group rules in two modes: a “view” mode with filtering by types and protocols and an “edit” mode. Security groups editing is available when switching from “view” mode to “editing” mode. If the group is shared, user is warned that changes will affect other VMs using this group. This behavior allows avoiding undesirable changes for other VMs.
It’s a simplified view for account activities. It lets you choose the date and levels and see all of them. It’s close to the same screen in the ACS native UI, but we believe that the user is interested in the events of specific date and scrolling a huge event log back to find something is not productive. Sometimes the HelpDesk service just wants to show the user that something had happened on a specific date, and thus the interface allows you to find information easier.
Here domain administrators can manage existing accounts, create new accounts and apply filtering and grouping as in other sections. There is also an access to details sidebar of each account with a possibility of editing settings and resource restrictions. In addition to this, an administrator can apply filtering by accounts in other sections, thus narrowing a context and working with a data that he needs at the moment.
Getting started guide
- Before you start, please, prepare Node development environment. Install Node.js or update your current node.js to latest stable version (We recomend Node.js v8.11.2).
- Clone the CSUI project from GitHub.
- Run “npm install” command. This command installs all dependencies, which are used in the project. Also, you may use “yarn” command.
- Add your own proxy-conf.js file in the project folder and set the API endpoint in this file. See proxy-conf-example.
|npm test||use this command to execute tests via Karma|
|npm run build||use this command to build the project, the build artifacts will be stored in the dist/ directory|
|npm start||use this command to compile the application, it will be available at URL - “localhost:8080”.|
Main UI container
To run docker container use:
docker run -d -p 80:80 --name cloudstack-ui \ -e CLIENT_ENDPOINT=http://cloudstack/client \ -e BASE_HREF=base_href \ -v /path/to/config.json:/static/config/config.json \ bwsw/cloudstack-ui:1.0.7
http://cloudstack/client - URL of CloudStack client endpoint (e.g. http://host:8080/client)
base_href - custom base URL (optional, defaults to “/”)
/path/to/config.json - path to a custom configuration file named config.json (optional)
Additionally, you can change favicon and CloudStack logo on login screen and in sidebar:
-v /path/to/favicon.ico:/static/img/favicon.ico \ -v /path/to/cloudstack_logo.png:/static/img/cloudstack_logo.png \ -v /path/to/cloudstack_logo_light.png:/static/img/cloudstack_logo_light.png \ -v /path/to/cloudstack_logo_dark.png:/static/img/cloudstack_logo_dark.png
favicon.ico is the favicon,
cloudstack_logo.png is the logo displayed on login screen and
cloudstack_logo_dark.png are CloudStack logos displayed in sidebar with dark and light theme respectively.
Assisting object cleanup container
Some operations implemented in the UI require “delayed” activities, so we use additional cleaner container that cleans objects marked for the removal.
Download and start bwsw/cloudstack-ui-cleaner container.
You can customize the application by providing your own configuration file config.json. See the Config Guide for more information on configuration options.
The project is currently supported by Bitworks Software.
How to Contribute
You can contribute to the project development in various ways:
- Share the information about the project with other people, try to install the UI and share your opinion with us and your colleagues.
- Propose useful features. Ideas are always welcome.
- Deploy it somewhere and inform us about your success story, and we will share it in the adopters section.
- Fix bugs and send us the PR.
- Implement a feature from the Roadmap or simply make something new.
- Support and promote the development of specific functions which are important to you and may be shared.
- Provide testing environment for other deployment schemes. Now we interested in testing the app with
- KVM with RBD
- Xen with NFS, Local, RBD
- Oher browsers and operating systems
- Hire us for frontend or backend development of custom software development projects. Take a look at our website to know where we can be useful. Take a look at our presentation to learn more about us.
To contribute, just contact us via e-mail: email@example.com
It’s released under the Apache 2.0 license.