r/sysadmin • • Jul 26 '16

[DISCUSSION] A DevOps Cautionary Tale or how a company with nearly $400 million in assets went bankrupt in 45-minutes because of a failed deployment.

https://dougseven.com/2014/04/17/knightmare-a-devops-cautionary-tale/
221 Upvotes

87 comments sorted by

35

u/Wagnaard Jul 26 '16

BaaS. My buzzwords-as-a-service service will help companies develop ever new complex synergies to deal with today's dynamic workplace. Next up is: devops remediation.

10

u/ghostalker47423 CDCDP Jul 26 '16

If it can't efficiently coordinate stand-alone ideas, it's obsolete already.

13

u/Wagnaard Jul 26 '16

Let's circle back on that. I think we can leverage existing resources.

8

u/Letmefixthatforyouyo Apparently some type of magician Jul 26 '16

Can we close the loop at the next stand up? I need to engage my upstream before the all hands.

7

u/exNihlio We are the ^ and the $ Jul 26 '16

BaaS just can't action the complex deployments we need.

That's why our organization is pivoting to SDB, software-defined buzzwords.

2

u/slickeddie Sysadmin Jul 26 '16

Staying Agile. Good good.

3

u/jadedargyle333 Jul 27 '16

Can you double click on that so we can manage it through a single pane of glass?

4

u/Wagnaard Jul 27 '16

It is ultra-converged.

3

u/tombrook Jul 27 '16

We've known that single pane glass is not efficient for decades. Can you glass lickers please stop

1

u/collinsl02 Linux Admin Jul 27 '16

OK, so what you're saying we need is a triple glazed organically sourced GMO-Free free range fair trade solution which harmonises the NE, systems and user interface solutions?

1

u/sealclubbernyan Professional Button pusher/Screen Starer Jul 27 '16

I think that investing in your service will be cap-ex wisely spent. Our calculations show that we can get an ROI in the next fiscal year. Our management will engage your agile team with non-commital mutually beneficial agreements that can both benefit our joint dynamic growth.

0

u/[deleted] Jul 26 '16

[deleted]

17

u/Wagnaard Jul 26 '16

Indeed you can. We utilize a bleeding edge nodal implementation called the verbal vomit comet with targeted mentalism to engage your management in a binding not-binding contract.

58

u/steelie34 RFC 2321 Jul 26 '16

Good story, but really has nothing to do with DevOps. This could happen in any environment. It was a failure of their deployment process and/or lack of peer review. Not the code itself or who deployed it.

30

u/nomoremonsters Jul 26 '16

And an even bigger failure of their monitoring systems.

Who in their right mind would deploy a significantly updated automatic trading process and then not be monitoring this thing like a hawk for the first few minutes (at least) that it's running, just to be sure you didn't miss anything?? The code could have just as easily been deployed 100% properly but still had a bug that didn't show up until it hit Production.

Hard to believe they were so careless, but in financial markets the penalty is immediate and without appeal.

15

u/egamma Sysadmin Jul 26 '16

Well, they had monitoring, and alerts, during the pretrading. Which they ignored. Alerts don't matter if nobody reads them.

10

u/danekan DevOps Engineer Jul 26 '16

Who in their right mind would deploy a significantly updated automatic trading process and then not be monitoring this thing like a hawk for the first few minutes (at least) that it's running,

someone in devops or deployment who does this 10 times a week but has a long list of things that aren't getting done and a lot of pressure to move on.... it's too easy to Monday morning quarterback here.

14

u/bluesoul SRE + Cloudfella Jul 26 '16

It doesn't have anything to do with DevOps done right. I assure you there are more than a couple startups that think DevOps means "make the sysadmins also programmers".

9

u/[deleted] Jul 26 '16

No it is "make SAs do our deploys" and "give devs rights to chmod 777"

5

u/WOLF3D_exe Jul 26 '16

chown -R nobody:nobody /

4

u/fucamaroo Im the PFY for /u/crankysysadmin Jul 26 '16

Ahhh - devops, where I learned that 777 is god mode. One step above 666

9

u/Letmefixthatforyouyo Apparently some type of magician Jul 26 '16

755 is god mode. 777 is "everyone is god" mode.

14

u/[deleted] Jul 26 '16

I have to disagree a little bit. Reusing variables without renaming them is impossibly stupid and lazy for reasons exactly like this. Unless this was written in ASM, or by some mathematical miracle the same address was used after compilation, this was an avoidable failure due to the code.

Also, this is the best line I have ever read in my life:

(BTW – if there is an SEC filing about your deployment something may have gone terribly wrong)

I'm laughing like a complete idiot right now.

1

