Thursday, April 28, 2016

DevOps - What it is? Transition and Automation Tools Introduction.

Here is the summary of what I learnt (online courses) and understood before applying all/most of these at my current workplace.

DevOps is ‘the Lean’ of IT. DevOps is explained with CAMS (culture, automation, monitoring, sharing).  The idea of thinking of DevOps is a cultural movement that aligns people, processes, tech towards a common goal of eliminating waste and increasing value.


DevOps isn’t a product. It isn’t an edict from CEO. It's a fundamental cultural change with some accompanying technologies.


DevOps transition:


  • Change culture (and sharing)
    • Everyone has shared goal
    • Employees are empowered.
    • Ownership and Accountability
    • Teamwork
      • Development, proj mgmt, ops, testing, QA. we work together all times.
      • Lunch breaks, catch up.
      • If something breaks, we shud form as a team rather than split. Collaborate and fix.
    • Learning
      • Continuous learning. If you don’t value learning and expect people to learn in their free time and if they happen to pick up a new skill that’s not acknowledged, that's an issue. Because really, you want people to be sharing knowledge as they learn it.
      • Doing postmortems when things go wrong. Instead of shying away when something fails, embrace that as a learning opportunity.
      • Encourage public profiles and engagement when people can continue to learn from the public. Don't lock people away in a fear that if they learn a lot, they might leave.
      • JOKE: Quest: we are investing on people’s learning. What if they leave after they learn? Answer: what if we don’t invest in learning and they stay?
      • Kick off writing PoCs etc.
    • Trust
      • When you trust that everyone’s doing things in the best interest, on the same page, big value add there.
    • Reinforcing values. VALUES
      • How you promote? How you fire? How you hire? Tell how you value.
      • People who are here for a while get promoted, then you value longevity? Vs potential excellence.
      • If firefighters are rewarded even if they are responsible for fire, then you value heroics. So, teams don’t worry about consistency.
      • If you reward who does quality work, that does get noticed.


  • Change in Organization
    • Gain understanding
      • You can’t design anything useful, unless you understand the people for whom you are designing. - Jeff Cessna
      • DevOps isn’t just writing some scripts. We really need to learn to “see the system”.
      • Learning
        • What's the value that this system provides?
        • What's the waste it has?
        • What's the process? Flow?
        • What's the value?
        • Process maps? Value stream maps?
        • What's the process architecture?
        • How do you explain right that everything is working right?
        • This is all getting clear vision on what we are working on.
      • Bottlenecks
        • Identify the bottlenecks.
          • Technical debt
          • Custom Manual builds
          • Manual deployments
          • Development slow
          • Not proper Tools
          • Not good QA
          • Inconsistent environments
            • Works on my machine but not on server. Prod quality dev environments.
          • Poor quality
            • Devs think QA test and get back to me.
            • QA count on Devs
            • Ops don’t deploy via automated scripts
            • Hits production and cause problems there.
          • No communication. Understanding system and recognizing these above things.
    • Alter team structure
      • DevOps is a re-org. Not a new team to hire.
        • Even if you have a new team, it doesn’t necessarily mean you’re doing wrong.
      • Communication between teams avoids so much documentation.
      • Have a dedicated teams rather than having 30 people each offering 10% of time.
      • Share knowledge.
      • Always empower person next in line. Let Ops know what happens when this product goes live.


    • Stream procedures
      • Self assessment
        • How projects interface
        • How we do change management
        • How deployments are managed
        • How we do incident management
        • Knowledge management
        • Storing information and sharing information
        • How they are encouraging/discouraging the flow thru the systems.
        • Some procedures may be there to protect yourself. But they might be hindrance considering today’s standards. Identify and remove if they don’t add value. This comes down to eliminating waste.
        • Request a change, adding developers and giving them access, getting monitoring alerts. Policies for production access.
        • Automation might help to address lot of these above stated issues.
      • Eliminate waste
      • Address objections
        • This is not all unicorns and rainbows. Every IT shop is interchangeable and analogous to other IT shops. Nobody is unique.
        • Be open to change.
        • Security
          • Key Devs might have prod access. This we test across the pipeline how it works out.
          • Focus on upfront quality.
          • If we have a streamlined pipeline, we can find problem, fix the problem, push the fix in minutes. Thats a huge difference and security win.
          • Automated mirror test environments mean we can adequately do security testing well before production.
          • If we do devops correctly, can give me so many more ways to test prior to the last second.
          • DevOps shouldn’t open more security issues, it should close most of them.
        • Compliance
          • To take courses internally
          • Role based access for sensitive data
        • Remote teams
          • Offshore


        • Ops Impact
          • Create environments, maintaining them. Infrastructure.
        • Legacy
          • If there is no proper flow, then we can upgrade or update.
          • We can still do continuous integration and scripted deployments.
          • We can still add monitoring.
        • Skills
          • Chef, puppet, powershell and node.js. Many people might already knew these skills.
          • This is better communication, teamwork, continuous improvement.


So far, we didn’t talk about any technical skills. We spoke about only
  • Soft skills
  • How to frame problems?
  • How do I understand the whole flow?
  • How do I communicate across teams?
  • How am I constantly learning and thinking about improvement?
  • Collective learning and applying it. Team learning and application.
  • Why adapting to DevOps shouldn’t be a barrier?


DevOps Automation


Tools
  • Collaboration
    • Skype/Lync
    • Slack
    • CampFire
    • Basecamp
    • Blog
      • Github wiki
      • Sharepoint wiki
      • Blogs and any other persistent means.
    • Don’t save in emails
  • Planning
    • Kanban boards
    • Weekly meetings
    • Trello
    • Visual studio online


  • Issue tracking
    • Zendesk
    • JIRA
  • Monitoring
    • Logstash (free and opensource)
    • Microsoft system center
    • Kibana - to create charts, rank, explore numbers. Works with  Logstash.
      • Graphite
      • StatsD
  • Configuration management
    • Chef
    • Salt
    • Puppet
    • Ansible
    • CFEngine
    • Powershell DSC (Desired State Configuration)
  • Source control - not just for code. For configurations as well. And software assets.
    • Github
  • Dev environment -Production like environment so that no more of ‘it works on my machine’ answers.
    • CodeEnvy
    • Vagrant (vagrantup.com)
  • Continuous integration
    • TeamCity
    • Jenkins
    • Travis CI
  • Deployment
    • CloudFormation AWS
    • Packer (packer.io)
    • Docker
    • Octopus (octopusdeploy.com)
    • GO





Combinable Enumerations         [Flags]         public enum SomeFlags         {             NoColor = 0,             Red = 1,        ...