-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements Scheduled Images Extension
The extension creates a new resource under servers/id to get, create and delete it's scheduled image. On the servers list and detail calls, it adds the system metadata related to scheduled image service on the server dict in the response object. It also enables filtering by the system metadata added by the scheduled images service and if it exists, adds it on the servers dictonaries. bp https://blueprints.launchpad.net/nova/+spec/scheduled-images Squashed: Add username to schedule image metadata for auth impersonation
- Loading branch information
Nikhil Komawar
authored and
ohthree jenkins
committed
May 16, 2013
1 parent
690c454
commit 6adc8c4
Showing
55 changed files
with
1,411 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<servers xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1"> | ||
<server name="new-server-test" id="b28017c2-7909-4318-bc47-ba1419f17709"> | ||
<atom:link href="http://openstack.example.com/v2/openstack/servers/b28017c2-7909-4318-bc47-ba1419f17709" rel="self"/> | ||
<atom:link href="http://openstack.example.com/openstack/servers/b28017c2-7909-4318-bc47-ba1419f17709" rel="bookmark"/> | ||
<servers xmlns:OS-SI="http://docs.openstack.org/servers/api/ext/scheduled_images/v1.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1"> | ||
<server name="new-server-test" id="59a619a2-2374-477e-9d79-4febb191fa80"> | ||
<atom:link href="http://openstack.example.com/v2/openstack/servers/59a619a2-2374-477e-9d79-4febb191fa80" rel="self"/> | ||
<atom:link href="http://openstack.example.com/openstack/servers/59a619a2-2374-477e-9d79-4febb191fa80" rel="bookmark"/> | ||
</server> | ||
</servers> |
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-si-image-schedule/image-schedule-get-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"image_schedule": { | ||
"retention": 6 | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
doc/api_samples/os-si-image-schedule/image-schedule-get-resp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<image_schedule xmlns="http://docs.openstack.org/servers/api/ext/scheduled_images/v1.0"> | ||
<retention>6</retention> | ||
</image_schedule> |
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-si-image-schedule/image-schedule-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"image_schedule": { | ||
"retention": 7 | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
doc/api_samples/os-si-image-schedule/image-schedule-post-req.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<image_schedule xmlns="http://docs.openstack.org/servers/api/ext/scheduled_images/v1.0"> | ||
<retention>7</retention> | ||
</image_schedule> |
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-si-image-schedule/image-schedule-post-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"image_schedule": { | ||
"retention": 7 | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
doc/api_samples/os-si-image-schedule/image-schedule-post-resp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<image_schedule xmlns="http://docs.openstack.org/servers/api/ext/scheduled_images/v1.0"> | ||
<retention>7</retention> | ||
</image_schedule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"server": { | ||
"OS-SI:image_schedule": { | ||
"retention": 7 | ||
}, | ||
"accessIPv4": "", | ||
"accessIPv6": "", | ||
"addresses": { | ||
"private": [ | ||
{ | ||
"addr": "192.168.0.3", | ||
"version": 4 | ||
} | ||
] | ||
}, | ||
"created": "2013-03-29T19:52:15Z", | ||
"flavor": { | ||
"id": "1", | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/openstack/flavors/1", | ||
"rel": "bookmark" | ||
} | ||
] | ||
}, | ||
"hostId": "adeb10e7956e335d42baeeb8cb747bcb8fad96bdf6a33242fc9d0f98", | ||
"id": "af248c5a-9fbd-4657-8272-a4657b514ed8", | ||
"image": { | ||
"id": "70a599e0-31e7-49b7-b260-868f441e862b", | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b", | ||
"rel": "bookmark" | ||
} | ||
] | ||
}, | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/v2/openstack/servers/af248c5a-9fbd-4657-8272-a4657b514ed8", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://openstack.example.com/openstack/servers/af248c5a-9fbd-4657-8272-a4657b514ed8", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"metadata": { | ||
"My Server Name": "Apache1" | ||
}, | ||
"name": "new-server-test", | ||
"progress": 0, | ||
"status": "ACTIVE", | ||
"tenant_id": "openstack", | ||
"updated": "2013-03-29T19:52:16Z", | ||
"user_id": "fake" | ||
} | ||
} |
Oops, something went wrong.