u/steelie34 RFC 2321 Jul 26 '16

That's true, the code itself could have been better.. but keep in mind, if all 8 servers were updated properly, this wouldn't have happened. There's really blame on both sides, but each could have prevented the other with proper procedure. A nice failure all around :)

I just hate buzzwords being used out of context. Non-tech people tend to form opinions with this kind of info when it's not remotely close to the actual issue.

2

u/pseydtonne Jul 27 '16

The problem with reusing the variable would still have existed. However it may have taken a while to see the problem and a while more to track down.

This doesn't change that the deploy team failed to itemize and failed to have a proper uninstall process. Nevertheless, the lazy code choice caused the immediate problem -- that was a developer team issue, not an admin issue.

6

u/randomguy186 DOS 6.22 sysadmin Jul 26 '16

Not the code itself or who deployed it.

I'm not sure we read the same article. The failure was, in part, the result of code that had been obsolete for years and that was demonstrably dangerous. The failed deployment exposed the problem, but proper source code management would have prevented it.

20

u/bigmike_88 Jul 26 '16

This. Nothing really to do with DevOps. Poor change implementation, lack of documentation and emergency procedures.

11

u/2drawnonward5 Jul 26 '16

When was the last time any of us saw the term DevOps used properly anyhow?

5

u/0xCC137E Jul 26 '16

It's in the cloud right?

5

u/action-_ Jul 26 '16

It's in my butt right?

Man, this is my favorite extension.

3

u/sekh60 Jul 26 '16

I agree, but it seems for a lot of people and blogs devops == change management + automation.

-3

u/[deleted] Jul 26 '16

[removed] — view removed comment

7

u/steelie34 RFC 2321 Jul 26 '16

I've read through all your posts in this thread, and you're pointing out exactly what I think everyone is saying. The article clearly states how Knight's development and deployment strategies were flawed, but that does not devops make. The term is being used out of context in that title, and the article is just trying to draw a parallel between the author's 'devops initiative' and the story. The problem is, we don't know what sort of development lifecycle, deployment strategy, or change management was used at Knight.

I don't think anyone is arguing about the content or who was responsible, I think they are just pointing out how the title doesn't fit the story.

-6

u/[deleted] Jul 26 '16

[removed] — view removed comment

4

u/steelie34 RFC 2321 Jul 26 '16 edited Jul 26 '16

You are supposed to walk away from this article thinking "Is my team making any of these mistakes?", not "Ha ha, that's not devops.".

But I think that's important to consider here... it's NOT devops. The author has used that word solely to get clicks. Again, I'm not concerned about the content of the article itself, but for the fact that it's being forced into the context of something it's clearly not.

There's enough misinformation out there as it is concerning devops and what it is, and attaching a negative story that isn't related to it doesn't help anyone.

2

u/WilfredGrundlesnatch Jul 26 '16

The title is just bad. It's a cautionary tale relating to DevOps. Not of how DevOps can go wrong, but of what can happen if you don't use DevOps techniques.

1

u/danekan DevOps Engineer Jul 26 '16

You're right in that it wasn't a code issue but ... I'd say it IS devops... Programmers = Fixing code. Devops = fixing processes related to deploying that code.

This environment lacked proper safeguards and was still very vulnerable to humans as a point of failure.

1

u/pooogles Jul 26 '16

Good story, but really has nothing to do with DevOps. This could happen in any environment. It was a failure of their deployment process and/or lack of peer review. Not the code itself or who deployed it.

This. I'm not even going to read the article as I know who it is and how it happened.

Honestly I'm shocked that they had so little real time analytics to show them the rate at which they were haemorrhaging money.

1

u/ChiefDanGeorge Jul 26 '16

Had they not re-used a flag, there would not have been an issue. They tried to cut corners and it burned them down.

1

u/[deleted] Jul 26 '16

[removed] — view removed comment

2

u/collinsl02 Linux Admin Jul 27 '16

It's another swiss cheese model failure.

In this case the latent failures were the re-use of the flag, leaving the old code in place when not in use, not building new servers, lack of a killswitch and proper alerting, and having a poor implementation process.

The active failure was the tech not deploying the code to all 8 servers.

Any one of these being different would have solved the issue and saved the company from this specific incident.

7

u/tk42967 It wasn't DNS for once. Jul 26 '16

While I agree that automation would have helped. I do not believe that automation is the holy grail.

Had they of simply created a checklist for each computer that had instructions for removing the old software, installing the new software, and validating, this probably wouldn't have happened.

Or if they had a deployment tech and a validation tech to follow behind and verify it was done. This wouldn't have happened.

