NSX-T pre-check upgrades failed - NSX Manager /tmp size.
book
Article ID: 330391
calendar_today
Updated On:
Products
VMware NSX
Issue/Introduction
Symptoms:
- Pre-check are failing because of the size of /tmp on one or more NSX-T Manager.
- File name bar is present on the /tmp partition and its size if over 1GB.
- The file /tmp/bar contained the same line over and over:
req.environ {'SERVER_NAME': 'localhost', 'SCRIPT_NAME': '', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_SOFTWARE': 'gevent/1.1 Python/3.5', 'wsgi.url_scheme': 'http', 'REMOTE_PORT': 57580, 'wsgi.errors': <management_api.webserver.utils.configStdOutAndErr.<locals>.StdOutAndErrLog object at 0x36453b544a8>, 'HTTP_X_NSX_USERNAME': 'admin', 'SERVER_PORT': '7441', 'wsgi.multithread': False, 'HTTP_ACCEPT_ENCODING': 'identity', 'REQUEST_METHOD': 'GET', 'wsgi.run_once': False, 'webob._parsed_query_vars': (GET([]), ''), 'QUERY_STRING': '', 'wsgi.version': (1, 0), 'webob.adhoc_attrs': {'request_obj': <RestRoutineRequest at 0x364513d4588 GET http://127.0.0.1:7441/api/v1/node/services>, 'descriptor_factory': <management_api.descriptors.descriptor_factory.DescriptorFactory object at 0x36453b57dd8>, 'path_args': {}, 'username': 'admin', 'task_status': <management_api.napi.task_manager.TaskStatus object at 0x364513d4e80>, 'user_name': None, 'auth_scheme': <management_api.webserver.webauth.UpstreamAuth object at 0x364514715f8>, 'server_auths': [<management_api.webserver.webauth.UpstreamAuth object at 0x364514715f8>], 'principal': '', 'descriptor': <management_api.descriptors.rest_routine_descriptor.RestRoutineDescriptor object at 0x36453c57c88>, 'auth_required': True}, 'wsgi.input': <gevent.pywsgi.Input object at 0x36452d2cd08>, 'HTTP_HOST': '127.0.0.1:7441', 'SERVER_PROTOCOL': 'HTTP/1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.multiprocess': False, 'PATH_INFO': '/api/v1/node/services'}
Cause
The upgrade of the NSX-T environment is not possible unless the /tmp/bar file is cleaned up.
Resolution
Upgrade to NSX-T 3.1 and newer
Workaround:
Empty the file /tmp/bar with the command: echo > /tmp/bar
Feedback
thumb_up
Yes
thumb_down
No