Wednesday, October 18, 2017

pdsh? hell yes please and thank you!

So this dude I know +jay vyas, he's constantly telling me about new linux shit I have to try.  Recently he's been talking about pdsh, a multithreaded remote shell client that executes commands on multiple remote hosts, in parallel.  DaFuk, have I been living under a rock?!

Today I'm adding NFS storage to my OpenShift cluster in AWS.  After setting up my EBS I needed to create a directory and then mount that shit on 4 OPenShift nodes.  While I could have just ssh into each one, using TMUX of course, and run the pdsh command to mount the EBS share, I couldn't resist busting a nut with pdsh.
So I create a text file with all the servers I want to push commands to in /var/tmp, called oseServers.txt and get to work:

First let me create the mount point on all the Nodes:

[root@ip-172-31-35-71 tmp]# pdsh -R ssh -w ^oseServers.txt sudo mkdir /mnt/efs 

Now let me mount that AWS EFS
[root@ip-172-31-35-71 tmp]# pdsh -R ssh -w ^oseServers.txt sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-<hidden-from-your-eyes...>.efs.us-east-2.amazonaws.com:/ /mnt/efs 

I don't believe that shit really mounted anything on the nodes...
So I ssh into one of the nodes and check:

[root@ip-172-31-47-57 ~]# df -h /mnt/efs/
Filesystem                                 Size  Used Avail Use% Mounted on
fs-8854bef1.efs.us-east-2.amazonaws.com:/  8.0E     0  8.0E   0% /mnt/efs

[root@ip-172-31-47-57 ~]# 

Awww yea!  pdsh is the shit!









As always, what I blog about are my views and opinions and only mine, and are never the views or opinions of my past | present | future employers.

Tuesday, October 10, 2017

Pigeon Holed - dafuk?!

I'm a software test engineer, I test shit and find problems - and yea I also verify stuff works the way someone who matters says it should  :).  Over last 5+ years all I have heard is "Automate all the tests!".  I've never been a programmer, and while I've tried a few times to 'teach myself' to code, each attempt ends with me knowing how to do the classic "Hello World" bullshit and never using anything like I learned at work - like ever.  Yea I've done a little Java, fixing code that already existed, doing real simple shit that a high-schooler probably can do.  Java, Python, Perl, Ruby - yea I've hello world the shit out of those...

Being a non-programmer used to not bother me, I'm wicked fucking good at what I do and no automation is going to replace that, period.  With that said, people and organizations are actively looking for ways to eliminate people like me with automation.  I may not be a programmer but I'm not dumb, I see the handwriting on the wall.... can I last another 15 years in this game without coding, without automating shit, or will I be automated out of my livelyhood?  I lose sleep thinking about this shit, for real.

I saw someone close to me recently automated out of part of his part-time job, he went from working 3 days a week to 2.  That shit really hit him hard, it hit me too.

So when I recently thought I was about to move into a new career direction, really going to be put in a position to learn programming from folks like +jay vyas who seem like they genuinely want to help me, as long as I put in the effort of course, shift my career to a more in-demand skill set - I was like HELL YEA!!!

I got to work on that new team for ONE full day, then I got pulled/pushed back to 'my day job', executing manual tests for a product launch with yet another tight deadline.

There's talk I'll be back, I'll be on the team, writing code and submitting PRs, ... and I'm trying to believe that shit's going to happen... but there's this voice in my head telling me something different...
Failure's not a motherfucking option...

As always, what I blog about are my views and opinions and only mine, and are never the views or opinions of my past | present | future employers.

TMUX, cool AF

Thanks to +jay vyas I've been trying to new shit at work.  After riding my ass for not using 'TMUX' for a few weeks I gave it a go and honestly, at first I hated it.  It made me feel like I was a moron, "what's the key combo again to...?"  The dude probably was thinking 'WTF is with this guy?'

"What's TMUX" you ask (I sure had to!)? This quote comes directly from the TMUX project's github home:

"tmux is a terminal multiplexer. It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal"

I gave up on TMUX, that is until I had to monitor like 5 separate RHEL instances in AWS running on OpenShift.
I forgot to mention that by now +jay vyas had hijacked my MacBook and installed oh-my-zsh, seems cool, I got along fine before but hey - the kids are using it so I shall too!  Come to think of it, every time this dude touches my MacBook he's bitching about something I don't have installed... and then goes about installing it!

So I recently fired up TMUX again, determined to figure this shit out and get on with it, and I did!

I still had one beef with TMUX, I don't like the default behavior of new pane sizes, it annoys the shit out of me some days.  Today I learned a new trick to resize panes:
"ctrl + b + :  type 'resize pane' <-D, U, L, R>"

Now I can size and space my panes the way I want to!


Why am I blogging about TMUX though?  I have no fucking idea honestly! I'm a dork!








As always, what I blog about are my views and opinions and only mine, and are never the views or opinions of my past | present | future employers.