Closed Bug 1360338 Opened 7 years ago Closed 7 years ago

Install Python 3.5 and add exception rule to Windows 7 iX machines

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Unassigned)

References

Details

These are requirements for mitmproxy.
We would need to add the firewall rule.
Are you installing python 3 with tooltool? That would put the control in your hands and is done with a number of packages that have been put in tree. The reason we install python 2 is because it's needed for the initial hg checkouts.
That's neat!

Do you know who or where we can define a new Python to be downloaded via tooltool? I can't rememeber much about this.
Summary: Deploy Python 3.5 and add exception rule to Windows 7 iX machines → Add Python 3 exception rule to Windows 7 iX machines
What are the firewall exceptions?
Hi Q,
I believe we have Python exception rules for the iX Windows 7 test machines; could you please let us know if we need to provide you an exact path? or something else?

Thank you!
Flags: needinfo?(q)
Armen the path would be very helpful.

Q
Flags: needinfo?(q)
(In reply to Q from comment #5)
> Armen the path would be very helpful.
> 
> Q

Hi Q, I am interested on knowing what the current path for Python 2 is on the Win7 machines.
I want to see the path that we currently have.

I just had a memory come back and I believe we create a path to the Python binariy within Mozharness' venv.
If that is true we might not need to add a different rule for Python 3 as the binary name is the same.

We don't have the final prototype integrated into Mozharness and that is why I can't give you a path at this moment.
We need to install Python at the host level.

Could you please give us an estimate as to when this could be tackled?
The installer we want for these machines is this:
https://www.python.org/ftp/python/3.5.3/python-3.5.3.exe

The only customization to the installer is changing the installation path.

Please install it to:
C:\Python3.5

Q: With regards to the exception, please let me know what the current Python firewall exception is. I believe it might contain "venv" in the path and I will be proposing we add a new rule with the same path except it will be "venv_python3".
Flags: needinfo?(q)
Summary: Add Python 3 exception rule to Windows 7 iX machines → Install Python 3.5 and add exception rule to Windows 7 iX machines
I've received more information from other coworkers and I'm going to give using tooltool one moe try.

The firewall exception rule requirement still applies.
It seems that tooltool might be a go.
Local testing seems successful. We will test with the automation next week.
See Also: → 1361462
Q: what is the current Python *2.7* firewall exception path? (from comment 6)

If we could deploy the firewall exception for next week we will be able to test the Quantum mitmproxy project.
I expect most of the coding to be completed by then.
FYI, Q is on PTO till Monday
C:\slave\test\build\venv\scripts\python.exe
C:\mozilla-build\buildbotve\scripts\python.exe
C:\talos-slave\test\build\venv\scripts\python.exe
Flags: needinfo?(q)
:rwood, can you verify which rules we need and recommend any firewall rules to include in the image.  This might require python 3.5 to be running with mitmdump properly serving pages before we know fully.
Flags: needinfo?(rwood)
I've never worked with firewall rules before, can you guide me here on how to figure this out? Do I need to turn on a firewall on the win7 loaner somehow, and then try serving pages from mitmproxy and somewhere see what rules are needed? Thanks!
Flags: needinfo?(rwood) → needinfo?(jmaher)
this I am not sure what needs to be done.  I assume we will get a popup on a windows box asking to allow access for python.exe to access the network.  In this case we need to determine what path it is and ensure that firewall exception is added to the os configuration before running the tests.

Possibly there are no popups asking for this- usually there are a bunch though.
Flags: needinfo?(jmaher)
The first time mitmproxy (mitmdump) started up on the Win7 loaner there is a popup asking for permission for Python. Please add a firewall exception for these:

C:\slave\test\build\python3.6\python
C:\slave\test\py3venv
C:\slave\test\py3venv\Scripts

Thanks!
Flags: needinfo?(q)
I think we need python.exe full paths, rwood, can you ensure you have full path to python.exe and is it python.exe or python3.exe, etc.  There shoould be one in c:\slave\test\build and one in the venv somewhere.
Sorry Q, need more time to get the details
Flags: needinfo?(q)
C:\slave\test\build\python3.6\python.exe
C:\slave\test\py3venv\Scripts\python.exe

Thanks! :)
Flags: needinfo?(q)
Added
Flags: needinfo?(q)
Is this done now?
Flags: needinfo?(rwood)
I believe Q added it?
Flags: needinfo?(rwood) → needinfo?(q)
Oh wait saw Q's comment 20, yes this is done thanks
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(q)
Resolution: --- → FIXED
Blocks: 1362407
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.