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

volume attachment issue while running the knife openstack server create #181

Open
polaaditya opened this issue Oct 8, 2015 · 6 comments
Labels
Type: Enhancement Adds new functionality.

Comments

@polaaditya
Copy link

The mount point of the physical device attached to the instance while creation is different from the physical device attached inside the instance...
Instance Log:
image
but the disk attached to instance is different.when i try to run sudo fdisk -l in the instance
image
Is there anyway to pass the mountpoint of the device such as /dev/vdb in the command line using knife openstack server create...
the command which i used to bring up the server is
knife openstack server create --no-host-key-verify --node-ssl-verify-mode none --openstack-volumes --flavor --image --ssh-user <IMAGE_USER> -S --identity-file --network-ids --openstack-floating-ip --insecure --yes -VV --hint openstack -N <INSTANCE_NAME> --openstack-groups <SEC_GROUP> --run-list “" --environment

@jjasghar
Copy link
Contributor

jjasghar commented Oct 8, 2015

So you're trying to attach the /dev/vdd to the box that you did fdisk -l on? Can you confirm that in horizon/nova/cinder that there is the /dev/vdd and it's attached to something?

Can you show me the attached drive to whatever instance using knife-openstack the failure, then show me the attached drive via nova?

If we aren't doing something correct here it's probably due to fog, and i'd like to figure out where it's breaking.

@jjasghar jjasghar added the Bug label Oct 8, 2015
@polaaditya
Copy link
Author

i have created a volume using cinder create and this volume id is attached in the options while using "openstack server create --openstack-volumes"
screen shot 2015-10-08 at 2 11 45 pm
screen shot 2015-10-08 at 2 15 30 pm
attached the screenshots for both of them

@jjasghar
Copy link
Contributor

jjasghar commented Oct 8, 2015

So it seems that it's created..."randomly?"

https://github.com/chef/knife-openstack/blob/master/lib/chef/knife/openstack_server_create.rb#L55-L64

I'll have to make it so you can declare the mountpoint.

@jjasghar
Copy link
Contributor

jjasghar commented Oct 8, 2015

That's a feature request, and i'll have to put it on as a TODO.

@jjasghar jjasghar added Enhancement and removed Bug labels Oct 8, 2015
@polaaditya
Copy link
Author

Thanks @jjasghar...can we also enable the option for "delete on termination" to choose from command line and also the fetch the volume size instead of nil ...
https://github.com/chef/knife-openstack/blob/master/lib/chef/knife/openstack_server_create.rb#L61-L63

@jjasghar
Copy link
Contributor

jjasghar commented Oct 8, 2015

Sounds reasonable. I can't promise you this'll happen fast, but at least we know what we need to fix now 🤘

@tas50 tas50 added Type: Enhancement Adds new functionality. and removed Enhancement labels Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

No branches or pull requests

3 participants