Azure Data Factory Mapping Data Flows are now generally available

In today’s data-driven world, big data processing is a critical task for every organization. To unlock transformational insights and embrace a data-driven culture, companies need tools to help them easily integrate and transform data at scale, without requiring specialized skills.

Today we’re announcing the general availability of the Mapping Data Flows feature of Azure Data Factory (ADF), our productive and trusted hybrid integration service. Data Factory now empowers users with a code-free, serverless environment that simplifies ETL in the cloud and scales to any data size, no infrastructure management required.

Built to handle all the complexities and scale challenges of big data integration, Mapping Data Flows allow users to quickly transform data at scale. Build resilient data pipelines in an accessible visual environment with our browser-based designer and let ADF handle the complexities of Spark execution.Mapping Data Flows simplifies data processing, with built-in capabilities to handle unpredictable data schemas and to maintain resilience to changing input data. With Mapping Data Flows, customers like Nielsen are empowering their employees to turn data into insights, regardless of data complexity or the coding skills of their teams.”Mapping Data Flows have been instrumental in enabling Nielsen’s analytics teams to perform data cleansing and preparation in a user-friendly and code-free environment, and allow us to deliver insights to our clients in a faster and more automated way.” – David Hudzinski, Director, Product, Nielsen

Accelerate time to insights by focusing on building your business logic without worrying about managing and maintaining server clusters or writing code to build pipelines. Easily perform ETL tasks like loading fact tables, maintaining slowly changing dimensions, aggregating semi-structured big data, matching data using fuzzy matching, and preparing data for modeling. With our intuitive visual interface, design your data transformation logic as easy-to-read graphs, and build libraries of transformation routines to easily turn raw data into business insights.

Work the way you want – code-first, or entirely code-free with Mapping Data Flows. Use built-in transformations to perform common actions like joining, aggregating, pivoting, and sorting. Customize these transformations with the expression builder, which includes auto-complete and comprehensive online help.

As you build your logical graphs, validate in real-time using ADF’s live data preview capability. Features like null counts, value distributions, and standard deviation provide immediate insights into your data.  
Finally, build pipelines and debug your new ETL process end-to-end using the drag and drop pipeline builder with interactive debugging.   
Build schedules for your pipelines and monitor your data flow executions from the ADF monitoring portal. Easily manage data availability SLAs with ADF’s rich availability monitoring and alerts, and leverage built-in CI/CD capabilities to save and manage your flows in a managed DataOps environment. And establish alerts and view execution plans to validate that your logic is performing as planned as you tune your data flows.

Mapping Data Flows is a game-changer for any organization looking to make data integration and transformation faster, easier, and accessible to everyone.

Learn more and get started today using ADF with Mapping Data Flows.
Quelle: Azure

Stateful Workloads and the Two Data Center Conundrum

