Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: "vzlist -H -o ctid -a" Outputs 0 at beginning of list when no ctid 0 exists  (Read 3134 times)

0 Members and 1 Guest are viewing this topic.

Jithin

  • Guest
Hi Guys,

You may have seen this bug before.

[root@vh6 ~]# vzlist -H -o ctid -a
         0  <--Should not output.  No CTID of 0 exists.
      2190
      2191
      2194
      2195
      2197

[root@vh6 ~]# vzlist -H -a
      2190         63 running   BLANKED
      2191         67 running   BLANKED
      2194         68 running   BLANKED
      2195         62 running   BLANKED
      2197         64 running   BLANKED

You may haven't faced any difficulties because of it because who cares if there is a "0" at the beginning, right" :) But when you are automating virtuozzo tasks using bash or other scripts, this use to cause headache.

This bug is already reported and Virtuozzo team fixed it it in the latest version of vzctl - 4.6.1

So, upgrade the vzctl and you won't face this again.

You can download vzctl - 4.6.1 from here >> http://openvz.org/Download/vzctl/4.6.1