Ask Your Question
1

How to update a QCOW2 image with the current patches?

asked 2015-08-08 20:49:54 -0500

tictoc gravatar image

updated 2015-08-10 14:07:03 -0500

smaffulli gravatar image

How do you update a QCOW2 image with the current patches? Or do you have to build a complete new image? I have a Heat Stack that fails because the updates are not current and it times out and says it failed. Or is there a way to re-run the heat stack on the updated image that was created by the initial heat stack?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-08-09 19:24:25 -0500

tictoc gravatar image

updated 2015-08-10 14:06:12 -0500

smaffulli gravatar image

Taking my image and running it then snapshot it after updating it then use

glance image-create --name "NAME_OF_IMAGE" --file PATH_TO_YOUR_SNAPSHOT --disk-format qcow2 --container-format bare --is-public True --progress

in my case I used the snapshots ID found here

cd /var/lib/glance/images/

then running the following in the same directory as the images

glance image-create --name "fedor202" --file 89ac2208-c9f2-42e8-93a0-17dde5536652 --disk-format qcow2 --container-format bare --is-public True --progress

gives me a yum updated image. Comes out a lot larger and I have not tested it against the heat stack yet but it should work right?

edit flag offensive delete link more
0

answered 2015-08-09 03:18:30 -0500

RAHUL1603 gravatar image

Hi tictoc,

Please note the linux images like centos, ubuntu are updated on weekly basis and you can download it from there and replace the existing ones. You can not update the images stored in glance you need to delete the old ones and create new ones. Apart from this if you are working on any other OS for which images are not available on the internet, you need to create / recreate images by yourself.

Regards Rahul Singh

edit flag offensive delete link more

Comments

Thank you! Thought maybe that was the case. Any solid QCOW image build tutorials out there? Would prefer a way to script out the build process so I can automate it as much as possible. Thanks Again!!

tictoc gravatar imagetictoc ( 2015-08-09 03:57:06 -0500 )edit

Thanks smaffulli for fixing my mucked up format! Also running a failed Instance build rebuilds the instance per the Heat Stack which allowed me to fix 2 of the 4 servers having issues. Not sure why they just would not get over the yum update hump with all of them running. Need cloud.init resources

tictoc gravatar imagetictoc ( 2015-08-11 00:38:48 -0500 )edit

And Metadata resources for deploying instances.

tictoc gravatar imagetictoc ( 2015-08-11 00:39:45 -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: 2015-08-08 20:49:54 -0500

Seen: 785 times

Last updated: Aug 10 '15