This is how to avoid bad mistakes using Azure and Amazon storage API

This is how to avoid bad mistakes using Azure and Amazon storage API

It’s easy to make mistakes when developing multi-cloud applications, even when only dealing with object storage API.  Amazon S3 and Azure Blob Storage are similar models but with differing semantics and APIs, just like Google Cloud Storage API. Amazon S3 is a RESTful API providing command syntax for create (PUT), access (GET), and delete (DELETE) operations on both buckets and objects, plus access to bucket metadata (HEAD).

Applications that need to support both API have to be developed very carefully to manage all corner cases and different implementations of the clouds. Luckily, Zenko’s team is dedicated to finding those corner cases and solve them once for everybody. Zenko CloudServer translates standard Amazon S3 calls to Azure Blob Storage, abstracting complexity. The design philosophy of CloudServer’s translations are:

  • S3 API calls follow the Amazon S3 API specification for mandatory and optional headers, and for response and error codes.
  • The Azure Blob Storage container is created when the application calls S3 PUT bucket, and the container is assigned the name given in the PUT bucket request.
  • Bucket names must follow AWS naming conventions and limitations.

Try Zenko S3-to-Azure in a free sandbox


Non-exhaustive API Comparison: AWS versus Azure

Put Bucket  / Create Container

  • Bucket naming restrictions are similar but not the same.
  • CloudServer returns an InvalidBucketName error for a bucket name with “.” even though allowed on AWS S3.
  • Canned ACLs can be sent as part of the header in an AWS S3 bucket put call.
  • CloudServer uses Azure metadata x-ms-meta-scality_md_x-amz-acl header to store canned ACLs in Azure containers.

Get Bucket / List Blobs

  • The AWS S3 “Marker” parameter expects a object key value, but Azure does not have an implementation to retrieve object listings after a certain key name alphabetically (can only retrieve blobs after an opaque continuation token).
  • AWS S3 sends back the object owner in each listing entry XML but Azure does not include object owner information in listings.

Delete Bucket / Delete Container

  • While AWS S3 returns an error if a bucket is non-empty, Azure deletes containers regardless of contents. Zenko CloudServer makes a call to lists blobs in the container first and returns the AWS S3 BucketNotEmpty error if not empty.

Put Object /  Put Blob

  • CloudServer only allows canned ACLs, except aws-exec-read and log-delivery-write. ACLs are stored as blob metadata. From the Azure side, there are no object ACLs so behavior is based on container settings.
  • Only the STANDARD setting is allowed as “storage class”
  • Setting object-level encryption is not allowed through headers. The user must set encryption through Azure on an account basis.

Delete Object / Delete Blob

  • AWS S3 has delete versions and offers an MFA requirement for delete. MFA header is not supported in CloudServer.

Get Service / ListContainers

  • AWS S3 returns a creation date in its listing, while Azure only stores the last-modified date.

Initiate Multi-part Upload (MPU) / no correspondent on Azure

  • A MPU is treated as a regular Put Blob call in Azure. CloudServer cannot allow users to initiate more than one MPU at a time because there is no way of renaming or copying a committed block blob to the correct name efficiently, and any uncommitted blocks on a blob are deleted when the block blob is committed (preventing an upload to the same key name). To allow for initiate MPU, Zenko CloudServer creates a “hidden” blob with a unique prefix that is used for saving the metadata/ACL/storage class/encryption of the future objectListing of ongoing MPUs.

Put Part / Put Block

  • Azure has a size limit of 100 MB per block blob. AWS S3 has a max part size of 5 GB.
  • Azure also has a 50,000-block maximum. At 100 MB max per block, this comes out to around 5 TB, which is the maximum size for an AWS S3 MPU. Putting the same part number to an MPU multiple times may also risk running out of blocks before 5 TB size limit is reached.

The easiest way to write multi-cloud applications is to use the open source projects Zenko and Zenko CloudServer.

Photo by Simon Buchou on Unsplash

Why Scality Is Investing in Kubernetes

Why Scality Is Investing in Kubernetes

Today Scality announces the first stable release of MetalK8s, the open source K8s distribution focused on bare-metal deployments, long-term maintenance and ease of operation. To bolster these efforts, it joined the Linux Foundation and Cloud Native Computing Foundation (CNCF) as a Silver member.

As the number of organizations using multi-cloud environments continues to increase, Kubernetes is becoming a standard way to manage applications. Scality has invested time and resources over the past 18 months to find the best way to deploy and manage its next-generation product line, and Kubernetes emerged as a clear winner.

It’s exciting to deepen our open source strategy by joining the Linux Foundation and be active with CNCF. With our flagship open source project Zenko we’re incessantly building a strong community and with MetalK8s reaching v.1 we’re hoping to get more people excited about all of our cloud projects.

The team was looking for the best solutions to manage Zenko on-premise for large customers. Early versions of Zenko employed Docker Swarm but the limits in that approach became quickly apparent. Looking at other K8s implementations, no option emerged as a clear winner, so the team decided to build a new solution based on other open source projects.

MetalK8s has a strong foundation with the open source installer Kubespray and other tools, like Prometheus and Grafana. However, because the Scality team has parsed the often baffling options, MetalK8s’ deployments only require few key decisions from operators. The result is a simplified deployment path for a new Kubernetes cluster on bare-metal, with easier long-term maintenance.

People will have strong feelings about the choices made to simplify Kubernetes deployments. That’s why we like to call MetalK8s the opinionated Kubernetes distribution.

MetalK8s version 1.0 comes with default dashboards that help operators keep control of the cluster based on the following services:

  • Kubernetes dashboard A general purpose, web-based UI for Kubernetes clusters 
  • Grafana Monitoring dashboards for cluster services 
  • Cerebro An administration and monitoring console for Elasticsearch clusters 
  • Kibana A search console for logs indexed in Elasticsearch

Deployments using release 1.0 can be upgraded to later MetalK8s 1.x versions. The upcoming Zenko version 1 is deployed on a Kubernetes cluster by default: the enterprise edition will initially support only MetalK8s clusters. The open source code has no such limitations and can run on existing or managed clusters like GKE, simply using the same Helm packages.

The MetalK8s GitHub project welcomes contributions, code and documentation as well as issues and questions on the forum.

How to port S3 apps to Azure with no changes

How to port S3 apps to Azure with no changes

Zenko Connect for Azure enables developers to immediately consume Azure Blob Storage with Amazon S3 applications without any application modifications. Based on the open source Zenko CloudServer code, it’s a free and easy tool to jump from S3 to Azure Blob Storage quickly.

Zenko Connect for Azure provides an Amazon Web Services (AWS) S3 API-compatible front end translator to Microsoft’s cloud storage service, Azure Blob Storage. The core capability of Zenko Connect is translation of S3 API calls into Azure Blob Storage API calls, for application-driven operations on S3 Buckets and Objects. This enables S3-enabled applications to access Azure Blob Storage services natively, without changing their storage API calls.

Zenko Connect for Azure is offered as a free application in the Microsoft Azure Marketplace (the only charges are for Azure infrastructure costs).

Step into a multi-cloud world with the free app Zenko Connect for Azure

Zenko Connect is a stateless service. It maintains and stores all data and metadata in the associated Azure Blob Storage account. The advantages of this stateless model are the capability for scale-out, load balancing, and simplified failover capabilities.

How to port S3 apps to Azure with no changes

Zenko Connect maps Amazon S3 buckets to Azure Blob Storage accounts and containers. As an application creates S3 objects in an S3 bucket, Zenko Connect stores them as blobs in the associated Azure Blob Storage account or container.

In this release of Zenko Connect for Azure (v. 1.0), API support focuses on:

  • Core create, read, update, and delete (CRUD) S3 operations on buckets and objects
  • Efficient upload of large objects through the S3 multi-part upload (MPU) APIs

Check the full Zenko Connect for Azure startup guide and full documentation to learn more.

Photo by rawpixel on Unsplash