This was human error multiplied by poor planning and somebody going cowboy and just doing it. I've worked places with over a billion in assets. You have a backout plan, to your backout plan, to your backout plan.

You test in non prod. You basically have your shit together.

12

u/brokenpipe Jack of All Trades Jul 26 '16

Nice fear mongering. This has nothing to do with DevOps. If anything, had they actually had some sort of automated release process (one of the pillars of "DevOps"), they'd still be in business today.

2

u/[deleted] Jul 26 '16

[removed] — view removed comment

4

u/Letmefixthatforyouyo Apparently some type of magician Jul 26 '16

The issue is the title. It sounds like "look out for Devops, its dangerous" when the article is saying "Look out, not using Devops is dangerous."

-1

u/[deleted] Jul 26 '16

[removed] — view removed comment

3

u/Letmefixthatforyouyo Apparently some type of magician Jul 26 '16 edited Jul 26 '16

No reasonable person? How about the true scotsman? How do they feel about the title?

When you title something "Noun:a cautionary tale," common phrasing is to say the "Noun" is at fault. In this case, it was the exact opposite. A lack of Devops practices, (configuration, deployment and test automation) is what did them in. Whats the "cautionary tale about devops" we should take from this? Use it?

Thats a poorly titled article, and the confusion in the comments here show it. So either these comments are full of unreasonable Scotsman, or the article actually has an issue.

3

u/[deleted] Jul 26 '16

[removed] — view removed comment

4

u/Letmefixthatforyouyo Apparently some type of magician Jul 26 '16

That would be incorrect wording, yes."A cautionary tale about not using seat belts" would be correct.

I don't understand the personal insults. Do you always feel the need to antagonize anyone that disagrees with you? Does that make it feel like your opinions are right because the person you disagree with is wrong on a deeper level?

1

u/[deleted] Jul 26 '16

[removed] — view removed comment

3

u/Letmefixthatforyouyo Apparently some type of magician Jul 26 '16

Well, if that makes you feel better, by all means. Just seems odd to always attack. Speaks to a lack of confidence in yourself to always try to put people on the defensive.

Best of luck out there.

2

u/pleasedothenerdful Sr. Sysadmin Jul 26 '16

It's Knight Capital, right?

3

u/deeseearr Sysadmin Jul 27 '16

It was Knight Capital. Now it's more of a smoking crater.

0

u/[deleted] Jul 26 '16

[deleted]

2

u/pleasedothenerdful Sr. Sysadmin Jul 26 '16

I meant the "cautionary tale."

1

u/Killobyte Jul 27 '16

I was working in NetOps at a company that routed orders to Knight at this time. I still remember the day this happened - we got a frantic phone call on the hotline that told us to stop routing to Knight. We just took the router that linked us to them offline (it was the fastest and easiest way to cut them out) and watched in horror as they lost everything. It was absolutely crazy.

1

u/sidneydancoff Jul 27 '16

Well written article. I just don't agree.

0

u/pier4r Some have production machines besides the ones for testing Jul 26 '16 edited Jul 26 '16

Sorry i call it partial red herring or click bait. (see comment below)

The problem is not devops, the problem is change management / business processes. (incredibly how tposana, just one book, covers this stuff that affects multimillion dollar companies, since 2001)

In other words: You may have a supercomputer (continous delivery tools), but if you do not connect the power (not proper processes and procedures) it does not work.

1

u/sesstreets Doing The Needful™ Jul 26 '16

...topsana? Where does the first 'o' come from? tpsana makes sense, or do people just call it topsana...

2

u/[deleted] Jul 26 '16

I'm pretty sure nobody except OP calls it that

1

u/pier4r Some have production machines besides the ones for testing Jul 26 '16

typo

1

u/MustangTech Jul 26 '16

probably spell it one way and pronounce it another, most people wouldn't pronounce the "tps-" prefix

1

u/collinsl02 Linux Admin Jul 27 '16

You do in reports

4

u/[deleted] Jul 26 '16

[removed] — view removed comment

1

u/pier4r Some have production machines besides the ones for testing Jul 26 '16

Hmm no i did but i overlooked this part. (well even if i want to prove the contrary would be hard once an opinion is formed)

Thanks to bring it to my attention.

0

u/ofsinope vendor support Jul 26 '16

Amazing horror story but silly article. I blame the developer who "repurposed" an existing flag.

0

u/[deleted] Jul 26 '16

[deleted]

1

u/Kamwind Jul 27 '16

CM is not something most companies worry about.

0

u/[deleted] Jul 27 '16

If they would be doing devops like we do this could never happen.

-edit-

This article has nothing to do with DevOPS, rather with what you lose out on by not using automation.

