Onboarding New Cloud on OneOps

alicloud_logo.pngOne significant advantage of OneOps is its Cloud Agnostic, meaning that the developers and operators can freely move applications that are managed by OneOps from one cloud provider to another, so that they could “shop around” and take the benefit of better technology support, price, capacity, scalability, security, and customer service on demand.

Since the beginning, OneOps started to support many great cloud providers : OpenStack, AWS, Rackspace, Azure….As new cloud provider may emerge and some other cloud providers may be focusing on the markets other than US, it could be useful for OneOps owners to know how to onboard new cloud providers.

In this blog, we will use Alibaba Cloud (a.k.a. Aliyun) as the new cloud. As a background, Alibaba is a Chinese-based internet company that hosts the largest e-commerce websites in China. Aliyun is part of Alibaba and providing the core cloud services oversea that other major players are offering, such as Elastics Compute Service, Storage, Load Balancer, and VPC. For Aliyun China, it almost offers every single “apple-to-apple” service that AWS is offering across all levels of product lines.

For demonstration purpose, this blog will just illustrate adding the compute service on OneOps. For quick references, the pull requests for this effort could be found at: request #1 and request #2.

These two pull requests collectively add/change the following files:

Configuration Files:

Keypair cookbook:

  • add.rb: Aliyun currently does not provide a place to store public key. But if a cloud does support keypair, we suppose to implement something like add_keypair_openstack.rb

Security Group cookbook:

Compute cookbook:

OneOps-Admin (request #2):

Finally, we may want to sync the newly added cloud to OneOps, and restart the OneOps UI so that it will be picked up and shown in the next run:

bundle exec knife model sync aliyun
bundle exec knife cloud sync aliyun
service display restart

Application Deployment on Aliyun

We could follow one of my previous blogs on creating a new cloud on OneOps. The only different is to use Aliyun, instead of Openstack. In order to deploy something on Aliyun, we may need to spin up an Aliyun account first. The AccessKey and SecretKey are from the Aliyun account and should be pre-configured for authentication on OneOps.

At this moment, Aliyun may only support Aliyun Beijing data center and its availability zones (e.g. cn-beijing-a, cn-beijing-b, cn-beijing-c). But it is straightforward to add more Aliyun data centers in the compute service setup page.

In this blog, we choose MySQL as the application pack to deploy. The following picture shows the deployment was successful on Aliyun.


During the deployment, we could also see from Aliyun web console that there was a compute being launched for this deployment.




Alibaba Cloud is one of the largest cloud providers, primarily serving the Asian-based users. Now it is expanding its data centers oversea and onboarding Alibaba Cloud should bring more adoptions of OneOps in the near future. Please stay tuned for more updates!






Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s