Skip to content

Commit 783b223

Browse files
Vlastimil HolerRuben S. Montero
authored andcommitted
B #2687: Disk snapshots dissapearing (#448)
(cherry picked from commit 41e04c7)
1 parent 088d463 commit 783b223

File tree

15 files changed

+69
-9
lines changed

15 files changed

+69
-9
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. important::
2+
3+
There is a `bug #2687 <https://github.com/OpenNebula/one/issues/2687>`__ in database migration script which doesn't persist the calculated next snapshot IDs for existing image and VM disk snapshots. After upgrade to 5.6.x, you have to manually apply the `database patch <https://downloads.opennebula.org/packages/opennebula-5.6.0/patches/next_snapshot.rb>`__ (MD5: b7661a3bc4fa3768e6e0ff59e698f7e9). Otherwise, the OpenNebula may lose evidence of existing image/VM disk snapshots when new a one is taken.
4+
5+
Steps to apply the patch:
6+
7+
1. **Download patch**
8+
9+
.. prompt:: bash $ auto
10+
11+
$ wget https://downloads.opennebula.org/packages/opennebula-5.6.0/patches/next_snapshot.rb
12+
13+
2. **Stop OpenNebula**
14+
15+
.. prompt:: bash $ auto
16+
17+
$ service opennebula stop
18+
19+
3. **Apply patch**
20+
21+
The connection parameters have to be supplied as the command line options, see the :ref:`onedb manpage <cli>` for more information.
22+
23+
.. prompt:: bash $ auto
24+
25+
$ onedb patch next_snapshot.rb [database connection parameters]
26+
27+
28+
4. **Start OpenNebula**
29+
30+
.. prompt:: bash $ auto
31+
32+
$ service opennebula start

source/intro_release_notes/release_notes/compatibility.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ Snapshots do not reuse snapshot IDs
9797

9898
The snapshots structure stores the next snapshot ID. So, a new snapshot doesn't reuse an old snapshot ID, even when some are removed.
9999

100+
.. include:: ../bug2687.txt
101+
100102
Developers and Integrators
101103
================================================================================
102104

source/intro_release_notes/upgrades/upgrade_38.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ If everything goes well, you should get an output similar to this one:
211211
212212
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
213213

214+
.. include:: ../bug2687.txt
215+
214216
Check DB Consistency
215217
====================
216218

@@ -401,4 +403,4 @@ The workaround is to temporarily change the oneadmin's password to an ASCII stri
401403
402404
mysql> SET PASSWORD = PASSWORD('newpass');
403405
404-
.. include:: version.txt
406+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_40.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ If you receive the message “ATTENTION: manual intervention required”, read t
122122

123123
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
124124

125+
.. include:: ../bug2687.txt
126+
125127
Check DB Consistency
126128
====================
127129

@@ -255,4 +257,4 @@ Since OpenNebula 4.4, each tm\_mad driver has a TM\_MAD\_CONF section in oned.co
255257
]
256258
257259
258-
.. include:: version.txt
260+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_410.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ If everything goes well, you should get an output similar to this one:
140140
141141
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
142142

143+
.. include:: ../bug2687.txt
144+
143145
Check DB Consistency
144146
====================
145147

@@ -303,4 +305,4 @@ The workaround is to temporarily change the oneadmin's password to an ASCII stri
303305
304306
mysql> SET PASSWORD = PASSWORD('newpass');
305307
306-
.. include:: version.txt
308+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_412.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ If everything goes well, you should get an output similar to this one:
176176
177177
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
178178

179+
.. include:: ../bug2687.txt
180+
179181
Check DB Consistency
180182
====================
181183

@@ -308,4 +310,4 @@ The workaround is to temporarily change the oneadmin's password to an ASCII stri
308310
309311
mysql> SET PASSWORD = PASSWORD('newpass');
310312
311-
.. include:: version.txt
313+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_414.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ If everything goes well, you should get an output similar to this one:
163163
164164
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
165165

166+
.. include:: ../bug2687.txt
167+
166168
Check DB Consistency
167169
====================
168170

@@ -286,4 +288,4 @@ The workaround is to temporarily change the oneadmin's password to an ASCII stri
286288
287289
mysql> SET PASSWORD = PASSWORD('newpass');
288290
289-
.. include:: version.txt
291+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_42.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ If you receive the message “ATTENTION: manual intervention required”, read t
117117

118118
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
119119

120+
.. include:: ../bug2687.txt
121+
120122
Check DB Consistency
121123
====================
122124

@@ -250,4 +252,4 @@ Since OpenNebula 4.4, each tm\_mad driver has a TM\_MAD\_CONF section in oned.co
250252
]
251253
252254
253-
.. include:: version.txt
255+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_44.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ If everything goes well, you should get an output similar to this one:
106106
107107
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
108108

109+
.. include:: ../bug2687.txt
110+
109111
Check DB Consistency
110112
====================
111113

@@ -184,4 +186,4 @@ The workaround is to temporarily change the oneadmin's password to an ASCII stri
184186
185187
mysql> SET PASSWORD = PASSWORD('newpass');
186188
187-
.. include:: version.txt
189+
.. include:: version.txt

source/intro_release_notes/upgrades/upgrade_46.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ If everything goes well, you should get an output similar to this one:
157157
158158
.. note:: Make sure you keep the backup file. If you face any issues, the onedb command can restore this backup, but it won't downgrade databases to previous versions.
159159

160+
.. include:: ../bug2687.txt
161+
160162
Check DB Consistency
161163
====================
162164

@@ -282,4 +284,4 @@ The workaround is to temporarily change the oneadmin's password to an ASCII stri
282284
283285
mysql> SET PASSWORD = PASSWORD('newpass');
284286
285-
.. include:: version.txt
287+
.. include:: version.txt

0 commit comments

Comments
 (0)