Tuesday, 11 October 2016

Configuring Google Cloud SDK and kubectl

quick and dirty steps
  1. install sdk
  2. configure kubectl:
gcloud config set container/use_client_certificate True

gcloud container clusters get-credentials cluster-name

Saturday, 13 August 2016

Koji build system

There are many ways you can create RPM packages for your code.
If you are an open source project you can always use Copr. It is very easy to get started with.
But when you want to build RPM packages for company’s closed source projects you don’t have much of a choice:
- OBS
- Koji

OBS

OBS forces you to download appliance with OpenSUSE on-board. So you have to learn how OpenSUSE operates. Over seven years I’ve been working in Rhel/CentOS environments and that’s why OBS was not an option for me.
But OBS can build for many platforms.

Luckily for me, the team I currently work in, needs to build packages just for CentOS6/7.

Koji

Koji is the software that builds RPM packages for the Fedora project.
Koji heavily uses existing tools:
- mock
- yum
- rpmbuild
- createrepo

Koji is not that easy to deploy and to understand the terminology.
I found those blog posts to be very useful.
Also there are very useful videos:
- Building RPMS: How Fedora’s Koji Works by Dennis Gilmore who is Fedora Release Engineering Lead
- CentOS: Community build service by Thomas Oulevey who is System Engineer at CERN

Because Ansible is the new sexy, I’ve developed a bunch of roles used to deploy an all-in-one PoC setup of Koji.

For creating SRPMs and submitting tasks to Koji we use tito configured to utilize KojiReleaser.

Friday, 19 February 2016

IBM: disable pxebooting on NICs

ssh USERID@X.X.X.X

system> asu set PXE.NicPortPxeMode.1 "UEFI and Legacy Support"
system> asu set PXE.NicPortPxeMode.2 "Disabled"
system> asu set PXE.NicPortPxeMode.3 "Disabled"
system> asu set PXE.NicPortPxeMode.4 "Disabled"

I needed to change

system> asu show BroadcomGigabitEthernet*.LegacyBootProtocol
BroadcomGigabitEthernetBCM5719-40F2E9BA7038.LegacyBootProtocol=PXE
BroadcomGigabitEthernetBCM5719-40F2E9BA7039.LegacyBootProtocol=NONE
BroadcomGigabitEthernetBCM5719-40F2E9BA703A.LegacyBootProtocol=NONE
BroadcomGigabitEthernetBCM5719-40F2E9BA703B.LegacyBootProtocol=NONE

IBM: Force PXE booting on next reboot

ssh USERID@X.X.X.X

system> pxeboot -en enabled