As we were attempting to upgrade our NSX-T environment using Ansible, we encountered an issue with uploading the MUB file to the NSX Manager. The error message we received was: “So it looks like the upload can’t handle files over 2GB.” This was due to the 2GB+ file size being the cause of the problem.
After consulting with one of our developers, we discovered that the issue was related to the httplib, urllib, or ssl modules in Python, and that the solution was to use streaming upload. To make the upload work, we installed the request-toolbelt package and edited the nsxt_upgrade_upload_mub.py file.
Here’s the updated code for lines 140-174:
NOTE: This will break the URL upload!
The response will show:
Solution is also added to a GitHub BUG report:
All kudos to my colleague for fixing the issue!
If you’re experiencing this issue when trying to upgrade your NSX-T environment using Ansible, you can try the following solution:
1. Install the request-toolbelt package by running the following command:
“`
pip install request-toolbelt
“`
2. Edit the nsxt_upgrade_upload_mub.py file and replace lines 140-174 with the updated code provided above.
3. Run the Ansible playbook again to upload the MUB file to the NSX Manager.
Note that this solution will break the URL upload, so you’ll need to use streaming upload instead. The response will show the solution, and it has also been added to a GitHub BUG report for further reference.
We hope this helps! If you have any questions or need further assistance, please don’t hesitate to reach out.