[Devel] Remove logmessage when entering VE

Kirill Korotaev dev at sw.ru
Tue Oct 10 05:48:46 PDT 2006


Kristian,

your comment looks quite reasonable.
a) --quite and --verbose affect console output only.
b) LOGLEVEL to affect log file output.

Sounds fine.

Thanks,
Kirill

> On Monday den 9. October 2006 19:03, Kirill Korotaev wrote:
> 
> 
>>>I want information in my logfile, but a quiet console.
> 
> 
>>Mmm, I can't see many usecases... can you describe how you use it?
>>usually higher log levels are needed for debugging only...
> 
> 
> I don't think loglevel should make any difference for console output.
> I don't think --verbose should make any difference for logfile loglevel.
> 
> As I would like it:
> I would like level 2 log in my logfile and "none" on the console.
> If I have a problem I would use --verbose on the cmd-line to raise
> level on console or look in the logfile.
> 
> Logfile on start: (this is the same as standard loglevel 2)
> VE 1010 : Starting VE ...
> VE 1010 : Mounting root: /var/.../root/1010 /var/.../private/vz20061009
> VE 1010 : Running: /etc/vz//conf/vps.mount
> VE 1010 : VE is mounted
> VE 1010 : Running VE script: /etc/vz/dists/scripts/none
> VE 1010 : Setting CPU limit: 50
> VE 1010 : Setting CPU units: 1000
> VE 1010 : Configure meminfo: 10240
> VE 1010 : Set hostname: vs1010
> VE 1010 : Running VE script: /etc/vz/dists/scripts/none
> VE 1010 : Configure veth devices: ve1010.0
> VE 1010 : Running: /usr/sbin/vznetcfg init veth ve1010.0
> VE 1010 : VE start in progress...
> 
> Today (standard level 0)
> # vzctl start 1010
> Starting VE ...
> VE is mounted
> Setting CPU limit: 50     (--verbose)
> Setting CPU units: 1000     (--verbose)
> Configure meminfo: 10240     (--verbose)
> Set hostname: vs1010
> Configure veth devices: ve1010.0
> VE start in progress...
> 
> As I would like it (loglevel should not matter):
> # vzctl start 1010
> Starting VE ...
> VE is mounted
> Set hostname: vs1010      (maybe --verbose)
> Configure veth devices: ve1010.0     (maybe --verbose)
> VE start in progress...
> 
> (--verbose, same as today)
> # vzctl --verbose start 1010
> Unable to open /usr/lib/vzctl/modules/: No such file or directory
> Starting VE ...
> Mounting root: /var/.../root/1010 /var/.../private/vz20061009
> Running: /etc/vz//conf/vps.mount
> VE is mounted
> Running VE script: /etc/vz/dists/scripts/none
> Setting CPU limit: 50
> Setting CPU units: 1000
> Configure meminfo: 10240
> Set hostname: vs1010
> Running VE script: /etc/vz/dists/scripts/none
> Configure veth devices: ve1010.0
> Running: /usr/sbin/vznetcfg init veth ve1010.0
> VE start in progress...
> 
> Then I could have:
> # vzctl enter 1010
> entered into VE 1010
> root at dev-test2:/# 
> 
> # vzctl --verbose enter 1010
> entered into VE 1010
> Open /dev/pts/0
>                root at dev-test2:/# 
> 
> 
> 
>>I suppose CONSOLE_LEVEL option can be added.
> 
> Don't think it's needed.
> 
> 
>>Care to make a patch?
> 
> Maybe. If you like the above, and give me some pointers.
> --quiet is a little to quiet :-)
> 
> 
>>Thanks,
>>Kirill
> 
> 
> Regards,
> Kristian.
> 




More information about the Devel mailing list