Open empath opened 9 years ago
here are the logs:
Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.718Z| info|example.com|454677 unix-RPC|VDI.db_introduce R:101772f93605|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'VDI.db_introduce' (('uuid' '' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814') ('name_label' '' '' '') ('name_description' ' ' '' '') ('sR' 'Local storage' '8e225b79-fab2-8166-4eaf-99d7a9899c02' 'OpaqueRef:7eb82631-3fcb-c15d-c438-3b645641a9b8') ('location' '' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.732Z| info|example.com|454678 unix-RPC|VDI.set_sm_config D:2d113e9184b7|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'VDI.set_sm_config' (('self' '' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.739Z| info|example.com|454679 unix-RPC|VDI.set_managed D:aaebeec2cabd|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'VDI.set_managed' (('self' '' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.745Z| info|example.com|454680 unix-RPC|VDI.set_virtual_size D:6870d67f083b|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'VDI.set_virtual_size' (('self' '' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.751Z| info|example.com|454681 unix-RPC|VDI.set_physical_utilisation D:55f5db7d4ced|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'VDI.set_physical_utilisation' (('self' '' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.787Z| info|example.com|454684 unix-RPC|SR.set_virtual_allocation D:554a891be87e|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'SR.set_virtual_allocation' (('self' 'Local storage' '8e225b79-fab2-8166-4eaf-99d7a9899c02' 'OpaqueRef:7eb82631-3fcb-c15d-c438-3b645641a9b8'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.793Z| info|example.com|454685 unix-RPC|SR.set_physical_size D:a4760a13ef11|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'SR.set_physical_size' (('self' 'Local storage' '8e225b79-fab2-8166-4eaf-99d7a9899c02' 'OpaqueRef:7eb82631-3fcb-c15d-c438-3b645641a9b8'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.799Z| info|example.com|454686 unix-RPC|SR.set_physical_utilisation D:a5c59259b3f3|audit] ('trackid=1c50ab5970da2d10a3c4f55ada4f59b2' 'LOCAL_SUPERUSER' '' 'ALLOWED' 'OK' 'API' 'SR.set_physical_utilisation' (('self' 'Local storage' '8e225b79-fab2-8166-4eaf-99d7a9899c02' 'OpaqueRef:7eb82631-3fcb-c15d-c438-3b645641a9b8'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.882Z| info|example.com|454555 inet_rpc|VDI.create R:676e67118740|audit] ('trackid=c500c368e34b6f214316cbc1153bd573' 'LOCAL_SUPERUSER' 'user' 'ALLOWED' 'OK' 'API' 'VDI.create' (('name_label' 'Packer-disk' '' '') ('SR' 'Local storage' '8e225b79-fab2-8166-4eaf-99d7a9899c02' 'OpaqueRef:7eb82631-3fcb-c15d-c438-3b645641a9b8'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.906Z| info|example.com|454555 inet_rpc|VBD.create R:cb84cee263e7|audit] ('trackid=c500c368e34b6f214316cbc1153bd573' 'LOCAL_SUPERUSER' 'user' 'ALLOWED' 'OK' 'API' 'VBD.create' (('VM' 'packer-centos-6.6-x86_64' '0f47cb2f-0848-e159-7394-be7829b84643' 'OpaqueRef:2c20265c-bfe5-db6f-5f66-a5bd39427bef') ('VDI' 'Packer-disk' '60917de4-7ecc-4878-bb43-3959e3655559' 'OpaqueRef:73c7ae78-1132-cf37-d32b-869b1f06d814'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:40.960Z| info|example.com|454555 inet_rpc|VIF.create R:74cbdd335d45|audit] ('trackid=c500c368e34b6f214316cbc1153bd573' 'LOCAL_SUPERUSER' 'user' 'ALLOWED' 'OK' 'API' 'VIF.create' (('network' 'Pool-wide network associated with eth0' '7eb1806e-6620-101d-a320-3b4bbcd32849' 'OpaqueRef:6c15bd16-a785-1a5d-1de5-8299c9ecb33e') ('VM' 'packer-centos-6.6-x86_64' '0f47cb2f-0848-e159-7394-be7829b84643' 'OpaqueRef:2c20265c-bfe5-db6f-5f66-a5bd39427bef'))) Jul 9 15:23:40 id-242937 xapi: [20150709T19:23:41.000Z| info|example.com|454555 inet_rpc|VBD.create R:17bf8c421c5f|audit] ('trackid=c500c368e34b6f214316cbc1153bd573' 'LOCAL_SUPERUSER' 'user' 'ALLOWED' 'ERROR:VDI_IS_NOT_ISO: [ OpaqueRef:83de7c01-0abb-5462-e48e-f7dbe4a3b6d3; user ]' 'API' 'VBD.create' (('VDI' 'CentOS-6.6-x86_64-minimal.iso' '09668b4d-14be-4ee0-85f4-7a79a7ff536a' 'OpaqueRef:83de7c01-0abb-5462-e48e-f7dbe4a3b6d3') ('VM' 'packer-centos-6.6-x86_64' '0f47cb2f-0848-e159-7394-be7829b84643' 'OpaqueRef:2c20265c-bfe5-db6f-5f66-a5bd39427bef')))
Same problem here. But the problem is gone after installing the servicepack and patches. Servicepacks installed: XS65ESP1002 XS65E006 XS65E008 XS65E005 XS65E010 XS65E009 XS65ESP1 XS65ESP1003 XS65E002 XS65E001 XS65E003 XS65E007 XS65ESP1004
It went away for me after installing SP1. I'm on XS 6.5.
May also need to set Local storage as default (this + SP1 fixed it for me)
I'm going to preface this by saying that I'm using a version built with your pull request for the latest version of packer merged in, so this error might very well be due to that. ==> xenserver-iso: XAPI client session established ==> xenserver-iso: Downloading or copying ISO xenserver-iso: Downloading or copying: http://www.mirrorservice.org/sites/mirror.centos.org/6.6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso ==> xenserver-iso: Starting HTTP server on port 8000 ==> xenserver-iso: Step: Upload VDI 'CentOS-6.6-x86_64-minimal.iso' ==> xenserver-iso: PUT 'https://example.com/import_raw_vdi?session_id=OpaqueRef%3A8c14557d-cdad-547b-e711-a532b85865aa&task_id=OpaqueRef%3Aea957d14-7b25-3a47-6e8f-1b0279e223cf&vdi=OpaqueRef%3Aa41dcfd5-2ed1-428e-0438-05478e71c9b2' ==> xenserver-iso: Step: Create Instance ==> xenserver-iso: Created instance 'a576526a-7f0f-58e8-939e-b1bd8cd519ff' ==> xenserver-iso: Error attaching VDI '36bcc00c-6280-446b-b56d-b4fe2bf11793': 'API Error: [VDI_IS_NOT_ISO OpaqueRef:a41dcfd5-2ed1-428e-0438-05478e71c9b2 user]' ==> xenserver-iso: Destroying VM ==> xenserver-iso: Destroying VDI ==> xenserver-iso: Destroyed VDI 'CentOS-6.6-x86_64-minimal.iso' ==> xenserver-iso: Deleting output directory...
Logging into the box while it's running, I can see it creates the vdi and the vm, so I don't see what the problem is? Seems to possibly creating the vdi as a VHD instead of a cd and then trying to mount it as a CD?. I don't really know anything about go, so it's hard for me to untangle what it's doing in the code.
vdi params for the image that it uploaded:
uuid ( RO) : 36bcc00c-6280-446b-b56d-b4fe2bf11793 name-label ( RW): CentOS-6.6-x86_64-minimal.iso name-description ( RW): is-a-snapshot ( RO): false snapshot-of ( RO):
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
allowed-operations (SRO): update; resize; destroy; clone; copy; snapshot
current-operations (SRO):
sr-uuid ( RO): 8e225b79-fab2-8166-4eaf-99d7a9899c02
sr-name-label ( RO): Local storage
vbd-uuids (SRO): d06b3eb8-6581-cda6-59ac-968e7500e19e
crashdump-uuids (SRO):
virtual-size ( RO): 402653184
physical-utilisation ( RO): 411041792
location ( RO): 36bcc00c-6280-446b-b56d-b4fe2bf11793
type ( RO): User
sharable ( RO): false
read-only ( RO): false
storage-lock ( RO): false
managed ( RO): true
parent ( RO):
missing ( RO): false
other-config (MRW): temp: temp
xenstore-data (MRO):
sm-config (MRO): host_OpaqueRef:1ee56f53-0392-1105-e0e4-1a80349152b2: RW; vdi_type: vhd
on-boot ( RW): persist
allow-caching ( RW): false
metadata-latest ( RO): false
metadata-of-pool ( RO):
tags (SRW):
the json config i'm using. config.json { "builders": [ { "type": "xenserver-iso", "remote_host": "example.com", "remote_username": "user", "remote_password": "password",
],
"variables": { "mirror": "http://www.mirrorservice.org/sites/mirror.centos.org" } }