Introduction
On the wave of the successes attained with stateless workload with regards to multi-data center active/active deployments and uptime, expectations are rising for stateful workloads too.
In particular, it is becoming more and more common for IT organizations to want to deploy their stateful workloads with multi-data center, active/active, always-available and always-consistent configurations.
In this blog post we will see that if the requirement is to deploy a stateful workload so that it is available and consistent even during a disaster scenario, then it is necessary to have three data centers.
Conventionally we define as stateful workloads all those pieces of software or applications that in some way manage a state. Typically state is managed in storage and middleware software such as software defined storage, databases, message queue and stream systems, key value stores, caches etc… . This definition is similar to the one adopted by the Storage Landscape whitepaper published by the CNCF storage SIG.
High Availability and Failure
High Availability (HA) is a property of a system that allows it to continue performing normally in the presence of failures. Normally, with HA, it is intended the ability to withstand exactly one failure. If there is a desire to withstand more than one failure, such as two, it can be written as HA-2. Similarly, three failures can be written as HA-3.
The concept of Availability for a system has its roots in mechanics and electronics engineering (in those disciplines, it is known as reliability) and the science and math behind it is consolidated at this point. Given the Mean Time Between Failures (MTBF) of each individual component, one can calculate the MTBF of the entire system by applying a set of formulas. Redundancy of each component is the key to achieving HA.
The foundational idea of HA is that the Mean Time to Repair (MTTR) a failure must be much shorter than the MTBF (MTTR << MTBF), allowing something or someone to repair the broken component before another components breaks (two broken components would imply a degraded system for HA-1).
It is often understated that something needs to promptly notify a system administrator that the system has a broken component (by the very same definition of HA one should not be able to notice that by the normal outputs of the systems).
This means we need a good monitoring and alerting systems. Without it, an HA system would just keep working until the second failure occurs (~2xMTBF) and then still be broken, defeating the initial purpose of HA. Unfortunately, there are still a significant number of organizations that primarily put effort and resources in designing and building HA systems, without having solid monitoring systems.
With regards to stateful workloads, HA implies that one needs multiple instances (at least two) of each workload and that the state that these instances manage needs to be replicated between them. Usually, some kind of heartbeat ensures the peers are alive and some kind of gossip protocol ensures state is synchronized and consistent across all of them.
If, for example, one builds a stateful system with two instances and instance A suddenly cannot contact instance B, instance A will have to make a decision on whether to keep working or not. Instance A cannot know whether instance B is down or healthy-but-unreachable. It could also be that instance A is the one that is unreachable. In practice, in a distributed system, failures are indistinguishable from network partitioning where the presumably failed component has become unreachable due to a network failure.

If a piece of software is designed to keep working when the peers are unreachable, its state may become inconsistent. On the other hand, if a piece of software is designed to stop when the peers is unreachable, then it will maintain consistency, but will not be available.
The CAP Theorem
This situation is formalized in the CAP theorem. Simply put, the CAP theorem states that a stateful workload in case of network partitioning (P) can choose between consistency (C) (as in the integrity of the data) or availability (A), but cannot have both.
During a network partition, the stateful workload will need to work in a degraded state: normally either read-only if the application chooses consistent, or inconsistent if the application chooses availability.

A corollary of the CAP theorem called PACELC (Partition? Availability or Consistency, Else? Latency or Consistency) states that under normal conditions (absence of a network partition), one needs to choose between latency (L) or consistency (C). That is to say that under normal circumstances one can optimize for either speed or consistency of the data, but not for both.
Sometimes consistency is not a strict requirement. Eventually consistent databases (mostly belonging to the NoSQL class of databases) are an example of this type of software.
Note that eventual consistency does not imply eventual correctness; it simply means that eventually, all instances will present the same state. Usually, a conflict resolution algorithm decides which state to keep if two instances have different states. During the lapse of time while the state was inconsistent, the application using the stateful workload may have made wrong decisions that altered the state to also be incorrect, and these situations cannot be reconciled by the conflict resolution algorithm.
The following list illustrates some stateful workload and their choice in terms of PACELC Theorem:

DynamoDB: P+A (on network partitioning, chooses availability), E+L (else, latency)
Cassandra: P+A, E+L
MySQL Cluster: P+C, E+C
MongoDB: P+C, E+C

Source wikipedia, see the link for a more stateful set examples.
Most SQL databases are absent from this table, but you can assume they choose consistency over the other alternatives, as this is required by the ACID property of RDBMS.
Most stateful workloads (and in particular databases) also employ partitions or shards to increase throughput.
Partitions
Partitions, or shards, are a way to increase the general throughput of the workload. Usually, the state space is broken into two or more partitions based on a hashing algorithm. The client or a proxy decides where to send requests based on the computed hash. This dramatically increases horizontal scalability, whereas historically for RDBMS, vertical scaling was often the only practical approach.
From an availability perspective, partitions do not have a significant impact. Each partition is an island, and the same availability considerations that apply to a non-partitioned database also apply to each individual partition. Stateful workloads can have replicas of partitions which sync their state to increase the availability of each individual partition.

