Skip to contentSkip to conversation

tracker.ceph.com API

DISCUSSION Loic Dachary 2 participants 4 messages Jan 6, 2015 – Feb 9, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I tried various things to update tracker.ceph.com from the command line but failed. The best result I have is the following:

cat /tmp/a.xml

<issue>
<id>10281</id>
<subject>firefly: make check fails on fedora 20 (1)</subject> <custom_fields type="array">

    <custom_field name="Backport" id="2">
      <value>firefly</value>
    </custom_field>

</custom_fields>
</issue>

curl --http1.0 --verbose -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3c HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Tue, 06 Jan 2015 11:05:55 GMT
* Server Apache/2.2.22 (Ubuntu) is not blacklisted
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.13
< X-UA-Compatible: IE=Edge,chrome=1
< Cache-Control: no-cache
< X-Request-Id: eb302e17961997bafade5739f48a7183
< X-Runtime: 1.375926
< X-Rack-Cache: invalidate, pass
< Set-Cookie: _redmine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkZTIwY2Y5NWYzYTE5BjsAVA%3D%3D--a2a2fd48f300f5c8c9; path=/; HttpOnly < Set-Cookie: autologin=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Status: 200
< Content-Length: 0
< Connection: close
< Content-Type: application/xml; charset=utf-8
<
* Closing connection 0

but most of the time I get:

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3ce82febce4970b3dfb6b86 HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
* Empty reply from server
* Connection #0 to host tracker.ceph.com left intact

Am I doing something wrong ?

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw

Hi,

I was able to log on drop.ceph.com and check the logs at /home/cephtracker/tracker.ceph.com/log but it shows (I tried basic auth instead of the key):

Started PUT "/issues/10281.xml" for 87.98.243.87 at 2015-01-08 06:39:15 -0800 Processing by IssuesController#update as XML
Parameters: {"id"=>"10281"}
WARNING: Can't verify CSRF token authenticity
Current user: loic (id=789)
Rendered queries/_filters.html.erb (19.6ms)
Rendered queries/_columns.html.erb (2.0ms)
Rendered issues/_list.html.erb (143.5ms)
Rendered issues/_sidebar.html.erb (7.2ms)
Rendered issues/index.html.erb within layouts/base (189.0ms)
Rendered plugins/redmine_backlogs/app/views/hooks/_rb_include_scripts.html.erb (3.1ms) Rendered text template (0.0ms)
Completed 200 OK in 317ms (Views: 0.6ms | ActiveRecord: 21.0ms)
Completed 200 OK in 652ms (Views: 408.8ms | ActiveRecord: 64.7ms)

which seems fine (except it does nothing ;-). I don't have enough redmine expertise to debug this further. Could the "WARNING" really be a fatal error ?

Cheers

Quoted 66 lines · Loic Dachary

Hi,

I tried various things to update tracker.ceph.com from the command line but failed. The best result I have is the following:

cat /tmp/a.xml

<issue>
<id>10281</id>
<subject>firefly: make check fails on fedora 20 (1)</subject> <custom_fields type="array">

    <custom_field name="Backport" id="2">
      <value>firefly</value>
    </custom_field>

</custom_fields>
</issue>

curl --http1.0 --verbose -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3c HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Tue, 06 Jan 2015 11:05:55 GMT
* Server Apache/2.2.22 (Ubuntu) is not blacklisted
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.13
< X-UA-Compatible: IE=Edge,chrome=1
< Cache-Control: no-cache
< X-Request-Id: eb302e17961997bafade5739f48a7183
< X-Runtime: 1.375926
< X-Rack-Cache: invalidate, pass
< Set-Cookie: _redmine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkZTIwY2Y5NWYzYTE5BjsAVA%3D%3D--a2a2fd48f300f5c8c9; path=/; HttpOnly < Set-Cookie: autologin=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Status: 200
< Content-Length: 0
< Connection: close
< Content-Type: application/xml; charset=utf-8
<
* Closing connection 0

