Project

Profile

Help

Issue #721 ยป Issue #1733 - 2015-03-02T20_15_20Z.eml

bvijaycom, 03/02/2015 09:15 PM

 
1
Return-Path: <bvijaycom@gmail.com>
2
Received: from mi029.mc1.hosteurope.de ([80.237.138.226]) by wp245.webpack.hosteurope.de running ExIM with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1YSWk9-0003MP-Gs; Mon, 02 Mar 2015 21:15:09 +0100
3
Received: from mail-wg0-f50.google.com ([74.125.82.50]) by mx0.webpack.hosteurope.de (mi029.mc1.hosteurope.de) with esmtps (TLSv1.2:AES128-GCM-SHA256:128) id 1YSWk8-0003aE-Hx for dropbox+pulp+c71e@plan.io; Mon, 02 Mar 2015 21:15:09 +0100
4
Received: by wghb13 with SMTP id b13so35806245wgh.0 for <dropbox+pulp+c71e@plan.io>; Mon, 02 Mar 2015 12:15:08 -0800
5
Received: by 10.28.95.133 with HTTP; Mon, 02 Mar 2015 12:15:08 -0800
6
Date: Tue, 03 Mar 2015 01:45:08 +0530
7
From: Vijayabalan Balakrishnan <bvijaycom@gmail.com>
8
To: Pulp <dropbox+pulp+c71e@plan.io>
9
Message-ID: <CAMkwSOOFmVyx4aEbYY6cbXt+Jj5BbcLOoN7QcasWxuMn_BFQvg@mail.gmail.com>
10
In-Reply-To: <redmine.journal-1731.20150302195722.dcd6a3d51f58c4d7@plan.io>
11
References: <redmine.issue-721.20150302180520@plan.io>
12
 <redmine.journal-1731.20150302195722.dcd6a3d51f58c4d7@plan.io>
13
Subject: Re: [RPM Support - Issue #721] Export ISO file retention Limitation.
14
Mime-Version: 1.0
15
Content-Type: multipart/alternative;
16
 boundary=089e011823c8e5bd7c051053dff6;
17
 charset=UTF-8
18
Content-Transfer-Encoding: 7bit
19
Delivery-date: Mon, 02 Mar 2015 21:15:09 +0100
20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
21
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
22
 :content-type; bh=ndgVR+xTItoWwXQiqNrByr96RdSQEIR8Q+EahZA5PuA=;
23
 b=P1xmk3Z+ph7NQ1cQdcd1MUqF8Rgbzz2b7JtAvE2cqBHFFWhaGkcijJSbW1ZLWfatzI
24
 S5krE0tw7SXW/6YMCkn6RXfNs+K5MSXytdJ+grUJ1wpWJL9TLlSUsprr8ow8IdT8IBg0
25
 u/O3kqF2Ct1lwkwwecAVPOATZdkrotczhrCDFy4+14vXRYhM0XtM3Z/O8GnqONVDEvrv
26
 nqPCTbZDfvup3PA+SosfRb46Jb5QOizqoJjzMy2BChqNMdmEl8KgfuhLRaNdCmb9QmFu
27
 zB0VoepBnnG4gKIoDUWMu+6YayaICAa6cuHnBLBGAqYIo+/GhfklZsPNGDFkpynlk1Tz Ye6g==
28
X-Received: by 10.194.120.40 with SMTP id kz8mr62881655wjb.21.1425327308256;
29
 Mon, 02 Mar 2015 12:15:08 -0800 (PST)
30
X-HE-Spam-Level: +
31
X-HE-Spam-Score: 1.8
32
X-HE-Spam-Report: Content analysis details: (1.8 points) pts rule name
33
 description ---- ----------------------
34
 -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL:
35
 Sender listed at http://www.dnswl.org/, low trust [74.125.82.50 listed in
36
 list.dnswl.org] 2.5 RCVD_IN_SORBS_HTTP RBL: SORBS: sender is open HTTP proxy
37
 server [74.125.82.50 listed in dnsbl.sorbs.net] 0.0 FREEMAIL_FROM Sender email
38
 is commonly abused enduser mail provider (bvijaycom[at]gmail.com) 0.1
39
 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a
40
 valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at
41
 least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK
42
 signature, not necessarily valid
43
X-HE-SPF: PASSED
44
Envelope-to: dropbox+pulp+c71e@plan.io
45

    
46

    
47
--089e011823c8e5bd7c051053dff6
48
Content-Type: text/plain;
49
 charset=UTF-8
