[Pkg-xen-devel] Bug#680102: More fixes for xen-api in Wheezy

George Shuklin george.shuklin at gmail.com
Sat Jul 7 22:15:10 UTC 2012


On 08.07.2012 01:57, Mike McClurg wrote:
> On Sat, Jul 7, 2012 at 10:40 PM, Thomas Goirand <thomas at goirand.fr> wrote:
>> On 07/08/2012 04:22 AM, Mike McClurg wrote:
>>> So 680102 is due to there not being an /etc/firstboot.d/ directory (as
>>> the ticket explains). I think we can fix this issue simply by
>>> mkdir'ing the directory /etc/firstboot.d/data at some point in xapi's
>>> installation. This would allow the pool-eject to proceed, but I think
>>> that there might be problems when the host reboots: since none of the
>>> firstboot scripts will be called, the host might not reinitialise
>>> properly.
>> Well, writing in /etc dynamically is *forbidden* by the Debian policy.
>> The /etc folder is for configuration, not something else! If you were
>> using /var/lib/xcp-xapi, ok, but not /etc.
>>
>> Could you think about a better way to fix?
> Sure, we can change what xapi thinks is the firstboot directory. See
> ocaml/xapi/xapi_globs.ml:593 :
>
> let first_boot_dir = "/etc/firstboot.d/"
>
> We could change that to "/var/lib/xcp/firstboot.d". I'd like to know
> whether creating the /etc/firstboot.d directory will solve the problem
> though, before we make that change.
>
> Mike
ok, here.

note that previous attempt kick away host from pool, but without proper 
local initialization. Here logs of second attempt (with 
/etc/firstboot.d/data manually created directory):

