Ask Your Question
1

How to create openstack instance using script file in crontab????

asked 2019-07-19 00:54:38 -0500

Samiya Mallick gravatar image

How to create openstack instance using script file in crontab????

edit retag flag offensive close merge delete

Comments

urgent help required?

Samiya Mallick gravatar imageSamiya Mallick ( 2019-07-19 00:55:00 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-07-22 04:25:29 -0500

arunx gravatar image

There are two ways you create server using openstack client which can be used as a script in your cron job

Create a server using Ephemeral Volumes

openstack server create --flavor m1.medium --key-name Keypair-name --availability-zone kvm-1:kvmcompute1 --user-data CustomScriptFile.txt --nic net-id=NetworkUUID InstanceName

Create a server using Bootable Volumes

step1: Create Volume from Image

openstack volume create --type VolumeType --size 100 --image ImageUUID VolumeName

step2: Create Instance from volume

openstack server create --volume BootableVolumeUUID --flavor m1.medium --key-name Keypair-name --availability-zone kvm-1:kvmcompute1 --user-data CustomScript File.txt --nic net-id=NetworkUUID InstanceName

kvm-1 is Availability Zone

kvmcompute1 is Compute Host

edit flag offensive delete link more
0

answered 2019-07-19 01:43:48 -0500

The command to create an instance is openstack server create. Examples are in the installation guide, and the command options are documented on the openstack client command page.

edit flag offensive delete link more

Comments

it is not working sir :-(

Samiya Mallick gravatar imageSamiya Mallick ( 2019-07-19 03:37:09 -0500 )edit

I guess something is wrong with your command.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-19 05:28:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-07-19 00:54:38 -0500

Seen: 167 times

Last updated: Jul 22 '19