50
Content-Transfer-Encoding: 7bit
51

    
52
Hi,
53

    
54
I have changed the selinux similer to /var/lib/pulp for /test directory.Now
55
I am able to execute the export command.However in /test directory there is
56
no ISO file getting created.The RPM files getting downloaded.
57

    
58
Here the logs are
59

    
60
[root@test1053 1425327013.27]# pwd
61
/var/lib/pulp/published/yum/master/export_distributor/custom_repo1/1425327013.27
62
[root@test1053 1425327013.27]# ls -ltr
63
total 1468
64
-rw-r--r--. 1 apache apache 1501184 Mar  2 15:10
65
custom_repo1-2015-03-02T15.10-01.iso
66
[root@test1053 1425327013.27]# cd /test
67
[root@test1053 test]# ls -ltr
68
total 4
69
drwxr-xr-x. 3 apache apache 59 Mar  2 15:09 custom_repo1
70
-rw-r--r--. 1 apache apache 12 Mar  2 15:09 listing
71
[root@test1053 test]# cd custom_repo1/
72
[root@test1053 custom_repo1]# ls -ltr
73
total 1100
74
-rw-r--r--. 1 apache apache 1122292 Feb 25 16:41
75
engrampa-1.8.1-1.el7.x86_64.rpm
76
drwxr-x---. 2 apache apache    4096 Mar  2 15:09 repodata
77
[root@test1053 custom_repo1]# ls -ldZ /test/
78
drwxrwxrwx. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0
79
/test/
80
[root@test1053 custom_repo1]# ls -ldZ /var/lib/pulp/
81
drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0
82
/var/lib/pulp/
83
[root@test1053 custom_repo1]#
84

    
85

    
86
On Tue, Mar 3, 2015 at 1:27 AM, Pulp <dropbox+pulp+c71e@plan.io> wrote:
87

    
88
>  --- Please write your response above this line ---
89
> Issue #721 has been updated by Barnaby Court.
90
>
91
>
92
> Hi, for the use of the /test directory, is it possible you have selinux
93
> enabled and have not added an selinux permissions for the apache user on
94
> the /test directory?
95
> ------------------------------
96
> Issue #721: Export ISO file retention Limitation.
97
> <https://pulp.plan.io/issues/721#change-1731>
98
>
99
>    - Author: vijaybalan balakrishnan
100
>    - Status: NEW
101
>    - Priority: High
102
>    - Assignee:
103
>    - Category:
104
>    - Sprint/Milestone:
105
>    - Triaged: No
106
>    - Bugzilla Link:
107
>    - Target Release:
108
>    - Severity: High
109
>    - Backwards Incompatible: No
110
>    - Tags:
111
>    - Version:
112
>    - QA Contact:
113
>
114
> Hi Team,
115
>
116
> Today I have created pulp server in DMZ subnet and from our master server
117
> tried to export as an ISO file. So that from disconnected server I can
118
> recreate whenever I need to replicate. However the problem is pulp is
119
> always keep n version. Second time if we execute export command the current
120
> exported ISO file and directory getting deleted before the new ISO file
121
> creation. Is there any way to put retention files (I mean number files) on
122
> my own?
123
>
124
> My pulp version is
125
>
126
> [root@server1]# rpm -q pulp-server
127
> pulp-server-2.5.3-1.el7.noarch
128
>
129
> I understand that this export to different directory can be achieved
130
> through --export-dir tag.However i just tested the same command and added
131
> with --export-dir option.
132
>
133
> Now i have 2 issues
134
>
135
> 1. I have created directory under / called test.I have changed the
136
> ownership to apache:apache and executed the export command with
137
> --export-dir pointing to this directory.I have received permission denied
138
> error.Is there any limitation in pulp that ,pulp will understand only
139
> inside /var/lib/pulp directory ?
140
>
141
> 2. However now i have created the directory called export inside
142
> /var/lib/pulp/ and changed the ownership to apache:apache. Now if i run
143
> export command pointing to this directory,only rpm's are getting downloaded
144
> instead of single ISO file.
145
>
146
> Now i am looking for some solutions for the below scenarios in the future
147
> releases...
148
>
149
> 1. Through --export-dir option if we give external directory it should be
150
> allowed in pulp for creating ISO file.
151
> 2. If i give /var/lip/pulp/export directory in --export-dir tag,why
152
> instead ISO single file rpm's are getting downloaded.
153
> 3. Also if the customer wants to retain n number of iso exported files
154
> under /var/lib/pulp/published/yum/master/export_distributor/ directory
155
> itself then there should be command option
156
>
157
> Here i have attached the log file.
158
>
159
> Thanks,
160
> BVIJAY
161
> Files export ISO to test directory-permission denied.txt
162
> <https://pulp.plan.io/attachments/download/79/export%20ISO%20to%20test%20directory-permission%20denied.txt>
163
> (11.6 KB)
164
> export ISO to test directory-permission denied.txt
165
> <https://pulp.plan.io/attachments/download/78/export%20ISO%20to%20test%20directory-permission%20denied.txt>
166
> (11.6 KB)
167
>  ------------------------------
168
>
169
> You have received this notification because you have either subscribed to
170
> or are involved in a project on Pulp Planio.
171
> To change your notification preferences, please click here:
172
> https://pulp.plan.io/my/account
173
>
174
> This notification was cheerfully delivered by <https://plan.io/>
175
> [image: Planio] <https://plan.io/>
176
>
177

    
178
--089e011823c8e5bd7c051053dff6
179
Content-Type: text/html;
180
 charset=UTF-8
181
Content-Transfer-Encoding: quoted-printable
182

    
183
<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I have changed the sel=
184
inux similer to /var/lib/pulp for /test directory.Now I am able to execut=
185
e the export command.However in /test directory there is no ISO file gett=
186
ing created.The RPM files getting downloaded.</div><div><br></div><div>He=
187
re the logs are </div><div><br></div><div>[root@test1053 1425327013.27]# =
188
pwd<br>/var/lib/pulp/published/yum/master/export_distributor/custom_repo1=
189
/1425327013.27<br>[root@test1053 1425327013.27]# ls -ltr<br>total 1468<br=
190
>-rw-r--r--. 1 apache apache 1501184 Mar=C2=A0 2 15:10 custom_repo1-2015-=
191
03-02T15.10-01.iso<br>[root@test1053 1425327013.27]# cd /test<br>[root@te=
192
st1053 test]# ls -ltr<br>total 4<br>drwxr-xr-x. 3 apache apache 59 Mar=C2=
193
=A0 2 15:09 custom_repo1<br>-rw-r--r--. 1 apache apache 12 Mar=C2=A0 2 15=
194
:09 listing<br>[root@test1053 test]# cd custom_repo1/<br>[root@test1053 c=
195
ustom_repo1]# ls -ltr<br>total 1100<br>-rw-r--r--. 1 apache apache 112229=
196
2 Feb 25 16:41 engrampa-1.8.1-1.el7.x86_64.rpm<br>drwxr-x---. 2 apache ap=
197
ache=C2=A0=C2=A0=C2=A0 4096 Mar=C2=A0 2 15:09 repodata<br>[root@test1053 =
198
custom_repo1]# ls -ldZ /test/<br>drwxrwxrwx. apache apache unconfined_u:o=
199
bject_r:httpd_sys_rw_content_t:s0 /test/<br>[root@test1053 custom_repo1]#=
200
 ls -ldZ /var/lib/pulp/<br>drwxr-xr-x. apache apache system_u:object_r:ht=
201
tpd_sys_rw_content_t:s0 /var/lib/pulp/<br>[root@test1053 custom_repo1]#<b=
202
r></div><div><br></div></div><div class=3D"gmail_extra"><br><div class=3D=
203
"gmail_quote">On Tue, Mar 3, 2015 at 1:27 AM, Pulp <span dir=3D"ltr">&lt;=
204
<a href=3D"mailto:dropbox+pulp+c71e@plan.io" target=3D"_blank">dropbox+pu=
205
lp+c71e@plan.io</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote=
206
" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
207
>
208

    
209

    
210

    
211
<div>
212
<table width=3D"100%">
213
<tbody><tr><td style=3D"width:100%;text-align:center;color:rgb(215,215,21=
214
5);font-family:MarketWeb,Verdana,sans-serif;font-size:0.8em"><p>--- Pleas=
215
e write your response above this line ---</p></td></tr>
216
<tr><td>Issue #721 has been updated by Barnaby Court.
217

    
218
<ul>
219
</ul>
220

    
221
<p>Hi, for the use of the /test directory, is it possible you have selinu=
222
x enabled and have not added an selinux permissions for the apache user o=
223
n the /test directory?</p><div><div class=3D"h5">
224
<hr>
225
<h1><a href=3D"https://pulp.plan.io/issues/721#change-1731" target=3D"_bl=
226
ank">Issue #721: Export ISO file retention Limitation.</a></h1>
227

    
228
<ul><li>Author: vijaybalan balakrishnan</li>
229
<li>Status: NEW</li>
230
<li>Priority: High</li>
231
<li>Assignee: </li>
232
<li>Category: </li>
233
<li>Sprint/Milestone: </li>
234
<li>Triaged: No</li>
235
<li>Bugzilla Link: </li>
236
<li>Target Release: </li>
237
<li>Severity: High</li>
238
<li>Backwards Incompatible: No</li>
239
<li>Tags: </li>
240
<li>Version: </li>
241
<li>QA Contact: </li></ul>
242

    
243
<p>Hi Team,</p>
244

    
245

    
246
	<p>Today I have created pulp server in DMZ subnet and from our master se=
247
rver tried to export as an ISO file. So that from disconnected server I c=
248
an recreate whenever I need to replicate. However the problem is pulp is =
249
always keep n version. Second time if we execute export command the curre=
250
nt exported ISO file and directory getting deleted before the new ISO fil=
251
e creation. Is there any way to put retention files (I mean number files)=
252
 on my own?</p>
253

    
254

    
255
	<p>My pulp version is</p>
256

    
257

    
258
	<p>[root@server1]# rpm -q pulp-server<br>pulp-server-2.5.3-1.el7.noarch<=
259
/p>
260

    
261

    
262
	<p>I understand that this export to different directory can be achieved =
263
through --export-dir tag.However i just tested the same command and added=
264
 with --export-dir option.</p>
265

    
266

    
267
	<p>Now i have 2 issues</p>
268

    
269

    
270
	<p>1. I have created directory under / called test.I have changed the ow=
271
nership to apache:apache and executed the export command with --export-di=
272
r pointing to this directory.I have received permission denied error.Is t=
273
here any limitation in pulp that ,pulp will understand only inside /var/l=
274
ib/pulp directory ?</p>
275

    
276

    
277
	<p>2. However now i have created the directory called export inside /var=
278
/lib/pulp/ and changed the ownership to apache:apache. Now if i run expor=
279
t command pointing to this directory,only rpm&#39;s are getting downloade=
280
d instead of single ISO file.</p>
281

    
282

    
283
	<p>Now i am looking for some solutions for the below scenarios in the fu=
284
ture releases...</p>
285

    
286

    
287
	<p>1. Through --export-dir option if we give external directory it shoul=
288
d be allowed in pulp for creating ISO file.<br>2. If i give /var/lip/pulp=
289
/export directory in --export-dir tag,why instead ISO single file rpm&#39=
290
;s are getting downloaded.<br>3. Also if the customer wants to retain n n=
291
umber of iso exported files under /var/lib/pulp/published/yum/master/expo=
292
rt_distributor/  directory itself then there should be command option</p>=
293

    
294

    
295

    
296
	<p>Here i have attached the log file.</p>
297

    
298

    
299
	<p>Thanks,<br>BVIJAY</p>
300

    
301
  <fieldset><legend>Files</legend>
302
    <a href=3D"https://pulp.plan.io/attachments/download/79/export%20ISO%=
303
20to%20test%20directory-permission%20denied.txt" target=3D"_blank">export=
304
 ISO to test directory-permission denied.txt</a>
305
    (11.6 KB)<br>
306
    <a href=3D"https://pulp.plan.io/attachments/download/78/export%20ISO%=
307
20to%20test%20directory-permission%20denied.txt" target=3D"_blank">export=
308
 ISO to test directory-permission denied.txt</a>
309
    (11.6 KB)<br>
310
  </fieldset>
311

    
312

    
313

    
314
</div></div></td></tr>
315
<tr><td style=3D"width:100%;font-size:0.8em"><hr><p>You have received thi=
316
s notification because you have either subscribed to or are involved in a=
317
 project on Pulp Planio.<br>To change your notification preferences, plea=
318
se click here: <a href=3D"https://pulp.plan.io/my/account" target=3D"_bla=
319
nk">https://pulp.plan.io/my/account</a></p><td></td></td></tr>
320
<tr><td style=3D"width:100%;text-align:center;color:rgb(215,215,215);font=
321
-family:MarketWeb,Verdana,sans-serif;font-size:1.2em"><br><div><a style=3D=
322
"color:rgb(215,215,215);text-decoration:none" href=3D"https://plan.io/" t=
323
arget=3D"_blank">This notification was cheerfully delivered by</a></div><=
324
td></td></td></tr>
325
<tr><td style=3D"width:100%;text-align:center"><a title=3D"Planio" href=3D=
326
"https://plan.io/" target=3D"_blank"><img width=3D"102" height=3D"25" sty=
327
le=3D"vertical-align: middle;" alt=3D"Planio" src=3D"https://assets.plan.=
328
io/images/planio_logo_gray_204x50.png"></a></td></tr>
329
</tbody></table>
330
</div>
331

    
332
</blockquote></div><br></div>
333

    
334
--089e011823c8e5bd7c051053dff6--
    (1-1/1)