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
cf4ff6ce
Unverified
Commit
cf4ff6ce
authored
4 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
gnt-chi node docs
parent
2188454b
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
+69
-4
69 additions, 4 deletions
howto/ganeti.md
with
69 additions
and
4 deletions
howto/ganeti.md
+
69
−
4
View file @
cf4ff6ce
...
...
@@ -893,7 +893,7 @@ catastrophic data loss bug in Ganeti or [howto/drbd](howto/drbd).
## Installation
### New node
### New
gnt-fsn
node
1.
To create a new box, follow
[
howto/new-machine-hetzner-robot
](
howto/new-machine-hetzner-robot
)
but change
the following settings:
...
...
@@ -932,9 +932,8 @@ catastrophic data loss bug in Ganeti or [howto/drbd](howto/drbd).
reboot
8.
Prepare all the nodes by configuring them in puppet. They should
be in the class
`roles::ganeti::fsn`
if they are part of the fsn
cluster.
8.
Prepare all the nodes by configuring them in Puppet, by adding the
class
`roles::ganeti::fsn`
to the node
9.
Re-enable modules disabling:
...
...
@@ -989,6 +988,72 @@ catastrophic data loss bug in Ganeti or [howto/drbd](howto/drbd).
ssh fsn-node-03.torproject.org "puppet agent -t; service ipsec reload"
ssh fsn-node-06.torproject.org "puppet agent -t; service ipsec reload; ipsec up gnt-fsn-be::fsn-node-03"
### New gnt-chi node
1.
to create a new box, follow the
[
cymru new-machine howto
](
howto/new-machine-cymru
)
2.
follow the
[
howto/new-machine
](
howto/new-machine
)
post-install configuration
3.
Allocate a private IP address in the
`30.172.in-addr.arpa`
zone for
the node, in the
`admin/dns/domains.git`
repository
4.
add the private IP address to the eth1 interface, for example in
`/etc/network/interfaces.d/eth1`
:
auto eth1
iface eth1 inet static
address 172.30.130.1
5.
enable the interface:
ifup eth1
6.
allow modules to be loaded and reboot:
touch /etc/no_modules_disabled
reboot
7.
configure the node in Puppet by adding it to the
`roles::ganeti::chi`
class, and run Puppet on the new node:
puppet agent -t
8.
re-disable module loading:
rm /etc/no_modules_disabled
9.
run puppet across the ganeti cluster to firewalls are correctly
configured:
cumin -p 0 'C:roles::ganeti::chi' 'puppet agent -t'
10.
Then the node is ready to be added to the cluster, by running
this on the master node:
gnt-node add \
--secondary-ip 172.30.130.2 \
--no-ssh-key-check \
--no-node-setup \
chi-node-02.torproject.org
If this is an entirely new cluster, you need a different procedure:
gnt-cluster init \
--master-netdev eth1 \
--vg-name vg_ganeti \
--secondary-ip 172.30.130.1 \
--enabled-hypervisors kvm \
--mac-prefix 00:66:38 \
--no-ssh-init \
--no-etc-hosts \
chignt.torproject.org
The above assumes that `chignt` is already in DNS.
11.
make sure everything is great in the cluster:
gnt-cluster verify
### cluster config
These could probably be merged into the cluster init, but just to document what has been done:
...
...
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