Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for building a ppc64le stemcell for Power8 Ubuntu LE #1027

Merged
merged 26 commits into from Jan 5, 2016
Merged

Changes for building a ppc64le stemcell for Power8 Ubuntu LE #1027

merged 26 commits into from Jan 5, 2016

Conversation

hashmap
Copy link

@hashmap hashmap commented Nov 16, 2015

This PR introduces support of stemcell creation on ppc64le platform on Ubuntu. Main changes:

stemcell name includes arch name on ppc
spec exclusion tag 'exclude_on_ppc64le'
2 partitions on ppc, first is PReP (required for boot)
bosh_micro_go agent step is disabled
system_ixgbevf module is disabled
ppc64le ubuntu repos are added
news assets config.guess and config.sub, also code which patches some packages with outdated config.guess and config.sub, otherwise 'configure' tool can't recognize ppc64le hardware platform
changes in GRUB configuration
rsyslog 8 is not supported yet

@cfdreddbot
Copy link

Hey hashmap!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA.

@@ -36,7 +36,7 @@ def agent_stages
:bosh_micro_go,
:aws_cli,
:logrotate_config,
]
].reject{ |s| RbConfig::CONFIG['host_cpu'] == 'powerpc64le' and s == :bosh_micro_go }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Hmm. I lost my prev comment...)

Given that we skip bosh_micro_go stage we can also skip bosh_ruby which also means we dont have to make it work on ppc. Wdyt?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean we don't need to patch packages like ruby and yaml, sounds good. I thought it may be required for smth else.

# needed to remove rsyslog-mmjsonparse on ppc64le
# because of this issue https://gist.github.com/allomov-altoros/cd579aa76f3049bee9c7
if [ `uname -m` == "ppc64le" ]; then
pkg_mgr install "rsyslog rsyslog-relp rsyslog-gnutls"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could always run pkg_mgr install "rsyslog rsyslog-relp rsyslog-gnutls" and then install conditionally rsyslog-mmjsonparse

@@ -46,6 +46,11 @@ def manifest(disk_format)
end

def manifest_cloud_properties(disk_format, infrastructure, stemcell_name)
architecture = 'x86_64'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps replace with the ternary operator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants