Change loglevel VZTL_ERR to VZTL_INFO for upgrade cmd#PSBM-150404VZTL_ERR log level adds "Error: " prefix to the out string, thus output
string may be confusing.
We change log level to VZTL_INFO for vzpkg upgrade check-only option.
Signed-off-by: Fima <efim.shevrin@virtuozzo.com>
Fix vzpkg options pasrsing #PSBM-151272-F option is screened by Q option in parsing that leads to parsing errors.
We fix get_opt func options.
Signed-off-by: Fima <efim.shevrin@virtuozzo.com>
merge fix: restore after merge conflicts lost lines #PSBM-151218This patch fixes commit: 68c3b6fa61464756bbaac68da2228350886256d7
Add releasever option in vzpkg #PSBM-150864
which was merged from vz7-u21 with conflicts.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Add options allowerasing in vzpkg #PSBM-151079allowerasing is yum option, it allows erasing of
installed packages to resolve dependencies. Adding this option
allows you to transfer it in yum cmd from the vzpkg client.
Signed-off-by: Fima <efim.shevrin@virtuozzo.com>
Add releasever option in vzpkg #PSBM-150864vcpkg releasever option is equivalent to the same option in yum.
Allows direct transmission pass the release version of the repository to yum cmd.
Signed-off-by: Fima <efim.shevrin@virtuozzo.com>
Conflicts:
include/vztt_options.h
man/vzpkg.8.in
src/vztt.c
cache: fix cache for simfs #PSBM-145013simfs - it is kind of cache container and it
cannot be combined with other image formats like
'qcow2' and 'ploopv2'.
'vzpkg' utility should check value of VEFSTYPE
and skip handling image format for 'simfs' value.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Incorrect parsing of rpm package data #PSBM-149099Some distributions use different character delimiters when reading
rpm package info, so the current substring search leads to errors.
We rework the output parsing of the in rpm_info method.
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
yum: prohibit using allowerasing option for yum #PSBM-144469Old versions of yum does not have such options. We need to get more
descriptions to determine when we should enable this feature.
This patch revert previous 39fbe73cee072 commit.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
yum: use allowerasing for yum upgrade running #PSBM-144469The obsolete lists for such cases will never become compliant.
So probably need just start erasing obsoleted packages.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
cache: introduce timeout parameter for creating cache #PSBM-142106Timeout parameter defines timeout period of locked cache in seconds.
It allows several vzpkg utilities to work simultaneously.
If timeout is not set or it equals zero, vzpkg will wait for cache
infinite.
Previously we used for zero timeout non-blocking lock F_SETLK and
now we will always use blocking lock with wait F_SETLKW for cache.
Also we use existing cache and do not fail if after locking ...
package-list: restore next element of package list after removing #PSBM-142881Memory corruption fix. Deleting current element from package list brings a
corupted memory for the next element. Keep it and restore after for returning
value.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
fix remove cache for template, remove all caches if veimgfmt or vefstype is not set in command line #PSBM-141152Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Merge pull request #51 in OVZ/vztt from ~ALEKSANDR.LESKIN/vztt:PSBM-141110 to master* commit '87b5f988ae8e85e7d5fd74519917382f26dce54d':
fixed using default fstype as xfs #PSBM-141110
Merge pull request #50 in OVZ/vztt from ~ALEKSANDR.LESKIN/vztt:PSBM-141108 to master* commit '8d91e0f5b322228d15d9d9eea61a1e3d92cedccd':
improve error message for empty fstype parameter #PSBM-141108
add warning message for unknown image format type #PSBM-141108