[openshift-origin-node-util] Initial import (#878660).

tdawson tdawson at fedoraproject.org
Wed Jan 2 15:44:37 UTC 2013


commit ed158d67f0ce15b702eb33babe470729d24c2d77
Author: Troy Dawson <tdawson at redhat.com>
Date:   Wed Jan 2 09:44:27 2013 -0600

    Initial import (#878660).

 .gitignore                      |    1 +
 openshift-origin-node-util.spec |  283 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 3 files changed, 285 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ca34793 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/openshift-origin-node-util-1.2.7.tar.gz
diff --git a/openshift-origin-node-util.spec b/openshift-origin-node-util.spec
new file mode 100644
index 0000000..e82370b
--- /dev/null
+++ b/openshift-origin-node-util.spec
@@ -0,0 +1,283 @@
+%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
+%global with_systemd 1
+%else
+%global with_systemd 0
+%endif
+
+Summary:        Utility scripts for the OpenShift Origin node
+Name:           openshift-origin-node-util
+Version:        1.2.7
+Release:        3%{?dist}
+License:        ASL 2.0
+URL:            http://openshift.redhat.com
+Source0:        http://mirror.openshift.com/pub/origin-server/source/%{name}/%{name}-%{version}.tar.gz
+Requires:       oddjob
+Requires:       rng-tools
+Requires:       rubygem-openshift-origin-node
+Requires:       httpd
+Requires:       php >= 5.3.2
+# rhc-list-ports
+Requires:       lsof
+# oo-setup-node
+Requires:       policycoreutils
+# oo-setup-node
+Requires:       system-config-firewall-base
+Requires:       quota
+# oo-idler-stats
+Requires:       git
+# oo-accept-node
+Requires:       libcgroup-tools
+
+%if %{with_systemd}
+BuildRequires: systemd-units
+Requires:  systemd-units
+%endif
+
+BuildArch:      noarch
+
+%description
+This package contains a set of utility scripts for a OpenShift node.
+They must be run on a OpenShift node instance.
+
+%prep
+%setup -q
+
+%build
+
+%install
+mkdir -p %{buildroot}%{_sbindir}
+cp -p bin/oo-* %{buildroot}%{_sbindir}/
+cp -p bin/rhc-* %{buildroot}%{_sbindir}/
+
+mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
+mkdir -p %{buildroot}%{_sysconfdir}/oddjobd.conf.d/
+mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/
+mkdir -p %{buildroot}/%{_localstatedir}/www/html/
+mkdir -p %{buildroot}%{_mandir}/man8/
+
+cp -p conf/oddjob/openshift-restorer.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
+cp -p conf/oddjob/oddjobd-restorer.conf %{buildroot}%{_sysconfdir}/oddjobd.conf.d/
+cp -p www/html/restorer.php %{buildroot}/%{_localstatedir}/www/html/
+
+cp -p man8/*.8 %{buildroot}%{_mandir}/man8/
+
+%if %{with_systemd}
+mkdir -p %{buildroot}/etc/systemd/system
+mv services/openshift-gears.service %{buildroot}/etc/systemd/system/openshift-gears.service
+%else
+mkdir -p %{buildroot}%{_initddir}
+cp -p init.d/openshift-gears %{buildroot}%{_initddir}/
+%endif
+
+%if %{with_systemd}
+%post
+%systemd_post openshift-gears.service
+
+%preun
+%systemd_preun openshift-gears.service
+
+%postun
+%systemd_postun_with_restart openshift-gears.service
+%endif
+
+
+%files
+%doc LICENSE
+%doc README-Idler.md
+
+%attr(0750,-,-) %{_sbindir}/oo-accept-node
+%attr(0750,-,-) %{_sbindir}/oo-admin-ctl-gears
+%attr(0750,-,-) %{_sbindir}/oo-app-idle
+%attr(0750,-,-) %{_sbindir}/oo-autoidler
+%attr(0750,-,-) %{_sbindir}/oo-idler
+%attr(0750,-,-) %{_sbindir}/oo-idler-stats
+%attr(0750,-,-) %{_sbindir}/oo-init-quota
+%attr(0750,-,-) %{_sbindir}/oo-last-access
+%attr(0750,-,-) %{_sbindir}/oo-list-stale
+%attr(0750,-,-) %{_sbindir}/oo-list-access
+%attr(0750,-,-) %{_sbindir}/oo-restorer
+%attr(0750,-,apache) %{_sbindir}/oo-restorer-wrapper.sh
+%attr(0750,-,-) %{_sbindir}/oo-setup-node
+%attr(0755,-,-) %{_sbindir}/rhc-list-ports
+%attr(0755,-,-) %{_sbindir}/oo-httpd-singular
+
+%{_mandir}/man8/oo-accept-node.8.gz
+%{_mandir}/man8/oo-admin-ctl-gears.8.gz
+%{_mandir}/man8/oo-app-idle.8.gz
+%{_mandir}/man8/oo-autoidler.8.gz
+%{_mandir}/man8/oo-idler.8.gz
+%{_mandir}/man8/oo-idler-stats.8.gz
+%{_mandir}/man8/oo-init-quota.8.gz
+%{_mandir}/man8/oo-last-access.8.gz
+%{_mandir}/man8/oo-list-stale.8.gz
+%{_mandir}/man8/oo-list-access.8.gz
+%{_mandir}/man8/oo-restorer.8.gz
+%{_mandir}/man8/oo-restorer-wrapper.sh.8.gz
+%{_mandir}/man8/oo-setup-node.8.gz
+%{_mandir}/man8/rhc-list-ports.8.gz
+%{_mandir}/man8/oo-httpd-singular.8.gz
+
+%attr(0644,-,-) %config(noreplace) %{_sysconfdir}/oddjobd.conf.d/oddjobd-restorer.conf
+%attr(0644,-,-) %config(noreplace) %{_sysconfdir}/dbus-1/system.d/openshift-restorer.conf
+
+%{_localstatedir}/www/html/restorer.php
+
+%if %{with_systemd}
+%attr(0755,-,-) /etc/systemd/system/openshift-gears.service
+%else
+%attr(0755,-,-) %{_initddir}/openshift-gears
+%endif
+
+%changelog
+* Tue Dec 18 2012 Troy Dawson <tdawson at redhat.com> 1.2.7-3
+- Added systemd macro's
+
+* Tue Dec 18 2012 Troy Dawson <tdawson at redhat.com> 1.2.7-2
+- Cleanup for Fedora standards
+- Fix source URL
+- Removed Group
+- Fixed dependancies
+
+* Tue Dec 11 2012 Adam Miller <admiller at redhat.com> 1.2.7-1
+- Merge pull request #1045 from kraman/f17_fixes (openshift+bot at redhat.com)
+- Merge pull request #1044 from ramr/master (openshift+bot at redhat.com)
+- Fix bugz - log to access.log + websockets.log + log file rollover. And update
+  idler's last access script to use the new node-web-proxy access.log file.
+  (ramr at redhat.com)
+- Close the connection on a 302/temporary redirect - bugz where the clients
+  loop. (ramr at redhat.com)
+- Switched console port from 3128 to 8118 due to selinux changes in F17-18
+  Fixed openshift-node-web-proxy systemd script Updates to oo-setup-broker
+  script:   - Fixes hardcoded example.com   - Added basic auth based console
+  setup   - added openshift-node-web-proxy setup Updated console build and spec
+  to work on F17 (kraman at gmail.com)
+
+* Mon Dec 10 2012 Adam Miller <admiller at redhat.com> 1.2.6-1
+- Adding oo-accept-systems script for verifying all node hosts from the broker.
+  - also verifies cartridge consistency and checks for stale cartridge cache.
+  oo-accept-node sanity checks public_ip and public_hostname. Minor edits to
+  make node.conf easier to understand. (lmeyer at redhat.com)
+
+* Thu Dec 06 2012 Adam Miller <admiller at redhat.com> 1.2.5-1
+- Calculate date duration in a 1.9 compatible way (ironcladlou at gmail.com)
+
+* Wed Dec 05 2012 Adam Miller <admiller at redhat.com> 1.2.4-1
+- Fix for Bug 880699 (jhonce at redhat.com)
+
+* Tue Dec 04 2012 Adam Miller <admiller at redhat.com> 1.2.3-1
+- Move add/remove alias to the node API. (rmillner at redhat.com)
+- Fix for Bug 881920 (jhonce at redhat.com)
+
+* Thu Nov 29 2012 Adam Miller <admiller at redhat.com> 1.2.2-1
+- Remove unused phpmoadmin cartridge (jhonce at redhat.com)
+- use /bin/env for cron (dmcphers at redhat.com)
+- exit code and usage cleanup (dmcphers at redhat.com)
+- Merge pull request #962 from danmcp/master (openshift+bot at redhat.com)
+- Merge pull request #905 from kraman/ruby19 (openshift+bot at redhat.com)
+- add oo-ruby (dmcphers at redhat.com)
+- F18 compatibility fixes   - apache 2.4   - mongo journaling   - JDK 7   -
+  parseconfig gem update Bugfix for Bind DNS plugin (kraman at gmail.com)
+
+* Sat Nov 17 2012 Adam Miller <admiller at redhat.com> 1.2.1-1
+- bump_minor_versions for sprint 21 (admiller at redhat.com)
+
+* Fri Nov 16 2012 Adam Miller <admiller at redhat.com> 1.1.6-1
+- Fix for Bug 876874 (jhonce at redhat.com)
+- Merge pull request #925 from ironcladlou/scl-refactor (dmcphers at redhat.com)
+- Only use scl if it's available (ironcladlou at gmail.com)
+
+* Thu Nov 15 2012 Adam Miller <admiller at redhat.com> 1.1.5-1
+- Fix for Bug 876874 (jhonce at redhat.com)
+
+* Tue Nov 13 2012 Adam Miller <admiller at redhat.com> 1.1.4-1
+- update verb in JSON payload (jhonce at redhat.com)
+- US2603 man page and packaging (jhonce at redhat.com)
+
+* Mon Nov 12 2012 Adam Miller <admiller at redhat.com> 1.1.3-1
+- Fix for Bug 874445 (jhonce at redhat.com)
+
+* Thu Nov 08 2012 Adam Miller <admiller at redhat.com> 1.1.2-1
+- Fix for BZ872313 (jhonce at redhat.com)
+
+* Thu Nov 01 2012 Adam Miller <admiller at redhat.com> 1.1.1-1
+- bump_minor_versions for sprint 20 (admiller at redhat.com)
+
+* Thu Nov 01 2012 Adam Miller <admiller at redhat.com> 1.0.3-1
+- Fix for bug# 869748 (rpenta at redhat.com)
+
+* Wed Oct 31 2012 Adam Miller <admiller at redhat.com> 1.0.2-1
+- Fixes for LiveCD build (kraman at gmail.com)
+- move broker/node utils to /usr/sbin/ everywhere (admiller at redhat.com)
+
+* Tue Oct 30 2012 Adam Miller <admiller at redhat.com> 1.0.1-1
+- fix man page path names for node-util spec (admiller at redhat.com)
+- Added man pages for broker-util/node-util, port complete-origin-setup to bash
+  (admiller at redhat.com)
+- bumping specs to at least 1.0.0 (dmcphers at redhat.com)
+
+* Mon Oct 29 2012 Adam Miller <admiller at redhat.com> 0.0.8-1
+- Merge pull request #775 from brenton/rhc-list-ports1
+  (openshift+bot at redhat.com)
+- Fixing rhc-list-ports permissions issue (bleanhar at redhat.com)
+- Updating broker setup script (kraman at gmail.com)
+- Merge pull request #777 from rmillner/master (openshift+bot at redhat.com)
+- BZ 867242: Add a specific error on bad UUID. (rmillner at redhat.com)
+- BZ 869874: Do not attempt status report for non-existant cartridges.
+  (rmillner at redhat.com)
+- node-util needs apache group created before it is installed
+  (jhonce at redhat.com)
+- Fix for Bug 867198 (jhonce at redhat.com)
+- Bug 835501 - 'rhc-port-foward' returns 'No available ports to forward '
+  (bleanhar at redhat.com)
+
+* Fri Oct 26 2012 Adam Miller <admiller at redhat.com> 0.0.7-1
+- Fix lock file (jhonce at redhat.com)
+- Refactor oo-admin-ctl-gears to use lib/util functions (jhonce at redhat.com)
+
+* Wed Oct 24 2012 Adam Miller <admiller at redhat.com> 0.0.6-1
+- Update documentation with expected httpd access log format
+  (jhonce at redhat.com)
+- Idler requires PHP to restore gear (jhonce at redhat.com)
+- fixed single quotes to doubble in oo-admin-ctl-gears GEAR_GECOS subst
+  (mlamouri at redhat.com)
+
+* Mon Oct 22 2012 Adam Miller <admiller at redhat.com> 0.0.5-1
+- Fixing Origin build scripts (kraman at gmail.com)
+
+* Fri Oct 19 2012 Adam Miller <admiller at redhat.com> 0.0.4-1
+- Change libra guest to OpenShift guest (dmcphers at redhat.com)
+- Update Idler documentation (jhonce at redhat.com)
+- Wrong name transition in pam.d/sshd. (rmillner at redhat.com)
+
+* Thu Oct 18 2012 Adam Miller <admiller at redhat.com> 0.0.3-1
+- Port auto-Idler to origin-server (jhonce at redhat.com)
+- Fixing outstanding cgroups issues Removing hardcoded references to "OpenShift
+  guest" and using GEAR_GECOS from node.conf instead (kraman at gmail.com)
+- Use internal functions for that. (rmillner at redhat.com)
+- setup polyinstantiation. (rmillner at redhat.com)
+- Move SELinux to Origin and use new policy definition. (rmillner at redhat.com)
+- Set a password on the mongo admin db so that application and ssh'd users
+  cannot access the DB. Misc other fixes (kraman at gmail.com)
+- Adding support for quota and pam fs limits (kraman at gmail.com)
+- Move SELinux to Origin and use new policy definition. (rmillner at redhat.com)
+- Fixed broker/node setup scripts to install cgroup services. Fixed
+  mcollective-qpid plugin so it installs during origin package build. Updated
+  cgroups init script to work with both systemd and init.d Updated oo-trap-user
+  script Renamed oo-cgroups to openshift-cgroups (service and init.d) and
+  created oo-admin-ctl-cgroups Pulled in oo-get-mcs-level and abstract/util
+  from origin-selinux branch Fixed invalid file path in rubygem-openshift-
+  origin-auth-mongo spec Fixed invlaid use fo Mcollective::Config in
+  mcollective-qpid-plugin (kraman at gmail.com)
+- Clean up spec file (jhonce at redhat.com)
+- Port oo-init-quota command (jhonce at redhat.com)
+- Port admin scripts for on-premise (jhonce at redhat.com)
+- Fixing a few missed references to ss-* Added command to load openshift-origin
+  selinux module (kraman at gmail.com)
+- Removing old build scripts Moving broker/node setup utilities into util
+  packages Fix Auth service module name conflicts (kraman at gmail.com)
+- Fixed gear admin script and added systemd and init.d startup scripts
+  (kraman at gmail.com)
+
+* Mon Oct 08 2012 Dan McPherson <dmcphers at redhat.com> 0.0.2-1
+- new package built with tito
+
diff --git a/sources b/sources
index e69de29..b90e0c0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6d61436d824b064b37e3e1c247c3bebc  openshift-origin-node-util-1.2.7.tar.gz


More information about the scm-commits mailing list