From 47aa16b43bed3a6f407d68d910fe6b7513f788ba Mon Sep 17 00:00:00 2001
From: Claudio Pisa <claudio.pisa@garr.it>
Date: Thu, 21 Feb 2019 17:53:10 +0100
Subject: [PATCH] 2019-02-21: CP; update README

---
 README.md | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index ffb6bce..7367cfb 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-Automatic Update Glance Images
-==============================
+Automatic Update of Glance Images
+=================================
 
 This script automates the process of updating images of operating systems in OpenStack.
 
@@ -50,6 +50,18 @@ Execute the script
 Images are now present in OpenStack Glance.
 This script uploads all the images as 'Public', accessible by all users.
 
+### Update simplestreams
+After updating the images, update the simplestreams catalog:
+
+    $ openstack object list simplestreams
+    $ openstack object save simplestreams images/streams/v1/com.ubuntu.cloud-released-imagemetadata.json --file com.ubuntu.cloud-released-imagemetadata_backup.json
+    $ openstack object save simplestreams images/streams/v1/index.json --file index_backup.json
+
+	$ python3 generate-files-for-simplestream.py
+    $ cd output/simplestreams
+    $ ls -lh images/streams/v1/
+    $ openstack object create simplestreams images/streams/v1/com.ubuntu.cloud-released-imagemetadata.json images/streams/v1/index.json
+
 
 Pipeline
 --------
@@ -61,4 +73,4 @@ Pipeline
 Notes
 -----
 
-This script is tested on Ubuntu 16.04 x64
\ No newline at end of file
+This script is tested on Ubuntu 16.04 x64
-- 
GitLab