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

Serious Bug with server show instance-id #164

Closed
b-slim opened this issue Jun 2, 2015 · 2 comments
Closed

Serious Bug with server show instance-id #164

b-slim opened this issue Jun 2, 2015 · 2 comments

Comments

@b-slim
Copy link

b-slim commented Jun 2, 2015

Hey guys i am running into a serious bug with knife-openstack (1.1.0)
The command bundle exec knife openstack server show --instance-id instance_name will return a result for any server with a name that has instance_name as a suffix.
in my case for instance assuming my server is called bslim_mysql_server
And if i run bundle exec knife openstack server show --instance-id mysql_server i will get
Instance ID f5bc2256-6c8e-448a-8f6c-dfca4e463afa Name bslim_mysql_server Flavor 3000 Image b4001360-4082-4c1e-a307-db1c1c57ee3e State ACTIVE Availability Zone GridPriv1

@jjasghar
Copy link
Contributor

jjasghar commented Jun 2, 2015

I don't see this as a bug. I see this as fuzzy matching working.

@b-slim
Copy link
Author

b-slim commented Jun 2, 2015

Hi @jjasghar after looking at the code i figure out that --instance-id is used as a search term https://github.com/chef/knife-openstack/blob/master/lib/chef/knife/cloud/openstack_service.rb#L42.
This is misleading and causing a serious problem in our deploy pipeline.
i am using ^ and $ for exact matching

@b-slim b-slim closed this as completed Jun 2, 2015
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

No branches or pull requests

2 participants