Partitions, however, while allowing for horizontal scalability, introduce an additional complication which is the need to maintain consistency between them. If a transaction involves multiple partitions, there needs to be a way to make sure that all of the involved partitions are coordinated into participating in their portion of the transaction.
Partitions are widely adopted by modern databases and while not contributing to the availability discussion, need to be taken into consideration, especially with regard to the multi-partition consistency issue.
So, with replicas and partitions running in separate processes and needing some level of synchronization, how can there be a reassurance that the workload is highly-available and the state remains consistent?
Consensus Protocols
A consensus protocol allows a set of peers to agree on a shared state. An ingredient of consensus protocols is a leader election process, which, based on the strict majority of the members of the stateful workload cluster, designates a leader that is the ultimate and undiscussed owner of the state.
As long as the strict majority of the elements of the cluster can talk to each other, the cluster can continue to operate in a non-degraded state (without violating the CAP theorem). This results in a stateful system that is both consistent and available, while sustaining a number of failures.
In a cluster of two, if a member is lost, the remaining member does not represent the strict majority. In a cluster of three, if a member is lost, the two remaining members do represent the strict majority. As a consequence, for a stateful workload that implements a leader election protocol there must be at least three nodes to preserve availability and consistency in the presence of one failure (HA-1).
As of today, there are two main generally accepted consensus algorithms based on leader election:

Paxos Generally considered very efficient, but arcane to understand and complex to deal with in real life corner cases.
Raft, Generally considered easy to understand and code in a real life scenario, even though less efficient.

Most of the new stateful software tends to be based on Raft as it is simpler to implement.
Leader election-based consensus protocols work well when a set of peers need to agree on the same set of operations. But when the different participants need to perform different operations, and they just need to agree on committing to those operations or not, a different family of consensus protocol is used: the two-phase commit (2PC) protocol and derivatives.
In the two-phase commit protocol, a coordinator orchestrates a set of resources into either all commit or abort a transaction in which each participant needs to perform a different task. The two-phase commit protocol has several limitations amongst which:

All participants must be available for it to succeed (we needed only the strict majority for the leader election-based protocol)
The coordinator is a single point of failure and if it fails in the middle of a transaction, the participant may end up never completing (either committing or aborting).

The two-phase commit protocol is suitable to coordinate transactions that involve multiple partitions.
The following are examples of stateful workloads and their use of consensus algorithms (this information is not always easy to uncover, what follows is based on my personal research and could be inaccurate):

Etcd: Raft, no partitions
Consul: Raft, no partitions
Zookeeper: ZooKeeper Atomic Broadcast (a derivative of Paxos), no partitions
Elasticsearch: Intra-partition: Paxos, (no Multi-partition consistency?)
Cassandra: Intra-partition: Paxos, (no Multi-partition consistency?)
CockroachDB(1): Intra-partition: Raft, Multi-partition: 2PC
YugaByte-DB(1): Intra-partition: Raft, Multi-partition: 2PC
TiKV: Intra-partition: Raft, Multi-partition: Percolator
FaunaDB(2): Calvin (Multi-partition version of Raft)
Nats: Raft, no partitions
Spanner(1): Intra-Partition raft, Multi-Partition 2PC + high precision time service

(1) Some claims that CockroachDB and YugaByte-DB are not fully consistent can be found here. The argument basically says that in order to ensure serializability isolation-level, a mechanism to achieve a total order or events is needed. Spanner does that with a high-precision clock that is available only in Google datacenters. YougaByteDB and CockroachDB can only approximate that service. The author proposes Calvin as a solution to these problems.
(2) A counter argument that Calvin is not usable for enterprise use cases can be found here.
In general, consistency across partitions with off-the-shelf infrastructure seems to be where the frontier of the theoretical research is headedhas gotten to at this point in time.
Failure Domains
While it is useful to assume (as we do when we design for HA) that individual components will fail in isolation, this is often not the case. Multiple components may fail altogether. Failure domains are areas of an IT system in which all the components inside that area may fail all at the same time.
Examples of failure domains are: pods, nodes, racks, entire kubernetes clusters, network zones and datacenters.
As one can see from these examples, failure domains exist at different scales.
When designing a Highly Available system (HA), one considers the smallest scale: component level and, generally speaking, one makes all components redundant.
However, one should not lose track of the higher scale failure domains. For example, there may be several instances of an application, but if all those instances run on the same rack, there is still a single event that can take the application down.
Applying this same line of reasoning to stateful workloads, one should ensure that workload instances run in different failure domains, irrespective of the scale. If there is a need for consistency and availability at the same time, stateful workloads should be run in at least three different failure domains.

