Bug 472346
| Summary: | Bump up API version and make the versioning independent on web.version | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Miroslav Suchý <msuchy> |
| Component: | API | Assignee: | Miroslav Suchý <msuchy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 0.4 | CC: | jpazdziora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-01-22 16:30:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 456552 | ||
|
Description
Miroslav Suchý
2008-11-20 10:20:22 UTC
Commited as 4d7d115fbec1410251baae92ea51714c08f4d721. Tagged and built: spacewalk-java-0.4.2-1 spacewalk-web-0.4.2-1 # grep version /etc/rhn/default/rhn_web.conf
# the version of this RHN install as a whole
web.version = 0.4
# the version of API
web.apiversion = 10.0
# perl get-api-version.pl
Gimme password for [admin] on [dhcp77-206.rhndev.redhat.com]: <password>
$VAR1 = [
'10.0'
];
$VAR1 = [
'0.4'
];
# cat get-api-version.pl
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use Frontier::Client ();
use Data::Dumper;
my $idle_time;
my ($host, $username) = ( '<hostname>', 'admin' );
$| = 1;
print "Gimme password for [$username] on [$host]: ";
my $passwd = <STDIN>;
chomp $passwd;
my $client = new Frontier::Client(url => "http://$host/rpc/api");
my $session = $client->call('auth.login', $username, $passwd)
or die "Failed to login to [$host]\n";
my @data = $client->call('api.get-version');
print Dumper \@data;
@data = $client->call('api.system-version');
print Dumper \@data;
#
I had to add RewriteRule ^/rpc/api /rhn/rpc/api [P] to /etc/httpd/conf.d/zz-spacewalk-server.conf for the API calls to work but once it works, it does what this bugzilla wanted it to do.
|