[Pkg-xen-devel] Bug#655301: Bug#655301: Bug#655301: xcp-xapi fails to start

Mike McClurg mike.mcclurg at gmail.com
Wed Jan 11 23:31:25 UTC 2012


On Tue, Jan 10, 2012 at 12:06 PM, Ritesh Raj Sarraf <rrs at debian.org> wrote:
> This seems to be happening because of this:
>
> # Wait for xapi to write its "init complete" cookie: after here it's
> safe to modify templates.
> wait_for_xapi() {
>    MAX_RETRIES=50
>    RETRY=0
>    while [ ${RETRY} -lt ${MAX_RETRIES} ]; do
>        if [ -e ${XAPI_STARTUP_COOKIE} ]; then
>            return 0
>        fi
>        sleep 1
>        RETRY=$(( ${RETRY} + 1 ))
>    done
>    return 1
> }
>
> The daemon is started with daemon args as:
> DAEMON_ARGS="-daemon -writereadyfile $XAPI_STARTUP_COOKIE
> -writeinitcomplete $XAPI_INIT_COMPLETE_COOKIE"
>
> I admit this bug report was done in a hurry without trying all options.
>
> My wild guess is that the xcp cookies is dependent on the domain uuid.
> In my case, the uuid was carried froward from the other repository. I
> will try this out and update the bug report.
>
> Thank you for getting the packages done. We'll get it in shape for
> wheezy. :-)
>

Hi Ritesh,

It is likely that the uuid's changed in the upgrade because we didn't
handle the file renaming well. Do you have both
/etc/xensource-inventory and /etc/xcp/inventory? The second file is
the correct location. You may be able to copy the uuid from the first
inventory file into the second.

If this doesn't work, could you please attach both inventory files,
and the log file /var/log/xcp-xapi.log to the bug report? Thanks for
testing our software!

Mike





More information about the Pkg-xen-devel mailing list