openshift-origin-node 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openshift-origin-node might be problematic. Click here for more details.
- data/lib/openshift-origin-node/utils/shell_exec.rb +15 -2
- data/misc/bin/rhcsh +1 -1
- data/rubygem-openshift-origin-node.spec +13 -1
- metadata +4 -4
@@ -15,6 +15,7 @@
|
|
15
15
|
#++
|
16
16
|
|
17
17
|
require 'rubygems'
|
18
|
+
require 'timeout'
|
18
19
|
require 'open4'
|
19
20
|
|
20
21
|
module OpenShift::Utils
|
@@ -56,9 +57,21 @@ module OpenShift::Utils::ShellExec
|
|
56
57
|
pid, stdin, stdout, stderr = Open4.popen4ext(true, m_cmd)
|
57
58
|
begin
|
58
59
|
stdin.close
|
60
|
+
out = err = ""
|
61
|
+
fds = [ stdout, stderr ]
|
62
|
+
buffs = { stdout.fileno => out, stderr.fileno => err }
|
59
63
|
Timeout::timeout(timeout) do
|
60
|
-
|
61
|
-
|
64
|
+
while not fds.empty?
|
65
|
+
rs, ws, es = IO.select(fds, nil, nil)
|
66
|
+
rs.each do |f|
|
67
|
+
begin
|
68
|
+
buffs[f.fileno] << f.read_nonblock(4096)
|
69
|
+
rescue IO::WaitReadable, IO::WaitWritable # Wait in next select
|
70
|
+
rescue EOFError
|
71
|
+
fds.delete_if { |item| item.fileno == f.fileno }
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
62
75
|
end
|
63
76
|
rescue Timeout::Error
|
64
77
|
pstree = Hash.new{|a,b| a[b]=[b]}
|
data/misc/bin/rhcsh
CHANGED
@@ -32,7 +32,7 @@ function welcome {
|
|
32
32
|
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
|
33
33
|
Shell access is quite powerful and it is possible for you to
|
34
34
|
accidentally damage your application. Proceed with care!
|
35
|
-
If worse comes to worst, destroy your application with 'rhc app
|
35
|
+
If worse comes to worst, destroy your application with 'rhc app delete'
|
36
36
|
and recreate it
|
37
37
|
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
|
38
38
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
Summary: Cloud Development Node
|
14
14
|
Name: rubygem-%{gem_name}
|
15
|
-
Version: 1.3.
|
15
|
+
Version: 1.3.2
|
16
16
|
Release: 1%{?dist}
|
17
17
|
Group: Development/Languages
|
18
18
|
License: ASL 2.0
|
@@ -117,6 +117,7 @@ mv %{buildroot}%{gem_instdir}/misc/doc/cgconfig.conf %{buildroot}%{_docdir}/%{na
|
|
117
117
|
sed -i 's/include/IncludeOptional/g' httpd/000001_openshift_origin_node.conf
|
118
118
|
%endif
|
119
119
|
mv httpd/000001_openshift_origin_node.conf %{buildroot}/etc/httpd/conf.d/
|
120
|
+
mv httpd/000001_openshift_origin_node_servername.conf %{buildroot}/etc/httpd/conf.d/
|
120
121
|
|
121
122
|
#%if 0%{?fedora}%{?rhel} <= 6
|
122
123
|
mkdir -p %{buildroot}/etc/rc.d/init.d/
|
@@ -147,6 +148,7 @@ rm -rf %{buildroot}
|
|
147
148
|
%attr(0750,-,-) /etc/httpd/conf.d/openshift
|
148
149
|
|
149
150
|
%config(noreplace) /etc/httpd/conf.d/000001_openshift_origin_node.conf
|
151
|
+
%config(noreplace) /etc/httpd/conf.d/000001_openshift_origin_node_servername.conf
|
150
152
|
%attr(0755,-,-) %{appdir}
|
151
153
|
|
152
154
|
#%if 0%{?fedora}%{?rhel} <= 6
|
@@ -172,6 +174,16 @@ if ! [ -f /etc/openshift/resource_limits.conf ]; then
|
|
172
174
|
fi
|
173
175
|
|
174
176
|
%changelog
|
177
|
+
* Thu Jan 10 2013 Adam Miller <admiller@redhat.com> 1.3.2-1
|
178
|
+
- Merge pull request #1120 from sosiouxme/BZ876324
|
179
|
+
(dmcphers+openshiftbot@redhat.com)
|
180
|
+
- BZ876324 resolve ServerName/NameVirtualHost situation for
|
181
|
+
node/broker/ssl.conf (lmeyer@redhat.com)
|
182
|
+
- Update rhc command usage. Addresses BZ889018. (asari.ruby@gmail.com)
|
183
|
+
- Typo. (rmillner@redhat.com)
|
184
|
+
- BZ 888410: The reader sequence can block if there is too much stderr
|
185
|
+
(rmillner@redhat.com)
|
186
|
+
|
175
187
|
* Wed Dec 12 2012 Adam Miller <admiller@redhat.com> 1.3.1-1
|
176
188
|
- bump_minor_versions for sprint 22 (admiller@redhat.com)
|
177
189
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openshift-origin-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 2
|
10
|
+
version: 1.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Krishna Raman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-01-10 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|