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

Issue : Configure Management Network option is Grayed out into ESXi

Last week I got into an issue of one of my client into Vsphere environment where one of its ESXi went done out of the network. Issue was IP address was showing 0.0.0.0 on main Esxi screen and when I tried to change the network configuration, its " Configure Management network option was greyed out.  I tried to gid into it and try to analyis its vmKernal and vmwarning logs. What I found is its VMkernal switch got removed due to unexpected reason. So to resolve the issue I tried to reconfigure its vswitch0 (vmk0) by going into Tech Mode of that Exi. Below are the steps which I followed to resolve the issue. 1) Login to ESXi 2) Press F2, Check if you " Configure Management network " is greyed out or not" if yes,    follow below 3) Press ALT+F1 to move the ESXi screen to tech mode   ( This is command line like dos) 4) login with root account 5) Run the following command into it esxcli network ip interface add --interface-name= vmk0

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.  :)