WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Added the BAD_VM_STATE error code, and ti

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Added the BAD_VM_STATE error code, and tidy up the error code section.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Dec 2006 12:30:06 -0800
Delivery-date: Tue, 26 Dec 2006 12:30:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1167072267 0
# Node ID 6533ebfc25e13b7dcce82e486f22b7c3ab9ed4d3
# Parent  159ae46d5e7fdf63a1cc21b3d0f634d85bf2703f
Added the BAD_VM_STATE error code, and tidy up the error code section.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 docs/xen-api/xenapi-datamodel.tex |  175 ++++++++++++++++++--------------------
 1 files changed, 84 insertions(+), 91 deletions(-)

diff -r 159ae46d5e7f -r 6533ebfc25e1 docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Mon Dec 25 17:02:16 2006 +0000
+++ b/docs/xen-api/xenapi-datamodel.tex Mon Dec 25 18:44:27 2006 +0000
@@ -1279,8 +1279,10 @@ VM ref
 
 The ID of the newly created VM.
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~start}
 
 {\bf Overview:} 
@@ -1313,8 +1315,10 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~pause}
 
 {\bf Overview:} 
@@ -1345,8 +1349,10 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~unpause}
 
 {\bf Overview:} 
@@ -1363,7 +1369,7 @@ Resume the specified VM. This can only b
 \begin{tabular}{|c|c|p{7cm}|}
  \hline
 {\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt VM ref } & vm & The VM to pause \\ \hline 
+{\tt VM ref } & vm & The VM to unpause \\ \hline 
 
 \end{tabular}
 
@@ -1377,8 +1383,10 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~clean\_shutdown}
 
 {\bf Overview:} 
@@ -1386,6 +1394,8 @@ Attempt to cleanly shutdown the specifie
 
 Once shutdown has been completed perform poweroff action specified in guest 
configuration.
 
+This can only be called when the specified VM is in the Running state.
+
  \noindent {\bf Signature:} 
 \begin{verbatim} void clean_shutdown (session_id s, VM ref vm)\end{verbatim}
 
@@ -1411,8 +1421,10 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~clean\_reboot}
 
 {\bf Overview:} 
@@ -1420,6 +1432,8 @@ Attempt to cleanly shutdown the specifie
 
 Once shutdown has been completed perform reboot action specified in guest 
configuration.
 
+This can only be called when the specified VM is in the Running state.
+
  \noindent {\bf Signature:} 
 \begin{verbatim} void clean_reboot (session_id s, VM ref vm)\end{verbatim}
 
@@ -1445,8 +1459,10 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~hard\_shutdown}
 
 {\bf Overview:} 
@@ -1514,7 +1530,7 @@ void
 \subsubsection{RPC name:~suspend}
 
 {\bf Overview:} 
-Suspend the specified VM to disk.
+Suspend the specified VM to disk.  This can only be called when the specified 
VM is in the Running state.
 
  \noindent {\bf Signature:} 
 \begin{verbatim} void suspend (session_id s, VM ref vm)\end{verbatim}
@@ -1541,12 +1557,14 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~resume}
 
 {\bf Overview:} 
-Awaken the specified VM and resume it.
+Awaken the specified VM and resume it.  This can only be called when the 
specified VM is in the Suspended state.
 
  \noindent {\bf Signature:} 
 \begin{verbatim} void resume (session_id s, VM ref vm, bool 
start_paused)\end{verbatim}
@@ -1575,8 +1593,10 @@ void
 
 
 \vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
+
+\noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
+
+\vspace{0.6cm}
 \subsubsection{RPC name:~get\_all}
 
 {\bf Overview:} 
@@ -10493,39 +10513,6 @@ Each possible error code is documented i
 
 \subsection{Error Codes}
 