-----------------------
[20120707T22:13:09.973Z| info|lab-xh3|43 UNIX /var/lib/xcp/xapi||cli] xe 
pool-eject host-uuid=a6806a39-442d-f17d-b7a0-59161d18f562 username=root 
password=null
[20120707T22:13:09.976Z| info|lab-xh3|43 UNIX 
/var/lib/xcp/xapi|session.login_with_password D:763ae6ae1551|xapi] 
Session.create trackid=a17abf27963b50ace679a372020f2b32 pool=false 
uname=root is_local_superuser=true auth_user_sid= 
parent=trackid=9834f5af41c964e225f24279aefe4e49
[20120707T22:13:09.979Z|error|lab-xh3|43 UNIX 
/var/lib/xcp/xapi|session.login_with_password D:763ae6ae1551|http] 
Failed to parse HTTP response status line []
[20120707T22:13:09.998Z| info|lab-xh3|43 UNIX 
/var/lib/xcp/xapi|session.login_with_password D:763ae6ae1551|xapi] 
stunnel pid: 19543 (cached = true) connected to 31.186.98.97:443
[20120707T22:13:09.998Z| info|lab-xh3|43 UNIX 
/var/lib/xcp/xapi|session.login_with_password D:763ae6ae1551|xapi] 
with_recorded_stunnelpid task_opt=None s_pid=19543
[20120707T22:13:10.001Z| info|lab-xh3|43 UNIX 
/var/lib/xcp/xapi|session.login_with_password D:763ae6ae1551|xapi] 
stunnel pid: 19543 (cached = true) returned stunnel to cache
[20120707T22:13:10.008Z| info|lab-xh3|43 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19546 (cached = false) connected to 31.186.98.97:443
[20120707T22:13:10.008Z| info|lab-xh3|43 UNIX /var/lib/xcp/xapi||xapi] 
with_recorded_stunnelpid task_opt=None s_pid=19546
[20120707T22:13:11.928Z|debug|lab-xh3|44 INET 
127.0.0.1:80||dummytaskhelper] task dispatch:pool.eject D:a101a30f25d9 
created by task R:95b3dab5eab2
[20120707T22:13:11.930Z| info|lab-xh3|44 INET 
127.0.0.1:80|dispatch:pool.eject D:a101a30f25d9|taskhelper] task 
pool.eject R:95b3dab5eab2 forwarded 
(trackid=32a7c19154041cc8c5cfcc3729a5bcab)
[20120707T22:13:11.935Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Pool.eject: unplugging PBDs
[20120707T22:13:11.941Z|error|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|http] Failed to parse HTTP response status line []
[20120707T22:13:11.959Z| info|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] stunnel pid: 19551 (cached = true) connected to 
31.186.98.97:443
[20120707T22:13:11.959Z| info|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] with_recorded_stunnelpid task_opt=None s_pid=19551
[20120707T22:13:11.989Z|debug|lab-xh3|45 INET 
127.0.0.1:80||dummytaskhelper] task dispatch:PBD.unplug D:94efb9464e1f 
created by task R:65c1b9f31a96
[20120707T22:13:11.991Z| info|lab-xh3|45 INET 
127.0.0.1:80|dispatch:PBD.unplug D:94efb9464e1f|taskhelper] task 
PBD.unplug R:65c1b9f31a96 forwarded 
(trackid=ec8fd1171c5d74b5ccf47e1f08e5f11e)
[20120707T22:13:12.007Z| info|lab-xh3|45 INET 127.0.0.1:80|PBD.unplug 
R:65c1b9f31a96|storage_impl] SR.detach 
task:OpaqueRef:65c1b9f3-1a96-27c9-5c16-9ead496f8b5b 
sr:b9b15e78-c79b-f9b7-4238-d36be14b8075
[20120707T22:13:12.007Z|debug|lab-xh3|45 INET 127.0.0.1:80|PBD.unplug 
R:65c1b9f31a96|dummytaskhelper] task SR.detach D:cc70741477f6 created by 
task R:65c1b9f31a96
[20120707T22:13:12.011Z|debug|lab-xh3|45 INET 127.0.0.1:80|SR.detach 
D:cc70741477f6|sm] SM nfs sr_detach 
sr=OpaqueRef:a1dda990-6715-497f-2b77-7c52a836c9d0
[20120707T22:13:12.017Z| info|lab-xh3|45 INET 127.0.0.1:80|sm_exec 
D:0d924d490917|xapi] Session.create 
trackid=71411412d4436f7fc5c9514d7eee2ea9 pool=false uname= 
is_local_superuser=true auth_user_sid= 
parent=trackid=9834f5af41c964e225f24279aefe4e49
[20120707T22:13:12.038Z| info|lab-xh3|45 INET 127.0.0.1:80|sm_exec 
D:0d924d490917|xapi] stunnel pid: 19556 (cached = true) connected to 
31.186.98.97:443
[20120707T22:13:12.038Z| info|lab-xh3|45 INET 127.0.0.1:80|sm_exec 
D:0d924d490917|xapi] with_recorded_stunnelpid task_opt=None s_pid=19556
[20120707T22:13:12.040Z| info|lab-xh3|45 INET 127.0.0.1:80|sm_exec 
D:0d924d490917|xapi] stunnel pid: 19556 (cached = true) returned stunnel 
to cache
[20120707T22:13:12.114Z|error|lab-xh3|46 UNIX /var/lib/xcp/xapi||http] 
Failed to parse HTTP response status line []
[20120707T22:13:12.133Z| info|lab-xh3|46 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19563 (cached = true) connected to 31.186.98.97:443
[20120707T22:13:12.133Z| info|lab-xh3|46 UNIX /var/lib/xcp/xapi||xapi] 
with_recorded_stunnelpid task_opt=None s_pid=19563
[20120707T22:13:12.136Z| info|lab-xh3|46 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19563 (cached = true) returned stunnel to cache
[20120707T22:13:12.136Z|debug|lab-xh3|46 UNIX 
/var/lib/xcp/xapi||http_critical] Premature termination of connection!
[20120707T22:13:12.300Z| info|lab-xh3|45 INET 127.0.0.1:80|sm_exec 
D:0d924d490917|xapi] Session.destroy 
trackid=71411412d4436f7fc5c9514d7eee2ea9
[20120707T22:13:12.312Z|debug|lab-xh3|45 INET 127.0.0.1:80|PBD.unplug 
R:65c1b9f31a96|taskhelper] forwarded task destroyed
[20120707T22:13:12.317Z| info|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] stunnel pid: 19551 (cached = true) returned stunnel 
to cache
[20120707T22:13:12.319Z| info|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] stunnel pid: 19563 (cached = true) connected to 
31.186.98.97:443
[20120707T22:13:12.319Z| info|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] with_recorded_stunnelpid task_opt=None s_pid=19563
[20120707T22:13:12.350Z|debug|lab-xh3|47 INET 
127.0.0.1:80||dummytaskhelper] task dispatch:PBD.unplug D:33523698e9a5 
created by task R:6b25fb2bd546
[20120707T22:13:12.352Z| info|lab-xh3|47 INET 
127.0.0.1:80|dispatch:PBD.unplug D:33523698e9a5|taskhelper] task 
PBD.unplug R:6b25fb2bd546 forwarded 
(trackid=0b7e1b195a9e2887bc9d48c2180ddfd7)
[20120707T22:13:12.369Z| info|lab-xh3|47 INET 127.0.0.1:80|PBD.unplug 
R:6b25fb2bd546|storage_impl] SR.detach 
task:OpaqueRef:6b25fb2b-d546-0144-c589-a170a939b8b7 
sr:cd0a9c77-2f0c-6594-f0ac-e7edd1107065
[20120707T22:13:12.370Z|debug|lab-xh3|47 INET 127.0.0.1:80|PBD.unplug 
R:6b25fb2bd546|dummytaskhelper] task SR.detach D:d70f3de0928c created by 
task R:6b25fb2bd546
[20120707T22:13:12.374Z|debug|lab-xh3|47 INET 127.0.0.1:80|SR.detach 
D:d70f3de0928c|sm] SM iso sr_detach 
sr=OpaqueRef:088df39b-55b1-0f60-2d45-314e2cc01e18
[20120707T22:13:12.379Z| info|lab-xh3|47 INET 127.0.0.1:80|sm_exec 
D:14a70395994e|xapi] Session.create 
trackid=a27a13fb27e9176411bd83b595a235b9 pool=false uname= 
is_local_superuser=true auth_user_sid= 
parent=trackid=9834f5af41c964e225f24279aefe4e49
[20120707T22:13:12.383Z|error|lab-xh3|47 INET 127.0.0.1:80|sm_exec 
D:14a70395994e|http] Failed to parse HTTP response status line []
[20120707T22:13:12.402Z| info|lab-xh3|47 INET 127.0.0.1:80|sm_exec 
D:14a70395994e|xapi] stunnel pid: 19571 (cached = true) connected to 
31.186.98.97:443
[20120707T22:13:12.402Z| info|lab-xh3|47 INET 127.0.0.1:80|sm_exec 
D:14a70395994e|xapi] with_recorded_stunnelpid task_opt=None s_pid=19571
[20120707T22:13:12.405Z| info|lab-xh3|47 INET 127.0.0.1:80|sm_exec 
D:14a70395994e|xapi] stunnel pid: 19571 (cached = true) returned stunnel 
to cache
[20120707T22:13:12.479Z|error|lab-xh3|48 UNIX /var/lib/xcp/xapi||http] 
Failed to parse HTTP response status line []
[20120707T22:13:12.498Z| info|lab-xh3|48 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19578 (cached = true) connected to 31.186.98.97:443
[20120707T22:13:12.498Z| info|lab-xh3|48 UNIX /var/lib/xcp/xapi||xapi] 
with_recorded_stunnelpid task_opt=None s_pid=19578
[20120707T22:13:12.501Z| info|lab-xh3|48 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19578 (cached = true) returned stunnel to cache
[20120707T22:13:12.501Z|debug|lab-xh3|48 UNIX 
/var/lib/xcp/xapi||http_critical] Premature termination of connection!
[20120707T22:13:12.507Z| info|lab-xh3|47 INET 127.0.0.1:80|sm_exec 
D:14a70395994e|xapi] Session.destroy 
trackid=a27a13fb27e9176411bd83b595a235b9
[20120707T22:13:12.519Z|debug|lab-xh3|47 INET 127.0.0.1:80|PBD.unplug 
R:6b25fb2bd546|taskhelper] forwarded task destroyed
[20120707T22:13:12.524Z| info|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] stunnel pid: 19563 (cached = true) returned stunnel 
to cache
[20120707T22:13:12.524Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Pool.eject: disabling external authentication in 
slave-to-be-ejected
[20120707T22:13:12.525Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Failed to disable external authentication in host 
lab-xh3: external authentication service is already disabled
[20120707T22:13:12.525Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Pool.eject: rewrite networking first-boot files
[20120707T22:13:12.529Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Pool.eject: deleting Host record (the point of no 
return)
[20120707T22:13:12.531Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Pool.eject: resetting CPU features
[20120707T22:13:12.539Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Raised at forkhelpers.ml:181.30-76 -> 
pervasiveext.ml:22.2-9
[20120707T22:13:12.540Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|backtrace] Raised at pervasives.ml:22.22-33 -> 
list.ml:57.20-23 -> xapi_pool.ml:830.9-125 -> rbac.ml:229.16-23
[20120707T22:13:12.542Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|backtrace] Raised at rbac.ml:238.10-15 -> 
server_helpers.ml:72.10-22
[20120707T22:13:12.542Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|dispatcher] Server_helpers.exec exception_handler: Got 
exception INTERNAL_ERROR: [ Failure("Error while calling xen-cmdline 
script") ]
[20120707T22:13:12.542Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|dispatcher] Raised at string.ml:150.25-34 -> 
stringext.ml:108.13-29
[20120707T22:13:12.542Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|backtrace] Raised at string.ml:150.25-34 -> 
stringext.ml:108.13-29
[20120707T22:13:12.548Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Raised at server_helpers.ml:94.14-15 -> 
pervasiveext.ml:22.2-9
[20120707T22:13:12.548Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|taskhelper] forwarded task destroyed
[20120707T22:13:12.548Z|debug|lab-xh3|44 INET 127.0.0.1:80|pool.eject 
R:95b3dab5eab2|xapi] Raised at pervasiveext.ml:26.22-25 -> 
pervasiveext.ml:22.2-9
[20120707T22:13:12.548Z|debug|lab-xh3|44 INET 
127.0.0.1:80|dispatch:pool.eject D:a101a30f25d9|xapi] Raised at 
pervasiveext.ml:26.22-25 -> pervasiveext.ml:22.2-9
[20120707T22:13:12.549Z|debug|lab-xh3|44 INET 
127.0.0.1:80|dispatch:pool.eject D:a101a30f25d9|backtrace] Raised at 
pervasiveext.ml:26.22-25 -> server_helpers.ml:153.10-106 -> 
server.ml:3275.19-167 -> server_helpers.ml:119.4-7
[20120707T22:13:12.556Z| info|lab-xh3|43 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19578 (cached = true) connected to 31.186.98.97:443
[20120707T22:13:12.556Z| info|lab-xh3|43 UNIX /var/lib/xcp/xapi||xapi] 
with_recorded_stunnelpid task_opt=None s_pid=19578
[20120707T22:13:12.559Z| info|lab-xh3|43 UNIX /var/lib/xcp/xapi||xapi] 
stunnel pid: 19578 (cached = true) returned stunnel to cache






More information about the Pkg-xen-devel mailing list