Re: [tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-11-11 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  anarcat
 Type:  defect   | Status:
 |  needs_review
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by anarcat):

 filed [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944538 bug
 944538] in the debian bts to get stable updated...

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-10-10 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  anarcat
 Type:  defect   | Status:
 |  needs_review
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by anarcat):

 I audited all the machines accessible through Cumin, and found the
 following machines without proper caps set:

 * crm-ext-01.torproject.org
 * crm-int-01.torproject.org
 * gitlab-01.torproject.org
 * hetzner-hel1-01.torproject.org
 * hetzner-nbg1-01.torproject.org
 * oo-hetzner-03.torproject.org

 It's strange, because they also didn't have the `getcap` binary (from the
 `libcap2-bin`) package was also missing. So I ran this everywhere:

 {{{
 apt install libcap2-bin; getcap /bin/ping | grep -q . || apt install
 --reinstall iputils-ping; getcap /bin/ping
 }}}

 Particularly interesting are `hetzner-hel1-01.torproject.org` and
 `hetzner-nbg1-01.torproject.org` because they were setup using the Hetzner
 cloud stuff, so our install procedure is broken there as well.

 So, long story short, remaining todo is:

  1. document the workaround in the ganeti installer
  2. ship the new package in Debian, get it to stable
  3. fix the hetzner-cloud installer or at least add a node to check it
  4. check the other installers

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-10-10 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  anarcat
 Type:  defect   | Status:
 |  needs_review
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by anarcat):

 * status:  assigned => needs_review


Comment:

 i tested this and it seems to work. next step is to have another person
 confirm that, to get this merged in the debian package, have an upload to
 fix it in unstable and then stable, and then deploy this debian package on
 the nodes.

 in the meantime, we should at least add a note in the new-machine docs
 before this ticket is marked as resolved.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-10-10 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  anarcat
 Type:  defect   | Status:
 |  assigned
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by anarcat):

 * status:  needs_information => assigned
 * owner:  tpa => anarcat


Comment:

 i confirm the problem occurs when the filesystem is cached. filed the bug
 in Debian in https://bugs.debian.org/942114 and wrote a patch that fixes
 the problem, deployed on both nodes.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-10-10 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  tpa
 Type:  defect   | Status:
 |  needs_information
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by anarcat):

 I reinstalled `iputils-ping` on gettor-01 and confirms it fixes the
 problem. I have not done that on bacula-director-01, just to be clear.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-10-10 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  tpa
 Type:  defect   | Status:
 |  needs_information
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by anarcat):

 * status:  new => needs_information


Comment:

 I'm not sure how this happened on loghost, but it didn't happen on bacula-
 director-01, as created in #31786 (which has the detailed commandline used
 in the creation).

 {{{
 root@bacula-director-01:~# /sbin/getcap /usr/bin/ping
 /usr/bin/ping = cap_net_raw+ep
 root@bacula-director-01:~# stat /usr/bin/ping
   Fichier : /usr/bin/ping
Taille : 65272   Blocs : 128Blocs d'E/S : 4096   fichier
 Périphérique : 801h/2049d   Inœud : 137498  Liens : 1
 Accès : (0755/-rwxr-xr-x)  UID : (0/root)   GID : (0/root)
  Accès : 2019-10-03 20:31:00.957049432 +
 Modif. : 2018-08-03 16:53:09.0 +
 Changt : 2019-10-03 20:30:49.057153189 +
   Créé : -
 root@bacula-director-01:~#
 }}}

 On the other hand, gettor-01, created as part of #31785, *does* have the
 problem so I'm not sure what's going on here.

 {{{
 root@gettor-01:~# getcap /usr/bin/ping
 root@gettor-01:~# stat /usr/bin/ping
   Fichier : /usr/bin/ping
Taille : 65272   Blocs : 128Blocs d'E/S : 4096   fichier
 Périphérique : 801h/2049d   Inœud : 393547  Liens : 1
 Accès : (0755/-rwxr-xr-x)  UID : (0/root)   GID : (0/root)
  Accès : 2019-10-04 11:56:47.972263612 +
 Modif. : 2018-08-03 16:53:09.0 +
 Changt : 2019-10-02 17:16:26.60031 +
   Créé : -
 root@gettor-01:~#
 }}}

 It seems to me we don't have a clear way of reproducing this. From here
 on, maybe we need VM creators to *explicitly* document exactly which steps
 were taken to create the box? Maybe there's a slight change in the way
 partitions are created or something...

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #31781 [Internal Services/Tor Sysadmin Team]: ping on new VMs

2019-09-18 Thread Tor Bug Tracker & Wiki
#31781: ping on new VMs
-+-
 Reporter:  weasel   |  Owner:  tpa
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Internal Services/Tor Sysadmin Team  |Version:
 Severity:  Normal   |   Keywords:
Actual Points:   |  Parent ID:
   Points:   |   Reviewer:
  Sponsor:   |
-+-
 the VMs set up on the gnt-fsn cluster seem to have a broken ping.

 ping is not suid root nor is the cap set on at least web-fsn-02 and
 loghost01:
 {{{
 weasel@loghost01:~$ /sbin/getcap /usr/bin/ping
 weasel@loghost01:~$
 }}}
 meaning ping does not work as an unprivileged user:
 {{{
 weasel@loghost01:~$ ping localhost
 ping: socket: Operation not permitted
 e2:weasel@loghost01:~$
 }}}

 This could likely be fixed with re-installing `iputils-ping` or setting
 `cap_net_raw+ep` manually, but we should figure out why the instance-
 debbotstrap installed machines are broken this way.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs