Ask Your Question
0

Instance resets to default after stop/start

asked 2016-01-11 00:55:33 -0600

xiangfei-ma gravatar image

updated 2016-01-11 00:56:56 -0600

I am confused,
everytime when I restart the instance, packages I installed/files I created are gone.
The instance is "blank" like the brand new after I created.
Is it the design/default config of Openstack?(It seems ridiculous...)
Is it related to the way I start the instance(from image)? why?
What should I do if I want to reuse the data in instance?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-11 02:19:32 -0600

Prateek K gravatar image

This is not a default design kind of thing. Can you tell which hypervisor you are using . What is happening is the disk that is created for the VM is not in good shape as whatever you are writing on it is getting erased.

Also provide weather Cinder is also involved in your setup ?

edit flag offensive delete link more

Comments

Running Kilo on RHEL7 and hypervisor is KVM. the steps of my operation:
1. create an image
2. create a network
3. create a flavor
4. create the instance by 1/2/3
5. login instance, create file(eg. vi)
6. restart(or stop/start) instance
every thing is fine except the file in 5 is gone.

xiangfei-ma gravatar imagexiangfei-ma ( 2016-01-11 03:08:15 -0600 )edit

cinder, in my case, is not involved.

xiangfei-ma gravatar imagexiangfei-ma ( 2016-01-11 03:08:51 -0600 )edit

What are the specs being provided while creating the flavor ?.. Also while launching the instances there would be logs of nova-compute coming can you please provide that.. Make sure debug is set to true in the config file

Prateek K gravatar imagePrateek K ( 2016-01-11 03:16:52 -0600 )edit

Thanks a lot ,Prateek!
By the clue from your answer, I realized the problem is about the image I used.
The only image I used in OpenStack is a customized RH7 from my customer. I tested several other images, they are working fine.
Now I'm aware of it.(I'm kind of stupid ^^)

xiangfei-ma gravatar imagexiangfei-ma ( 2016-01-11 19:11:10 -0600 )edit

Great ... You were able to solve the problem ... :)

Prateek K gravatar imagePrateek K ( 2016-01-11 23:04:08 -0600 )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: 2016-01-11 00:55:33 -0600

Seen: 52 times

Last updated: Jan 11 '16