Hello community,
here is the log from the commit of package google-compute-engine for openSUSE:Factory checked in at 2018-02-02 22:23:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/google-compute-engine (Old)
and /work/SRC/openSUSE:Factory/.google-compute-engine.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "google-compute-engine"
Fri Feb 2 22:23:20 2018 rev:6 rq:572025 version:20180129
Changes:
--------
--- /work/SRC/openSUSE:Factory/google-compute-engine/google-compute-engine.changes 2017-12-08 12:59:53.800249085 +0100
+++ /work/SRC/openSUSE:Factory/.google-compute-engine.new/google-compute-engine.changes 2018-02-02 22:23:35.342215149 +0100
@@ -1,0 +2,11 @@
+Fri Feb 2 13:21:52 UTC 2018 - adrian.glaubitz@suse.com
+
+- Update to version 20180129 (bsc#1078349, bsc#1079077)
+ + Improve rsyslog daemon reset when using the dhcp exit hook.
+ + The OS Login feature is generally available.
+ + Change the OS Login uid restriction to allow uid 1000.
+ + Close socket connections after requesting metadata.
+- From version 20171213
+ + Force IPv4 for Debian apt configs.
+
+-------------------------------------------------------------------
Old:
----
compute-image-packages-20171129.tar.gz
New:
----
compute-image-packages-20180129.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ google-compute-engine.spec ++++++
--- /var/tmp/diff_new_pack.Qi4l9a/_old 2018-02-02 22:23:36.366167351 +0100
+++ /var/tmp/diff_new_pack.Qi4l9a/_new 2018-02-02 22:23:36.370167164 +0100
@@ -1,7 +1,7 @@
#
# spec file for package google-compute-engine
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,10 @@
#
-%define setup_version 2.7.2
+%define setup_version 2.7.5
Name: google-compute-engine
-Version: 20171129
+Version: 20180129
Release: 0
Summary: GCE Instance Initialization
License: Apache-2.0
++++++ compute-image-packages-20171129.tar.gz -> compute-image-packages-20180129.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/LICENSE new/compute-image-packages-20180129/LICENSE
--- old/compute-image-packages-20171129/LICENSE 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/LICENSE 2018-01-30 02:41:05.000000000 +0100
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
- Copyright 2013 Google Inc.
+ Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/debian/changelog new/compute-image-packages-20180129/debian/changelog
--- old/compute-image-packages-20171129/debian/changelog 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/debian/changelog 2018-01-30 02:41:05.000000000 +0100
@@ -1,3 +1,27 @@
+google-compute-image-packages (2.7.5-1) stable; urgency=low
+
+ * Revert hostname setting change in Debian.
+
+ -- Google Cloud Team Mon, 29 Jan 2018 12:00:00 -0700
+
+google-compute-image-packages (2.7.4-1) stable; urgency=low
+
+ * Fix hostname setting in Debian.
+
+ -- Google Cloud Team Mon, 29 Jan 2018 12:00:00 -0700
+
+google-compute-image-packages (2.7.3-1) stable; urgency=low
+
+ * Improve hostname setting and correctly restart rsyslog.
+
+ -- Google Cloud Team Thu, 25 Jan 2018 12:00:00 -0700
+
+google-compute-image-packages (2.7.2-2) stable; urgency=low
+
+ * Force IPv4 for apt.
+
+ -- Google Cloud Team Wed, 13 Dec 2017 12:00:00 -0700
+
google-compute-image-packages (2.7.2-1) stable; urgency=low
* Generate SSH host keys when none are present.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/debian/control new/compute-image-packages-20180129/debian/control
--- old/compute-image-packages-20171129/debian/control 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/debian/control 2018-01-30 02:41:05.000000000 +0100
@@ -28,6 +28,7 @@
python-google-compute-engine (= ${source:Version}),
python3-google-compute-engine (= ${source:Version}),
chrony | ntp | time-daemon | systemd,
+ rsyslog,
systemd
Recommends: google-cloud-sdk
Conflicts: google-compute-engine-jessie,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/debian/google-compute-engine.install new/compute-image-packages-20180129/debian/google-compute-engine.install
--- old/compute-image-packages-20171129/debian/google-compute-engine.install 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/debian/google-compute-engine.install 2018-01-30 02:41:05.000000000 +0100
@@ -1,6 +1,7 @@
google_compute_engine_init/systemd/*.service lib/systemd/system
google_compute_engine_init/systemd/90-google-compute-engine.preset lib/systemd/system-preset
google_config/apt/01autoremove-gce etc/apt/apt.conf.d
+google_config/apt/99ipv4-only etc/apt/apt.conf.d
google_config/bin/google_set_hostname etc/dhcp/dhclient-exit-hooks.d
google_config/rsyslog/* etc/rsyslog.d
google_config/sysctl/* etc/sysctl.d
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/Makefile new/compute-image-packages-20180129/google_compute_engine_oslogin/Makefile
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/Makefile 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/Makefile 2018-01-30 02:41:05.000000000 +0100
@@ -4,7 +4,7 @@
NAME = google-compute-engine-$(BASENAME)
MAJOR = 1
MINOR = 1
-REVISION = 2
+REVISION = 4
NSS_LIBRARY_NAME = libnss_$(NAME)-$(MAJOR).$(MINOR).$(REVISION).so
NSS_LIBRARY_SONAME = libnss_$(BASENAME).so.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/bin/google_oslogin_control new/compute-image-packages-20180129/google_compute_engine_oslogin/bin/google_oslogin_control
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/bin/google_oslogin_control 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/bin/google_oslogin_control 2018-01-30 02:41:05.000000000 +0100
@@ -85,9 +85,22 @@
add_to_pam_config() {
remove_from_config ${pam_config}
- sed -i "/account.*pam_nologin.so/ a${added_comment}\n${pam_admin}" ${pam_config}.new
- sed -i "/account.*pam_nologin.so/ a${added_comment}\n${pam_login}" ${pam_config}.new
- sed -i "/pam_loginuid.so/ a${added_comment}\n${pam_homedir}" ${pam_config}.new
+ if grep -q -s "ID=cos" /etc/os-release; then
+ # For COS simply prepend the new config.
+ added_config="\
+${added_comment}
+${pam_admin}
+${added_comment}
+${pam_login}
+${added_comment}
+${pam_homedir}
+"
+ echo "${added_config}$(cat ${pam_config}.new)" > ${pam_config}.new
+ else
+ sed -i "/account.*pam_nologin.so/ a${added_comment}\n${pam_admin}" ${pam_config}.new
+ sed -i "/account.*pam_nologin.so/ a${added_comment}\n${pam_login}" ${pam_config}.new
+ sed -i "/pam_loginuid.so/ a${added_comment}\n${pam_homedir}" ${pam_config}.new
+ fi
}
restart_service() {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian8/changelog new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian8/changelog
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian8/changelog 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian8/changelog 2018-01-30 02:41:05.000000000 +0100
@@ -1,3 +1,15 @@
+google-compute-engine-oslogin (1.1.4-1+deb8) unstable; urgency=low
+
+ * Close socket connections when requesting metadata.
+
+ -- Google Cloud Team Mon, 29 Jan 2018 12:00:00 -0700
+
+google-compute-engine-oslogin (1.1.3-1+deb8) unstable; urgency=low
+
+ * Change the OS Login uid restriction to allow uid 1000.
+
+ -- Google Cloud Team Thu, 25 Jan 2018 12:00:00 -0700
+
google-compute-engine-oslogin (1.1.2-1+deb8) unstable; urgency=low
* Fix parsing logic for expiration time on SSH public keys.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian8/google-compute-engine-oslogin.links new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian8/google-compute-engine-oslogin.links
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian8/google-compute-engine-oslogin.links 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian8/google-compute-engine-oslogin.links 2018-01-30 02:41:05.000000000 +0100
@@ -1 +1 @@
-/lib/libnss_google-compute-engine-oslogin-1.1.2.so /lib/libnss_oslogin.so.2
+/lib/libnss_google-compute-engine-oslogin-1.1.3.so /lib/libnss_oslogin.so.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian9/changelog new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian9/changelog
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian9/changelog 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian9/changelog 2018-01-30 02:41:05.000000000 +0100
@@ -1,3 +1,15 @@
+google-compute-engine-oslogin (1.1.4-1+deb9) unstable; urgency=low
+
+ * Close socket connections when requesting metadata.
+
+ -- Google Cloud Team Mon, 29 Jan 2018 12:00:00 -0700
+
+google-compute-engine-oslogin (1.1.3-1+deb9) unstable; urgency=low
+
+ * Change the OS Login uid restriction to allow uid 1000.
+
+ -- Google Cloud Team Thu, 25 Jan 2018 12:00:00 -0700
+
google-compute-engine-oslogin (1.1.2-1+deb9) unstable; urgency=low
* Fix parsing logic for expiration time on SSH public keys.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian9/google-compute-engine-oslogin.links new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian9/google-compute-engine-oslogin.links
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/debian9/google-compute-engine-oslogin.links 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/debian9/google-compute-engine-oslogin.links 2018-01-30 02:41:05.000000000 +0100
@@ -1 +1 @@
-/lib/libnss_google-compute-engine-oslogin-1.1.2.so /lib/libnss_oslogin.so.2
+/lib/libnss_google-compute-engine-oslogin-1.1.4.so /lib/libnss_oslogin.so.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/rpmbuild/SPECS/google-compute-engine-oslogin.spec new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/rpmbuild/SPECS/google-compute-engine-oslogin.spec
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/rpmbuild/SPECS/google-compute-engine-oslogin.spec 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/rpmbuild/SPECS/google-compute-engine-oslogin.spec 2018-01-30 02:41:05.000000000 +0100
@@ -13,7 +13,7 @@
# limitations under the License.
Name: google-compute-engine-oslogin
-Version: 1.1.2
+Version: 1.1.4
Release: 1%{?dist}
Summary: OS Login Functionality for Google Compute Engine
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/setup_deb.sh new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/setup_deb.sh
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/setup_deb.sh 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/setup_deb.sh 2018-01-30 02:41:05.000000000 +0100
@@ -20,7 +20,7 @@
# Run from the top of the source directory.
NAME="google-compute-engine-oslogin"
-VERSION="1.1.2"
+VERSION="1.1.4"
working_dir=${PWD}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/setup_rpm.sh new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/setup_rpm.sh
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/packaging/setup_rpm.sh 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/packaging/setup_rpm.sh 2018-01-30 02:41:05.000000000 +0100
@@ -20,7 +20,7 @@
# Run from the top of the source directory.
NAME="google-compute-engine-oslogin"
-VERSION="1.1.2"
+VERSION="1.1.4"
working_dir=${PWD}
rpm_working_dir=/tmp/rpmpackage/${NAME}-${VERSION}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_compute_engine_oslogin/utils/oslogin_utils.cc new/compute-image-packages-20180129/google_compute_engine_oslogin/utils/oslogin_utils.cc
--- old/compute-image-packages-20171129/google_compute_engine_oslogin/utils/oslogin_utils.cc 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_compute_engine_oslogin/utils/oslogin_utils.cc 2018-01-30 02:41:05.000000000 +0100
@@ -157,6 +157,7 @@
struct curl_slist* header_list = NULL;
header_list = curl_slist_append(header_list, "Metadata-Flavor: Google");
if (header_list == NULL) {
+ curl_easy_cleanup(curl);
curl_global_cleanup();
return false;
}
@@ -171,14 +172,17 @@
code = curl_easy_perform(curl);
if (code != CURLE_OK) {
+ curl_easy_cleanup(curl);
+ curl_global_cleanup();
return false;
}
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, http_code);
} while (retry_count++ < kMaxRetries && *http_code == 500);
curl_slist_free_all(header_list);
- curl_global_cleanup();
}
*response = response_stream.str();
+ curl_easy_cleanup(curl);
+ curl_global_cleanup();
return true;
}
@@ -197,8 +201,8 @@
bool ValidatePasswd(struct passwd* result, BufferManager* buf,
int* errnop) {
- // OS Login disallows uids less than or equal to 1000
- if (result->pw_uid <= 1000) {
+ // OS Login disallows uids less than 1000.
+ if (result->pw_uid < 1000) {
*errnop = EINVAL;
return false;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_config/apt/99ipv4-only new/compute-image-packages-20180129/google_config/apt/99ipv4-only
--- old/compute-image-packages-20171129/google_config/apt/99ipv4-only 1970-01-01 01:00:00.000000000 +0100
+++ new/compute-image-packages-20180129/google_config/apt/99ipv4-only 2018-01-30 02:41:05.000000000 +0100
@@ -0,0 +1,2 @@
+# Force IPv4 for Apt.
+Acquire::ForceIPv4 "true";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/google_config/bin/google_set_hostname new/compute-image-packages-20180129/google_config/bin/google_set_hostname
--- old/compute-image-packages-20171129/google_config/bin/google_set_hostname 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/google_config/bin/google_set_hostname 2018-01-30 02:41:05.000000000 +0100
@@ -42,14 +42,19 @@
# If NetworkManager is installed set the hostname with nmcli.
# to resolve issues with NetworkManager resetting the hostname
# to the FQDN on DHCP renew.
- if [ -x /bin/nmcli ]; then
+ nmcli=$(which nmcli 2> /dev/null)
+ if [ -x "$nmcli" ]; then
nmcli general hostname "${new_host_name%%.*}"
fi
- # Restart syslog to update the hostname if we're not using systemd.
- # systemd rsyslog jobs wait for networking to finish starting and consequently
- # syslog or rsyslog is running with the correct hostname.
- if [ ! -f /bin/systemctl ]; then
- pkill -HUP syslogd
+ # Restart rsyslog to update the hostname.
+ systemctl=$(which systemctl 2> /dev/null)
+ if [ -f /etc/init.d/rsyslog ]; then
+ /etc/init.d/rsyslog restart
+ elif [ -x "$systemctl" ]; then
+ hasrsyslog=$($systemctl | grep rsyslog | cut -f1 -d' ')
+ if [ ! -z "$hasrsyslog" ]; then
+ $systemctl -q --no-block restart "$hasrsyslog"
+ fi
fi
fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/setup.py new/compute-image-packages-20180129/setup.py
--- old/compute-image-packages-20171129/setup.py 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/setup.py 2018-01-30 02:41:05.000000000 +0100
@@ -32,7 +32,7 @@
packages=setuptools.find_packages(),
scripts=glob.glob('scripts/*'),
url='https://github.com/GoogleCloudPlatform/compute-image-packages',
- version='2.7.2',
+ version='2.7.5',
# Entry points create scripts in /usr/bin that call a function.
entry_points={
'console_scripts': [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/specs/google-compute-engine.spec new/compute-image-packages-20180129/specs/google-compute-engine.spec
--- old/compute-image-packages-20171129/specs/google-compute-engine.spec 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/specs/google-compute-engine.spec 2018-01-30 02:41:05.000000000 +0100
@@ -18,7 +18,7 @@
%endif
Name: google-compute-engine
-Version: 2.7.2
+Version: 2.7.5
Release: 1%{?dist}
Summary: Google Compute Engine guest environment.
License: ASL 2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compute-image-packages-20171129/specs/python-google-compute-engine.spec new/compute-image-packages-20180129/specs/python-google-compute-engine.spec
--- old/compute-image-packages-20171129/specs/python-google-compute-engine.spec 2017-11-29 20:17:58.000000000 +0100
+++ new/compute-image-packages-20180129/specs/python-google-compute-engine.spec 2018-01-30 02:41:05.000000000 +0100
@@ -18,7 +18,7 @@
%endif
Name: python-google-compute-engine
-Version: 2.7.2
+Version: 2.7.5
Release: 1%{?dist}
Summary: Google Compute Engine python library
License: ASL 2.0