Please login or register. September 26, 2018, 01:22:00 AM

Author Topic: Cloud-Init on AIX - no RPMs needed  (Read 9249 times)

0 Members and 1 Guest are viewing this topic.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Cloud-Init on AIX - no RPMs needed
« on: November 04, 2015, 11:32:43 AM »
Getting closer - here is space to give and receive feedback on Cloud-Init for AIX - which is important when working with PowerVC for deployment.

This is the initial setup - download cloud-init-0.7.6 from ...

Although - you can get a copy of setuptools, pip, and cloud-init as I used them from AIXTOOLS PYTHON TEST

From my post on the portal - updated a bit!:
Code: [Select]
# installp -d /data/aixtools/tools -aXc aixtools.python.rte
# export PATH=${PATH}:/opt/bin
# cd /data/prj/aixtools/python/setuptools
# python ./ez_setup.py
# cd ../pip/pip-7.1.2
# python ./setup.py install
# cd /data/prj/launchpad/cloud-init-0.7.6
# pip install nose
# pip install mocker
# pip install PyYAML
# pip install requests
# pip install httpretty
# pip install jsonpatch
# pip install configobj
# pip install pyserial
# installp -d /data/aixtools/gnu -aXc aixtools.gnu.make
# nohup /opt/bin/make
# egrep "^ImportError" nohup.out
ImportError: No module named oauth.oauth
# pip install oauth
# rm nohup.out; nohup /opt/bin/make


« Last Edit: November 04, 2015, 11:42:54 AM by Michael »

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #1 on: November 04, 2015, 12:37:27 PM »
I installed my packaging of bash and the results improved quite a bit:

Code: [Select]
----------------------------------------------------------------------
-Ran 344 tests in 13.285s
+Ran 344 tests in 13.990s

-FAILED (errors=31, failures=4)
+FAILED (errors=22, failures=4)
 Makefile:34: recipe for target 'test' failed

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #2 on: December 09, 2015, 09:05:17 AM »
I am getting started on this again. To my dismay the source control of cloud-init is not inclusive.
There is a version of cloudint (version 0.7.5) with additions for AIX, but the version I downloaded (says it is 0.7.6) does not have these included.

It seems that a "single-source" that everyone mirrors, patches, etc. does not exist.

So restarting again - taking the "source" chmod666 mentions in his blog at http://chmod666.org/index.php/tag/cloud-init/, i.e., more general info from https://github.com/transt/cloud-init-0.7.5.

The zip file containing cloud-init can be downloaded here : https://github.com/transt/cloud-init-0.7.5/archive/master.zip

This is what I shall be using as the basis for my restart!

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #3 on: February 18, 2016, 11:33:50 AM »
I want to say finished - as I finally got to work with someone on a PowerVC environment and could do my own debugging.

The files you need are available as a "bundle" at: http://download.aixtools.net/test/cloudinit/aixtools.python.cloudinit.bundle.tar.bz2

Quick article on cloud-init made easy is at: http://www.rootvg.net/content/view/758/114/

Morten

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #4 on: February 19, 2016, 05:28:46 AM »
Tested successfully on AIX 7.1 TL4 with PowerVC 1.3. At least the important bits works.

Will test on AIX 6.1 and 7.2 too. This is a great time saver and maybe most important, takes away the problem of keeping a Frankenstein RPM install patched and updated (with RPM requirements from multiple repositories that also have to fit with whatever else you have installed on the system).

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #5 on: February 19, 2016, 08:57:05 AM »
Thanks for the feedback!


Morten

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #6 on: February 19, 2016, 09:32:17 PM »
Tested AIX 6.1 TL9 and 7.2 and they both seems to work. Configured network as it should be, ip address, DNS config.

So far so good!

If anyone wonders if they should give this bundle a try, just do it. Recommended!

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #7 on: February 21, 2016, 07:44:48 PM »
BTW: If you have requests, rather suggestions, for better defaults (e.g., in /etc/cloud/cloud.cfg) - let me know. I can certainly modify defaults so that it works even better out of the box!

dean

  • Registered
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #8 on: May 10, 2016, 12:22:54 AM »
I'm eager to test this out in our environment after too long grappling with RPMs - this could be a life saver. However I'm getting a 403 access denied when attempting to download the bundle, and I'm getting the same error when trying to download other packages via download.aixtools.net (e.g. python, git). I'm pretty sure last time I downloaded a package from here I didn't need credentials, has this changed?

PS thanks Michael for your work which has saved me many hours, if only IBM would follow your lead and provide an up-to-date installp repository of open source tools...!

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Cloud-Init on AIX - no RPMs needed
« Reply #9 on: May 10, 2016, 07:50:58 AM »
I'll check the file permissions.