Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
99b2bd3c
Verified
Commit
99b2bd3c
authored
2 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
progress on the move-instance procedure (
team#40972
)
parent
b55b0193
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/ganeti.md
+26
-11
26 additions, 11 deletions
howto/ganeti.md
with
26 additions
and
11 deletions
howto/ganeti.md
+
26
−
11
View file @
99b2bd3c
...
...
@@ -2206,8 +2206,7 @@ details.
3.
copy the secret to the destination node
scp chi-node-01.torproject.org:/var/lib/ganeti/cluster-domain-secret dal-node-01.torproject.org:/var/lib/ganeti/cluster-domain-secret
ssh dal-node-01 "gnt-cluster renew-crypto"
ssh dal-node-01 "gnt-cluster verify"
ssh dal-node-01 "gnt-cluster renew-crypto && gnt-cluster redist-conf && gnt-cluster verify"
3.
extract the public key from the RAPI certificate on the source cluster:
...
...
@@ -2217,9 +2216,21 @@ details.
cat > gnt-chi.crt
5.
disable Puppet, as we'll be messing with files it manages:
puppet agent --disable "messing with RAPI and /etc/hosts, see issue tpo/tpa/team#40972"
6.
bypass the local DNS records for the "API" names on the
destination node (dal-node-01):
echo 38.229.82.104 chignt.torproject.org >> /etc/hosts
echo 204.8.99.101 dalgnt.torproject.org >> /etc/hosts
7.
open firewalls and make RAPI listen public (TODO: document, expand)
5.
enable an
[
API user
](
https://docs.ganeti.org/docs/ganeti/3.0/html/rapi.html#users-and-passwords
)
on the source
*and*
on the target cluster:
echo
gnt-dal
$(tr -dc '[:alnum:]' < /dev/urandom | head -c 30) write >> /var/lib/ganeti/rapi
_
users
echo
move-instance
$(tr -dc '[:alnum:]' < /dev/urandom | head -c 30) write >> /var/lib/ganeti/rapi
/
users
systemctl restart ganeti
6.
enter the passwords in two files on the target cluster, for
...
...
@@ -2241,18 +2252,22 @@ details.
--dest-ca-file=/var/lib/ganeti/rapi.pem
\
--opportunistic-tries=1
\
--iallocator=hail
\
--src-username=
gnt-dal
\
--src-password-file=gnt-chi.
users
\
--dest-username=
gnt-chi
\
--dest-password-file=gnt-dal.
users
\
--src-rapi-port=508
1
\
--src-username=
move-instance
\
--src-password-file=gnt-chi.
password
\
--dest-username=
move-instance
\
--dest-password-file=gnt-dal.
password
\
--src-rapi-port=508
0
\
--dest-rapi-port=5080
\
--net 0:ip=pool,network=gnt-dal-01
\
--keep-source-instance
\
--debug
\
Note that the `/var/lib/ganeti/rapi/users` files get overwritten
by Puppet, so that might be cleaned up after (or during) your
attempt.
Note that the above procedure depends on a patched version of
`move-instance`
, which was changed after the 3.0 Ganeti release, see
[
this comment
](
https://github.com/ganeti/ganeti/issues/1696#issuecomment-1465221351
)
for details.
Also note, that the
`/var/lib/ganeti/rapi/users`
files get overwritten
by Puppet, so that might be cleaned up after (or during) your attempt.
Currently fails with:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment