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

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!

Labels: Chef| Knife
Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the Community Guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Search
Showing results for 
Search instead for 
Do you mean 
About the Author
Stephen Spector is a HP Cloud Evangelist promoting the OpenStack based clouds at HP for hybrid, public, and private clouds . He was previous...
Featured


Follow Us
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.