-\vspace{0.9cm}
-\subsubsection{HOST\_CPU\_HANDLE\_INVALID}
-
-You gave an invalid host\_cpu handle.  The host\_cpu may have recently been
-deleted.  The handle parameter echoes the bad value given.
-
-\vspace{0.3cm}
-\noindent{\bf Signature:}
-\begin{verbatim}HOST_CPU_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
-\subsubsection{HOST\_HANDLE\_INVALID}
-
-You gave an invalid host handle.  The host may have recently been deleted. 
-The handle parameter echoes the bad value given.
-
-\vspace{0.3cm}
-\noindent{\bf Signature:}
-\begin{verbatim}HOST_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
-\subsubsection{INTERNAL\_ERROR}
-
-The server failed to handle your request, due to an internal error.  The
-given message may give details useful for debugging the problem.
-
-\vspace{0.3cm}
-\noindent{\bf Signature:}
-\begin{verbatim}INTERNAL_ERROR(message)\end{verbatim}
-
-
 \subsubsection{HOST\_CPU\_HANDLE\_INVALID}
 
 You gave an invalid host\_cpu handle.  The host\_cpu may have recently been
@@ -10563,22 +10550,20 @@ echoed.
 echoed.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}MAP_DUPLICATE_KEY(key, current value, new value)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{MESSAGE\_METHOD\_UNKNOWN}
 
 You tried to call a method that does not exist.  The method name that you
 used is echoed.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}MESSAGE_METHOD_UNKNOWN(method)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{MESSAGE\_PARAMETER\_COUNT\_MISMATCH}
 
 You tried to call a method with the incorrect number of parameters.  The
@@ -10586,11 +10571,10 @@ expected parameters are returned.
 expected parameters are returned.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}MESSAGE_PARAMETER_COUNT_MISMATCH(method, expected, 
received)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{SESSION\_AUTHENTICATION\_FAILED}
 
 The credentials given by the user are incorrect, so access has been denied,
@@ -10598,8 +10582,8 @@ and you have not been issued a session h
 
 \vspace{0.3cm}
 No parameters.
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{SESSION\_INVALID}
 
 You gave an invalid session handle.  It may have been invalidated by a
@@ -10608,74 +10592,83 @@ current connection.  The handle paramete
 current connection.  The handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}SESSION_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{SR\_HANDLE\_INVALID}
 
 You gave an invalid SR handle.  The SR may have recently been deleted.  The
 handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}SR_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{VBD\_HANDLE\_INVALID}
 
 You gave an invalid VBD handle.  The VBD may have recently been deleted. 
 The handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}VBD_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{VDI\_HANDLE\_INVALID}
 
 You gave an invalid VDI handle.  The VDI may have recently been deleted. 
 The handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}VDI_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{VIF\_HANDLE\_INVALID}
 
 You gave an invalid VIF handle.  The VIF may have recently been deleted. 
 The handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}VIF_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
+\subsubsection{VM\_BAD\_POWER\_STATE}
+
+You attempted an operation on a VM that was not in an appropriate power
+state at the time; for example, you attempted to start a VM that was
+already running.  The parameters returned are the VM's UUID, and the
+expected and actual VM state at the time of the call.
+
+\vspace{0.3cm}
+{\bf Signature:}
+\begin{verbatim}VM_BAD_POWER_STATE(vm, expected, actual)\end{verbatim}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{VM\_HANDLE\_INVALID}
 
 You gave an invalid VM handle.  The VM may have recently been deleted.  The
 handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}VM_HANDLE_INVALID(handle)\end{verbatim}
-
-
-\vspace{0.9cm}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
 \subsubsection{VTPM\_HANDLE\_INVALID}
 
 You gave an invalid VTPM handle.  The VTPM may have recently been deleted. 
 The handle parameter echoes the bad value given.
 
 \vspace{0.3cm}
-\noindent{\bf Signature:}
+{\bf Signature:}
 \begin{verbatim}VTPM_HANDLE_INVALID(handle)\end{verbatim}
+\begin{center}\rule{10em}{0.1pt}\end{center}
+
+
 
 \newpage
 \section{DTD}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Added the BAD_VM_STATE error code, and tidy up the error code section., Xen patchbot-unstable <=