aboutsummaryrefslogtreecommitdiff
path: root/doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-08-04 12:27:06 -0400
committerRob Austein <sra@hactrn.net>2016-08-04 12:27:06 -0400
commitc897c7cecf4134f20354e3dbba9438cbab706eaf (patch)
tree7066ad608aa285a2b80589e224d06a96e7421120 /doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md
parent949e9c8358b5259656c02e4a1ada7912d943afd2 (diff)
Wiki->HTML->Markdown on all dumped pages, zip attachments.
Diffstat (limited to 'doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md')
-rw-r--r--doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md97
1 files changed, 97 insertions, 0 deletions
diff --git a/doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md b/doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md
new file mode 100644
index 00000000..a1aa9bc4
--- /dev/null
+++ b/doc/wiki-dump/doc%2FRPKI%2FCA%2FUI%2FGUI%2FUpgrading%2FBeforeMigration.md
@@ -0,0 +1,97 @@
+# Upgrading from a Previous Release without Migration Support
+
+This page documents the steps required to upgrade the web portal when you have
+a previous version of the software install **prior to migration support via
+Django South**. Note that this is a special case and will not apply to most
+situations (see [doc/RPKI/CA/UI/GUI/Upgrading][1] for the normal upgrade
+path). If you have already performed the steps on this page previously, then
+it does not apply to your situation.
+
+If you are unsure whether or not you have previously run this command, you can
+verify with the following command:
+
+
+
+ $ rpki-manage migrate --list
+
+ app
+ (*) 0001_initial
+ (*) 0002_auto__add_field_resourcecert_conf
+ (*) 0003_set_conf_from_parent
+ (*) 0004_auto__chg_field_resourcecert_conf
+ (*) 0005_auto__chg_field_resourcecert_parent
+ ( ) 0006_add_conf_acl
+ ( ) 0007_default_acls
+
+
+The migrations are an ordered list. The presence of the asterisk `(*)`
+indicates that the migration has already been performed. `( )` indicates that
+the specific migration has not yet been applied. In the example above,
+migrations 0001 through 0005 have been applied, but 0006 and 0007 have not.
+
+## Sync databases
+
+Execute the following command in a shell. Note that you do not need to be the
+_root_ user, any user with permission to read `/etc/rpki.conf` is sufficient.
+
+
+
+ $ rpki-manage syncdb
+
+
+Note that at the end of the `syncdb` output you will see the following
+message:
+
+
+
+ Not synced (use migrations):
+ - rpki.gui.app
+ (use ./manage.py migrate to migrate these)
+
+
+You should **ignore the message about running ./manage.py** since that script
+does not exist in our setup.
+
+## Initial Database Migration
+
+For a completely new install, there will not be any existing tables in the
+database, and the `rpki-manage migrate` command will create them. However, in
+the special situation where you are upgrading from a previous release prior to
+the migration support being added, you will already have the tables created,
+which will case the initial migration to fail. In order to work around this
+problem, we have to tell the migration that the initial step has already been
+performed. This is accomplished via the use the `--fake` command line
+argument:
+
+
+
+ $ rpki-manage migrate app 0001 --fake
+
+
+Note that this step doesn't actually modify the database, other than to record
+that the migration has already taken place.
+
+## Database Migration
+
+Now bring your database up to date with the current release:
+
+
+
+ $ rpki-manage migrate
+
+
+From this point forward you will follow the steps in
+[doc/RPKI/CA/UI/GUI/Upgrading][1] each time you upgrade.
+
+## Restart Apache
+
+In order to make Apache use the new version of the software, it must be
+restarted:
+
+
+
+ $ apachectl restart
+
+
+ [1]: #_.wiki.doc.RPKI.CA.UI.GUI.Upgrading
+
010-01-07 17:23:05 +0000 Cleanup of substring checks.' href='/sra/rpki.net/commit/rpkid/rpki/up_down.py?h=zone-cleanup&id=263ecf49c653495ce46fde464567e29029408783'>263ecf49
e3381325
32b7a7b2






a780a780


13a65b46
32b7a7b2




13a65b46
370b80a6









13a65b46
03d0e7da
370b80a6




13a65b46
03d0e7da
370b80a6
a780a780
370b80a6

a780a780
35c1ca65
370b80a6
8542127f
370b80a6

13a65b46
370b80a6

20c92093
370b80a6




f6251b4c
03d0e7da
370b80a6
a780a780
370b80a6



a780a780
03d0e7da
370b80a6






13a65b46
dcdf9ef1
370b80a6
a780a780
370b80a6



a780a780
d4f6b4ed
370b80a6


d4f6b4ed
13a65b46
370b80a6
a780a780

370b80a6

a780a780
68cebf41


39ee5dd4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163