Eric Minick

About Eric Minick

Eric Minick is the Lead Consultant at UrbanCode

Software Supply Chains and DevOps

During our induction into the IBM family, one of our new colleagues told an anecdote about a firm that outsourced its mobile application development. Managing the relationship of outsourced work with what is being developed in house is a challenge similar to what manufacturers face with their supply chains. While this is a topic the folks at IBM having been talking about for a while, it’s new to me.The implications however are both clear and profound.

Lessons from Supply Chain Masters

Consider the lessons that Toyota learned through its Lean efforts. Being Lean, and working in small batch sizes does not work unless suppliers are also able to react quickly, producing small batches of exactly the parts needed for the vehicles that were in demand. Liker’s book The Toyota Way recounts their work with Trim Masters where seats are ordered when a car begins its four hour trip down the assembly line. With Toyota’s help Trim Masters was able to produce the seats and deliver them just in time to meet up with the rest of the car a few hours later.

Or consider Walmart’s famous supply chain agility. While maintaining very low costs, Walmart is also able to react very quickly to changing market dynamics to rarely need to put items on clearance.

Applying Supply Chain Lessons to Software

Software companies that would decide to make a change and release it hours later are few and far between. However, we serve businesses that increasingly expect to be able to change plans often to exploit immediate or transient market opportunities. Speed of innovation is key.

Continue reading

In Agile, Put Retrospective First

This morning I was speaking with some of our friends at VersionOne at the Mile High Agile Conference. We were discussing Agile practices and the phrase “Kanban-ish” came up.

Being able to point at a common process or approach and say, “Yeah, we do something like that” is really important. If you point at a practice and say, “We do SCRUM” or “We do XP” I would be worried about how agile you really are.

A key to actually being Agile is figuring out what actually works for your team and adjusting your team’s practices to do more of what works, and less of what doesn’t. It’s unlikely that any documented practice fits your team perfectly.

I would argue that a successful Agile adoption is founded on two basic things:

  • Understand what your customers (the business and nearby teams) need from your team.
  • Meet frequently with your team to discuss how to better deliver on those needs
If you started with Waterfall, and added retrospectives and process change to the mix, you would become more Agile over time. You can skip to something like Scrum or Kanban that seem like a reasonable guess at a process that might work, but don’t stay locked into any “Text-Book” Agile too long. Put the retrospective at the heart of your Agile transformation.
DevOps Corollary: Put really good post-release and post-outage post-mortems  at the heart of your adoption of DevOps. This space is new enough that nobody even claims to have all the answers. The driving question needs to be, “How do we deliver better?”

2 DevOps Approaches to Configuration Changes

We’ve all seen it. The application breaks on a developer’s laptop. It’s fixed by a configuration change such as adding a data source or changing a threshold or toggling something. A day later, the issue is breaking across the earlier test environments and the fix is communicated. A week later, QA files a bug. It is rejected as “mis-configured”and testers are told how to fix the configuration. Later, the application fails in the pre-prod environment. Operations moan about poor deployment documentation, and will (hopefully) add a line-item to their release plan for production.

What a colossal waste of everyone’s time.

Paris Tuileries Garden Facepalm statue
Classic Facepalm

This is a DevOps problem. We see communication issues, exacerbated by silos, which lead to changes being more expensive and riskier than they should be. There are at least two solid approaches to addressing this pattern.

Approach 1: Configuration as Code

Cool-kid DevOps suggests that infrastructure and configuration should be code. The developer who makes the code change that requires a configuration change is made responsible for encoding that change in deployment automation, scripts or configuration files pushed with each change. The code change is not “done” until the configuration automation change is done.

“Code” does not necessarily mean actual scripts. It means that the rules about what configuration should be applied exist in a versioned and executable state. This could be a script in a Git repo or as CI in a CMDB that some software reads from.

Strengths: The responsibility for the configuration is clearly owned by the developer. It limits unpredictable new tasks for other people based on your ‘done’ work. There is little room for miscommunication or errors in manual steps.

Weaknesses: It can take considerable engineering shifts to learn how to automate configuration changes, and some tools are scriptable than others. Also, there may be required knowledge the developer is not allowed to have. For example, if a new datasource is required the developer likely won’t know production passwords, only how to access the development copy.

Approach 2: Easy Capture & Communication of Config Changes

If fully automating this approach is not feasible, it is important to lower the barriers to communicating the change. This is where DevOps stops being about cool automation and really focuses in on tearing down the barriers between silos. In many organizations, the Developer is asked to fill out a ticket with dozens of required fields for each change made to each environment. That is a pretty strong incentive to “forget” about it.

Instead there needs to be a low-ceremony, easy strategy for capturing changes that need to be made, and recording which environments the change is captured on and which will need it when they get the code change. Options vary from release planning tools; to cards on middleware team’s white-board; to wikis. The key is for operations and release management to find something that meets their needs to protect production while being friendly enough to development that it is actually used.

Strengths: This approach can accommodate a wider variety of changes with less pressure on the development organization to take on new tasks. Instead, it should reduce the pressure to write long deployment docs that developers hate writing and often lack the quality release engineering needs.

Weaknesses: This approach is still prone to misunderstanding instructions and manual errors when executed.

Hybrid approaches work

Hybrid approaches are also doable. An approach my customers may follow would be to update uDeploy with the new configuration task and have it run with each deployment. The environment specific information which the deployment automation guys might not have access to would need to be configured by the environment owners. uRelease makes it easy to capture this kind of task and track which environments it has been completed in. When all the environments are configured properly (along with an environment provisioning automation to cover future environments) the task drops off the release plans.

Notice that in any of these approaches, the QA team is 100% correct that there is an unacceptable bug from Development if using the standard deployment processes does not result in successfully running applications. The configuration required by the application is part of the application. Various stakeholders in the organization can nudge their colleagues towards these techniques by standing up for these types of bugs and not closing them until the configuration change is incorporated in the deployment process as either an automated step or clearly documented step in a release plan.

Extending uDeploy and uBuild with Plugins

Last week, Matt Wagner and I presented a tutorial (now recorded) on Building Air Framework Plugins. The slides are below:

Our Development team has been busy with plugins as well. In the last week, they’ve released an updated uDeploy plugin for SAP Business Objects; AnthillPro plugins for IBM Rational Team Concert, Oracle WebLogic and NCover, and a uBuild plugin for HP Fortify.

For more on Lean, you should check out of white-paper on Lean Build and Deployment Automation.

For deployments, moving the files is the easy part

Deploying software can be a complex endeavor. We often think of it as “getting the software to the right boxes”. But, actually grabbing the bits and moving them out to the right place on the target servers is one of the easier and least error-prone parts.

When I asked the Automating Deployment and Release Linked-in Group to weigh the relative importance of this part, they generally rated it as being less than 20% of the overall effort. That’s in line with what I’ve heard in my conversations with experts across the industry.

The more challenging and time consuming parts of the release seem to be:

  • Collecting the set of stuff that is going out the door as a release set.
  • Coordinating with other groups and communicating with stake-holders
  • Applying per-environment and per-server configuration
  • Keeping track of what was deployed to each target
Even when I demo deployment automation tools, there’s an emphasis on getting the bits to the right places. While a critical piece, keep in mind that it’s just a small part of the overall release puzzle when you are working on making your release process more effective.

For more on deployment automation, you should check out our white-paper Deployment Automation Basics.