Skip to content

Instantly share code, notes, and snippets.

Standardized API Version and Capability Discovery for OpenStack

Preface

We are moving into an era of OpenStack where heterogeneous clouds may include services based on differing versions of APIs and with unpredictable extensions and drivers providing differing capabilities for similar service types. Thus

@gabrielhurley
gabrielhurley / PKG_INFO
Created March 10, 2013 21:36
PKG_INFO file generated from Horizon with "python setup.py sdist" command.
Metadata-Version: 1.1
Name: horizon
Version: 2013.1.a146.g2b5e55c
Summary: The OpenStack Dashboard.
Home-page: https://github.com/openstack/horizon/
Author: OpenStack
Author-email: horizon@lists.launchpad.net
License: Apache 2.0
Description: =============================
Horizon (OpenStack Dashboard)
REQ: GET http://192.168.35.130:8080/v1/AUTH_40c63d4dbd804f63afeae292a7d3b89a/
Content-Type: application/json
Accept: application/json
X-Auth-Token: 4c435bd00e5f12f6ede36b7bc9fdeb37
RES: GET http://192.168.35.130:8080/v1/AUTH_40c63d4dbd804f63afeae292a7d3b89a/
status: 200
content-length: 41
accept-ranges: bytes
x-timestamp: 1361061563.59130
@gabrielhurley
gabrielhurley / devstack_quantum_auth_failure.log
Created August 7, 2012 20:02
devstack quantum auth failure
+ /opt/stack/nova/bin/nova-manage network create private 10.0.0.0/24 1 256
2012-08-07 19:59:14 WARNING nova.network.quantum.manager [req-d60cdd7c-40f3-4041-87c1-64e3a3c75098 None None] QuantumManager does not use 'bridge' parameter.
QuantumManager does not use 'bridge' parameter.
2012-08-07 19:59:14 WARNING nova.network.quantum.manager [req-d60cdd7c-40f3-4041-87c1-64e3a3c75098 None None] QuantumManager does not use 'bridge_interface' parameter.
QuantumManager does not use 'bridge_interface' parameter.
2012-08-07 19:59:14 DEBUG nova.network.quantum.quantum_connection [req-d60cdd7c-40f3-4041-87c1-64e3a3c75098 None None] Quantum Client Request: POST /v1.1/tenants/default/networks.json from (pid=13521) do_request /opt/stack/nova/nova/network/quantum/client.py:182
Quantum Client Request: POST /v1.1/tenants/default/networks.json
2012-08-07 19:59:14 DEBUG nova.network.quantum.quantum_connection [req-d60cdd7c-40f3-4041-87c1-64e3a3c75098 None None] {"network": {"name": "private", "nova_id": "nova"}} from (pid=13521) d
@gabrielhurley
gabrielhurley / project_id.diff
Created July 24, 2012 00:11
Project Workflows Add Project ID
diff --git a/horizon/dashboards/syspanel/projects/views.py b/horizon/dashboards/syspanel/projects/views.py
index e5f2f54..ec3a6e6 100644
--- a/horizon/dashboards/syspanel/projects/views.py
+++ b/horizon/dashboards/syspanel/projects/views.py
@@ -182,7 +182,7 @@ class UpdateProjectView(workflows.WorkflowView):
initial = super(UpdateProjectView, self).get_initial()
project_id = self.kwargs['tenant_id']
- initial['id'] = project_id
+ initial['project_id'] = project_id
@gabrielhurley
gabrielhurley / proj_membership_html.html
Created July 5, 2012 21:23
structure for project membership HTML
<div class="combo-box">
<div class="header"># Title, actions, filters</div>
<ul class="items">
<li class="item" data-user-id="<user_id>">
<span># Name</span>
<a href="#add/remove"># Add/Remove</a>
<ul class="role dropdown"> # For "included" box only
<li data-role-id="<role_id>"># Role name</li>
</ul>
</li>
@gabrielhurley
gabrielhurley / jenkins_selenium.rst
Created July 2, 2012 19:43
Jenkins Selenium Setup

Selenium Jenkins Integration

Medium detail overview of steps involved

  • Add appropriate packages to build slave:

    sudo apt-get install xvfb          # virtual display
@gabrielhurley
gabrielhurley / openstack_translation.rst
Created June 22, 2012 00:02
Translation, Internationalization and Localization in OpenStack

Translation, Internationalization and Localization in OpenStack

OpenStack is committed to broad international support, and as such there must be an ongoing concern with making OpenStack usable for all audiences. This includes proper use of internationalization and localization tools by developers, and high-quality translations for both user-facing messages and documentation.

Table of Contents

@gabrielhurley
gabrielhurley / admin_server_list.json
Created May 23, 2012 18:21
sample json returned from admin server list call
REQ: GET http://example.com:8774/v2/<tenant_id>/servers/detail?all_tenants=True
RESP:
{
"servers": [
{
"OS-EXT-STS:task_state": null,
"addresses": {
"private": [
@gabrielhurley
gabrielhurley / workflows.rst
Created May 2, 2012 02:15
Horizon Workflows API Proposal

Workflows API

This proposal describes how the Workflows API should be constructed.

Contents:

Design Goals