but most of the time I get:

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3ce82febce4970b3dfb6b86 HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
* Empty reply from server
* Connection #0 to host tracker.ceph.com left intact

Am I doing something wrong ?

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#2 lore raw
In reply to Loic Dachary
Quoted 10 lines · Loic Dachary

Hi,

I tried various things to update tracker.ceph.com from the command line but failed. The best result I have is the following:

cat /tmp/a.xml

<issue>
<id>10281</id>
<subject>firefly: make check fails on fedora 20 (1)</subject> <custom_fields type="array">

Quoted 7 lines
    <custom_field name="Backport" id="2">
      <value>firefly</value>
    </custom_field>

</custom_fields>
</issue>

curl --http1.0 --verbose -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

The content-type was missing:

curl --http1.0 --verbose --header 'Content-type: application/xml' -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

works :-)

Quoted 49 lines

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3c HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Tue, 06 Jan 2015 11:05:55 GMT
* Server Apache/2.2.22 (Ubuntu) is not blacklisted
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.13
< X-UA-Compatible: IE=Edge,chrome=1
< Cache-Control: no-cache
< X-Request-Id: eb302e17961997bafade5739f48a7183
< X-Runtime: 1.375926
< X-Rack-Cache: invalidate, pass
< Set-Cookie: _redmine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkZTIwY2Y5NWYzYTE5BjsAVA%3D%3D--a2a2fd48f300f5c8c9; path=/; HttpOnly < Set-Cookie: autologin=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Status: 200
< Content-Length: 0
< Connection: close
< Content-Type: application/xml; charset=utf-8
<
* Closing connection 0

but most of the time I get:

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3ce82febce4970b3dfb6b86 HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
* Empty reply from server
* Connection #0 to host tracker.ceph.com left intact

Am I doing something wrong ?

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw

Serves you right for voluntarily using XML :-P

Quoted 77 lines · Loic Dachary
Quoted 10 lines · Loic Dachary

Hi,

I tried various things to update tracker.ceph.com from the command line but failed. The best result I have is the following:

cat /tmp/a.xml

<issue>
<id>10281</id>
<subject>firefly: make check fails on fedora 20 (1)</subject> <custom_fields type="array">

Quoted 7 lines
    <custom_field name="Backport" id="2">
      <value>firefly</value>
    </custom_field>

</custom_fields>
</issue>

curl --http1.0 --verbose -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

The content-type was missing:

curl --http1.0 --verbose --header 'Content-type: application/xml' -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

works :-)

Quoted 49 lines

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3c HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Tue, 06 Jan 2015 11:05:55 GMT
* Server Apache/2.2.22 (Ubuntu) is not blacklisted
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.13
< X-UA-Compatible: IE=Edge,chrome=1
< Cache-Control: no-cache
< X-Request-Id: eb302e17961997bafade5739f48a7183
< X-Runtime: 1.375926
< X-Rack-Cache: invalidate, pass
< Set-Cookie: _redmine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkZTIwY2Y5NWYzYTE5BjsAVA%3D%3D--a2a2fd48f300f5c8c9; path=/; HttpOnly < Set-Cookie: autologin=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Status: 200
< Content-Length: 0
< Connection: close
< Content-Type: application/xml; charset=utf-8
<
* Closing connection 0

but most of the time I get:

* Hostname was NOT found in DNS cache
* Trying 64.90.32.38...
* Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)

Quoted 6 lines

PUT /issues/10281.xml?key=cd9a99820b4e7543a3ce82febce4970b3dfb6b86 HTTP/1.0
User-Agent: curl/7.35.0
Host: tracker.ceph.com
Accept: */*
Content-Length: 239

* We are completely uploaded and fine
* Empty reply from server
* Connection #0 to host tracker.ceph.com left intact

Am I doing something wrong ?

Cheers

Signature · 3 lines
Dan Mick
Red Hat, Inc.
Ceph docs: http://ceph.com/docs