Skip to main content

Reason's for instability of NSX-T Cluster

 

Some time back I had an issue where my NSX-T lab environment was showing unstable status. My environment consists of 3 NSX-T manager nodes aligned with the VIP IP address. 



The issue where I was unable to access my NSX-T console through VIP IP address nor with my other NSX-T nodes. It's quite intermittent I was able to access console UI from one of the manager node using admin account. However, unable to login to the manager's node using SSH with admin or root account.

As I said its quite intermitted where I managed to access the manager UI console. 

In the below Figure:1, it states that 1-2 manager nodes were showing unavailable.

Figure:1

On validating the "VIEW DETAILS" it clearly shows that /var/log partition was 100% full.

Figure:2

Now the main objective is to either compress or delete the old logs from /var/log partition to bring back the manager's node's. 

To accomplish this I booted the NSX-T node VM sequentially, mounting the Ubuntu image using rescue mode to clean up the required space under /var/log.

Verified the /var/log partition in manager nodes and found Syslog.1 was occupying a large space on this partition.
Figure:3

As per the above figure, it states that the Syslog was occupying huge space under /var/log. 
Also, is states that Syslog.1 was not rotated for a long time.

We can compress or delete the old logs file to maintain free space into /var/log location. From my view, I have deleted the old Syslog and other logs to maintain relevant space into the partition.

Later, I was able to login from SSH using Root password. However, system asked to change the password as the Root password got expired.

I used the below command to reset the root password and validating the expiry status.

Reset root password of NSX-T manager

set user <username> password  <new password> old-password <old-password>
ie:
set user root password VMware1!VMware1!!  old-password VMware1!VMware1!


After all the above mechanisms validated the NSX-T environment and found all NSX-T managers in good shape and showing in stable status.  partition of /var/log is having quite relevant space.


Figure:5

Now, curiosity increases to identify the root cause of the issue where SYSLOG was unable to rotate from log time.

To get more information I referred the logrotate file under /etc/logrotate.conf

logrotate.conf
#user the syslog group by default, since this is the owning group
# of /var/log/syslog.
Su root syslog

As per the above Logrotate.conf snippets, It states that the Syslog rotation was owned by the Root user.


The log rotate runs as a CRON daily task, executed by the "root" user. Since the Root password had expired, the daily log rotation CRON job was failed to authenticate for the rotation.


The log rotation runs as a CRON daily task, executed by the ‘root’ user. Since the root password expired, the daily log rotation CRON job was failing to authenticate.

logrotate.conf


All the above logs state that the issue with unstable of NSX-T is due to /var/log full occupancy by 100% and that's because unable to rotate the syslog. As logrotate.conf for syslog was governed by root partition and in this case root partition was expired and confirm the root cause of this issue.


Auth.log

<87>1 0000-00-00T10:34:01.345432_00+00 nsxt000010.virtualvmx.com CRON 5324—pam_unix{cron:account_:exipred password for user root (password aged)

<87>1 0000-00-00T10:34:01.494949_00+00 nsxt000010.virtualvmx.com CRON 3423—pam_unix{cron:account_:exipred password for user root (password aged)

<87>1 0000-00-00T10:34:01.928345_00+00 nsxt000010.virtualvmx.com CRON 8765—pam_unix{cron:account_:exipred password for user root (password aged)

<87>1 0000-00-00T10:34:01.492823_00+00 nsxt000010.virtualvmx.com CRON 4323—pam_unix{cron:account_:exipred password for user root (password aged)

<87>1 0000-00-00T10:34:01.492384_00+00 nsxt000010.virtualvmx.com CRON 7665—pam_unix{cron:account_:exipred password for user root (password aged)

<87>1 0000-00-00T10:34:01.492838_00+00 nsxt000010.virtualvmx.com CRON 4827—pam_unix{cron:account_:exipred password for user root (password aged)



All the above logs state that the issue with unstable of NSX-T is due to /var/log full occupancy by 100% and that's because unable to rotate the syslog. As logrotate.conf for syslog was governed by root partition and in this case root partition was expired and confirm the root cause of this issue.



One can validate the root password in NSX-T using the below command.


get user <username> password-expiation
ie:
get user root password-expiration


So, Its quite important to validate the root password expiration to avoid this kind of scenario into your environment.





















Comments

Popular posts from this blog

Changing the FQDN of the vCenter appliance (VCSA)

This article states how to change the system name or the FQDN of the vCenter appliance 6.x You may not find any way to change the FQDN from the vCenter GUI either from VAMI page of from webclient as the option to change the hostname always be greyed out. Now the option left is from the command line of VCSA appliance. Below steps will make it possible to change the FQDN of the VCSA from the command line. Access the VCSA from console or from Putty session. Login with root permission Use above command in the command prompt of VCSA : /opt/vmware/share/vami/vami_config_net Opt for option 3 (Hostname) Change the hostname to new name Reboot the VCSA appliance.   After reboot you will be successfully manage to change the FQDN of the VCSA . Note: Above step is unsupported by VMware and may impact your SSL certificate and face problem while logging to vSphere Web Client. If you are using self-signed certificate, you can regenerate the certificate with the

Collecting Logs from NSX-T Edge nodes using CLI

  This article explains how to extract the logs from NSX-T Edge nodes from CLI. Let's view the steps involved: 1) Login to NSX-T  Edge node using CLI from admin credentials. 2) Use of  " get support-bundle " for Log extraction. get support-bundle command will extract the complete logs from NSX-T manager/Edge nodes. nsx-manager-1> get support-bundle file support-bundle.tgz 3) Last step is to us e of " copy file support-bundle.tgz url " command. copy file will forward your collected logs from the NSX-T manager to the destination(URL) host from where you can download the logs. copy file support.bundle.tgz url scp://root@192.168.11.15/tmp Here, the URL specified is the ESXi host ( 192.168.11.15) under /tmp partition where logs will be copied and from there one can extract it for further log review. Happy Learning.  :)

Removing NSX-T manager extension from vCenter

In NSX-T starting from ver 2.4 NSX-T appliance got decoupled from vCenter where now its not mandatory to run NSX-T on vCenter platform only. Now NSX-T can be managed through standalone ESXi host, KVM or through container platform. As in version 2.4 there is still an option available to connect vCenter to NSX-T using Compute Manager. Here in this blog we will learn how we can unregister and register NSX-T extenstion from vCenter in case of any sync or vCenter connectivity issue with NSX-T. Lets get started.. 1) Login to NSX-T UI Go to -> System ->Compute Manager Here, vCenter is showing in Down status where the status is showing as "Not Registered" 2) When we click on "Not Registered" option its states below error. 3) When try to click on Resolve option its states below. At this stage if the Resolve option doesn't work then its require the remove the NSX-T extenstion from vCenter. To remove the NSX-T e