Posts in DevOps

Ansible 2.8 Released

May 17th, 2019 Posted by DevOps, News, RedHat No Comment yet

Ansible 2.8 has been released. While not as many major features as 2.7, there are an absolute truckload of smaller features, including quite a few focussed on Windows. Some highlights for me:

  • Experimental support for Ansible Collections and content namespacing – Ansible content can now be packaged in a collection and addressed via namespaces. This allows for easier sharing, distribution, and installation of bundled modules/roles/plugins, and consistent rules for accessing specific content via namespaces.
  • Python interpreter discovery, which hopefully will make managing multiple Python versions a bit easier
  • A k8s module defaults group has now been added to reduce the amount of parameters required for multiple k8s tasks. Thank goodness!
  • Added experimental support for connecting to Windows hosts over SSH. This could be really useful, in those circumstances where WinRM isn’t going to fly.

(more…)

Jenkins: The Strange Case of Killed jobs

May 4th, 2019 Posted by Cloudbees, DevOps No Comment yet

I have Jenkins configured with a dozen jobs that support a microservices application. The setup worked fine for several months until, suddenly, jobs started to fail with errors similar to this (console log fragment):

 

 

It caused all jobs to fail most of the time, including Bash scripts as well as Maven builds. The main Jenkins log had no additional information. A web search turned up many discussions about jobs failing (not Jenkins itself), all pointing to a memory shortage like heap space or virtual memory. But the same processes worked flawlessly when executed manually, i.e. not by Jenkins. So the problem was unrelated to memory; something else was going on.

My Jenkins service was being subjected to a denial of service attack. This article is about identifying the cause and taking preventative action.

 

(more…)

Ansible Tower 3.4 Released

January 18th, 2019 Posted by DevOps, News, RedHat No Comment yet

A new version of Ansible Tower has been released, including some useful features we’ve been looking forward to.

In particular the additions to Workflow look very nice:

  • the Workflow Convergence step which allows you to wait on multiple jobs before continuing should simplify some complex logic you’ve had to embed in your workflows to achieve this previously
  • Nested Workflows promises to allow finer-grained modularity and reusability in Workflows
  • Workflow-level inventory, rather than depending on the job template inventory
  • Workflow Always Job Templates, enables job execution of steps regardless of exit status of the workflow.

There is a more detailed write-up over on the Ansible Blog.

 

Website automation with Selenium and JMeter: part 1

December 12th, 2018 Posted by DevOps No Comment yet

This post is part 1 of a series:

One of our customers asked us to troubleshoot their web application: “out of memory” errors were causing page loads to fail. To understand and isolate the problem we needed a way to reproduce it, and observe it in a monitored scenario. We decided on a strategy for both server and web user:

  • Server: deploy a build that monitors for memory leaks, a first-pass step to diagnose the out of memory errors.
  • Client: simulate web requests from one or more users.

It was straightforward to monitor the server application for memory leaks. On the client side we needed a way to generate repeating user requests, potentially at high volume, because the errors didn’t occur for every request. This post describes how we built a client-side process to automate web requests.

(more…)

Website automation with Selenium and JMeter: part 2

December 12th, 2018 Posted by DevOps No Comment yet

This is the final post, part 2 of a series:

In this post I show how to script Selenium for handling asynchronous browser behaviour, and how to install the tools.

(more…)

Ansible Engine 2.7 Released

October 29th, 2018 Posted by DevOps, News, RedHat No Comment yet

RedHat Ansible Engine 2.7 has been released, bringing with it a bunch of new features including:

  • Speedups on Linux. A new strategy for invoking remote systems is introduced requiring half the threads as previously.
  • Reboot module for Linux – Like the existing win_reboot module for Windows, this allows you to reboot a remote Linux machine and then continue on executing commands once it restarts
  • New keyword ignore_unreachable for plays and blocks. Allows ignoring tasks that fail due to unreachable hosts.
  • File locking feature added, making it possible to gain exclusive access to given file through module_utils.common.file.FileLock
  • A mountain of new modules for:
    • Google Cloud Platform
    • Azure
    • OpenStack
    • VMWare
    • NetApp
    • and plenty more

Potentially breaking changes:

(more…)

Ansible at Red Hat Summit 2018

August 28th, 2018 Posted by DevOps, RedHat No Comment yet

Red Hat Summit was held earlier in the year, and now that the recordings are online, we’ve pulled together all the Ansible content in one place.

Whether you were able to attend Summit or not, there are some great ideas in here to improve your use of Ansible.

 

Manage Windows Like Linux with Ansible

Few questions induce fear into the heart of a Linux admin more than, “Hey, can you manage these Windows servers?” In this session, we’ll show how Ansible does simple, secure, and agentless Windows management with the exact same tools, language, and philosophy used for Linux hosts. You’ll never have to log in to a Windows server again. (more…)

DevOps World and Jenkins World 2018

August 17th, 2018 Posted by Cloudbees, DevOps, Events, News No Comment yet

Join the Code Partners team at DevOps World and Jenkins World 2018 in San Francisco in September.

 

It’s shaping up to be a cracking week of workshops and sessions covering the latest in software automation, DevOps practices, Continuous Delivery, Container Orchestration, Testing and more.

 

We had a great (albeit exhausting) time last year and with this years expanded scope, it’s looking like it’ll be even better.

Jenkins Plugins Security Advisory

August 1st, 2018 Posted by Cloudbees, DevOps, News No Comment yet

There is a new Security Advisory that covers issues in several Jenkins plugins, including the Kubernetes Plugin, the Confluence Publisher Plugin, the SSH Agent Plugin and several more. Descriptions of the issues and how they have been addressed in each plugin are included.

Check out the advisory to see if any issues affect plugins you are relying on.

Sydney and Melbourne Jenkins Meetups

July 4th, 2018 Posted by Cloudbees, DevOps, Events, News No Comment yet

We have a couple of very experienced Jenkins folks visiting from Cloudbees in the US next week, so we thought it was a good excuse to get the meetups in Sydney and Melbourne together. We’re not planning a formal presentation, but both Kurt and Aaron have been involved with helping a lot of large customers in their DevOps transformations, so it’s a good opportunity to have a drink and chat with them (and the other attendees) about Jenkins, maybe put in a pitch for your favourite feature you’d like added or get some help with a challenge you’re facing. (more…)