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

Improvements to filesystem and wpar detection on AIX #654

Merged
merged 1 commit into from
Dec 10, 2015
Merged

Conversation

curiositycasualty
Copy link

I think that's everything from my shortlist.

/cc @chef/engineering-services @chef/client-aix

@@ -1,6 +1,7 @@
#
# Author:: Joshua Timberman <[email protected]>
# Copyright:: Copyright (c) 2013, Opscode, Inc.
# Author:: Isa Farnik (<[email protected]>)
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

The existing years still apply so this should be 2013 - 2015

@thommay
Copy link
Contributor

thommay commented Nov 25, 2015

@curiositycasualty looks like you need to go through and update all the tests, too

@curiositycasualty
Copy link
Author

Alright, looks like I've got some tests to fix.

@tas50
Copy link
Contributor

tas50 commented Nov 30, 2015

1 last thing. Is there a reason we have puppet.com all over the tests?

@curiositycasualty
Copy link
Author

@tas50 fixed

@josephrdsmith
Copy link

resolved.

@curiositycasualty
Copy link
Author

/cc @josephrdsmith @tas50 Commit messages and tests changed.

@tas50 tas50 changed the title Various AIX Attributes Improvements to filesystem and wpar detection on AIX Nov 30, 2015
@tas50 tas50 added this to the 8.9.0 milestone Dec 3, 2015
@@ -17,7 +18,7 @@
#

Ohai.plugin(:Virtualization) do
provides "virtualization"
provides "virtualization", "wpars"
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't look like you're setting wpars as a top-level attribute. Do you mean "virtualization/wpars"?

allow(@plugin).to receive(:shell_out).with("uname -L").and_return(mock_shell_out(0, "29 l273pp027", nil))
allow(@plugin).to receive(:shell_out).with("uname -W").and_return(mock_shell_out(0, "0", nil))
allow(@plugin).to receive(:shell_out).with("lswpar -L").and_return(mock_shell_out(0, @lswpar_L, nil))
@plugin.run
Copy link
Contributor

Choose a reason for hiding this comment

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

plugin is available to use here and it has the same three shell_out stubs on it: https://github.com/chef/ohai/blob/if/fix-aix-attrs/spec/unit/plugins/aix/virtualization_spec.rb#L240-L248

You can replace @plugin with plugin and remove 257-261.

collect fs info by device or mountpoint on AIX

AIX WPARs have no macaddresses

provide proper os_version on AIX

provide WPAR info for an LPAR node (AIX)

collect AIX hostnames with dashes properly

style and credit for AIX plugns

PR comment feedback re: license

accommodate WPARs in AIX fs plugin

avoid phantom CPUs on WPARs in AIX CPU plugin

avoid macaddress on WPARs in AIX networking plugin & test hostname right

test AIX platform_version right

detect WPARs on LPARs (AIX)

refactor AIX filesystem

AIX fs plugin: mount options as array

license update AIX plugins

change AIX test hostnames

provide "wpars" as a child of virtualization on AIX

reduse code resuse in AIX virt plugin
@mcquin
Copy link
Contributor

mcquin commented Dec 10, 2015

👍

@schisamo
Copy link
Contributor

👍 Are we ready to merge this?

@scotthain
Copy link

LGTM

tas50 added a commit that referenced this pull request Dec 10, 2015
Improvements to filesystem and wpar detection on AIX
@tas50 tas50 merged commit c5b1845 into master Dec 10, 2015
@curiositycasualty curiositycasualty deleted the if/fix-aix-attrs branch December 21, 2015 19:28
@thommay thommay added Type: Enhancement Adds new functionality. and removed Enhancement labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants