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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Cecylia Bocovich
Wiki Replica
Commits
58d516ec
Verified
Commit
58d516ec
authored
4 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
reorder and regroup the (long) instance creation section
parent
8b0daff4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/ganeti.md
+17
-11
17 additions, 11 deletions
howto/ganeti.md
with
17 additions
and
11 deletions
howto/ganeti.md
+
17
−
11
View file @
58d516ec
...
...
@@ -63,6 +63,8 @@ currently patched in our version of the Debian package, but that patch
might disappear if Debian upgrade the package without
[
shipping our
patch
](
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944538
)
.
### What that does
This configures the following:
*
redundant disks in a DRBD mirror, use
`-t plain`
instead of
`-t drbd`
for
...
...
@@ -81,15 +83,28 @@ This configures the following:
of the instance, see below.
*
with the
`test-01.torproject.org`
hostname
### Next steps
To find the root password, ssh host key fingerprints, and the IPv6
address, run this
**on the node where the instance was created**
, for
example:
egrep 'root password|configured eth0 with|SHA256' $(ls -tr /var/log/ganeti/os/* | tail -1) | grep -v $(hostname)
Note that you need to use the
`--node`
parameter to pick on which
We copy root's authorized keys into the new instance, so you should be able to
log in with your token. You will be required to change the root password immediately.
Pick something nice and document it in
`tor-passwords`
.
Also set reverse DNS for both IPv4 and IPv6 in
[
hetzner's robot
](
https://robot.your-server.de/
)
.
(Chek under servers -> vSwitch -> IPs)
Then follow
[
howto/new-machine
](
howto/new-machine
)
.
### When the allocator fails
Note that you may need to use the
`--node`
parameter to pick on which
machines you want the machine to end up, otherwise Ganeti will choose
for you. Use, for example,
`--node fsn-node-01:fsn-node-02`
to use
for you
(and may fail)
. Use, for example,
`--node fsn-node-01:fsn-node-02`
to use
`node-01`
as primary and
`node-02`
as secondary. It might be better to
let the Ganeti allocator do its job since it will, eventually do this
during cluster rebalancing. The allocator can sometimes fail if the
...
...
@@ -100,15 +115,6 @@ allocator is upset about something in the cluster, for example:
This situation is covered by
[
ticket 33785
](
https://bugs.torproject.org/33785
)
. If this problem
occurs, it might be worth
[
rebalancing the cluster
](
#Rebalancing-a-cluster
)
.
We copy root's authorized keys into the new instance, so you should be able to
log in with your token. You will be required to change the root password immediately.
Pick something nice and document it in
`tor-passwords`
.
Also set reverse DNS for both IPv4 and IPv6 in
[
hetzner's robot
](
https://robot.your-server.de/
)
.
(Chek under servers -> vSwitch -> IPs)
Then follow
[
howto/new-machine
](
howto/new-machine
)
.
## Modifying an instance
### CPU, memory changes
...
...
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