In Kubernetes, there are standard node labels (failure-domain.beta.kubernetes.io/region , failure-domain.beta.kubernetes.io/zone) to capture the idea of failure domains in a cluster. Designers of stateful workloads should consider creating anti-affinity rules based on those labels when packaging their software to be deployed in kubernetes.
Disaster Recovery
Disaster recovery (DR) normally refers to the strategy for recovering from the complete loss of a datacenter.The failure domain in this situation is clearly the entire datacenter.
Disaster recovery is usually associated with two metrics:

Recovery Time Objective (RTO): the time it takes to have the systems back online after a datacenter fails.
Recovery Point Objective (RPO): how far back in time the state will be from the time the datacenter fails.

In the old days, these metrics were measured in hours and users followed a set of manual steps to recover a system.
Most DR strategies employed an active/passive approach, in which one primary datacenter was handling the load under normal circumstances and a secondary datacenter was activated only if the primary went down.
But having an entire datacenter sitting idle was recognized as a waste. As a result, more active/active deployments were employed, especially for stateless applications.
With an active/active deployment, one can set the expectations that both RTO and RPO can be reduced to almost zero, by virtue of the fact that if one datacenter fails, traffic can be automatically directed to the other datacenter (though the use of health checks). This configuration is also known as disaster avoidance.
Today, some companies have the expectation to implement disaster avoidance for stateful workloads.
Based on the above discussion, if one wants to deploy a stateful application in such a way that is both highly available and consistent, one needs three failure domains and in the case of DR, three datacenters.
And therein lies the two data center conundrum.
The Two Data Center Conundrum
Some companies have two datacenters. In many cases, the second datacenter was built in the last fifteen years and was a conspicuous capital investment.
Based on my observations, these datacenters are sometimes not fully symmetrical. In some cases, the second datacenter (beside being the secondary in the active/passive DR strategy) is also used to run stateless workload in an active/active manner or run some lower/non-production environments.
As these companies try to deploy stateful workloads in a highly available and consistent fashion, they will realize the limitations posed by two datacenters in this context and they will have some decisions to make:

One may compromise on availability. This implies accepting an RTO and RPO greater than zero and an active/passive DR strategy most likely involving some manual steps.
One may compromise on consistency. This would result in deploying an eventually consistent stateful workload.
If both availability and consistency are needed, then a third data center is necessary. This can be achieved by building a new datacenter or using the cloud as a third datacenter.

Given how capital intensive it is to stand up a new datacenter, the last option, in which the cloud is used as a third failure domain, seems to be the most likely solution especially if there is a cloud region in proximity to existing datacenters.
Conclusions
As described, uptime and consistency requirements for stateful workloads may result in significant cost implications, such as the need to run workloads in three datacenters.
It is the hope that this article will serve as a base for discussing how to deploy a stateful workload on multiple datacenters. Some of the questions that should guide the discussion are:

Do I need consistency: availability or both (there is a price for everything)?
Do I need partitioning for horizontal scalability?
Which concuns protocol is used and when?
Which level of performance do I need?

The relative simplicity that allows for the deployment to three datacenters in the cloud is putting pressure on traditional two-data center infrastructures as well as on traditional monolithic stateful software that does not use a leader election consensus protocol. A new generation of databases and stateful software (mostly an offspring of the Google Spanner) is getting traction and soon will be ready for mainstream enterprise deployments.
The post Stateful Workloads and the Two Data Center Conundrum appeared first on Red Hat OpenShift Blog.
Quelle: OpenShift

How to deploy Airship in a Bottle: A quick and dirty guide

The post How to deploy Airship in a Bottle: A quick and dirty guide appeared first on Mirantis | Pure Play Open Cloud.
Airship is designed to enable you to reliably deploy OpenStack on Kubernetes, but with both of those systems being fairly complicated to deploy, a system that combines them can be downright confusing. Fortunately the community has created Airship in a Bottle, a simple way to create a deployment so you can get an idea of what’s going on.
In this guide, we will take a look at Airship in a Bottle and what it gives you.
Deploying Airship in a Bottle
Airship in a Bottle, or AIAB, is designed to evaluate your environment to determine most of the information that it needs, so you don’t have to worry about thinks like determining IP addresses and network interfaces.  All you need to do is download the repository and run the script. Let’s get started.

Get suitable “hardware”.  The instructions will tell you that you need a fresh Ubuntu 16.04 VM with a minimum 4vCPU/20GB RAM/32GB disk, but this is somewhat outdated. To avoid problems, you are actually going to need a fresh Ubuntu 16.04 VM with 8vCPU/32GB RAM. 
Note that there’s a reason that the instructions specify a VM: AIAB is designed to create a “disposable” environment; it makes changes to the entire system, so you will not be able to run the script reliably more than once. By creating a VM, you can simply dispose of it and start over if you want to try again.
Log into the system and change to root:
sudo -i

Create the deployment directory and download the software from the Treasuremap repository:
mkdir -p /root/deploy && cd “$_”
git clone https://opendev.org/airship/treasuremap/
This repo actually contains multiple options, but we’re going to concentrate on AIAB for today.
Run the creation script:
cd /root/deploy/treasuremap/tools/deployment/aiab/
./airship-in-a-bottle.sh

Answer the script’s questions.  Unless you have a good reason, it’s probably best to just accept the defaults.  (After all, that’s what the script was designed for.)
Welcome to Airship in a Bottle

/——————–
|                     
|        |—|       —-
|        | x |            
|        |—|             |
|          |         /
|     ____|____/       /—-
|                      /
——————–/

A prototype example of deploying the Airship suite on a single VM.

This example will run through:
– Setup
– Genesis of Airship (Kubernetes)
– Basic deployment of Openstack (including Nova, Neutron, and Horizon using Openstack Helm)
– VM creation automation using Heat

The expected runtime of this script is greater than 1 hour

The minimum recommended size of the Ubuntu 16.04 VM is 4 vCPUs, 20GB of RAM with 32GB disk space.
Let’s collect some information about your VM to get started.
Is your HOST IFACE ens4? (Y/n)
Is your LOCAL IP 10.128.0.39? (Y/n) Y

Make some coffee, play with your kids, go get some fresh air … this is going to take an hour or so.
Eventually, the script will return information on the deployed installation:
…
OpenStack Horizon dashboard is available on this host at the following URL:

 http://10.128.0.47:31309

Credentials:
 Domain: default
 Username: admin
 Password: password123

OpenStack CLI commands could be launched via `./openstack` script, e.g.:
 # cd /root/deploy/treasuremap/..//treasuremap/tools/
 # ./openstack stack list
 …
 
Airship itself does not have a dashboard.

Other endpoints and credentials are listed in the following locations:
  /root/deploy/treasuremap/..//treasuremap/site/aiab/secrets/passphrases/

Exposed ports of services can be listed with the following command:
 # kubectl get services –all-namespaces | grep -v ClusterIP
 …

+ your_next_steps
+ set +x

—————————————————————

Airship has completed deployment of OpenStack (OpenStack-Helm).

Explore Airship Treasuremap repository and documentation
available at the following URLs:

 https://opendev.org/airship/treasuremap/
 https://airship-treasuremap.readthedocs.io/

—————————————————————

+ clean
+ set +x
To remove files generated during this script’s execution, delete /root/deploy/treasuremap/../.
This VM is disposable. Re-deployment in this same VM will lead to unpredictable results.
Your values will vary, of course!

[[ NOTE:  At the time of this writing, the output also includes references to components that aren’t actually included in AIAB, so if you try something not shown here and it doesn’t work, it’s not you. ]]
Now let’s go ahead and explore what we’ve got.
Exploring Airship in a Bottle
The purpose of Airship is to make it possible for you to reliably deploy OpenStack on Kubernetes, and that’s what we have at this point.  Let’s take a look at all that, starting at the bottom of the stack.
If you look at the Kubernetes cluster deployed by AIAB, you will see several namespaces:
root@bottle3:~# kubectl get namespaces
NAME          STATUS AGE
default       Active 12h
kube-public   Active 12h
kube-system   Active 12h
nfs           Active 12h
openstack     Active 11h
ucp           Active 12h
The one we’re most interested in at this point is, of course, openstack:
root@bottle:~# kubectl get pods –field-selector=status.phase=Running -n openstack
NAME                                                            READY STATUS RESTARTS AGE
airship-openstack-memcached-memcached-5bd8dbff55-7mzsf          1/1 Running 0 11h
airship-openstack-rabbitmq-rabbitmq-0                           1/1 Running 0 11h
airship-openstack-rabbitmq-rabbitmq-exporter-7f4c799869-xwnhp   1/1 Running 0 11h
glance-api-674b664684-8z4fm                                     1/1 Running 0 11h
heat-api-6959d699d6-hb67p                                       1/1 Running 0 11h
heat-cfn-599b4b96cd-s6kw7                                       1/1 Running 0 11h
heat-engine-69d5c7f947-5p6t4                                    1/1 Running 0 11h
horizon-549bfbf97d-w5jdm                                        1/1 Running 0 11h
ingress-648c85cb85-fcjss                                        1/1 Running 0 11h
ingress-error-pages-78665fc8df-td6lp                            1/1 Running 0 11h
keystone-api-bb85bf7-49v5w                                      1/1 Running 0 11h
libvirt-libvirt-default-wp6vn                                   1/1 Running 0 11h
mariadb-ingress-744454b88d-7nlg9                                1/1 Running 0 11h
mariadb-ingress-error-pages-67d44dc8-bjdvp                      1/1 Running 0 11h
mariadb-server-0                                                1/1 Running 0 11h
neutron-dhcp-agent-default-ljj69                                1/1 Running 0 11h
neutron-l3-agent-default-bzdzl                                  1/1 Running 0 11h
neutron-metadata-agent-default-rpj2d                            1/1 Running 0 11h
neutron-ovs-agent-default-qxcdc                                 1/1 Running 0 11h
neutron-server-86ffb5bdd-64cr9                                  1/1 Running 0 11h
nova-api-metadata-785bb8cfd7-md99b                              1/1 Running 1 11h
nova-api-osapi-54d5479bb9-s7f2z                                 1/1 Running 0 11h
nova-compute-default-s6wcg                                      1/1 Running 0 11h
nova-conductor-5dbd64b475-v7hqb                                 1/1 Running 0 11h
nova-consoleauth-75777467ff-fjqkj                               1/1 Running 0 11h
nova-novncproxy-5fd78b47d7-kgflg                                1/1 Running 0 11h
nova-placement-api-98859484c-glhcq                              1/1 Running 0 11h
nova-scheduler-6694f657cf-wfj67                                 1/1 Running 0 11h
openvswitch-db-b7vhf                                            1/1 Running 0 11h
openvswitch-vswitchd-672qp                                      1/1 Running 0 11h
prometheus-mysql-exporter-67cbd476bb-pnmjd                      1/1 Running 0 11h
There are a LOT of containers here — certainly more than you’d want to deploy manually!  As you can see, the OpenStack components you’d expect to see, such as nova, neutron, keystone, horizon, and so on, are represented in their containerized form, which makes sense, as they’ve been deployed by OpenStack-Helm.
Other than that, though, it’s just a normal OpenStack deployment.  For example, the output said that we could find our OpenStack Horizon dashboard at:

