Grounded in the Cloud
cancel
Showing results for 
Search instead for 
Did you mean: 

Knife-HP 0.4.0 Released for Support of HP Helion Public Cloud

Stephen_Spector

MattRay_Headshot.jpg

 

Guest Post: Matt Ray, Director of Partner Integration, Chef

 

We're excited to announce the release of knife-hp  0.4.0, a major update to the plugin refactored to support the HP Helion Public Cloud version 13.5 release. HP’s API has changed to support a number of new OpenStack features (with many more to come), so the usage of the plugin has changed quite a bit. The new release is no longer compatible with the previous API (deprecated by HP as well), so if you are still using the older version of the API you may still use version 0.3.1 of this plugin. HP's migration and upgrade instructions are here: https://docs.hpcloud.com/migration-overview-reference/

 

The knife-hp plugin gives you the ability to deploy your Chef-managed infrastructure on HP’s Public Cloud. It provides the ability to query the HP API to find the flavors, images, networks and security groups necessary to properly create (and delete) your instances.


Among the new features added in this release are support for HP's regions (US East and US West), the availability zones within those regions and attaching to floating IP addresses. This allows us to provision new nodes across HP Helion Public Cloud wherever necessary. The following example connects to US East in Availability Zone 3 and requests a floating IP address:

$ knife hp server create --hp-region us-east  --hp-zone az3 --floating-ip --flavor 101 --image 202e7659-f7c6-444a-8b32-872fe2ed080c --ssh-key hp-east1 --identity-file ~/.ssh/hp-east1.pem
Instance Name: hp-5445854803300397
Instance ID: 16b991ab-6c45-45a6-8175-7d5086ad6c02
Availability zone: az3

Waiting for server............
Flavor: standard.small
Image: CentOS 6.3 Server 64-bit 20130116
Security Group(s): default
SSH Key Pair: hp-east1
Floating IP Address: 15.126.236.28

Waiting for sshd on 15.126.236.28............done
Connecting to 15.126.236.28
15.126.236.28 Installing Chef Client...
<SNIP>
15.126.236.28 Chef Client finished, 0/0 resources updated in 14.472322735 seconds

Instance ID: 16b991ab-6c45-45a6-8175-7d5086ad6c02
Instance Name: hp-5445854803300397
Flavor: standard.small
Image: CentOS 6.3 Server 64-bit 20130116
Security Group(s): default
SSH Key Pair: hp-east1
Network: matt@getchef.com-network
 IP Address: 10.0.0.50
Environment: _default

We can see this node and others with:

$ knife hp server list --hp-region us-east
Instance ID                           Name                 Flavor  Image                                 Zone  Key Pair  State
16b991ab-6c45-45a6-8175-7d5086ad6c02  hp-5445854803300397  101     202e7659-f7c6-444a-8b32-872fe2ed080c  az3   hp-east1  active
90d8cc73-da53-4042-a21b-9e808e655bad  hp-6325298377242171  101     202e7659-f7c6-444a-8b32-872fe2ed080c  az3   hp-east1  active
1945ee43-cc4f-49f5-8e94-b2c130517fe1  hp-7912528677455212  100     202e7659-f7c6-444a-8b32-872fe2ed080c  az1   hp-east1  active

Additional features and changes are listed in the README and CHANGELOG. Further information for knife-hp can be found on Github at https://github.com/opscode/knife-hp. You can share your suggestions or report issues with knife-hp in our ticket system at https://tickets.opscode.com/browse/knife.

Thanks for using Chef with HP Helion Public Cloud!

Senior Manager, Cloud Online Marketing
0 Kudos
About the Author

Stephen_Spector

I manage the HPE Helion social media and website teams promoting the enterprise cloud solutions at HPE for hybrid, public, and private clouds. I was previously at Dell promoting their Cloud solutions and was the open source community manager for OpenStack and Xen.org at Rackspace and Citrix Systems. While at Citrix Systems, I founded the Citrix Developer Network, developed global alliance and licensing programs, and even once added audio to the DOS ICA client with assembler. Follow me at @SpectorID

Events
28-30 November
Madrid, Spain
Discover 2017 Madrid
Join us for Hewlett Packard Enterprise Discover 2017 Madrid, taking place 28-30 November at the Feria de Madrid Convention Center
Read more
See posts for dates
Online
HPE Webinars - 2017
Find out about this year's live broadcasts and on-demand webinars.
Read more
View all