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
caa4121f
Verified
Commit
caa4121f
authored
8 months ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
add example query to list all *other* hosts than ganeti on reboot
parent
01bb26c3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#182856
passed with warnings
8 months ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
howto/puppet.md
+4
-4
4 additions, 4 deletions
howto/puppet.md
howto/upgrades.md
+11
-1
11 additions, 1 deletion
howto/upgrades.md
with
15 additions
and
5 deletions
howto/puppet.md
+
4
−
4
View file @
caa4121f
...
...
@@ -791,12 +791,12 @@ The currently known values are: `kvm`, `physical`, and `xenu`.
*
Using
[
howto/cumin
](
howto/cumin
)
*
Using LDAP:
ldapsearch -H ldap://db.torproject.org -x -ZZ -b "ou=hosts,dc=torproject,dc=org" '
*
' hostname | sed -n '/hostname/{s/hostname: //;p}' | sort
HOSTS=$(ssh alberti.torproject.org 'ldapsearch -H ldap://db.torproject.org -x -ZZ -b dc=torproject,dc=org -LLL "hostname=*.torproject.org" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort')
for i in `echo $HOSTS`; do mkdir hosts/x-$i 2>/dev/null || continue; echo $i; ssh $i ' ...'; done
Same, but only hosts not in a Ganeti cluster:
the `mkdir` is so that I can run the same command in many terminal
windows and each host gets only one once
ldapsearch -H ldap://db.torproject.org -x -ZZ -b "ou=hosts,dc=torproject,dc=org" '(!(physicalHost=gnt-*))' hostname | sed -n '/hostname/{s/hostname: //;p}' | sort
[
PuppetDB API
]:
https://puppet.com/docs/puppetdb/4.3/api/index.html
[
fact API
]:
https://puppet.com/docs/puppetdb/4.3/api/query/v4/facts.html
...
...
This diff is collapsed.
Click to expand it.
howto/upgrades.md
+
11
−
1
View file @
caa4121f
...
...
@@ -320,7 +320,17 @@ See the [Ganeti reboot procedures](howto/ganeti#rebooting) for this procedure.
## Remaining nodes
The
[
Nagios unhandled problems
](
https://nagios.torproject.org/cgi-bin/icinga/status.cgi?allunhandledproblems
)
will show remaining hosts that
might have been missed by the above procedure.
might have been missed by the above procedure.
But if you want to run more upgrades in parallels and are doing a
fleet-wide reboot, while running the Ganeti reboots (above), you can
perform reboots on the hosts
*not*
on Ganeti cluster by pulling the
list of hosts from LDAP:
ldapsearch -H ldap://db.torproject.org -x -ZZ -b "ou=hosts,dc=torproject,dc=org" '(!(physicalHost=gnt-*))' hostname | sed -n '/hostname/{s/hostname: //;p}' | sort
... and then pick the hosts judiciously to avoid overlapping with
hosts in the same rotation currently rebooting in Ganeti.
## Userland reboots
...
...
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