Friday, June 29, 2018

Forcing an installation of specific OpenShift package version "minor version"



Forcing a deploy of specific OpenShift package version, "3.9.27"

As mentioned by documentation, the installer uses the following Ansible inventory file facts to force a specific package version install:



[OSEv3:vars]

openshift_release=v3.9.27

# Value appended to the yum package install
openshift_pkg_version=-3.9.27
# Prevents an unsupported docker version from being installed
enable_docker_excluder=true

# Still figuring out why this is needed:
enable_openshift_excluder=true


However there is an issue in the Ansible installer playbook whereby the pre-install routines fail by performing checks "memory/disk" against available package versions instead of installed ones. In other words, the cluster install won't run if there are packages in the rhel-7-server-ose-3.9-rpms repo that are higher than the version specified in the openshift_pkg_version.

To work around this, we just have to exclude higher package versions through the /etc/yum.conf file. This setting has to be present on every node before installing and any playbooks checks like this:


[main]
...

...
exclude= *3.9.30* *3.9.31*



And last but not least, we must remove the following line from the aos_version.py file located in the Ansible openshift_health_checker module on host from which we are running the installer; otherwise the installer will ignore the exclusion setting we just configured in the previous step.
 
# /usr/share/ansible/openshift-ansible/roles/openshift_health_checker/library/aos_version.py
# yb.conf.disable_excludes = ['all']
 
cd /usr/share/ansible/openshift-ansible/roles/openshift_health_checker/library/
python -m compileall aos_version.py 

it is hard to me the reason for this questionable logic but the end result is that removing the line allows the installer to continue it's job.

Checking OCP deployed in all nodes :

ansible all -m shell -a 'yum list | grep atomic'

Monday, April 30, 2018

Importing notes from Gnome Gnote to Evernote "finally" notes moving to the Cloud


Good news!! 

Finally, I'm posting an excellent news about how to convert xml notes (.note) from Gnome Gnote  for Linux "Users" and import it to "evernote" and don't miss already notes from Desktop/PC, easy way without many complications. 

So, let's share:

Basically, you need at least python, python-devel, python-pipJust a reminder, 
I tested it on RHEL 7.4 (any RHEL like would be compatible, hope so).

# yum install python python-devel python-pip

Yum gonna resolve all deps, ;-) and then.

# pip install -r requirements.txt
# mkdir export/
# python tomboy-export.py <tomboy-dir>

in my case example:


# python tomboy-export.py /home/rda/.local/share/gnote


- Reference with the python scripts: https://gist.github.com/scribu/7442170


Ualah, take a look in the "export" directory you should have all of your files converted to the Evernote format ".enex", So, open your Evernote app in your PC and File >> Import these files from the Directory, easy.