John Wolfe [Fri, 6 May 2022 21:28:00 +0000 (14:28 -0700)]
Fix a compilation issue in the containerInfo plugin for i386 builds.
The "gint64" type used for time values in the code is not a "long" on
i386. The fix using the glib "G_GINT64_FORMAT" macro was provided by
the Debian OVT maintainer.
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
Improve the "don't touch this" comments for Linux guest identification.
Pull requests to add distro identification information are often submitted.
Open-vm-tools does not own the guest identification code. Such a change
requires coordinated changes throughout the VMware product stack.
Improve the text to reduce pull requests for changes to common source
code that open-vm-tools does not own and cannot make.
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
ContainerInfo Plugin: correct compiler warnings in containerInfo_grpc.cc
- The local variable "containersAdded" should be an 'unsigned int' since
it's compared with an 'unsigned int' parameter.
- Remove the unreferenced local variable "numContainers".
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
Adding configuration information for the GlobalConf feature.
As part of the GlobalConf feature, a "globalconf" section is introduced
into tools.conf to provide custom configuration options for the feature.
The configuration parameters are as follows:
* enabled=false - Enable/disable the GlobalConf module.
* poll-interval=3600 - Poll interval for the GlobalConf feature.
* resource=<path> - Defines the location of the tools.conf in the
GuestStore. There is a separate default for Windows
and Linux guests.
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
asyncsocket.c: Use size_t in place of int type for array size and indexing.
Glibc 2.35 with GCC 11 and 12 produces additional warnings about strings
and array bounds. Switching from "int" to "size_t" type for variable
used for the array size and element indexing.
GCC warned when an integer value is passed as the size of the
struct pollfd array to poll().
John Wolfe [Tue, 19 Apr 2022 21:30:54 +0000 (14:30 -0700)]
Improve the "don't touch this" comments for Linux guest identification.
Pull requests to add distro identification information are often submitted.
Open-vm-tools does not own the guest identification code. Such a change
requires coordinated changes throughout the VMware product stack.
Improve the text to reduce pull requests for changes to common source
code that open-vm-tools does not own and cannot make.
John Wolfe [Tue, 19 Apr 2022 21:30:54 +0000 (14:30 -0700)]
Added the following miscellaneous checks for the deploypkg plugin.
1. Check if the plugin is running in a VMware VM.
2. Check if the plugin is loaded by the main tools service.
3. Check if the underlying hypervisor is ESXi.
John Wolfe [Tue, 19 Apr 2022 21:30:53 +0000 (14:30 -0700)]
ContainerInfo Plugin: correct compiler warnings in containerInfo_grpc.cc
- The local variable "containersAdded" should be an 'unsigned int' since
it's compared with an 'unsigned int' parameter.
- Remove the unreferenced local variable "numContainers".
John Wolfe [Mon, 4 Apr 2022 19:58:41 +0000 (12:58 -0700)]
Generalize VMX RPC code in vgauthservice.
- Rework the code so that it can used for other RPCs in the future.
- Rework the code reading the RPC reply, since it can now be much larger.
- Also remove the attempt to use the "guest.log.text" RPC since the VMX
will just drop the logging on the floor with no error if the virtual
HW version is too old. A smart fail over is not possible.
John Wolfe [Thu, 10 Mar 2022 20:06:56 +0000 (12:06 -0800)]
Update ChangeLog with the granular push of Mar. 10, 2022.
- plus README.md updates related to 12.0.0 OVT release.
- plus ChangeLog update of Feb. 17, 2022.
John Wolfe [Wed, 2 Mar 2022 23:21:37 +0000 (15:21 -0800)]
Preparing for the 12.0.0 OVT release
- configure.ac: set release version - 2 spots.
- lib/include/buildNumber.h: Set build number and product build number.
John Wolfe [Wed, 23 Feb 2022 00:52:02 +0000 (16:52 -0800)]
Update the list of operating system with open-vm-tools. Add:
* Flatcar Container Linux, all releases
* Rocky 8 and later releases
* AlmaLinux OS 8 and later releases
John Wolfe [Wed, 23 Feb 2022 00:52:02 +0000 (16:52 -0800)]
Update the list of operating system with open-vm-tools. Add:
* Flatcar Container Linux, all releases
* Rocky 8 and later releases
* AlmaLinux OS 8 and later releases
John Wolfe [Thu, 17 Feb 2022 22:51:25 +0000 (14:51 -0800)]
Adding configuration information for the GlobalConf feature.
As part of the GlobalConf feature, a "globalconf" section is introduced
into tools.conf to provide custom configuration options for the feature.
The configuration parameters are as follows:
* enabled=false - Enable/disable the GlobalConf module.
* poll-interval=3600 - Poll interval for the GlobalConf feature.
* resource=<path> - Defines the location of the tools.conf in the
GuestStore. There is a separate default for Windows
and Linux guests.
John Wolfe [Thu, 17 Feb 2022 22:51:25 +0000 (14:51 -0800)]
asyncsocket.c: Use size_t in place of int type for array size and indexing.
Glibc 2.35 with GCC 11 and 12 produces additional warnings about strings
and array bounds. Switching from "int" to "size_t" type for variable
used for the array size and element indexing.
GCC warned when an integer value is passed as the size of the
struct pollfd array to poll().
Added code to skip terminated/stopped containers. This is done
by using TaskStub to retrieve the pid for the running container.
If the pid cannot be retrieved, then that container is skipped.
The previously suppressed "default" namespace has been restored.
Fixed another minor issue with calculating the number of containers
that were added.
Note: This changeset introduces a dependency on Tasks.proto, and
Tasks.proto depends on a few other proto files like mount, metrics,
descriptor and task. Modified the makefile to generate the necessary
C++ files from the proto files.
Additional notes:
- .proto -> generates .pb.h, .pb.c and .grpc.pb.cc files.
- For compiling and building the library (.so file), the .grpc.pb.{h,cc}
and .pb.{h,cc} files are needed.
- The protoc compiler generates .pb.h and .pb.c files when the --cpp_out
option is specified.
- The protoc compiler generates .grpc.pb.* when the --grpc_out option is
specified.