0

u/[deleted] Jul 26 '16

[deleted]

22

u/sesstreets Doing The Needful™ Jul 26 '16

Eight servers were updated by hand, one of them didn't have the new code added*

The roll back was actually worse according to the article since it only left bad old code left on the 8th server*

8

u/pier4r Some have production machines besides the ones for testing Jul 26 '16

Moral of the story: Computers do exactly what you tell them really, really well. Humans do exactly what you tell them really mediocrely at best. Automate as much as possible.

Not completely agreeing here: https://en.wikipedia.org/wiki/Change_management_(ITSM)

11

u/[deleted] Jul 26 '16

Yes, if you want to make humans do what computer do best, but much much slower, you implement change management for every single thing

11

u/pier4r Some have production machines besides the ones for testing Jul 26 '16

No, only for sensitive ones. Not for everything. And change management actually is in place even with automation, it is not that you can approve the automated change just because is automated.

Has to be reviewed, tested (especially in the context of the article), approved.

5

u/[deleted] Jul 26 '16

I was mocking overblown "you have to ask 5 persons to do 5 minute task that have no impact" implementations. I am well aware of benefits of even light but well-implemented process

5

u/pier4r Some have production machines besides the ones for testing Jul 26 '16

Ah, ok. As usual, stuff has to make sense, there is no silver bullet for every case.

3

u/sobrique Jul 27 '16

I like ITIL - I think it's a great idea. But I've seen a lot of companies who pretend to do it, but actually don't.

They're far more interested in arse covering, and getting MI than they are in a process that actually works and is useful.

I'm sure there's exceptions, it's just they seem to be the places that already figured out most of ITIL for themselves.

2

u/[deleted] Jul 27 '16

No method or framework will make anything better if you implement it based on some checklist, not actual needs

1

u/sobrique Jul 27 '16

No, that's very true. But still, a lot of middle managers do seem to think that way...

5

u/[deleted] Jul 27 '16
  • throw unrealistic deadline withhout consulting it with devs but forcing them to agree on it

  • get utter shit of a product or be late as hell

  • throw more micromanagement and paperwork because "surely they are inefficient"

  • repeat

2

u/niomosy DevOps Jul 27 '16

Hell, our automation on production servers requires change management. Puppet runs on production thus become scheduled and we can't run the daemon in enforcing mode even after it's been on non-prod for a good year without issue.

1

u/[deleted] Jul 27 '16

We've found that using no-op caused more problems that good so we just split off repo to have "production" branch that only had accepted changes.

1

u/niomosy DevOps Jul 27 '16

We also keep production separate. We've got to keep noop running due to audit requirements. All it really does for us is get logged by syslog and Splunk.

1

u/[deleted] Jul 28 '16

At one point on few "important" systems we had it running as noop but also had nagios check tied to it that alerted if there were any pending changes on machine.

That way it was pretty easy to see what will be changed after applying and it catched few unintended changes too

1

u/niomosy DevOps Jul 28 '16

No such advanced things in place for us. We run noop on everything, log it in syslog which gets picked up by Splunk, then basically ignore it until someone wants to do a Puppet run on a production server or group of servers.

1

u/[deleted] Jul 28 '16

We generally found out that caused a lot of breakage once someone had to fix a month's worth of backlog. But again, we have a ton under puppet (and a lot of legacy code) so unintended changes happen more often

1

u/niomosy DevOps Jul 28 '16

We're going to end up in that boat. Right now we're sitting under, "well, it worked in dev and test so it should be fine in production!" mode of thinking by managers.

To be honest, there's a lot wrong with how Puppet is handled here but that is probably a rather long rant on my part. I can sum up by saying that management really don't understand Puppet all that well - one noticeable, humorous one was a manager asking if Puppet was going to handle the cabling for a server. My boss replied, "not unless one of the facilities team is nicknamed 'Puppet', no." We got a good laugh out of it.

2

u/Fuzzmiester Jack of All Trades Jul 26 '16

addition to the summary: Manual deployment went wrong, with a technician not actually deploying to one server.

1

u/Redemptions IT Manager Jul 26 '16

I read your post as 'used a toggle bolt' which made me think of this entertaining scene from 'The Hammer'. https://www.youtube.com/watch?v=Y2cBXAUaDJQ

There are similarties between the two.

0

u/[deleted] Jul 26 '16

[deleted]

2

u/sirius_northmen Jul 26 '16

I work in a similar environment to this, im surprised they didnt have a solid rollback plan.

1

u/podjackel Jul 27 '16

You're not even joking. None of my systems are revenue impacting, but I still make sure I know exactly how to unfuck every situation.