http://10.128.0.47:31309

That’s the internal IP and a randomly chosen port, so we’d actually look for it (in this case, at least) at the external version of that port, 

http://35.202.211.150:31309

Note that if you don’t have that output for some reason, you can always find the available ports by asking Kubernetes directly:
root@bottle:~# kubectl get services –all-namespaces | grep -v ClusterIP
NAMESPACE     NAME                 TYPE CLUSTER-IP EXTERNAL-IP   PORT(S)                 AGE
openstack     horizon-dashboard    NodePort 10.96.138.222 <none>        80:31309/TCP                 11h
ucp           drydock-api          NodePort 10.96.17.172 <none>        9000:30000/TCP                 12h
ucp           maas-region          NodePort 10.96.97.191 <none>        80:30001/TCP,31800:31800/TCP,53:30839/UDP,514:32004/TCP   12h
As noted in the output, we can log into Horizon with 
Credentials:
 Domain: default
 Username: admin
  Password: password123
From there, we can see that we not only have a functional OpenStack cluster, but that it’s been partially populated.

There’s even a sample VM:

We can also use the CLI directly from the command line without worrying about the individual pods.  To do that, grab the credentials by choosing the OpenStack RC v3 file from the admin pulldown menu:

From there, you can either run the file on the command line or copy and paste, whichever is more convenient for you.  The important thing is that you’re setting the appropriate environment variables:
export OS_PROJECT_ID=1746a87ab3e8409a9be419cc1c8703d1
export OS_PROJECT_NAME=”admin”
export OS_USER_DOMAIN_NAME=”Default”
export OS_PROJECT_DOMAIN_ID=”default”
export OS_USERNAME=”admin”
# With Keystone you pass the keystone password.
echo “Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: ”
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3
The script assumes you’ll enter the Keystone password from the command line; as with the interface, the default is 
password123
Before you can run any CLI commands, though, you’ll need the OpenStack client, which isn’t installed by default:
apt install python-openstackclient
From there, you can execute OpenStack commands.  For example, you can see the VM we were looking at in Horizon:
root@bottle:~# openstack server list
Password:
+————————————–+———————————–+——–+—————————————————————-+
| ID                                   | Name | Status | Networks                                                       |
+————————————–+———————————–+——–+—————————————————————-+
| 7af72d02-4609-40aa-8333-6cd3a044d973 | test-stack-01-server-rjfkpintf3pq | ACTIVE | test-stack-01-private_net-wh3x4n3k5zkr=10.11.11.9, 172.24.8.11 |
+————————————–+———————————–+——–+—————————————————————-+
You can also list the other services available:
root@bottle:~# openstack catalog list
Password:
+———–+—————-+———–+
| Name      | Type     | Endpoints |
+———–+—————-+———–+
| heat      | orchestration  | RegionOne |
|           |     | RegionOne |
|           |     | RegionOne |
|           |     | |
| nova      | compute     | RegionOne |
|           |     | RegionOne |
|           |     | RegionOne |
|           |     | |
| neutron   | network     | RegionOne |
|           |     | RegionOne |
|           |     | RegionOne |
|           |     | |
| heat-cfn  | cloudformation | RegionOne |
|           |     | RegionOne |
|           |   | RegionOne |
|           |     | |
| keystone  | identity     | RegionOne |
|           |     | RegionOne |
|           |     | RegionOne |
|           |     | |
| glance    | image     | RegionOne |
|           |     | RegionOne |
|           |     | RegionOne |
|           |     | |
| placement | placement      | RegionOne |
|           |     | RegionOne |
|           |     | RegionOne |
|           |     | |
+———–+—————-+———–+
So as you can see, we’ve got a fully-functioning OpenStack cluster running on Kubernetes.
Next time we’ll look at the structure of the manifests that define Airship installations, or “sites”.
The post How to deploy Airship in a Bottle: A quick and dirty guide appeared first on Mirantis | Pure Play Open Cloud.
Quelle: Mirantis

LogDNA and IBM find synergy in cloud

You know what they say: you can’t fix what you can’t find. That’s what makes log management such a critical element in the DevOps process. Logging provides key information for software developers on the lookout for code errors.
While working on their third startup in 2013, Chris Nguyen and Lee Liu realized that traditional log management was wholly inadequate for addressing data sprawl in the modern, cloud-native development stack. That epiphany was the impetus for LogDNA, a twist on a logging platform that could respond and scale in dynamic cloud environments.
Pivoting to meet DevOps need
What was straightforward when writing code for one server became unwieldy as virtualization, with multiple servers in a single machine, moved into the data center and exploded the amount of log files. As applications grow, so do code issues. And as pressure mounts on IT for zero downtime, developers need real-time visibility and an easy way to chase data activity. Containers help isolate issues, but they still largely depend on the IT infrastructure team who are unfamiliar with the applications to manage logging, and that can tax limited resources.
Building on top of the popular elasticsearch, LogDNA set out to create a solution modernized enough to provide DevOps intelligence and automatically organize all that data. Fortunately, the LogDNA team saw the writing on the wall: Kubernetes. The timing was perfect. Developers were starting to adopt the lightweight, open source platform for managing containerized workloads. LogDNA seized on the advanced orchestration capabilities of Kubernetes in cloud environments and spun out an integrated, managed software-as-a-service (SaaS) solution that began to gain traction.
Looking for a strong partner
This work caught the attention of the IBM Cloud team, which itself was shifting focus to Kubernetes services and DevOps and working actively in the open source community. We quickly found synergy between our efforts. That synergy helped weave the LogDNA logging platform into the IBM global ecosystem, binding the two companies together as partners to deliver innovative, managed Kubernetes services.
While LogDNA is in the business of logging, it is also a storage and big data company. When the team initially looked at the IBM Cloud Kubernetes Service, they worried that it wasn’t going to meet our demands. Fortunately, several IBM distinguished engineers introduced the LogDNA team to the IBM Cloud Kubernetes Service bare metal offering.
The flexibility of a bare metal option allowed LogDNA to get the IOPS (input/output operations per second) we need to read and write quickly out of storage, and at a less-expensive price than network-based storage.
The IBM-LogDNA relationship is an example of true collaboration. IBM has quickly responded to product developments recommended by the LogDNA team. However it’s not only IBM delivering enhancements; LogDNA has adjusted some process and infrastructure planning based on suggestions from the IBM team. The refinement of the logging-related offerings is a chance for the LogDNA and IBM teams to work hand-in-hand to build better services.
Getting to the heart of DevOps
LogDNA’s product is heavily focused on the DevOps space. It provides better insights, better observability into development stacks and better building tools that help developers. It offers the convenience of a very robust log management tool without the inconvenience of having to manage or configure anything.
In a world that churns out disruptive direct-to-consumer applications (think Uber), there is a growing market for a level of scalability not being addressed by others in the market today.
With the combination of IBM and LogDNA, we can help clients no matter where they are on their journey — public clouds, on-premises or hybrid. The goal is to provide a log management tool that optimizes a developer’s data. The LogDNA tool focuses heavily on things like automatic parsing. Any data that comes into LogDNA is automatically taken care of, since the tool can recognize the exact kind of incoming logs. Our tool bundles its services for simplicity and ease of use, so developers don’t need to worry about logs.
Partnering around the world
The IBM global footprint is enabling LogDNA to deliver this service consistently around the world. As the preferred logging service, LogDNA is available in the IBM Cloud Service Catalog today and will be available in all IBM service regions. IBM customers can select and order LogDNA services by identifying that they want logging; this pulls LogDNA directly into their order.
In addition to customer-requested orders, IBM plans to use LogDNA for all of its internal systems, which further extends the relationship.
Ultimately, the joint effort of IBM and LogDNA is helping our customers stay focused on their priorities, and leave the logging to us.
To learn the full story, read the case study.
The post LogDNA and IBM find synergy in cloud appeared first on Cloud computing news.
Quelle: Thoughts on Cloud